Poppercam Error

I’m attempting to enable poppercam for my scriptable camera. Whenever I call PopperCam:Update() this is the following error I recieve:

Players.Player2.PlayerScripts.PlayerModule.CameraModule.Poppercam:98: attempt to index nil with ‘Step’

Couldn’t find anyone else with this same error, I think its probably something small I’m overlooking.

Additionally, what should I be filling the renderDt with, if anything at all.

		local startCFrame = CFrame.new(rootPart.CFrame.Position) * CFrame.Angles(0, math.rad(cameraAngleX), 0) * CFrame.Angles(math.rad(cameraAngleY), 0, 0)
		local cameraCFrame =  startCFrame:PointToWorldSpace(cameraOffset)
		local cameraFocus = startCFrame:PointToWorldSpace(Vector3.new(cameraOffset.X, cameraOffset.Y, -100000))

		camera.CFrame = CFrame.lookAt(cameraCFrame, cameraFocus)

		local lookingCFrame = CFrame.lookAt(rootPart.Position, camera.CFrame:PointToWorldSpace(Vector3.new(0, 0, -100000)))

		rootPart.CFrame = CFrame.fromMatrix(rootPart.Position, lookingCFrame.XVector, rootPart.CFrame.YVector)
		
		local renderDT = task.wait()
		Popper:Update(renderDT, camera.CFrame, camera.Focus)
2 Likes

I found a different solution, without using Poppercam

For anyone with similar issues or a scriptable camera, this is what I found to be helpful:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.