Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I implement my previously created points system into a shop GUI?

Asked by
Cactj -2
8 years ago

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.

0
click on the lua block picture and paste your code there it looks much cleaner shabbs15 67 — 8y

Answer this question