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

How do I detect camera movement?

I went to the wiki for help, but I couldn't find an event that helped me with my problem.

1 answer

There is no camera moved event but you can use the changed event since the CFame is the camera position.

This is a local script:-

local cam = game.Workspace.Camera

cam.Changed:connect(function(propString)
	if propString == 'CFrame' then -- only look for the CFrame changed 
		print('Camera Moved', cam.CFrame)
	end
end)

There are other ways of doing this, but this uses the existing events that Roblox provides.

Hope this helps.

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