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

How can make a point store system that gives points when killing a player?

Asked by 3 years ago

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.

0
Hope I have answers my 5 pm Roblox28721 10 — 3y
0
u'll have answer rn Xyternal 247 — 3y

1 answer

Log in to vote
0
Answered by
Xyternal 247 Moderation Voter
3 years ago
Edited 3 years ago

So to achieve what you want, all you have to do is the following script. The code is self explanatory

function yourfunction(player) -- Get the Player

    local z = player.leaderstats.points.Value --Get the points value
    print(z) -- print it

end -- end the function
Ad

Answer this question