local ToolLocation = game.Workspace.StickStorage.BasicStick --Location of the tool
local Cost = (0) -- Replace 0 with the cost of the item
script.Parent.MouseClick:Connect(function() -- left mouse button down then
if game.Players.LocalPlayer.leaderstats.Money > (Cost -1) then -- if player has enough money
ToolLocation:Clone(game.Players.LocalPlayer.Character) -- Clone the tool and but it into the players inventory
game.Players.LocalPlayer.leaderstats.Money = game.Players.LocalPlayer.leaderstats.Money (-Cost)-- Remove moeny
end
end)
I am using a local script if that helps anything

2 comments
The problem is that its a server broadcast so it would work for everyone...
it wouldnt if its done trough remote events it would only trigger for the player who triggerd it