I need it to only run the points command if the player is in the group on a min of rank 3!
------------------
GroupIdenabled = true
--------------
GroupId == 6064323
min = 3
max = 10
then
game.Players.PlayerAdded:connect(function(p)
local stats = Instance.new("IntValue", p)
stats.Name = "leaderstats"
local money = Instance.new("IntValue", stats)
money.Name = "Points"
money.Value = 0
while true do
wait(5)
money.Value = money.Value + 1
end
end)
end)

5 comments
@youtubemasterWOW There is an error in the least end) on line 25 there is a red line and it says expected somthing please help.
I've edited it. Now try and see if it'll work.
Hey man it works thxs!
Np.
Ideally, you don't need a coroutine in this instance, as the code is very little. This code will still function properly without a coroutine.