Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Double XP Time...?

Okay, so...i'm trying to do double XP for like an hour and i don't really get how it could be put together? Anyone know?

I already know how to do the double xp part but not making it only for an hour.

1 answer

Here's how you can make it go for an hour inside of the server and then it shuts off. To calculate time, I use the a NumberValue inside of ServerStorage, so I can adjust it without going through my script and no one can exploit the value. The value should be "60" for an hour.

local Time = game.ServerStorage.Time.Value

--Your code here
wait(Time * 60) --Multiply the time by 60 which is equivalent minutes
end

It's best to update the server with the Double XP update. Then, remove it and re-update it after an hour.

This discussion is preserved as it was. New answers, comments, and votes are closed.