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: can mouse be contacted using localscript in starttergui?

Previous Thread :: Next Thread 
magicalandre13 is not online. magicalandre13
Joined: 21 Jan 2011
Total Posts: 5327
27 Sep 2014 11:39 AM
halp
Report Abuse
DataStore is not online. DataStore
Joined: 07 Feb 2012
Total Posts: 8540
27 Sep 2014 11:44 AM
Perhaps you have the wrong numbers, or they don't want to pick up the telephone?

I jest. But yes, you can get the player's mouse from a LocalScript in their PlayerGui (which is where the contents of StarterGui goes when the player is spawned).

Report Abuse
magicalandre13 is not online. magicalandre13
Joined: 21 Jan 2011
Total Posts: 5327
27 Sep 2014 11:45 AM
script.Parent.Parent:GetMouse()?
Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
27 Sep 2014 11:46 AM
mouse = game.Players.LocalPlayer:GetMouse()

mouse.KeyDown:connect(function(k)
if k == "e" then
print 'pressed e!'
end
end)
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