of     1   

geary97
#141150772Tuesday, July 22, 2014 8:55 AM GMT

Okay, so I'm finally attempting to learn Lua, I made a very simple script that makes a wall turn transparent when you touch it. The script I put is function onTouched(hit) Script.Wall.Transparency = 1 end I know this is super simple to you guys, but I just have no idea, help me out here please.
brinkokevin
#141150801Tuesday, July 22, 2014 8:56 AM GMT

u need a connection line to connect the function script.Wall.Touched:connect(onTouched) put it in last line
lampwnage121
#141150853Tuesday, July 22, 2014 8:59 AM GMT

script* You don't have a connection line. Judging by the name of your function, you'd want to hook it to the Touched event. PathToObject.Touched:connect(FUNCTIONNAME) Or you can call the function manually FUNCTIONNAME() In your case, If you want it to register when the scripts parent is touched: script.Parent.Touched:connect(onTouched) If you want it fire when it is touched: script.Wall.Touched:connect(onTouched)
geary97
#141150861Tuesday, July 22, 2014 8:59 AM GMT

I see, thanks tons
geary97
#141150916Tuesday, July 22, 2014 9:01 AM GMT

As long as I have people here, will I need a connection line for any script similar to this?
brinkokevin
#141151389Tuesday, July 22, 2014 9:19 AM GMT

of corse how do u think u will connect function

    of     1