Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How would you make the player have an exact camera position?

I want a camera position like in studio when doing something, please. I don't know how to start. Maybe move workspace cam? Not sure.

1 answer

✓ Accepted answer

You can use a LocalScript located in StarterPlayerScripts that has the following code:

local setCFrame = game.Workspace.SetPart.CFrame
-- You can also do a custom CFrame value,
-- local setCFrame = CFrame.new(0,0,0)

local camera = game.Workspace.CurrentCamera

camera.CFrame= setCFrame

This code will place the camera at an exact location. Leave an upvote if I helped! :)

7 comments

0

I'm trying to set a players camera

1

That's what this does: put it in a LocalScript located in StarterPlayerScripts.

0

Is there a way so that the camera is on a part, because The part will have a animation going up and down. How can I lock the camera on the part for a while and then make the camera back to normal?

1

You can use Interpolate to keep the camera on the part, or you can just use a RenderStepped function method to set the Camera's CFrame over and over again. http://wiki.roblox.com/index.php?title=Camera_manipulation

0

Ok thanks, I will accept your answer because I meant to ask a different question. But you still answered a question so you deserve reputation points. Thanks for helping

0
0

Oops, I originally had CFrame in the code but second guessed myself. I'll edit the post.

This discussion is preserved as it was. New answers, comments, and votes are closed.