function onTouch(part)
game.Lighting.Ambient=Color3.new(255/255, 0/255, 0/255)
wait(5)
game.Lighting.Ambient=Color3.new(127.5/255, 127.5/255, 127.5/255)
end
script.Parent.Touched:connect(onTouch)
That's the code
function onTouch(part)
game.Lighting.Ambient=Color3.new(255/255, 0/255, 0/255)
wait(5)
game.Lighting.Ambient=Color3.new(127.5/255, 127.5/255, 127.5/255)
end
script.Parent.Touched:connect(onTouch)
That's the code
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
why tf isn't it posting the whole code
use :Connect() :connect() is depricatedis this a serverscript or localscript?
serverscript, tysm