Tween to player position

Hey developers,

I want to make the camera tween from a scripted position to the player’s default camera position. How would I achieve this? Any help would be appreciated!

Have a nice day, iamajust

2 Likes

Here no script provided of you trying to do it so sending a working script even with explanation feels wrong. An example way of doing it:

  1. Stop player’s character (WalkSpeed equal to 0)
  2. Save to a variable CurrentCamera CFrame (save it before tweening player’s camera)
  3. Set CameraType to Scriptable
  4. Make a new CFrame (scripted position)
  5. Set camera CFrame to scripted position
  6. Use TweenService to tween the camera from scripted to default position (actually tween CFrame, not position)
  7. Set CameraType to Custom

You don’t need to know a lot to know how to do it (Camera, TweenService and CFrame):
Camera (roblox.com)
TweenService (roblox.com)
Understanding CFrames (roblox.com)

1 Like

Hi! I didn’t provide a script because the only line I had was

local camera = game:GetService("Workspace").CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable

Anyway, thank you so much for your post! It really helps me out!