Ive gotten that Down How would I make it so that with another tap on the compass the player is revealed
$v = false Public function PlayerInteractEvent(PlayerInteractEvent $event){ $player = $event-getPlayer(); If($event->getPlayer()-getItemInHand() = "x"){if($v=false) {$player->hidePlayer(true)} Elseif($v=true){$player-hidePlayer(false)} } Sorry typed this up on phone
Indent your code. Read the docs or the source. It requires a player parameter, and it is about despawning another player from $player.