script.Parent.ClickDetector.MouseClick:connect(function(player)
	local price = 9 -- The price of your item.
local db = true
 

    if player.leaderstats.Cash.Value >= price then
        player.leaderstats.Cash.Value = player.leaderstats.Cash.Value - price
        db = false
			local WhatToClone = game:GetService('ServerStorage'):FindFirstChild('WoodPickaxe')
			local Clone1 = WhatToClone:Clone()
			local Clone2 = WhatToClone:Clone()
			Clone1.Parent = Player.Backpack
			Clone2.Parent = Player.StarterGear
        db = true
    end
end)

well if i take the price out it gives me the item and saves the tool on death because it cloned it into startergear

2 comments

1

make sure that the Player is lower case

0

yeah did that byt still doesnt work i figured ouut how to do it with startergear meaning you will get it when you die