I ask this so people can use their earned points in my game so they can use the points for new knives and guns.
Here is the code for the awardpoints function along with the GUI function that displays a number of points.
awardpoints function: function awardpoints(player, points) if player and points then local mydata = playerdata[player.userId] if mydata then mydata.points = mydata.points + points local pointsvalue = player:FindFirstChild("Points") if pointsvalue then pointsvalue.Value = mydata.points end end end end
Thanks.