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