Im just started to get into scripting and i was trying to make a code to mean that after all the lights go by("red,yellow,green,) a wall which are infront of the lights will disappear and will be able to be walk through with having cancollide off,but i wanted the wall the reapear and to change the color of the wall after it reappeared But i dont know how to code it and i was wondering if you guys can tell me how to and what it means.
Here's the script
local redlight = game.workspace.StartLight.RedModel.LightBulb.PointLight
local yellowlight = game.Workspace.StartLight.YellowModel.LightBulb.PointLight
local greenlight = game.Workspace.StartLight.GreenModel.LightBulb.PointLight
local StartWall = game.workspace.StartWall
redlight.Enabled = true
wait(1)
redlight.Enabled = false
wait(1)
yellowlight.Enabled = true
wait(1)
yellowlight.Enabled =false
wait(1)
greenlight.Enabled = true
wait(1)
greenlight.Enabled = false
StartWall.Transparency = 1
StartWall.CanCollide = false
wait ( 2)
StartWall.BrickColor.new"linen")
help |