Hello everyone, I’m trying to make cutscene that the camera is attached to a part (that is moving by TweenService) but the camera doesn’t move with the part…
What’s the solution?
Hello everyone, I’m trying to make cutscene that the camera is attached to a part (that is moving by TweenService) but the camera doesn’t move with the part…
Can’t you change the camera’s cframe to a face on a part?
You would have to bind the camera’s CFrame to renderstep.
local runService = game:GetService('RunService')
--...
local function moveCameraToPart()
camera.CFrame = workspace.Fall.CameraPart.CFrame
end
runService:BindToRenderStep('CameraPartCFrame', Enum.RenderPriority.Camera.Value + 1, moveCameraToPart)
partTween:Play()
partTween.Completed:Wait()
runService:UnbindFromRenderStep('CameraPartCFrame') -- this will stop moving the camera to the part on RenderStepped