My npc don't move for a second

so i made a script that make player go to npc and move around freely, but when i press e, i have to wait a second or to, then when i move it, it stopped moving for some times, anyways how would i fix this?
script:

local Character = script.Parent
local Npc = game.Workspace.Npc



UIS.InputBegan:Connect(function(Key, Chatted)
	if Chatted then
		return
	end

	if Key.KeyCode == Enum.KeyCode.E then
		local Player = game.Players.LocalPlayer
		Player.Character = Npc		
end
end)