Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

What is wrong with this? [closed]

Asked by 9 years ago

This question already has an answer here:

What is wrong with this?

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)

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. Legojoker 345 — 9y
0
It's in a localscript, right? User#9949 0 — 9y
0
yea its in localscript but also im a noob at scripting, what is a "code block option"? SpicyLemonXII 0 — 9y
0
Highlight all of your code and then click on the Lua button near your question. User#9949 0 — 9y
View all comments (2 more)
0
You can edit questions. Don't duplicate questions. BlueTaslem 18071 — 9y

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?