of     1   

ernakou
#63717417Friday, March 02, 2012 11:59 PM GMT

x=7 function onTouched(hit) script.Parent.Touched:connect(onTouched) wait(.1) if x>0 then script.Parent.Door.Transparency = 1 script.Parent.Door.CanCollide = false x=x+1 else if x<0 then script.Parent.Door.Transparency = 0 script.Parent.Door.CanCollide = true end I'm very unfamiliar to variables... :(
epicfail22
#63717470Friday, March 02, 2012 11:59 PM GMT

x=7 function onTouched(hit) wait(.1) if x>0 then script.Parent.Door.Transparency = 1 script.Parent.Door.CanCollide = false x=x+1 else if x<0 then script.Parent.Door.Transparency = 0 script.Parent.Door.CanCollide = true end script.Parent.Touched:connect(onTouched)
epicfail22
#63717507Saturday, March 03, 2012 12:00 AM GMT

You also missed an 'end'. x=7 function onTouched(hit) wait(.1) if x>0 then script.Parent.Door.Transparency = 1 script.Parent.Door.CanCollide = false x=x+1 else if x<0 then script.Parent.Door.Transparency = 0 script.Parent.Door.CanCollide = true end end script.Parent.Touched:connect(onTouched)
KnightmareXD
#63717554Saturday, March 03, 2012 12:01 AM GMT

Is this in a model? If so, it won't work. x=7 script.Parent.Touched:connect(function() if x ​> 0 then script.Parent.Door.Transparency = 1 script.Parent.Door.CanCollide = false x = x + 1 elseif x < 0 then script.Parent.Door.Transparency = 0 script.Parent.Door.CanCollide = true end end) † KMXD †
KnightmareXD
#63717594Saturday, March 03, 2012 12:02 AM GMT

@Epic Your's would require another end. † KMXD †
edgecutter
#63718984Saturday, March 03, 2012 12:25 AM GMT

Wait what? 'x=x+1'? That makes no sense at all!? Or am I understanding the concept of scripting wrong? Because I'm using basic algebra knowledge that tells me 'that ain't making sense'. <_<
KnightmareXD
#63720233Saturday, March 03, 2012 12:47 AM GMT

It means that x will equal itself plus one. You simply can't do "x + 1". † KMXD †
Bannana97
#63720343Saturday, March 03, 2012 12:48 AM GMT

x+1... The script'll say "Okay, so you just added one to x... but I am not seeing this used anywhere." You need to set x to that x+1.
epicfail22
#63720529Saturday, March 03, 2012 12:52 AM GMT

Well said.

    of     1