I tried server and local scripts and It still won't work.
`function onTouch()
game.Lighting.ClockTime = 0 game.Lighting.OutdoorAmbient = Color3.new(0/255,0/255,0/255)
script.Parent.Touched:connect(onTouch) end`
Try this
1 | script.Parent.Touched:Connect( function (hit) |
2 | if hit.Parent.Humanoid then |
3 | game.Lighting.ClockTime = 0 |
4 | game.Lighting.OutDoorAmbient = Color 3. New( 0 / 255 , 0 / 255 , 0 / 255 ) |
5 | end |
6 | end ) |
if it doesn't work try this
1 | script.Parent.Touched:Connect( function (hit) |
2 | if hit.Parent.Humanoid then |
3 | game.Lighting.ClockTime = 0 |
4 | game.Lighting.OutDoorAmbient = Color 3. fromRGB( 255 , 255 , 255 ) |
5 | end |
6 | end ) |