generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

remove a players equipped item?

Previous Thread :: Next Thread 
ace12345678135 is not online. ace12345678135
Joined: 30 Aug 2008
Total Posts: 341
30 Aug 2016 01:55 PM
At the end of the rounds on a game I'm making, I want all players to have their weapons removed and have them returned to the lobby. I got the teleporting down, but if a player has a weapon equipped then its no longer a part of his backpack, so the command I'm using doesnt work. any ideas?
Report Abuse
KillerKyle is not online. KillerKyle
Joined: 29 Jul 2007
Total Posts: 6371
30 Aug 2016 01:56 PM
A weapon equipped is relocated to the Character. You will have to clean the Character of weapons aswell as the backpack.
Report Abuse
AxonMega is not online. AxonMega
Joined: 29 Aug 2014
Total Posts: 2403
30 Aug 2016 01:57 PM
humanoid:UnequipTools()
Report Abuse
ace12345678135 is not online. ace12345678135
Joined: 30 Aug 2008
Total Posts: 341
30 Aug 2016 01:59 PM
so its player.character.whatever the weapon is? or is it under another parent like backpack?
Report Abuse
KillerKyle is not online. KillerKyle
Joined: 29 Jul 2007
Total Posts: 6371
30 Aug 2016 02:04 PM
Player.Character.Weapon

Yes.

I am not a pro with tools and weapons, so there may be a better way of doing this. All I know is, equipped tools and weapons, move to the Character.
Report Abuse
ace12345678135 is not online. ace12345678135
Joined: 30 Aug 2008
Total Posts: 341
30 Aug 2016 02:21 PM
got it with the unequip tools command. now ive got another problem though, if you guys got some time. i set a command so that when you spawn in with your backpack disabled. i want to re enable it with all the players gear in their backpack where it should have started whenever the game starts. but i cant enable the backpack again after ive disabled it for some reason. anything i can do?
Report Abuse
InfiniteYield is online. InfiniteYield
Joined: 01 Mar 2012
Total Posts: 762
30 Aug 2016 02:30 PM
most games have the backpack disabled and use :EquipTool().


Report Abuse
ace12345678135 is not online. ace12345678135
Joined: 30 Aug 2008
Total Posts: 341
30 Aug 2016 02:48 PM
that's fine, I'm gonna go with another option.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image