whenever it buys it takes the money for like 3 seconds and the money comes back and the tool is still in my inventory ://
local price = script.Parent.Parent.Price local tools = game.ReplicatedStorage:WaitForChild("Library") local tool = script.Parent.Parent.ItemName local player = script.Parent.Parent.Parent.Parent.Parent.Parent
script.Parent.MouseButton1Click:connect(function() if player.leaderstats:FindFirstChild("Cash").Value >= price.Value then player.leaderstats:FindFirstChild("Cash").Value = player.leaderstats:FindFirstChild("Cash").Value - price.Value game.ReplicatedStorage.ShopBuy:FireServer(tool.Value) end end)

2 comments
Fix your grammar lol... Idiot.
rude