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

How would I go about scripting a 10 exp per second?

I wanna make a simple king of the hill game, and I have a brick that I used a touched function and added a debounce every 1 second it activates.

Do I use a script module for a leaderboard or a serverscript and +1 the value everytime?

Please explain! Thanks.

1 answer

local player = game.Players.LocalPlayer
CurrencyObjectName = "Currency"
while wait(1) do
player.leaderstats[CurrencyObjectName].Value = player.leaderstats[CurrencyObjectName].Value + 10
end

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