I made a last standing script and when there is only one person they will get a reward.
This script looks like this:
if #plrs == 1 then Status.Value = "And "..plrs[1].Name.." Has Dominated!" plrs[1].leaderstats.Coins.Value = plrs[1].leaderstats.Coins.Value + reward plrs[1].leaderstats.EXP.Value = plrs[1].leaderstats.EXP.Value + exp_reward wait(2) break
(exp_reward = 100 and reward = 50)
It all works but instead of giving me the amount I set reward and exp_reward it give me a way larger number which is so random I don't even know the amount it gave me due to me already having money on my leaderstats and not being able to count well.
If you could tell me why instead of giving the player 50 Coins and 100 Exp it gives them way more I would be grateful.

2 comments
Did you do local exp_reward = 100 local reward = 50? Because I don't see it in the script. Also, where did the "break" come from? That function can only be used in a loop
The break is there to stop the script as it is a sword fighting game and I need the script to loop picking a map and starting the timer. The coins are only at the part in the script where it picks a winner to give them their reward. And at the top of the script local exp_reward = 100 and local reward = 50