I have tried something the internet said that the tool should be cloned to the starterPack but it still doesnt work and now i have no clue what i shall do did i miss something
local price = 3 -- The price of your item.
local price2 = 2
local price3 = 1
local db = true
script.Parent.ClickDetector.MouseClick:connect(function(player)
if player.leaderstats.Wood.Value >= price
and player.leaderstats.Sticks.Value >= price2
and player.leaderstats.String.Value >= price3 then
player.leaderstats.Wood.Value = player.leaderstats.Wood.Value - price
player.leaderstats.Sticks.Value = player.leaderstats.Sticks.Value - price2
player.leaderstats.String.Value = player.leaderstats.String.Value - price3
db = false
script.Parent.BrickColor = BrickColor.new("Bright red")
game.ReplicatedStorage.WoodPickaxe:Clone().Parent = player.StarterPack
wait(0.5)
script.Parent.BrickColor = BrickColor.new("Bright green")
db = true
end

7 comments
Where should i put that in
A server script. You will need to have a reference to the player object and make sure the character is not nil too
so i just need to put that you have in serverscript service with a script?
Yes
so it says player is an unknown global
I updated my answer
thanks a lot for trying but it didnt help i thought you should do something in the shop script