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: Tool Mouse Not Reseting

Previous Thread :: Next Thread 
warriorqaz is not online. warriorqaz
Joined: 09 Oct 2009
Total Posts: 726
09 Oct 2014 04:29 PM
I've been noticing that when you unequip tools, if your mouse had been changed by the tool, it doesn't reset back. Is there something new we have to add to our scripts to fix this or is this new ROBLOX bug?
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
09 Oct 2014 04:31 PM
Now that the mouse icon can be changed without the equipped event mouse, it no longer automatically goes back to normal and must be done manually with the unequipped event
Report Abuse
warriorqaz is not online. warriorqaz
Joined: 09 Oct 2009
Total Posts: 726
09 Oct 2014 04:33 PM
Good to know. Thanks.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
09 Oct 2014 04:34 PM
game.Players.Player:GetMouse().Icon = ""

Is normal roblox mouse

Interesting thing I just found out
game.Players.Player:GetMouse().Icon = "nil" --Any invalid string will work

Makes it use the players normal mouse cursor
Report Abuse
warriorqaz is not online. warriorqaz
Joined: 09 Oct 2009
Total Posts: 726
09 Oct 2014 04:49 PM
tool.Unequipped:connect(function()
game.Players.LocalPlayer:GetMouse().Icon = ""
end)

^ That didn't work. Do you know why? Is it because I'm using a local script?
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
09 Oct 2014 04:54 PM
As it turns out "" is only the default mouse if its an invalid image from the command bar

I'll go find the default icon and post it
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
09 Oct 2014 05:01 PM
Alright, turns out your right

It is a bug, if you do print(game.Players.LocalPlayer:GetMouse().Icon) after using the uneqipped function to change the mouse, it prints the correct image link despite what it shows.
Report Abuse
warriorqaz is not online. warriorqaz
Joined: 09 Oct 2009
Total Posts: 726
09 Oct 2014 05:03 PM
I guess I'll just wait till it's fixed. Thanks for the help.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
09 Oct 2014 05:37 PM
I found a fix
Don't use the mouse returned in the equipped function

script.Parent.Equipped:connect(function(mouse)
game.Players.LocalPlayer:GetMouse().Icon = "rbxasset://textures/face.png"
end)
script.Parent.Unequipped:connect(function()
game.Players.LocalPlayer:GetMouse().Icon = ""
end)
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
10 Oct 2014 06:08 PM
I remember hearing that PlayerMouse couldn't have the cursor changed.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
10 Oct 2014 06:09 PM
@Jarod
That recently was changed
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
10 Oct 2014 06:26 PM
@YAY!

128GB
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