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

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

Asked by 6 years ago

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

Log in to vote
0
Answered by
GingeyLol 338 Moderation Voter
6 years ago
Edited 6 years ago
local player = game.Players.LocalPlayer
CurrencyObjectName = "Currency"
while wait(1) do
player.leaderstats[CurrencyObjectName].Value = player.leaderstats[CurrencyObjectName].Value + 10
end
Ad

Answer this question