I've been doing researches on my own, yet the only thing Roblox's shows me is a Player Point Script when you JOIN a game
That's the script I added in my place. (Kill a required amount of players to get PP)
PointsService = game:GetService("PointsService")
Stat = "KOs" --Change to the stats name
Needed = 5 --Change to the amount needed to get the playerpoints.
game.Players.PlayerAdded:connect(function(p)
repeat wait() until p:FindFirstChild("leaderstats") ~= nil
print("Found \"leaderstats\" object!")
repeat wait() until p.leaderstats:findFirstChild(Stat) ~= nil
print("Found "..Stat.." object!")
p.leaderstats[Stat].Changed:connect(function(prop)
print("Value changed!")
if prop >= Needed then
game:GetService("PointsService"):AwardPoints(p.userId,10)
end
end)
end)
(I did added the linked Leaderboard, and a linked sword.)
And also I did installed the script How many PP are available to get.
local service = game:GetService("PointsService")
game.Players.PlayerAdded:connect(function(player)
player:WaitForDataReady()
service:AwardPoints(500, service:GetAwardablePoints())
end)
Yet it's still not working, and I tried to find some help on YouTube and almost everywhere I could look, I still come with nothing.
Does anyone know what I'm doing wrong?

4 comments
+wall142, if I add a different kind of userID code (500) will anyone who completes the objective will get Player Points OR must I write a different code for anyone to get Player Points?
No, 'player.userId' represents the player that joins the server. You have to present what the player is or provide a userId. The parameter or numbers '500' represents the amount you're going to give them.
So 500 is too much for just one objective. And I almost forgot about this, if I want to make a game pass for my game that is suppose to add Player Points for my game, is that what I must do? (Starter Gui, Add ScreenGui, Add TextButton to Screen Gui, Insert a TextLabel with the info and a *LocalScript?) ~~~(The Local Script) ~~~ local productId = 0 -- change to your T-shirt/gamepass ID! [Enter Spa
(Sorry, it cutted) [SCRIPT] local productId = 0 -- change to your T-shirt/gamepass ID! local player = game.Players.LocalPlayer script.Parent.MouseButton1Click:connect(function() --DONT CHANGE THIS Game:GetService("MarketplaceService"):PromptProductPurchase(player, productId) end)