Is there a way to make HUD texts that are visible to spectators but not visible to any players?

Thanks in advance :slight_smile:

I don’t think you can, spectators players aren’t playing but you can try a thing like

rule("testing if player isn't on ground")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Is On Ground(Event Player) == False;
		Hero(Pharah) != Hero Of(Event Player);
	}

	actions
	{
		Set Player Variable(Event Player, B, 1);
	}
}

rule("testing if player is on ground")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Is On Ground(Event Player) == True;
		Hero(Pharah) != Hero Of(Event Player);
	}

	actions
	{
		Set Player Variable(Event Player, B, 0);
		Destroy HUD Text(Player Variable(Event Player, A));
	}
}

rule("if player isn't on ground, then make a chrono")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Player Variable(Event Player, B) >= 1;
		Player Variable(Event Player, B) <= 6;
	}

	actions
	{
		Wait(0.100, Ignore Condition);
		Set Player Variable(Event Player, B, Add(0.100, Player Variable(Event Player, B)));
		Loop If Condition Is True;
	}
}

rule("if chrono is at 6 sec, then make the hud")
{
	event
	{
		Ongoing - Each Player;
		All;
		All;
	}

	conditions
	{
		Player Variable(Event Player, B) >= 5;
	}

	actions
	{
		Create HUD Text(Event Player, Custom String("Your text", Null, Null, Null), Null, Null, Left, 0, White, White, White,
			Visible To and String, Default Visibility);
		Set Player Variable(Event Player, A, Last Text ID);
	}
}

It doesn’t search if the payer is a spectator, but it search if the player isn’t on ground for 5 sec, or if you mean spectator when he died, then you just need to make the event like this and do what you want :

rule("Rule 5")
{
	event
	{
		Player Died;
		All;
		All;
	}
}