Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local door = script.Parent.Parent.Core
- function changeCol(col,waitTime)
- for i = 1,9 do
- local light = door:FindFirstChild("Light" ..i)
- light.BrickColor = col
- wait(waitTime or 0)
- end
- end
- function enter()
- -- cframe
- local col = BrickColor.new("Dark green")
- changeCol(col)
- wait(1)
- col = BrickColor.new("Bright red")
- changeCol(col,3)
- wait(1)
- -- velocity
- wait(20)
- col = BrickColor.new("Dark green")
- changeCol(col)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement