local player = game.Players.LocalPlayer local currency = player:WaitForChild('leaderstats').Points local amount = 5 local tool = game.ServerStorage:WaitForChild('Firebrand') script.Parent.MouseButton1Click:connect(function() if currency.Value >= amount and not player.Backpack:FindFirstChild("Firebrand")or player.Character:FindFirstChild('Firebrand') then -- They Dont Have it local newtool = tool:Clone() newtool.Parent = player.Backpack else script.Parent.Text = 'Purchase Failed' end end)
Marked as Duplicate by BlueTaslem
This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.
Why was this question closed?