Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Selection = script.Parent.SelectionBox
- local Light = script.Parent.PointLight
- local Gate = game.Workspace.Gate
- local Detector = script.Parent.ClickDetector
- local Audio = script.Parent.Button
- script.Parent.ClickDetector.MouseClick:Connect(function(click)
- --CODE:
- Audio:Play()
- Detector:Destroy()
- Selection.Color3 = Color3.new(255, 255, 0)
- script.Parent.BrickColor = BrickColor.new("Bright yellow")
- Light.Color = Color3.new(255, 255, 0)
- wait(6)
- Audio:Stop()
- Selection.Color3 = Color3.new(255, 0, 0)
- script.Parent.BrickColor = BrickColor.new("Bright red")
- Light.Color = Color3.new(255, 0, 0)
- Gate:Destroy()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement