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

How to I change the script to 100 pp per kill?

Asked by 7 years ago

PointsService = game:GetService("PointsService") game.Players.PlayerAdded:connect(function(p) while true do wait(60) game:GetService("PointsService"):AwardPoints(p.userId,1) print("Point awarded!") end end)

1 answer

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago
pointsamount = 100 -- set the amount of points to give

PointsService = game:GetService("PointsService") -- grab points service

game.Players.PlayerAdded:connect(function(p)  -- player joined function
while true do -- while true do loop
wait(60) -- wait 1 min
game:GetService("PointsService"):AwardPoints(p.userId, pointsamount)  -- award points
print(pointsamount.." points awarded!")  -- output amount of points awarded
end 
    end)
0
Be sure to let me know if you encounter any problems. StoleYourClothes 105 — 7y
Ad

Answer this question