Skip to main content
New Participant
October 15, 2025
Solved

How to make a collider for specific players.

We are making a team based game, Your team cannot go to other team's area. So i wanted a collider which gets enabled locally depending your team name. But if i enable a collider locally, all players in the worlds can collide with it.

gausroth
gausrothAnswer
Honored Contributor
October 15, 2025

Setting an entities collision to true will set it for everyone. However, you could use a trigger and on player enter trigger check which team they are on, and you can apply a force to the player to push them back if they are on the wrong team. Or you could toggle collision on an invisible object, but this could cause issues if another player on the right team enters at the same time.

GitHub: https://github.com/Gausroth/HorizonWorldsTutorials.git Discord: https://discord.gg/hNyDQwdw4N YouTube: https://www.youtube.com/@GausRothTutorials

2 replies

New Participant
October 15, 2025

Hi, 
Wondering if anyone else might be developing a multi team game and facing similar challenges? We are struggling to find ways to apply rules specific to pre-selected teams and not across the world. We'd appreciate any advice to resolve this issue.

gausroth
gausrothAnswer
Honored Contributor
October 15, 2025

Setting an entities collision to true will set it for everyone. However, you could use a trigger and on player enter trigger check which team they are on, and you can apply a force to the player to push them back if they are on the wrong team. Or you could toggle collision on an invisible object, but this could cause issues if another player on the right team enters at the same time.

GitHub: https://github.com/Gausroth/HorizonWorldsTutorials.git Discord: https://discord.gg/hNyDQwdw4N YouTube: https://www.youtube.com/@GausRothTutorials