Here is the script YOU Are supposed to get + 50 dollars when you kill someone but that isn't work
HELP me Please
what is wrong with the tag system?
local RODE = game.ReplicatedStorage:FindFirstChild("RewardOnDeath_Event") game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(char) char.Humanoid.Died:Connect(function() if char.Humanoid and char.Humanoid:FindFirstChild("creator") then player:WaitForChild("Dollars").Value = player:WaitForChild("Dollars").Value + 50 print(tostring(char.Humanoid.creator.Value).." Has Killed "..char.Name) end -- end) end) end)
Nothing is working at all.....
LOOK AT VIDEO PROOF:https://gyazo.com/baa4dda0c10755e11581d92f9e24f97d
not an answer just fixing his formatting
local RODE = game.ReplicatedStorage:FindFirstChild("RewardOnDeath_Event") game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(char) char.Humanoid.Died:Connect(function() if char.Humanoid and char.Humanoid:FindFirstChild("creator") then player:WaitForChild("Dollars").Value = player:WaitForChild("Dollars").Value + 50 print(tostring(char.Humanoid.creator.Value).." Has Killed "..char.Name) end end) end) end)
Maybe try adding this to your code:
local tag = character.Humanoid:FindFirstChild("creator") if tag ~= nil then if tag.Value ~= nil then player:WaitForChild("Dollars").Value = player:WaitForChild("Dollars").Value + ? --Whatever you want
The script finds creator and finds the money (int value) and it adds a new value to it.
Not sure if it will work. I am not very good but hope I helped somehow.