I’m in the proccess of a prison break game, and how it works is at the beginning you choose whether ur a cop or prisoner by going and pressing a button. The button has two functions: 1. To change your team to either cop or prisoner (whichever one you choose) 2. To tp you to the starting point for either cop or prisoner. The issue is that when you press the button it makes you respawn (and switch to the team) so that you have to go to the button a second time to actually start. Is there anyway to make it so that you don’t have to respawn and can just tp and change team at the same time.
Also side note, should I make it so that it randomly gives you either cop or prisoner to make the game more balanced? And also if I implement this would I be able to remove the button function to tp to the starting point.
In case i didn’t say this already there are two starting points, 1 for the cops and another for prisoners.
Start everyone as team 1. Set the original spawn point to team 1. Create a new spawn point for each of the cop and robber teams, and set it to those teams.
Have you heard of psuedo teaming? This is a textbook example of when to use it. Basically, you use items to represent teams instead of an actual team. So if you wanted to be on the cops team, you would press the button, which would grant you an item, and then teleport you over to the cop side. The robber side would just not give you an item. Every time you want to do something (ie: rob the bank), you would have a checker to check if you were on the right team. If you are, THEN the game lets you do what you were doing. Hope this helps!
This seems like a quality prison game! I always wanted to make one, but I don’t think it would be possible to create functional handcuffs, which is really the only thing stopping me. I hope you can find out how to make them for your game!