COLLECTIVE ADMIN REPORT

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AfkKicker : MonoBehaviour {

public float serverLimit;
public float currentPlayers;
public GameObject player;
public GameObject server;
public GameObject afkPlayer

void Start()
{
serverLimit = 64;
currentPlayers = 0;​
{

void Update()
{
foreach player
{
currentPlayers++;​
}

if (currentPlayers = serverLimit)
{
Destroy(afkPlayer);​
}
else return;
}
}
 
i got an alert for that intersthing i guees u cant just tell me by yourself nice post btw :)
 
Hey if it's not broken dont fix it.
I haven't learned how to orphan a child and not kill the parent yet.