Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I award Player Points to a specific player?

Asked by
Relatch 550 Moderation Voter
10 years ago

So, I have this gui and it shows that they got their first kill. Now, when it shows the gui, I want to award them 5 Player Points. I have no idea how to do that.

I use this to find the player.

local plr = game.Player.LocalPlayer

So, I think i'm supposed to use AwardPoints() or something to "plr". Help?

1
You use the PointsService. http://wiki.roblox.com/index.php?title=API:Class/PointsService   http://wiki.roblox.com/index.php?title=Points_tutorial Tkdriverx 514 — 10y
0
This doesn't teach me how to do code it. I know how player points work, and on the AwardPoints link I don't understand how it finds the player who got 1 kill. Relatch 550 — 10y
0
game:GetService("PointsService"):AwardPoints(plr.userId, 5) Merely 2122 — 10y

Answer this question