function PlayerCamera.onEnter(D,J,I,f,z)local T=J.player;(coroutine.wrap(function()local J=T.Character or T.CharacterAdded:Wait()local I=J.PrimaryPart onCharacterAdded(D,T,J)MonsterManager.createInterestWhileTrue(I.Position,NOISE_GENERATED,function()return D.current=="\099\097\109\101\114\097"end)end))()connections.leaveCamera=LeaveCamera.OnServerEvent:Connect(function(J)if J==T then D:endCamera()end end)end

function PlayerCamera.onEnter(stateMachine, serverPlayer, event, from, to)
	local player = serverPlayer.player

	coroutine.wrap(
		function()
			local character = player.Character or player.CharacterAdded:Wait()
			local primaryPart = character.PrimaryPart

			onCharacterAdded(stateMachine, player, character)

			MonsterManager.createInterestWhileTrue(
				primaryPart.Position,
				NOISE_GENERATED,
				function()
					return stateMachine.current == "camera"
				end
			)
		end
	)()

	connections.leaveCamera =
		LeaveCamera.OnServerEvent:Connect(
		function(sendingPlayer)
			if sendingPlayer == player then
				stateMachine:endCamera()
			end
		end
	)
end
