Here is the script
game.Workspace.Light.SpotLight.Color3.new(255, 0, 0)
Yes it runs it. Here is the full script. I only need help with this bit tho.
Code = "412"
button = script.Parent.Parent.Enter
function Enter()
if (script.Parent.Text == Code) then
print("Accepted")
script.Parent.Text = "Lockdown Actived!"
script.Parent.Parent.Sound2:play()
wait(0.5)
script.Parent.Text = "Have a nice day"
game.Workspace.LockdownWarning:Play()
wait(19)
game.Workspace.LockdownMusic:Play()
game.Workspace.Light.SpotLight.Color3.new(255, 0, 0)
return end
script.Parent.TextColor3 = Color3.new(1,0,0)
wait(0.1)
script.Parent.TextColor3 = Color3.new(1,1,1)
wait(0.1)
script.Parent.TextColor3 = Color3.new(1,0,0)
wait(0.1)
script.Parent.TextColor3 = Color3.new(1,1,1)
wait(0.1)
script.Parent.TextColor3 = Color3.new(1,0,0)
wait(0.1)
script.Parent.TextColor3 = Color3.new(1,1,1)
wait(0.1)
script.Parent.Text = "Acces Denied"
script.Parent.Parent.Sound3:play()
wait(0.1)
script.Parent.Parent.Sound3:play()
script.Parent.TextColor3 = Color3.new(1,0,0)
wait(0.5)
script.Parent.TextColor3 = Color3.new(1,1,1)
script.Parent.Text = ""
print("Denied")
end
button.MouseButton1Click:connect(Enter)

2 comments
that still won't work...
@creeperhunter76, I tried and it works, can you explain why it didn't work?