Cframe not updating

i have this simple script

	local cameraA = CurrentCamera.CFrame
	local hrpA = HumanoidRootPart.Position
	
	while task.wait(1.7) do
		print("cam " .. tostring(cameraA))
		print("hrp " .. tostring(hrpA))
	end

but the cframes still stay the same in the console?
image

You’re never updating the positions in the variables.

local cameraA = CurrentCamera.CFrame
local hrpA = HumanoidRootPart.Position

while task.wait(1.7) do
   cameraA = CurrentCamera.CFrame
   hrpA = HumanoidRootPart.Position

	print("cam " .. tostring(cameraA))
	print("hrp " .. tostring(hrpA))
end
2 Likes