nemari0
|
  |
| Joined: 20 Jun 2012 |
| Total Posts: 15 |
|
|
| 03 Sep 2017 02:24 PM |
I been working on this script that when you kill a player you gain money for it, but the problem is I want it to give me a certain amount of money (in this case 50) but instead it starts to duplicate the amount of money (when I kill some body give me 0, after that give me 50 and then 15####0####0####5####eres the script: local function playerentered(plr) local stat = Instance.new("IntValue") stat.Name = "leaderstats" local cash = Instance.new("IntValue") cash.Name = "brawl points" cash.Value = 0 cash.Parent = stat stat.Parent = plr plr.Changed:connect (function(property) if (property == "Character") then plr.CharacterAdded:connect(function(character) character:WaitForChild("Humanoid").Died:connect(function() local tag = character.Humanoid:FindFirstChild("creator") if tag~= nil then if tag.Value~= nil then if not plr.name == tag.name then cash.Value = cash.Value + 50 print(cash.Value) end end end) I'll be glad if you help me with this issue :) |
|
|
| Report Abuse |
|
nemari0
|
  |
| Joined: 20 Jun 2012 |
| Total Posts: 15 |
|
|
| 03 Sep 2017 02:25 PM |
Opps wrong forum XDDDDDDDD
|
|
|
| Report Abuse |
|