Please provide explanation with your answers. Simply posting code does not spread knowledge of integral scripting processes which helps people understand the logic and reasoning behind your answer.
player = script.Parent.Parent.Parent.Parent.Parent
money = player.leaderstats.Gold
price = 100
tool = game.Lighting:findFirstChild("Weapon Name Goes here")
local co;
function buy()
if money.Value >= price then
co:Disconnect()
money.Value = money.Value - price
local a = tool:clone()
a.Parent = player.Backpack
local b = tool:clone()
b.Parent = player.StarterGear
end
end
co=script.Parent.MouseButton1Down:connect(buy)