make the team mode cooperative in map settings.
then add a lifecycle device and a relay device. don’t change the lifecycle settings, but make the relay send its message to “random player.”
wire the lifecycle to the relay:
event occurs > trigger relay
now place down a team switcher. set it to switch the player to a specific team, then select team 2.
wire the relay to the team switcher:
relay trigger > switch player to configured team
and you’re done! team 2 will be the robber, and team 1 will be the police. this will make a random player the robber.
if this answers your question, remember to mark this post as a solution!
(ayo guys, where did all the guides about marking solutions go??)