So what I'm trying to do is make the pink bridge change some properties when the button (with clickdetector obviously) is clicked. However, for some reason it does not work. Strange, my scripts are pretty much like that all the time and they always work without question. Anyway.
function Click() game.Workspace.HPinkBridge.CanCollide = false wait(0.1) game.Workspace.HPinkBridge.Transparency = 0.6 end script.Parent.ClickDetector.MouseClick:connect(Click)
There's no reason why it shouldn't work? Any ideas?
This doesn't really matter, but use a Anonymous Function, it'll make your code look prettier.
Re-coded with an anonymous function;
script .Parent.ClickDetector.MouseClick:connect(function() workspace.HPinkBridge.CanCollide=false wait(.1) workspace.HPinkBridge.Transparency=.6 end)
Also, is it a Local or Server Script?
Does it work in-game and not in studio or vise versa?