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)
COMMUNITY QUESTION
What is wrong with this?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

6 comments
If you can, please format this using the code block option; it's very difficult to read since it's multiple lines and indentations.
It's in a localscript, right?
yea its in localscript but also im a noob at scripting, what is a "code block option"?
Highlight all of your code and then click on the Lua button near your question.
k here https://scriptinghelpers.org/questions/23084/what-is-wrong-with-this
You can edit questions. Don't duplicate questions.