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)

6 comments

0

If you can, please format this using the code block option; it's very difficult to read since it's multiple lines and indentations.

0

It's in a localscript, right?

0

yea its in localscript but also im a noob at scripting, what is a "code block option"?

0

Highlight all of your code and then click on the Lua button near your question.

0

You can edit questions. Don't duplicate questions.