|
| 15 Sep 2012 11:21 PM |
LocalScript inside of StarterGui:
local player = game.Players.LocalPlayer local mouse = player:GetMouse()
mouse.KeyDown:connect(function(key) if key == "m" then mouse.Icon = "http://www.roblox.com/asset/?id=90926941" end end)
Pretty basic.
Supposed to change the mouse icon when the m key is pressed
Output:
Cannot set Icon of a PlayerMouse |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 15 Sep 2012 11:24 PM |
| Changing the mouse icon? I figured that xD |
|
|
| Report Abuse |
|
|
|
| 15 Sep 2012 11:25 PM |
It's possible, just not the way your doing it.
At the moment, you need to use a Tool or HopperBin to get the mouse. The functions work the same just in a tool form.
In future updates the GetMouse() method should work, but until then it's tool bound. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 15 Sep 2012 11:26 PM |
| Yeah, Bloxedwho is right. You need to equip the tool, run the KeyDown event then check it. |
|
|
| Report Abuse |
|
|
|
| 15 Sep 2012 11:26 PM |
| GetMouse() isn't the best so far. |
|
|
| Report Abuse |
|
|
|
| 15 Sep 2012 11:30 PM |
Thanks :D
You guys know if it can change the text of a GUI? |
|
|
| Report Abuse |
|
|
|
| 15 Sep 2012 11:31 PM |
I believe it will, but only a local gui.
if CookieMonster.pro == true then do repeat wait() KirbyDance until CookieMonster.pro = false --In other words, KirbyDance forever! end
-Tester- |
|
|
| Report Abuse |
|
|
|
| 19 Sep 2012 02:01 PM |
Yea Gui text can be changed.
Any TextButton/TextLabel/TextBox has a .Text property which can be changed.
ToxtBox allows for user input on the Gui, so it' wise not to use it for displaying information. |
|
|
| Report Abuse |
|
|