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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 11 May 2013 04:15 PM |
| Another way of doing it is putting that function inside the one I posted above. |
|
|
| Report Abuse |
|
|