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
U should add things like money,give tools trough a server script i cant comment so i say this in a answer.U could do this with remote events
Easy fix.
Your putting the tool in the character. The backpack, or
player.LocalPlayer.Backpack
Is the thing that the player can click on and have it appear. So you would write:
ToolLocation:Clone(game.Players.LocalPlayer.BackPack)
Hope this works!