|
| 24 Aug 2015 01:31 PM |
Ok, so I am making a game where I have a specific area where a goalie can go and every other player on the field cannot. I have a bool called "isGoalie" and is by default set to false. then, the area checks onTouched players and if they aren't a goalie, they are teleported to a point outside of the area. i got the teleport part to work but I have no idea how to check the bool before teleporting the players. the bool is under player.storage.isGoalie.
how would i get the value? would i do this:
h is the player that the teleport is detecting
h.storage.isGoalie.Value == true
??? |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2015 01:39 PM |
| https://gyazo.com/efe4cc9b2c5dc60b5b7c668c995e53c7 |
|
|
| Report Abuse |
|
|
|
| 24 Aug 2015 01:41 PM |
| the reason i put the isGoalie inside of storage is because i plan to have much more in storage and i wanna keep it all in one place |
|
|
| Report Abuse |
|
|
Vortilis
|
  |
| Joined: 06 Jul 2014 |
| Total Posts: 14163 |
|
| |
|
| |
|