Model isn't cloning when it reaches a curtain time

I’m trying to make a model clone when it reaches a curtain time in real life. But for some reason it doesn’t clone right when it reaches the time it’s suppose to clone. Here’s the code I used:

local Obstical = game.ServerStorage.Obstical

local function triggerEvent()

local ObsticalClone = Obstical:Clone()

ObsticalClone.Parent = workspace

end

while wait(1) do

local Date = os.date("!*t")

if Date["year"] == 2020 and Date["month"] == 11 and Date["day"] == 19 and Date["hour"] == 10 and Date["min"] == 41 then

triggerEvent()

end

end

Did you get any errors in output?

There were no errors in the output. And I checked multiple times to see if the time was correct and it was.

add print statements after every line, I know it’s hard work, but trust me it works in the end

So I just found out that the reason that it’s not working is because the game isn’t updating. And everytime I try updating it, Roblox doesn’t allow me to.

so time isn’t running for your game?

idk maybe. And I don’t know what to do. Cause I need to make sure that this works for a live event I’m working on.

This should help

I know how to make a live event, it’s just my issue is that Roblox is refusing to update the game.

Maybe its a studio problem then, or a internet problem

1 Like

Try printing something at the end of the script. If it doesn’t print, then you have an error.