Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Double XP Time...?

Asked by 9 years ago

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

Log in to vote
0
Answered by
TofuBytes 500 Moderation Voter
9 years ago

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.

Ad

Answer this question