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: How to access the mouse via GUI

Previous Thread :: Next Thread 
C0D3Y is not online. C0D3Y
Joined: 24 Jul 2010
Total Posts: 1692
18 Feb 2012 05:01 PM
I know it's possible, I just don't know how to do it...
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
18 Feb 2012 05:03 PM
[ Content Deleted ]
Report Abuse
C0D3Y is not online. C0D3Y
Joined: 24 Jul 2010
Total Posts: 1692
18 Feb 2012 05:04 PM
Not what I meant... How to access the Mouse through the GUI. So you can do hotkeys and such...
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
18 Feb 2012 05:07 PM
There's a way to get the mouse, but it will break if any other tools are open, and technically it's by opening another tool. Basically, it creates a tool, automatically selects it, then returns the mouse.

function GetMouse()
t = Instance.new("Tool")
Instance.new("BoolValue",t).Name = "RobloxBuildTool"
Instance.new("Part",t).Name = "Handle"
t.Equipped:connect(function(m)
t:Destroy()
return m
end)
end
t.Parent = game.Players.LocalPlayer.Character
Report Abuse
C0D3Y is not online. C0D3Y
Joined: 24 Jul 2010
Total Posts: 1692
18 Feb 2012 05:14 PM
Alrite, thanks...
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