Hello, developers
I am making a point system for my group game, but I can’t figure out how to make only the people in my group that are rank+ able to get the points. I am bad at coding
amount = 1
timedelay = 60
currencyname = "Points"
while true do
wait(timedelay)
for i,v in pairs(game.Players:GetPlayers()) do
if v:FindFirstChild("leaderstats") and v then
v.leaderstats[currencyname].Value = v.leaderstats[currencyname].Value + amount
end
end
end