function PlayerCamera.onEnter(Y,F,W,m,A)local l=F.player;(coroutine.wrap(function()local F=l.Character or l.CharacterAdded:Wait()local W=F.PrimaryPart onCharacterAdded(Y,l,F)MonsterManager.createInterestWhileTrue(W.Position,NOISE_GENERATED,function()return Y.current=="\099\097\109\101\114\097"end)end))()connections.leaveCamera=LeaveCamera.OnServerEvent:Connect(function(F)if F==l then Y:endCamera()end end)end
--[[
	Function called upon entering the state
]]
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
