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

How to Tween the camera to the player

2 answers

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

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