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