The Goal
I need to give the people who survived in a minigame points
How do I do this? Like this?
for _,v in next,alivePlayers do local leaderstats = v:FindFirstChild("leaderstats") local score = leaderstats:FindFirstChild("Points") score.Value = +15 end
Tell me if this is right or wrong. Thanks for your service!
Head of The AWESOME Gamers Group
PickUpTheBeat1
You have it right, but the part where you add points is wrong. To do any form of mathematical formula, you first need to specify what you are adding on to. So:
score.Value = score.Value + 15
Also, I would recommend making a variable that specifies how much, simply for effeciency.
local PointsToAdd = 15