Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

What is wrong with my command?

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

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!

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

2 comments

0

That didn't help It still says ')' expected (to close '(' at line 1040) near 'end'

0

Then just get rid of one

This discussion is preserved as it was. New answers, comments, and votes are closed.