Im trying to create a gui point system that changes the value and text of the gui whenever you kill someone, I want to use these points to buy items in a gui store for in game combat. I've created a TextLabel with the text "Points:" and then another TextLabel with the number of points acquired when killing a player. How can I make this properly? Im a little new to scripting.
So to achieve what you want, all you have to do is the following script. The code is self explanatory
1 | function yourfunction(player) -- Get the Player |
2 |
3 | local z = player.leaderstats.points.Value --Get the points value |
4 | print (z) -- print it |
5 |
6 | end -- end the function |