Advertisement
loueque

GateScript

Sep 1st, 2020
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.56 KB | None | 0 0
  1. script.Parent.ClickDetector.MouseClick:Connect(function(click)
  2.     script.Parent.ClickDetector:Destroy()
  3.     script.Parent.Button:Play()
  4.    
  5.     wait(0)
  6.    
  7.     script.Parent.SelectionBox.Color3 = Color3.new(255, 255, 0)
  8.     script.Parent.BrickColor = BrickColor.new("Bright yellow")
  9.     script.Parent.PointLight.Color = Color3.new(255, 255, 0)
  10.    
  11.     wait(2)
  12.    
  13.     script.Parent.SelectionBox.Color3 = Color3.new(255, 0, 0)
  14.     script.Parent.BrickColor = BrickColor.new("Bright red")
  15.     script.Parent.PointLight.Color = Color3.new(255, 0, 0)
  16.    
  17.     game.Workspace.UnlockableGate1:Destroy()
  18. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement