-- I am trying to make time speed up (adjust the daylight cycle) whenever a player sits on a bench.
local lighting = game:GetService("Lighting")
local sitting = true local standing = false local clock = 7 * 60
local sit = game.Workspace.Bench.Seat
local player = game.Players.LocalPlayer.Name local nameofplayer = game.Workspace:FindFirstChild(player:FindFirstChild("Character").Name)
if (sit.Occupant == nameofplayer.Humanoid) then
while true do lighting:SetMinutesAfterMidnight(clock)-- Fast Time clock = clock + 10 wait(.05) end
else
while true do lighting:SetMinutesAfterMidnight(clock)-- Slow Time clock = clock + .5 wait(.05) end
