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: How do you reset the camera to the original player?

Previous Thread :: Next Thread 
DesiredROBLOXlAN is not online. DesiredROBLOXlAN
Joined: 01 Mar 2012
Total Posts: 971
13 Jun 2016 11:27 PM
shouldn't this work...

game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
Report Abuse
Andyliu5000 is not online. Andyliu5000
Joined: 02 Nov 2013
Total Posts: 969
13 Jun 2016 11:30 PM
Or just:

game.workspace.CurrentCamera:remove()
wait(.5)
Report Abuse
SadisticNub is not online. SadisticNub
Joined: 05 Jan 2013
Total Posts: 4948
13 Jun 2016 11:31 PM
setting the camera subject back to the player's humanoid is all you need to do
also make sure the camera type is custom and not scriptable

"game.workspace.CurrentCamera:remove()
wait(.5)"
what the hell is that
Report Abuse
DesiredROBLOXlAN is not online. DesiredROBLOXlAN
Joined: 01 Mar 2012
Total Posts: 971
13 Jun 2016 11:32 PM
lol okay I will check if it is custom I think that might be my problem thanks!
Report Abuse
DesiredROBLOXlAN is not online. DesiredROBLOXlAN
Joined: 01 Mar 2012
Total Posts: 971
13 Jun 2016 11:40 PM
still won't work -_-
Report Abuse
SadisticNub is not online. SadisticNub
Joined: 05 Jan 2013
Total Posts: 4948
13 Jun 2016 11:40 PM
Is this a LocalScript?
Report Abuse
DesiredROBLOXlAN is not online. DesiredROBLOXlAN
Joined: 01 Mar 2012
Total Posts: 971
14 Jun 2016 12:18 AM
Yep
Report Abuse
Syntropy is not online. Syntropy
Joined: 16 Mar 2009
Total Posts: 2272
14 Jun 2016 01:40 AM
I believe this is correct so maybe it's something else faulty?
Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
14 Jun 2016 01:55 AM
Uhh here's a stab in the dark, give it a try?

cam = game.Workspace.CurrentCamera
cam.CameraType = 'Scriptable'
cam.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
Report Abuse
DesiredROBLOXlAN is not online. DesiredROBLOXlAN
Joined: 01 Mar 2012
Total Posts: 971
14 Jun 2016 06:45 PM
Still didn't work...
Report Abuse
Inigo18 is not online. Inigo18
Joined: 02 Feb 2014
Total Posts: 1041
14 Jun 2016 07:48 PM
game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
game.Workspace.CurrentCamera.CameraType = "Custom"
Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
14 Jun 2016 07:51 PM
Deleting the player's CurrentCamera will make them a new one. So you can just :destroy() it.

Otherwise, setting the CameraSubject to the Humanoid should work...


Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
14 Jun 2016 07:52 PM
Where is your LocalScript located?
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