I have a local script in my part thats called sellpart. heres the script
script.Parent.Touched:Connect(function(hit)
local player = game.Players:FindFirstChild(hit.Parent.Name)
if player then
local sell = player.leaderstats.Trash
local cash = player.leaderstats.Cash
if sell.Value > 0 then
cash.Value = cash.Value +sell.Value
sell.Value = 0
end
end
end)
