Ad
Log in to vote
0

How to Tween the camera to the player

Asked by 7 years ago

Need some help on how to make the camera tween from one position to the player

2 answers

Log in to vote
1
Answered by 1 year ago

okasoda

Ad
Log in to vote
0
Answered by 7 years ago

This code will tween to the player / reset the camera. Assumably used in a localscript.

function resetcam()
plr = game.Players.LocalPlayer
camera = workspace.CurrentCamera
camera:Interpolate(CFrame.new(char.Head.Position), CFrame.new(char.Torso.Position), 0.5) wait(0.5) camera.CameraType="Custom" camera.CameraSubject = game.Players.LocalPlayer.Character
end

Answer this question