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

Expected identifier, got ')'?

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.

2 comments

1

you forgot a end for the if statment

0

i'm a big big dummy

1 answer

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)

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