This is my code
`player = script.Parent.Parent.Parent.Parent.Parent
local tool = game.ServerStorage:FindFirstChild("Rossi Extend") -- Make sure to put the tool in ServerStorage!
Balance = 10 -- Set here how much money you want for this item to cost!
money = player.leaderstats.Cash
-- This script uses TextButton, or ImageButton1 script.Parent.MouseButton1Click:connect(function() if money.Value >= Balance then
local item = tool:Clone() item.Parent = player.Backpack
money.Value = money.Value - Balance -- Remove this line if you want that you don't lose your money when you purchase this item! Otherwise, leave this! end end)`

4 comments
Come back when you write your own code.
wat?
Sigh It's very clear you didn't write this code...
LOL! -27 reputation. Try to learn roblox lua before going for help in forums.