so basically im trying to make it so when you buy this certain thing it lowers the value of "trees" and give the player their certain thing but it works and all but when it gives the player their thing in their inventory is just dissappears see the value being subtracted and the cloning and the destroying of the axe all works but the item is not existent ive tried moving "wta" the item to workspace to replicated storage to server storage and nothing
local BuyButton = script.Parent
local plr = game.Players.LocalPlayer
local axefolder = plr:WaitForChild("leaderstats")
local trees = axefolder.Trees
local axe = plr.Backpack.Axe
local plrh = plr.Character
local wta = workspace.Axes["White Trail Axe"]
BuyButton.MouseButton1Down:Connect(function()
if trees.Value >= 10 then
trees.Value = trees.Value - 10
axe:Destroy()
local wtahClone = wta:Clone()
wtahClone.Parent = plr.Backpack
else
print("man you broke as hell")
end
end)
