Hi,
Here is my script, I wrote it from memory, and then checked it with some previous ones I have made. The only issue I can think of is that I'm trying to turn the canCollide of a Union off.
back=game.Workspace.backdoor1 script.Parent.ClickDetector.MouseClick:connect(function(clicked) function onClicked() back.CanCollide=false back.Transparency=.6 end end) script.Parent.ClickDetector.MouseClick:connect(onClicked)
Thanks!
This script won't work most likely because a function is inside of an anonymous function, with a connection line (for the regular function) outside of the anonymous function. :l
It's either one or the other:
Regular Function
back=game.Workspace.backdoor1 function onClicked() -- "onClicked" is the name of this function back.CanCollide=false back.Transparency=.6 end script.Parent.ClickDetector.MouseClick:connect(onClicked)
Anonymous Function
"Anonymous," because no name is assigned to the function
back=game.Workspace.backdoor1 script.Parent.ClickDetector.MouseClick:connect(function () -- Where's the name? back.CanCollide=false back.Transparency=.6 end)
To learn more about functions, visit here.