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

How to give players one point per second?

Asked by 3 years ago

How to give players one (+1) point per second and save how much he have points?

1
Please review our community guidelines: https://scriptinghelpers.org/help/community-guidelines. This is not a request site, and we cannot spoonfeed you. DeceptiveCaster 3761 — 3y

2 answers

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

Use a while true do loop and if you want to save use DataStores

https://developer.roblox.com/en-us/articles/Loops https://developer.roblox.com/en-us/articles/Data-store

Ad
Log in to vote
1
Answered by 3 years ago
local Players,givepoint=game:GetService"Players",function(player)
player.leaderstats.Points.Value+=1
end;while wait(1)do
for _,player in ipairs(Players:GetPlayers())do
pcall(givepoint,player)
end;end;

Answer this question