DevDaDude
|
  |
| Joined: 19 Mar 2011 |
| Total Posts: 45 |
|
|
| 02 Jul 2013 10:03 AM |
| I am working on my game and in the afk room I need it to where it removes your weapons and then when you go back you get your weapons back. Any help? |
|
|
| Report Abuse |
|
RoAnt
|
  |
| Joined: 14 Jul 2008 |
| Total Posts: 16794 |
|
|
| 02 Jul 2013 11:10 AM |
My idea will require knowledge of how Region3 works; so if you don't know how it works, the idea is useless.
Here's my idea; http://wiki.roblox.com/index.php/Region3 http://wiki.roblox.com/index.php/FindPartsInRegion3 http://wiki.roblox.com/index.php/GetChildren http://wiki.roblox.com/index.php/Conditional_statement#If http://wiki.roblox.com/index.php/GetPlayerFromCharacter_(Method) http://wiki.roblox.com/index.php/Name http://wiki.roblox.com/index.php/Backpack http://wiki.roblox.com/index.php/Table
First, you make a region3 area and make a table. Then use a generic for loop to get the parts from the table :FindPartsInRegion3(). Make an if-statement to check if the part's name is Head and make it check if the parent is a Player. After that, use generic for loop to get the children of the Player's Backpack. Make the script put the tools of the Player into the table of the script. Remove the tools.
I hope that made sense, because I just typed really fast. The idea was to give you an idea on how to script it all out. |
|
|
| Report Abuse |
|
DevDaDude
|
  |
| Joined: 19 Mar 2011 |
| Total Posts: 45 |
|
|
| 02 Jul 2013 09:08 PM |
| I dont know what Region3 is, can you tell me? Sorry but I didnt get alot of it |
|
|
| Report Abuse |
|