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: Fix Camera Script

Previous Thread :: Next Thread 
PHChamp is not online. PHChamp
Joined: 01 Sep 2014
Total Posts: 211
10 Aug 2016 11:46 PM
cam.CameraSubject = game.Players.LocalPlayer.Character.Humanoid

cam.CameraType = Enum.CameraType.Scriptable
cam.CoordinateFrame = CFrame.new(part.Position, game.Players.LocalPlayer.Character.Torso.Position)

repeat wait() until Done.Value == true

cam.CameraType = "Custom"
cam.CameraSubject = game.Players.LocalPlayer.Character.Humanoid


When done become true, nothing happens. I am not able to move my character like regular roblox.
Report Abuse
RW3e is not online. RW3e
Joined: 18 Jul 2012
Total Posts: 1516
11 Aug 2016 01:10 AM
not 100% sure, but I think you need to focus the camera on an actual part, rather than the humanoid


Report Abuse
PHChamp is not online. PHChamp
Joined: 01 Sep 2014
Total Posts: 211
11 Aug 2016 09:40 AM
Thank you! So, Im assuming you focus it on torso.
Report Abuse
ExtremeBuilder15 is not online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 3176
11 Aug 2016 09:40 AM
Try changing it to HumanoidRootPart
Report Abuse
PHChamp is not online. PHChamp
Joined: 01 Sep 2014
Total Posts: 211
11 Aug 2016 09:41 AM
Ok
Report Abuse
PHChamp is not online. PHChamp
Joined: 01 Sep 2014
Total Posts: 211
11 Aug 2016 09:42 AM
Both methods dont work. I cannot move around or anything. It is stuck.
Report Abuse
PHChamp is not online. PHChamp
Joined: 01 Sep 2014
Total Posts: 211
11 Aug 2016 09:58 AM
b
Report Abuse
PHChamp is not online. PHChamp
Joined: 01 Sep 2014
Total Posts: 211
11 Aug 2016 10:03 AM
Im narrowing it down, it is the camera script that is messing it up. So the code I sent you has the key to fixing the problem.
Report Abuse
PHChamp is not online. PHChamp
Joined: 01 Sep 2014
Total Posts: 211
11 Aug 2016 10:09 AM
Can someone please help?
Report Abuse
PHChamp is not online. PHChamp
Joined: 01 Sep 2014
Total Posts: 211
11 Aug 2016 12:02 PM
b3
Report Abuse
PHChamp is not online. PHChamp
Joined: 01 Sep 2014
Total Posts: 211
11 Aug 2016 12:11 PM
b4
Report Abuse
SteadyOn is not online. SteadyOn
Joined: 20 Mar 2011
Total Posts: 600
11 Aug 2016 12:16 PM
I think if you remove the CurrentCamera it will automatically create a new one for you, try that.


R$228 -- take this pl0x https://www.roblox.com/Animated-Announcement-Board-item?id=436788650
Report Abuse
PHChamp is not online. PHChamp
Joined: 01 Sep 2014
Total Posts: 211
11 Aug 2016 12:32 PM
How would I do that? Make current camera nil?
Report Abuse
PHChamp is not online. PHChamp
Joined: 01 Sep 2014
Total Posts: 211
11 Aug 2016 12:45 PM
Yes or
Report Abuse
PHChamp is not online. PHChamp
Joined: 01 Sep 2014
Total Posts: 211
11 Aug 2016 12:51 PM
b5 -_-
Report Abuse
SteadyOn is not online. SteadyOn
Joined: 20 Mar 2011
Total Posts: 600
11 Aug 2016 02:39 PM
You'd need to use a localscript. Look up CurrentCameras and localscripts if you need to

then it's simply

game.Workspace.CurrentCamera:Destroy()


R$228 -- take this pl0x https://www.roblox.com/Animated-Announcement-Board-item?id=436788650
Report Abuse
PHChamp is not online. PHChamp
Joined: 01 Sep 2014
Total Posts: 211
11 Aug 2016 08:54 PM
workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
workspace.CurrentCamera.CoordinateFrame = CFrame.new(part.Position, game.Players.LocalPlayer.Character.Torso.Position)

wait(2)

game.Workspace.CurrentCamera:Destroy()

repeat wait() until game.Workspace.CurrentCamera
game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
game.Workspace.CurrentCamera.CameraType = "Custom"

Doesnt work. Same problem. This doesnt make any sense.
Report Abuse
PHChamp is not online. PHChamp
Joined: 01 Sep 2014
Total Posts: 211
11 Aug 2016 09:03 PM
b6, I have no clue why it doesn't. So far no luck, I dont think anyone can fix it.
Report Abuse
PHChamp is not online. PHChamp
Joined: 01 Sep 2014
Total Posts: 211
11 Aug 2016 09:18 PM
I figured it out. Its my game. I tried a script out on a different game and it worked perfectly. Any settings or things changed the messes up the script.
Report Abuse
PHChamp is not online. PHChamp
Joined: 01 Sep 2014
Total Posts: 211
12 Aug 2016 06:15 AM
bump
Report Abuse
PHChamp is not online. PHChamp
Joined: 01 Sep 2014
Total Posts: 211
12 Aug 2016 08:05 AM
b8
Report Abuse
PHChamp is not online. PHChamp
Joined: 01 Sep 2014
Total Posts: 211
12 Aug 2016 08:19 AM
Is something wrong with my game? Why doesnt the script work on my specific game? Any things that would mess up a script like that?
Report Abuse
PHChamp is not online. PHChamp
Joined: 01 Sep 2014
Total Posts: 211
13 Aug 2016 02:44 PM
b9
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