Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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)

1 comment

0

Be sure to let me know if you encounter any problems.

This discussion is preserved as it was. New answers, comments, and votes are closed.