Why does my character not move when I turn it into a NPC

the plan was to make it so the character takes over an NPCs body and then controls it
the script turns the player into the npc but afterward he can’t move.


			player.Character = newModel
			newModel.Parent = repStorge
			newModel.Parent = workspace 
			newModel:SetPrimaryPartCFrame(oldCFrame)
			oldModel.Parent = repStorge
		
			--newModel:SetPrimaryPartCFrame(oldCFrame)
			oldModel.Parent = repStorge
		  for i,v in pairs(newModel:GetDescendants()) do
				if v:IsA("BasePart") then
					v.Anchored = false
				end
		  end

Rigs by default do not contain the controls a players character would have, if you would want to access these controls you can find them in the players PlayerScripts, you would probably have to change some stuff in it to make it actually work though