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`
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)
ServerScript or Local?
serverscript
tysm it worked
This discussion is preserved as it was. New answers, comments, and votes are closed.
5 comments
use Color3.fromRGB(255,255,255) instead, and (im not sure if this is the problem) end the function before the touched event.
try this bro.
function ontouch()
It's ok, I got the answer I looked for.
function ontouch() game.Lighting.ClockTime = 0 game.Lighting.OutdoorAmbient = Color3.fromRGB(255.255.255) end script.Parent.Touched:Connect(ontouch) end