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: Change Mouse.Icon!

Previous Thread :: Next Thread 
Tynexx is not online. Tynexx
Joined: 11 Jul 2012
Total Posts: 1559
23 Jul 2014 04:47 PM
Well, not the real way. But a good way I guess.

You are going to need a localscript in StarterGui. For the mouse, you must create a gui. And add in what you want the mouse to be(ex: TextLabel). Now for the script:

I found out at the Scripters forums this:
game:GetService("UserInputService").MouseIconEnabled = false
This would make the mouse invisble. Now for making the gui follow you.
local gui = guipath
local m = game.Players.LocalPlayer:GetMouse()
while wait() do
gui.Position = UDim2.new(0,m.X,0,m.Y)
end
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
23 Jul 2014 04:49 PM
so wat is the problem...
Report Abuse
Tynexx is not online. Tynexx
Joined: 11 Jul 2012
Total Posts: 1559
23 Jul 2014 04:50 PM
It isn't a problem, it's to help people.
Report Abuse
6PenTax is not online. 6PenTax
Joined: 01 Sep 2010
Total Posts: 178
23 Jul 2014 04:53 PM
Never use while loops when your intentions are move-mouse related, EXTREMELY Bad idea, trust me.

This is the most efficient method, the rest of the fake mouse gui positioning is up to you so it's precise and click in the vertex of the gui. (top left corner)

local m=Game:GetService("Players").LocalPlayer:GetMouse()
local UI=Game:GetService("UserInputService") UI.MouseIconEnabled=false
local gui=guipath

m.Move:connect(function()
gui.Position=UDim2.new(0,m.X,0,m.Y)
end)
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
23 Jul 2014 04:56 PM
Isn't the image used for the cursor a property of Mouse?
Why can't you just change that...
Report Abuse
Tynexx is not online. Tynexx
Joined: 11 Jul 2012
Total Posts: 1559
23 Jul 2014 04:56 PM
Yeah, I've got to agree with ^
Report Abuse
Tynexx is not online. Tynexx
Joined: 11 Jul 2012
Total Posts: 1559
23 Jul 2014 04:57 PM
Isn't it locked?
Report Abuse
6PenTax is not online. 6PenTax
Joined: 01 Sep 2010
Total Posts: 178
23 Jul 2014 04:57 PM
You can't change Mouse.Icon property with :GetMouse() Method.
Report Abuse
newslate is not online. newslate
Joined: 10 Jun 2014
Total Posts: 217
23 Jul 2014 05:00 PM
@6Pen, You will be able to very soon. I believe it is available in GT2
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
23 Jul 2014 05:00 PM
It's not locked. In fact, ROBLOX has it in their weapons (i.e. LinkedSword, RocketLauncher).
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
23 Jul 2014 05:01 PM
This is still useful for if you want to do more with the mouse (i.e. make it display text)
Report Abuse
newslate is not online. newslate
Joined: 10 Jun 2014
Total Posts: 217
23 Jul 2014 05:02 PM
Maxomega, you can change the Mouse Icon from a tool, but not via ::GetMouse
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
23 Jul 2014 05:03 PM
Huh. Didn't know that.
Learning something erryday
Report Abuse
6PenTax is not online. 6PenTax
Joined: 01 Sep 2010
Total Posts: 178
23 Jul 2014 05:04 PM
@newslate I've heard rumors of Mouse.Icon being able to be changed via :GetMouse() in GameTest2 aswell, many people are waiting for that update
Report Abuse
Tynexx is not online. Tynexx
Joined: 11 Jul 2012
Total Posts: 1559
23 Jul 2014 05:07 PM
Well, using this for now should be okay I guess.
Report Abuse
DataStore is not online. DataStore
Joined: 07 Feb 2012
Total Posts: 8540
23 Jul 2014 05:20 PM
@6Pen,
It's already enabled on the main site.
Report Abuse
VoltiCoil is not online. VoltiCoil
Joined: 20 Nov 2008
Total Posts: 1227
24 Jul 2014 03:44 AM
·Blue ∙ Wait, so you can use the :GetMouse() method to change the icon now?
Report Abuse
VoltiCoil is not online. VoltiCoil
Joined: 20 Nov 2008
Total Posts: 1227
24 Jul 2014 03:45 AM
·7 That's sweet ∙ ·7 ∙ !!!
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