So this has been driving me nut’s and I am trying to figure out how to do this type of cut scene, Like how can I do for the intro, and what is this feature called? Since I am trying to figure how I can script this.
Thanks!
Dis_chat
Thanks!
Dis_chat
What do you mean? I’m assuming you meant the camera pointing at the character and the character being non-controllable.
Achieving this is pretty simply and there are a number of ways to do this.
Option 1:
Set the camera type to “Scriptable” so the player cannot move the camera. Then, clone the player’s character and set the camera’s CFrame
property to look at the cloned character. Make sure to also teleport the character outside of the camera’s frame if you are doing this. You can make the player not able to walk into the camera’s frame by setting the player’s Humanoid’s Walkspeed
and JumpPower
to 0.
Option 2:
Same steps as above, but instead of cloning the character, simply teleport the character to the location you want and set the Humanoid’s Walkspeed
and JumpPower
to 0 so they cannot move.
Awe man, thank you!
I am starting to get into scripting and this one my challenge!
Thank you!
You could use Roblox’s Camera Manipulation!
(This would only work in a localscript as the camera is client side)
Setting the Camera
First you should identify the Camera and change it to Scriptable:
local Camera = game.Workspace.CurrentCamera
Camera.CameraType = Enum.CameraType.Scriptable
To make things simpler you should create a camera part first of all
local partcamera = workspace.PartLocation
(I assume you know how to identify objects)Then you’d have to set the Camera’s CFrame.
Camera.CameraSubject = partcamera
Camera.CFrame = CFrame.new(partcamera.Position, thingtoface.Position)
--replace thingtoface with the part (or Vector3) you want the camera to face
Resetting Camera
First you should set the Camera type back to Custom
Camera.CameraType = Enum.CameraType.Custom
Then lastly resetting the Camera Subject
Camera.CameraSubject = target
Freezing Character
Player.Character.Humanoid.WalkSpeed = 0
Player.Character.Humanoid.JumpPower = 0
Unfreezing Character
Player.Character.Humanoid.WalkSpeed = 16
Player.Character.Humanoid.JumpPower = 50
I hoped this helped your situation!
oops, just finished typing when I saw the other solution.
Another great tip, I am gonna try these.
no problemo dude, hope that it helped
Here’s a completely unwarranted pointer and useless information piece: Camera.CoordinateFrame is deprecated. It’s typically not advised for you to use deprecated items in new works. Camera.CFrame is the appropriate property to use. It also fits in conventionally since you’re working with CFrames.
ah, didn’t realize. I haven’t actually used camera manipulation in a while. Thanks for education me