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
 

Re: Forcing MouseLock?

Previous Thread :: Next Thread 
Hydrablox is not online. Hydrablox
Joined: 03 Nov 2009
Total Posts: 1874
31 May 2015 05:30 AM
I tried this:
UserSettings().GameSettings.ControlMode = Enum.ControlMode.MouseLockSwitch

But the output: "Insufficient permissions to set ControlMode."

Is there no other way to force the player to go in that controlmode?
Report Abuse
UltimateRaheem is not online. UltimateRaheem
Joined: 10 Nov 2012
Total Posts: 1886
31 May 2015 07:10 AM
No.


Smarter than he looks, it's Ultimate.
Report Abuse
Hydrablox is not online. Hydrablox
Joined: 03 Nov 2009
Total Posts: 1874
31 May 2015 12:05 PM
Really?
Report Abuse
Luminak is not online. Luminak
Joined: 27 May 2012
Total Posts: 2809
31 May 2015 12:09 PM
go in my models and look at fps script it works
Report Abuse
Hydrablox is not online. Hydrablox
Joined: 03 Nov 2009
Total Posts: 1874
31 May 2015 12:23 PM
But i'd like to have third person, not zoomed all the way into first person.
I'd like the whole mouselock option, the thing they use in sword fighting ya know.
Report Abuse
Hydrablox is not online. Hydrablox
Joined: 03 Nov 2009
Total Posts: 1874
31 May 2015 12:53 PM
Something alike:
http://www.roblox.com/games/142524131/S
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
31 May 2015 12:54 PM
That's done with Camera Manipulation.
Report Abuse
Hydrablox is not online. Hydrablox
Joined: 03 Nov 2009
Total Posts: 1874
31 May 2015 01:05 PM
I've also made my own using UserInputService.MouseBehavior to lock the mouse to the center and UserInputService.UserInputType == Enum.UserInputType.MouseMovement to read the mouse movements

But the last service lacks precision (rough output, only INT values) which result into jittery camera movements even though i sync. this with RenderStepped to make the camera smoother.
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
31 May 2015 01:21 PM
UIS.InputChanged:connect(function(Input, Bool)
if not Bool then
if Input.UserInputType == Enum.UserInputType.MouseMovement then
print(Input.Delta)
end
end
end)
Report Abuse
Hydrablox is not online. Hydrablox
Joined: 03 Nov 2009
Total Posts: 1874
31 May 2015 04:05 PM
@epicbreaker

Yes, that's what i'm using.
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
01 Jun 2015 04:15 AM
Use CurrentCamera:Interpolate()
Report Abuse
Destroyerz21 is not online. Destroyerz21
Joined: 29 Apr 2013
Total Posts: 432
01 Jun 2015 04:31 AM
Why just use the game.StarterPlayer.CameraMaxZoomDistance/CameraMinZoomDistance property to constrain the camera?
Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
01 Jun 2015 04:44 AM
Lookvector of camera then some bodygyros should do the trick oh and some math. ;)
Report Abuse
IuaScriptor is not online. IuaScriptor
Joined: 04 Dec 2013
Total Posts: 58
01 Jun 2015 07:58 AM
You can use scripts to achieve this. (As stated many times above)
But you cannot forcefully set the ControlMode, you would need to use a CoreScript.

I make knives.
Report Abuse
Destroyerz21 is not online. Destroyerz21
Joined: 29 Apr 2013
Total Posts: 432
01 Jun 2015 09:02 AM
^ make one for me pls (the knives lol)
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