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 » Game Design
Home Search
 

Re: Removing Mouse Icon?

Previous Thread :: Next Thread 
IthacaMedia is not online. IthacaMedia
Joined: 25 Jan 2014
Total Posts: 1337
21 Jan 2015 01:48 PM
So I have a gun, and I use the .Equipped and .Unequipped events to trigger the mouse's icon changing, but the problem is when the gun goes away from a script removing it, the icon stays. How can I remove the icon when the gun gets removed from the players inventory?
Report Abuse
cala13er is not online. cala13er
Joined: 07 Feb 2010
Total Posts: 191
21 Jan 2015 02:06 PM
You can't without a hopper bin or tool. The mouse icon is locked for some silly reason.
Report Abuse
IthacaMedia is not online. IthacaMedia
Joined: 25 Jan 2014
Total Posts: 1337
21 Jan 2015 03:28 PM
I'm using a tool for the gun though. I'm not sure you understand my question... I'm using a tool for a gun, and I have the mouse icon change when you equip/unequip. The issue is that removing the gun doesn't fire the unequipped event, thus making the icon stay after the gun is removed.
Report Abuse
johnjohncar is not online. johnjohncar
Joined: 22 Aug 2012
Total Posts: 3557
21 Jan 2015 04:05 PM
I thought that the icon staying after putting a item away was a glitch?
Report Abuse
UristMcSparks is not online. UristMcSparks
Forum Moderator
Joined: 27 Feb 2010
Total Posts: 44
21 Jan 2015 06:23 PM
If you are changing the Icon of the mouse using the Icon property, you can reset the mouse to its default Icon by setting Icon to an empty string "". Do this on your unequipped event and you should be good to go.
Report Abuse
UristMcSparks is not online. UristMcSparks
Forum Moderator
Joined: 27 Feb 2010
Total Posts: 44
21 Jan 2015 06:23 PM
Oh wait, the unequipped event isn't firing for you?
Report Abuse
powertool is not online. powertool
Joined: 01 Feb 2008
Total Posts: 3771
21 Jan 2015 06:24 PM
Urist, the problem is that reparenting a tool doesn't fire Unequipped.
Report Abuse
UristMcSparks is not online. UristMcSparks
Forum Moderator
Joined: 27 Feb 2010
Total Posts: 44
21 Jan 2015 06:32 PM
Not sure the case where you would have to manually reparent a tool (the default system takes care of that). If you do find that necessary, then perhaps fire the function you have bound to the unequip even when you change the parent.
Report Abuse
powertool is not online. powertool
Joined: 01 Feb 2008
Total Posts: 3771
21 Jan 2015 06:34 PM
IthacaMedia might be wording it confusingly, but as I read it he's referring to either :Destroy()ing the tool while it's being held, or reparenting it to something other than the player's inventory.
Report Abuse
rennec is not online. rennec
Joined: 02 Jul 2014
Total Posts: 28
21 Jan 2015 07:00 PM
um...
make the script trigger a value in the tool first, then, when the tool gets that value it'll change the mouse icon. once that's done, make it trigger another value. and when the other value changes, the script will then reparent/remove the tool.
Report Abuse
IthacaMedia is not online. IthacaMedia
Joined: 25 Jan 2014
Total Posts: 1337
22 Jan 2015 02:07 PM
@powertool

Yeah that's what I'm talking about.
Report Abuse
IthacaMedia is not online. IthacaMedia
Joined: 25 Jan 2014
Total Posts: 1337
22 Jan 2015 09:00 PM
I tried calling the :UnequipTool() method on the Humanoid before removing the tool, but for some reason that's not working.
Report Abuse
IthacaMedia is not online. IthacaMedia
Joined: 25 Jan 2014
Total Posts: 1337
25 Jan 2015 08:26 PM
This is weird :P.
Report Abuse
IthacaMedia is not online. IthacaMedia
Joined: 25 Jan 2014
Total Posts: 1337
27 Jan 2015 09:24 AM
Idk how to fix this.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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