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
script.Parent.Touched:Connect(function(hit) if hit.Parent.Humanoid then game.Lighting.ClockTime = 0 game.Lighting.OutDoorAmbient = Color3.New(0/255,0/255,0/255) end end)
if it doesn't work try this
script.Parent.Touched:Connect(function(hit) if hit.Parent.Humanoid then game.Lighting.ClockTime = 0 game.Lighting.OutDoorAmbient =Color3.fromRGB(255,255,255) end end)