#Changing sky

1 messages · Page 1 of 1 (latest)

sleek shadow
#

Hey can you help with this please, like when clients touch a part sky change, pls help me :(

stuck lynx
#

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

sleek shadow
#

Only players not a whole server

stuck lynx
#

only some of the players not all?

honest yoke
#

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