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

What is wrong with my command?

Asked by
IcyEvil 260 Moderation Voter
10 years ago
if msg:lower():sub(1,7) == "unspire " then
local plrz = GetPlr(plr, msg:lower():sub(8))
for i, v in pairs(plrz) do
coroutine.resume(coroutine.create(function() -- Line 1040
if v and v.Character and v.Character:findFirstChild("Torso") then
for z, cl in pairs(v.Character.Torso:children()) do if cl:IsA("Fire") then cl:Destroy() end end
for z, cl in pairs(v.Character.Torso:children()) do if cl:IsA("Sparkles") then cl:Destroy() end end
end
end
end))
end
end
end

it keeps saying ')' expected (to close '(' at line 1040) near 'end'

How do I fix this??

2 answers

Log in to vote
0
Answered by 10 years ago

Here, I think I fixed it;

if msg:lower():sub(1,7) == "unspire " then
local plrz = GetPlr(plr, msg:lower():sub(8))
for i, v in pairs(plrz) do
coroutine.resume(coroutine.create(function()
if v and v.Character and v.Character:findFirstChild("Torso") then
for z, cl in pairs(v.Character.Torso:children()) do if cl:IsA("Fire") then cl:Destroy() end end
for z, cl in pairs(v.Character.Torso:children()) do if cl:IsA("Sparkles") then cl:Destroy() end end
end
end)) --Were supposed to be here for the coroutine
end
end
--You added two extra ends :P

Hope this helped!

Ad
Log in to vote
-1
Answered by 10 years ago

Get rid of the two "))"'s at line 10.

0
That didn't help It still says ')' expected (to close '(' at line 1040) near 'end' IcyEvil 260 — 10y
0
Then just get rid of one RolandStudio 115 — 10y

Answer this question