this is the script
script.Parent.Touched:Connect(function(hit)
local Player = game.Players:GetPlayerFromCharacter(hit.parent)
if Player:WaitForChild("leaderstats"):WaitForChild("Potatoes").Value == 6 then
local Player = game.Players.GetPlayerFromCharacter(hit.Parent)
Player.leaderstats.Cash.Value = Player.leaderstats.Cash.Value + 10
end
end)
i don't get any errors but somethings not right because the cash value isn't going up

1 comment
didn't work