the output: 11:52:59.449 - Workspace.Script:4: function arguments expected near 'end' scriot:
game.Players.PlayerAdded:Connect(function(player) if not player:IsInGroupID(666) then player:kick end) end
game.Players.PlayerAdded:Connect(function(player) if not player:IsInGroupID(666) then player:Kick("Text") end end)
Try this..
your "end)" should be after the "end" because you have to close the if statement first AND THEN close the function with a "end)" also hit that accept button if this helped you!