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 |
|
|
| |
|
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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 11 Jul 2012 |
| Total Posts: 1559 |
|
|
| 23 Jul 2014 04:56 PM |
| Yeah, I've got to agree with ^ |
|
|
| Report Abuse |
|
|
Tynexx
|
  |
| Joined: 11 Jul 2012 |
| Total Posts: 1559 |
|
| |
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 23 Jul 2014 05:03 PM |
Huh. Didn't know that. Learning something erryday |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 20 Nov 2008 |
| Total Posts: 1227 |
|
|
| 24 Jul 2014 03:45 AM |
| ·7 That's sweet ∙ ·7 ∙ !!! |
|
|
| Report Abuse |
|
|