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

0

what do you mean,when an admin enter the game,they will recive their money or they will earn difrent money when work?

0

they will spawn in and earn, for example: 30 points per 10 minutes

0
0

this literally doesnt answer my question at all

0

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