Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Each character gets there own room?

Asked by 10 years ago

Hello fellow scripters!! I have been stumped with an issue for awhile now. How would i make a script that gives a Player a room but only one player per room and there is 6 rooms! i tried using if and else if

how i have it set up is there is 6 bool values labeled room1 -6 if room1.Value == false then i want that player to be assigned to that room. basically i need it to make sure that when the player is added it checks all the rooms to see if its empty (false) and if it is the character is assigned to it then when the character leaves the room goes back to false. sorry if this is confusing

0
Try checking if the characters torso is in the room using its position and the position of the walls/corners. If one is detected, the room is occupied, otherwise it is not. GoldenPhysics 474 — 10y

Answer this question