So I am trying to make a sell area but I made a SellBonus value so if you put it at 2 you should get 2x money but it is not working. But when I try to sell the stuff it does not give me anything...
script.Parent.Touched:connect(function(Hit)
local Player = game.Players:FindFirstChild(Hit.Parent.Name)
if Player then
local leaderstats = Player:FindFirstChild("leaderstats")
if leaderstats then
local Cash = leaderstats:FindFirstChild("Cash")
local Backpack = leaderstats:FindFirstChild("Bag")
local multi = leaderstats.Parent:FindFirstChild("PlayerStats").SellBonus
if Backpack.Value <= 0 then
else
if Backpack.Value > 25 then
Backpack.Value = 25
else
end
Cash.Value = Cash.Value + multi * Backpack.Value
Backpack.Value = 0
script.Disabled = true
wait(0.1)
script.Disabled = false
end
end
end
end)
