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.
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)