So i need to make it so that a different role, example: admin, earns a different amount of points in my game. Here is the script I am using,
local amount = 10
local giveTime = 300
while true do
wait(giveTime)
for _, plr in pairs(game.Players:GetChildren()) do
local stats = plr:FindFirstChild('leaderstats')
if stats then
stats.Points.Value = stats.Points.Value + amount
end
end
end
If anyone can help that would be great!

5 comments
what do you mean,when an admin enter the game,they will recive their money or they will earn difrent money when work?
they will spawn in and earn, for example: 30 points per 10 minutes
You can check this video: https://www.youtube.com/watch?v=deK5Jf1eBq0
this literally doesnt answer my question at all
i asked specifically about other roles earning different amount of points in a certain amount of minutes, this just tells me how to put a leaderboard that gives you points