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?

4 comments

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.

0

game:GetService("PointsService"):AwardPoints(plr.userId, 5)