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 » Scripting Helpers
Home Search
 

Re: What can I do if a gear doesn't unequip easily

Previous Thread :: Next Thread 
DestinedBlade is not online. DestinedBlade
Joined: 12 Nov 2010
Total Posts: 20978
24 Apr 2014 08:23 PM
I checked the box that says canbeequipped but you still have to spam a lot to get it to drop. What can I do to fix it?
Report Abuse
DestinedBlade is not online. DestinedBlade
Joined: 12 Nov 2010
Total Posts: 20978
24 Apr 2014 08:25 PM
:l
Report Abuse
masterCameron101 is online. masterCameron101
Joined: 28 Mar 2010
Total Posts: 1377
24 Apr 2014 08:26 PM
Specify.

~masterCameron101, advanced Lua programmer, certified graphics designer and geek~
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
24 Apr 2014 08:27 PM
You could destroy it once it enters the workspace;

game.Workspace.ChildAdded:connect(function(child)
if child:IsA("Tool") then
child:Destroy()
end end)

Or you could make a new event for backspacing the tool that makes it go further once it's unequipped so it doesn't touch you again, because that's what it is, it's the tool touching you once you pick it up, so you ould set that property to false as well.
Report Abuse
DestinedBlade is not online. DestinedBlade
Joined: 12 Nov 2010
Total Posts: 20978
24 Apr 2014 08:34 PM
@goul

I have a coffee game using the standard cups that most games use but when you deselect it, it lags when it hits the ground and your hand shows as still holding it

would a gui that gives people gear work?
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
24 Apr 2014 08:40 PM
Yes, it would be better probably. And with your case then destroying it would be the best bet.
Report Abuse
DestinedBlade is not online. DestinedBlade
Joined: 12 Nov 2010
Total Posts: 20978
24 Apr 2014 08:42 PM
@Goul

How can i give them the gear then?
Report Abuse
DestinedBlade is not online. DestinedBlade
Joined: 12 Nov 2010
Total Posts: 20978
24 Apr 2014 08:48 PM
bump
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
24 Apr 2014 08:51 PM
--Put this in gui, localscript, put gear in this script.

script.Parent.MouseButton1Down:connect(function()
for i,v in pairs(script:GetChildren()) do
v:Clone().Parent = game.Players.LocalPlayer.Backpack
end end)
Report Abuse
DestinedBlade is not online. DestinedBlade
Joined: 12 Nov 2010
Total Posts: 20978
24 Apr 2014 09:04 PM
Thanks goul you're a lot of help

with that script, how does it know who's backpack to place the gear in?
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
24 Apr 2014 09:06 PM
As long as it's a LocalScript then..

game.Players.LocalPlayer

should specify the player that clicked the gui
Report Abuse
DestinedBlade is not online. DestinedBlade
Joined: 12 Nov 2010
Total Posts: 20978
24 Apr 2014 09:11 PM
Ohh.... I see what you mean

I meant like a GUi that lets you give the gear that is currently equipped to a person you specify by typing in their name

Seems to complicated though..

Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
24 Apr 2014 09:17 PM
Oh, wow, yeah that's kinda complicated. String manipulation isn't my best area although I could probably do that too
Report Abuse
DestinedBlade is not online. DestinedBlade
Joined: 12 Nov 2010
Total Posts: 20978
24 Apr 2014 09:26 PM
It's just for a starbucks game but obviously you don't have to.

Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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