How do I make it so players win a round and they get money put onto there leaderboard?
COMMUNITY QUESTION
How do I make it so that when a player wins a round they get money?
1 answer
--Must have some sort of player variable, not character
--Must have rounds made and variables for them
--Must be in between when the round ends
--Should have a variable saying how much money the get for certain things
Stats = player.leaderboard:FindFirstChild("Money")
Stats.Value = Stats.Value +playerreward
These variables are not what you need, put in the variable of what you have instead of what I have if necessary
Also, make sure there is already leader stats with money in it. You can also double check the name of the IntValue that holds the Stats and change player.leaderboard to that name.
I hope I helped ;)
2 comments
0
so money being the variable then ill change that to credits
0
and then for the player reward does that mean id have to do +playerreward = 25 (random money reward)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Depends on what leaderboard. You would want to track all the player's characters' humanoids to fire the died event if they, well, died. You would then, if the weapons are able to track it, check the humanoid for a "creator" object value and trace the value of that object back to the killer. This is not a request site, please make a attempt at code.