Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How to make the script all of the same name of the parts can follow this staps?

Asked by 9 years ago
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)

1 answer

Log in to vote
0
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
9 years ago

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).

Ad

Answer this question