local tool = script.Parent game.Players.PlayerAdded:Connect(function(plr) tool.Activated:Connect(function() local leaderstats = plr:WaitForChild("leaderstats") local cash = leaderstats:WaitForChild("Cash") cash.Value = cash.Value + 10 end) end)
I've been working on this for hours, please help me.
local Tool,Players,player=script.Parent,game:GetService"Players",nil Tool.Equipped:Connect(function() player=Players:GetPlayerFromCharacter(Tool.Parent) end) Tool.Activated:Connect(function() player.leaderstats.Cash.Value+=10 end)