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 » Scripters
Home Search
 

Moving Mouse in First Person

Previous Thread :: Next Thread 
WaddelsGaming is not online. WaddelsGaming
Joined: 08 Oct 2013
Total Posts: 90
17 Jun 2016 11:39 PM
How do I make it so when a player clicks a part the player can move their mouse when they're in 1st Person?
Like in Apocalypse Rising when you look in your inventory in 1st Person you can move your mouse so you can click on stuff.


Report Abuse
pinballboy7 is not online. pinballboy7
Joined: 12 Mar 2009
Total Posts: 1485
17 Jun 2016 11:42 PM
http://wiki.roblox.com/index.php?title=API:Class/GuiButton/Modal
Report Abuse
WaddelsGaming is not online. WaddelsGaming
Joined: 08 Oct 2013
Total Posts: 90
18 Jun 2016 01:04 AM
How does it work though


Report Abuse
SwagCuzYolo is not online. SwagCuzYolo
Joined: 31 Oct 2013
Total Posts: 1224
18 Jun 2016 01:30 AM
if only something explained how it worked
Report Abuse
Iliuminatis is not online. Iliuminatis
Joined: 30 Nov 2008
Total Posts: 1524
18 Jun 2016 01:46 AM
PINBALL IS TROLLING U. GIMME A SEC I TURN ON ME PC AND GIV U SKRIPT K?
Report Abuse
Iliuminatis is not online. Iliuminatis
Joined: 30 Nov 2008
Total Posts: 1524
18 Jun 2016 01:56 AM
------------------------------- LOKAL SKRIPT -------------------------------
__________PLEIC IN STARTERPLAYER > STARTERCHARACTERSCKRIPTS__________


local InputService=game:GetService("UserInputService")
local Player=game.Players.LocalPlayer
local Mouse=Player:GetMouse()

Mouse.KeyDown:connect(function(k)
if k=="e" and InputService.MouseBehavior==Enum.MouseBehavior.LockCenter or game:GetService("UserInputService").TouchEnabled == true then
InputService.MouseBehavior=Enum.MouseBehavior.Default
elseif k=="e" and InputService.MouseBehavior==Enum.MouseBehavior.Default then
InputService.MouseBehavior=Enum.MouseBehavior.LockCenter
end
end)





_________________________________________________________

DELETE THIS:
elseif k=="e" and InputService.MouseBehavior==Enum.MouseBehavior.Default then
InputService.MouseBehavior=Enum.MouseBehavior.LockCenter


IF U DONT WANT PLAYER TO LOCK THEIR MOUSE AGAIN.
Report Abuse
Iliuminatis is not online. Iliuminatis
Joined: 30 Nov 2008
Total Posts: 1524
18 Jun 2016 01:57 AM
ANOTHER WAY IS CHECKING THAT STUPID CHECK BOX CALLED MODULE IN YOUR GUI. WHEN PLAYERS "SEES" THAT GUI ELEMENT WITH MODULE CHECKED HIS/HER MOUSE UNLOCK ON ITS OWN. (MIGHT NOT WORK WITH ALL PLATORMS PROPERLY, IDK)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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