Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 7 years ago
Edited by OldPalHappy 7 years ago

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

Log in to vote
2
Answered by 7 years ago
Edited 7 years ago

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! :)

0
I'm trying to set a players camera BlackOrange3343 2676 — 7y
1
That's what this does: put it in a LocalScript located in StarterPlayerScripts. joritochip 705 — 7y
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? BlackOrange3343 2676 — 7y
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 joritochip 705 — 7y
View all comments (3 more)
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 BlackOrange3343 2676 — 7y
0
CoordinateFrame is deprecated https://i.gyazo.com/1915870e55c9e2ca0b50ff11991ba4a2.png OldPalHappy 1477 — 7y
0
Oops, I originally had CFrame in the code but second guessed myself. I'll edit the post. joritochip 705 — 7y
Ad

Answer this question