I’m making a day and night cycle. I added a time multiplier so when the player sleeps, the time goes faster instead of skipping to day.
The ServerScript is inside ServerScriptService.
the script:
local lighting = game:GetService("Lighting")
local multiplier = game:GetService("ReplicatedStorage"):WaitForChild('TimeMultiplier')
while wait() do
lighting.ClockTime += 0.001 * multiplier.Value
end
You are changing that value manually from Server or Client side?
Thats a Server script, reading an Int inside ReplicatedStorage, which is a bridge between Client and Server
The title is not where you should be placing the description. The title should be a basic issue but then you should write the main issue in more details in the body of the post. I recommend checking the #help-and-feedback:scripting-support guidelines on how to write a post.