function onTouch(part)
1 | game.Lighting.Ambient = Color 3. new( 255 / 255 , 0 / 255 , 0 / 255 ) |
2 | wait( 5 ) |
3 | game.Lighting.Ambient = Color 3. new( 127.5 / 255 , 127.5 / 255 , 127.5 / 255 ) |
end
script.Parent.Touched:connect(onTouch)
That's the code