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

How do I make it so that when a player wins a round they get money? [closed]

Asked by 8 years ago

How do I make it so players win a round and they get money put onto there leaderboard?

0
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. M39a9am3R 3210 — 8y

Closed as Not Constructive by M39a9am3R, LegitimatlyMe, and XToonLinkX123

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 8 years ago
--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 ;)

0
so money being the variable then ill change that to credits supamaster888 28 — 8y
0
and then for the player reward does that mean id have to do +playerreward = 25 (random money reward) supamaster888 28 — 8y
Ad