Making NPC's camera to the player

so I wanna know how do I get the player’s character?

local Npc = game.Workspace.Npc
local camera = workspace.CurrentCamera
local Player = game.Players.LocalPlayer
local Lol = game.Workspace.Lol

UIS.InputBegan:Connect(function(Key, Chatted)
	if Chatted then
		return
	end
	local Player = game.Players.LocalPlayer
	if Key.KeyCode == Enum.KeyCode.E and Player.Character = Player.HumanRootPart then (this humanrootpaart, what do i change it to to make it so that the system decect the player's camera?)
		camera.CameraSubject = Npc.Humanoid
		Player.Character = Npc

	end
	if Key.KeyCode == Enum.KeyCode.Q then
		camera.CameraSubject = Lol.Humanoid
		Player.Character = Lol

	end
	
end)
1 Like
local character = game.Players.LocalPlayer.Character
1 Like

Player.CharacterAdded:Connect(fuction(Chararacter)