Rotating a NPC not working as intended

To make it clear, my goal is to increase the HumanoidRootPart’s orientation when the player is holding a GUI button. This is the result:


The code I’m using:

spawn(function()
	while wait(.1) do
		if ay == true then
			game:GetService("TweenService"):Create(npc.HumanoidRootPart,TweenInfo.new(.1),{Orientation = Vector3.new(npc.HumanoidRootPart.Orientation.X,npc.HumanoidRootPart.Orientation.Y+1,npc.HumanoidRootPart.Orientation.Z)}):Play()
		end
	end
end)

Not only that, but I also tried to weld the HRP into a part that is rotating, the humanoid will refuse and doesn’t want to rotate against its will. Any suggestions are appreciated.

Maybe you could use the same approach I use to rotate models / multiple parts? what I do is I create a “base” part and tween that part. But I also un-anchor all other parts and weld them to the base part. This should make all other parts rotate relative to the base part. I use this plugin to weld parts to a specific base part.

1 Like