if PlayerWhoAssited ~= nil and PlayerWhoAssited ~= '' and PlayerWhoAssited ~= PlayerWhoScored then
if game.Players:FindFirstChild(PlayerWhoAssited) ~= nil and tonumber(game.Players:FindFirstChild(PlayerWhoAssited):GetAttribute("Coins")) ~= nil then -- Line 630
game.Players:FindFirstChild(PlayerWhoAssited):SetAttribute('Coins', game.Players:FindFirstChild(PlayerWhoAssited):GetAttribute('Coins') + money)
end
end
BTW, this is line 630 (where it errors):
if game.Players:FindFirstChild(PlayerWhoAssited) ~= nil and tonumber(game.Players:FindFirstChild(PlayerWhoAssited):GetAttribute("Coins")) ~= nil then
Why does it error? What am I missing? Will it check for the second value even if the first value is already found the be not true?
Because I know that sometimes their will not be an assisting player, so it will be game.PlayersFindFirstChild(PlayerWhoAssited) which is probably the missing argument???