function onClicked()
script.Parent.Parent.B3.Transparency = 1
script.Parent.Parent.B3.CanCollide = false
script.Parent.Parent.B4.Transparency = 1
script.Parent.Parent.B4.CanCollide = false
script.Parent.Parent.L.Transparency = 0
wait(60)
script.Parent.Parent.B3.Transparency = 0
script.Parent.Parent.B3.CanCollide = Ture
script.Parent.Parent.B4.Transparency = 0.7
script.Parent.Parent.B4.CanCollide = Ture
script.Parent.Parent.L.Transparency = 0.9
script.Parent.Parent.L.PointLight.Range = 0
end
script.Parent.ClickDetector.MouseClick:connect (onClicked)
COMMUNITY QUESTION
How to make the script all of the same name of the parts can follow this staps?
1 answer
I may be misunderstanding because the 'Question' seems a bit confusing. You may be thinking of a variable. In that post, it includes global variables which can be accessed from any script as long as you use the _G. tag (Prefix. Whichever you'd like to call it).
This discussion is preserved as it was. New answers, comments, and votes are closed.
