local player = game.Players.LocalPlayer
local Cash = player:WaitForChild("leaderstats"):WaitForChild("Tokens")
local price = 0
local weapon = game:GetService("ReplicatedStorage").Fists
local info = script.Parent:WaitForChild("Info")
local bought = false
local equipped = false
script.Parent.MouseButton1Click:connect(function()
if bought == true then
if equipped == true then --uniquiping
info.Text = "OWNED"
equipped = false
else
info.Text = "EQUIPPED" -- Equiping
equipped = true
local clone = weapon:Clone()
clone.Parent = player.Backpack
end
else
Cash.Value = Cash.Value - price --buying
info.Text = "OWNED"
bought = true
end
end)
how do i delete the tool i just gave when you uniquip it

1 comment
OK