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
 

Having trouble with Mouse Icon changing

Previous Thread :: Next Thread 
LordHyx is not online. LordHyx
Joined: 23 Nov 2012
Total Posts: 5733
11 May 2013 03:27 PM
I've been changing the mouse Icon to another asset, the output tells me the following.

"15:26:14.324 - Cannot set Icon of a PlayerMouse"

Is there a reason for this?
Report Abuse
shotgreen999 is not online. shotgreen999
Joined: 29 Nov 2009
Total Posts: 376
11 May 2013 03:31 PM
Weird bug.0-o
Is it in a Local script?
Not sure why unless your not doing it right.
If it is in a local script can you post the line that is not working?
Report Abuse
LordHyx is not online. LordHyx
Joined: 23 Nov 2012
Total Posts: 5733
11 May 2013 03:33 PM
It's in a local script, Let me get you the pieces you need.


ReloadCursor="http://www.roblox.com/asset/?id=114973059"
HitCursor="http://www.roblox.com/asset/?id=114973030"

function NotifyCursor()
mouse.Icon=HitCursor
wait()
mouse.Icon=Cursors[1]
end

NotifyCursor()



The notify Cursor command is in the actual shooting portion of the script, It's just placed in there as my last attempt, but Its still not working.
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
11 May 2013 03:41 PM
What's 'mouse'?

Also, please note you can't change the mouse icon with the ':GetMouse()' method.
Report Abuse
LordHyx is not online. LordHyx
Joined: 23 Nov 2012
Total Posts: 5733
11 May 2013 03:43 PM
That's exactly what I'm using.

I've this at the top of the script,
mouse = game.Players.LocalPlayer:GetMouse()


How would I change the mouse if I can't do it like this?
Report Abuse
shotgreen999 is not online. shotgreen999
Joined: 29 Nov 2009
Total Posts: 376
11 May 2013 04:13 PM
Ok so the only way to get the mouse is by useing the equipped function.
Hopfuly this is a tool or a hopper bin.
So what you will do if this is a Tool is:
script.Parent.Equipped:connect(Function (mouse)
--the stuff to change the mouse
end)
Replace mouse = game.Players.LocalPlayer:GetMouse() with the code above.
Report Abuse
shotgreen999 is not online. shotgreen999
Joined: 29 Nov 2009
Total Posts: 376
11 May 2013 04:15 PM
Another way of doing it is putting that function inside the one I posted above.
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