Advertisement
Guest User

Player Point Giver (ROBLOX ONLY)

a guest
Aug 1st, 2016
9,465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. Hey Guys connorc5 Here Again We Have A New Script Again And This Is The player point giver script Hope You enjoy
  2. --------------------------------------------------------------------------------------------------------------------------------------
  3.  
  4. Version = "V0.1.00"
  5.  
  6. --Settings--
  7. script_on = true --If true then script is working/if false then script doesn't work
  8. Wait_Time_Until_1_Point = 0.1 --Set Number for wait time until 1 point awarded
  9. Minimum = 999999999 --How many points to award
  10. --Auto_Update was deleted due to a mess up in settings
  11.  
  12. if script_on == false then script.Disabled = true
  13. end
  14.  
  15. --Awarding--
  16. PointsService = game:GetService("PointsService")--declare service
  17. game.Players.PlayerAdded:connect(function(p)
  18. while true do
  19. if script_on == true then
  20. print("1 Player Point Per Minute Script Version " ..Version.. " Started!")
  21. wait(Wait_Time_Until_1_Point)--settings option
  22. local pointsToAward = PointsService:GetAwardablePoints()
  23. if ( pointsToAward >= Minimum and script_on == true) then --if points to award is more or equal to minimum then continue
  24. pcall(function() --to protect awarding from danger
  25. PointsService:AwardPoints(p.userId,Minimum)--Player Points awarding Minimum
  26. end)
  27. end
  28. end
  29. end
  30. end)
  31.  
  32. --Functions after awarding (F9 in game)--
  33. PointsService.PointsAwarded:connect(function(userId, pointsAwarded, userBalanceInGame, userTotalBalance)
  34. print("UserId " ..userId.. " has earned " .. userBalanceInGame .. " points total from this game and earned " .. pointsAwarded .." points right now, their total balance is " .. userTotalBalance.. ".")
  35. end)
  36.  
  37. --[[
  38. You Can Copy Or Republish I Dont Really Care
  39. --]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement