Trying to make a border so the other team cannot enter a certain area. I dont want players spawnkilling people from the other team, ending up with complaints through my message inbox.
Basically so heres an example:
Red team has a base which blue team cannot enter. Technically red team has a barrier which cancollide is true for the players on red team, however blue team will get killed by the barrier.
Ive tried Game:Getservice(“team”) = game.workspace.barrier. If player is on Game.Teams.Blue = cancollide = true
But this code didn’t work.
The barrier is a playerkill brick which is only available to kill certain players on a team, but not the team where the team players are allowed to go through the barrier.
Does anyone know how to do this? I dont want dislikes because of spawnkilling.