ok so i was scripting right because i love roblox (friend me: lukester535 well have a gud teim :) ) and i found an error idk whats happening this works:" function Collide() script.Parent.Transparency = 0 end
script.Parent.ClickDetector.MouseClick:connect(Collide)”
but this:
function Collide() if script.Parent.Transparency = 0 end
script.Parent.ClickDetector.MouseClick:connect(Collide)
doesnt i mean obviosly because i didnt finish but its giving me an error at the “=“ and even if i finish it:
function Collide() if script.Parent.Transparency = 0 then script.Parent.Transparency = 1 end end
script.Parent.ClickDetector.MouseClick:connect(Collide)
i still get it

1 comment
and please write it in te blockcode, where it says lua