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: MouseLock Question

Previous Thread :: Next Thread 
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
14 Feb 2014 11:39 AM
Is it possible to use a script to switch between MouseLock and Classic Mode? I was told I cant, which is very infuriating. I'm not talking about "LockFirstPerson" either.

PS some noob in Trade Hangout just came up to me and said I cant script. I just lold.
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
14 Feb 2014 12:18 PM
You should be able to...
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
14 Feb 2014 01:07 PM
@Bebee how? I cant seem to find a method for it or anything...
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
14 Feb 2014 01:11 PM
Well the first step is to lock the camera in a certain direction... and change it when your robloxians moves... I am not the best with camera scripts tho...
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
14 Feb 2014 01:19 PM
@war thats not it. And I figured it out nvm
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
14 Feb 2014 01:25 PM
Actually I thought I did but now I'm not sure.

http://wiki.roblox.com/index.php?title=RBX.lua.UserGameSettings_(Object)

Is this object locked? e.e

http://wiki.roblox.com/index.php?title=UserSettings#UserSettings.28.29
This is why I'm not sure now...
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
14 Feb 2014 02:44 PM
Dude that is locked up! You would have to make a custom mouselock camera script, and the first step is what I said earlier
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
14 Feb 2014 02:48 PM
I'm not trying to force people into MouseLock. Quite the opposite actually. I want to force people into Classic mode so I can use :MoveTo on the Humanoid.
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
14 Feb 2014 02:57 PM
ohhhhhhh, well I really don't have much of an idea... why not just do this;

game.Workspace.Player1:MoveTo(game.Workspace.Part.Position)

It would teleport them no matter what the camera type, it would not make them walk though (wouldn't walktopoint or something located in the humanoid do that?)
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
14 Feb 2014 03:20 PM
Wazap is really determined to get this..
He posted several threads about using humanoids moveto..
Anyway,I don't think "walktopoint" in the humanoid would work,idk why,but I've tried it,I set it,and the player didn't go anywhere..:/
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
14 Feb 2014 04:20 PM
Someone has got to help him out here... Any ideas?
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
14 Feb 2014 04:42 PM
I need to use the :MoveTo method on the humanoid for the purpose of an effect. I already have it set using the Teleporting-MoveTo but I want it to be a lot cooler than that. Right now my current alternative is using conveyer belts that'll automatically divide the players into separate rooms, but I still want it to use the :MoveTo, since that'll give the coolest effect... :c
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
14 Feb 2014 07:16 PM
I really don't know what to say, You could put the moveto method in a loop? Maybe that would make the robloxians continue every time they cancel it??? That's my only idea...
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
14 Feb 2014 08:23 PM
@war thanks for the suggestion but I know how to make it so that ROBLOXians cant cancel it. The problem is that if the setting is set to MouseLock. The. Method. Wont. Even. Run. :c
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
15 Feb 2014 05:13 AM
Maybe the reason it won't run is because a specific movement is used and can't be used if the camera it facing the other way, here's a thought find a way to force them to face the direction moveto is using, maybe with a loop?
Report Abuse
Wreckerbuster67 is not online. Wreckerbuster67
Joined: 29 Jul 2012
Total Posts: 1144
15 Feb 2014 07:10 AM
Try niling the HumanoidController to prevent them from changing any other PlayerSettings?
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
15 Feb 2014 08:10 AM
Yea, that might work!
Report Abuse
TheMcInc is online. TheMcInc
Joined: 30 Sep 2012
Total Posts: 227
15 Feb 2014 08:26 AM
You could check out this page from the wiki:
http://wiki.roblox.com/index.php?title=Controlling_a_Player%27s_Character
that might help, but to keep the camera in place... Im not too sure, but that might help you get the players to move! Check out my forum post and help me if you can!:
http://www.roblox.com/Forum/ShowPost.aspx?PostID=125766277
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
15 Feb 2014 03:35 PM
..........................

Niling the humanoidcontroller wont do it.
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
15 Feb 2014 03:39 PM
Define player of course

player.Changed:connect(function(property)
if property == "CameraMode" then
if not player.CameraMode == "Classic" then
player.CameraMode = "Classic"
end
end
end)
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
17 Feb 2014 05:07 AM
No dueling, wazop, remove the players control over their character and try!
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
17 Feb 2014 05:30 AM
No mine works MouseLock = FirstPerson.
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