|
| 09 Jun 2014 05:35 PM |
I'm trying to make a PP script that checks if a Player has at least 100 coins, and if they do, they get 1 pp, and they lose those 100 points.
game.Players.PlayerAdded:connect(function(player) local pointsToAward = PointsService:GetAwardablePoints() if (pointsToAward > 0 and xx.IntValue.Value > 99) then -- xx is where ever the intvalue is being stored, havent chosen yet. pcall(function() PointsService:AwardPoints(player.userId,1) xx.IntValue.Value = xx.Int.Value.Value - 100 end) end end) |
|
|
| Report Abuse |
|
| |
| |
| |