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?
service:AwardPoints(player.userId, 500)