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

Expected identifier, got ')'?

Asked by 6 years ago
d.ChildRemoved:connect(function()
if #d:GetChildren() + 5 < script.PlayersNum.Value then
    fill()
else
    spaaawn()
end)

Why does it highlight the ending parenthesis in this code? i've tried replacing literally everything to no avail.

1
you forgot a end for the if statment User#23365 30 — 6y
0
i'm a big big dummy 0x5FE6EB50C7B537A9 0 — 6y

1 answer

Log in to vote
1
Answered by
gullet 471 Moderation Voter
6 years ago

You're missing an end to your if statement

d.ChildRemoved:connect(function()
    if #d:GetChildren() + 5 < script.PlayersNum.Value then
        fill()
    else
        spaaawn()
    end
end)
Ad

Answer this question