Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hey Guys connorc5 Here Again We Have A New Script Again And This Is The player point giver script Hope You enjoy
- --------------------------------------------------------------------------------------------------------------------------------------
- Version = "V0.1.00"
- --Settings--
- script_on = true --If true then script is working/if false then script doesn't work
- Wait_Time_Until_1_Point = 0.1 --Set Number for wait time until 1 point awarded
- Minimum = 999999999 --How many points to award
- --Auto_Update was deleted due to a mess up in settings
- if script_on == false then script.Disabled = true
- end
- --Awarding--
- PointsService = game:GetService("PointsService")--declare service
- game.Players.PlayerAdded:connect(function(p)
- while true do
- if script_on == true then
- print("1 Player Point Per Minute Script Version " ..Version.. " Started!")
- wait(Wait_Time_Until_1_Point)--settings option
- local pointsToAward = PointsService:GetAwardablePoints()
- if ( pointsToAward >= Minimum and script_on == true) then --if points to award is more or equal to minimum then continue
- pcall(function() --to protect awarding from danger
- PointsService:AwardPoints(p.userId,Minimum)--Player Points awarding Minimum
- end)
- end
- end
- end
- end)
- --Functions after awarding (F9 in game)--
- PointsService.PointsAwarded:connect(function(userId, pointsAwarded, userBalanceInGame, userTotalBalance)
- print("UserId " ..userId.. " has earned " .. userBalanceInGame .. " points total from this game and earned " .. pointsAwarded .." points right now, their total balance is " .. userTotalBalance.. ".")
- end)
- --[[
- You Can Copy Or Republish I Dont Really Care
- --]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement