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

3 comments

0

why tf isn't it posting the whole code

0

use :Connect() :connect() is depricatedis this a serverscript or localscript?

0

serverscript, tysm