#Changing sky
1 messages · Page 1 of 1 (latest)
it changes for the whole server ?
or only the player ?
in that case just delete the other sky and replace it with a new one, from the server or the client, its up to you
by using remote event
Only players not a whole server
only some of the players not all?
like the time changes or what
local part = script.Parent
local lighting = game:GetService("Lighting")
part.Touched:Connect(function(hit)
local character = hit.Parent
local humanoid = character:FindFirstChild("Humanoid")
if humanoid then
if lighting.ClockTime >= 6 and lighting.ClockTime < 18 then
lighting.ClockTime = 20
else
lighting.ClockTime = 12
end
end
end)
if ur changing the time
this should work