Help me in roblox studio

guys, how to make stay during the day forever at roblox studio? I shared the game with a friend of mine, but now it’s changing between day and night
pls help me :frowning:

there is no script in my game and dont have plugin

image
image

2 Likes

I am not sure why your game is changing between day and night. Try creating a Script under ServerScriptService. You can name this Script however you want. Type the following code inside of the Script:

local Lighting = game:GetService("Lighting")

Lighting:GetPropertyChangedSignal("ClockTime"):Connect(function()
        
    Lighting:SetMinutesAfterMidnight(720)
        
end)

This Script will trigger whenever the Lighting ClockTime is changed and will change it back to exactly 12:00 PM (midday). I hope that this helps!

2 Likes

he said his friend did something to the game

If something is happening to your day/night cycle ( which on default it stays on midday ) then it’d done by a script so if you look up script in the explorer but if you can’t find any scripts then I suggest copying your map and etc and pasting it into a new map without your friend.

I’m not sure what’s happening, your friend must of messed something up, it’s always day by default. What preset experience are you on? Baseplate or something else?

no my friend didn’t do anything, i put him in the game and the time started counting by itself

1 Like

he didn’t do anything wrong, I took him off the map and time stopped, but when he comes back time starts counting

it just means that they’re probably a hidden script or something thats there. also the day/night cycle won’t run in studio, only in test mode or in roblox player.