I am looking for a script that checks is Value A has gone up one and then gives the player a Playerpoint. Here is an example of the script.
local PointsService = Game:GetService("PointsService") local pointsToAward = PointsService:GetAwardablePoints() if ( pointsToAward > 0) then level.Value = level.Value + 1 pcall(function() PointsService:AwardPoints(p.userId,1) end
Yeah, I'm a basic scripter but I just need someone to put that all together.
Thanks!
In a LocalScript put:
local player = game.Players.LocalPlayer local PointsService = Game:GetService("PointsService") local pointsToAward = PointsService:GetAwardablePoints() player.leaderstats.level.Changed:connect(function(v) -- Checks if the value is changed if pointsToAward > 0 then PointsService:AwardPoints(player.userId,1) end end)