Custom Character Bugging Out When Jumping

I have created a custom character for the player. Currently it is controlled by a Humanoid Root Part which is the cube you see in the video. It works perfectly when I move around using WASD but as soon as I jump, the cube just flings away in a random direction. The ragdoll works by attaching a few parts with a ball and socket constraint and connecting the head to a “puppet block” using a rope. The puppet block copies the HRPs location and teleports there every few milliseconds. The ragdoll is not connected in any way to the HRP.

Here is my code.

local block = script.Parent.PuppetBlock
local hrp = script.Parent.HumanoidRootPart
while true do
	wait(0.05)
	block.CFrame = CFrame.new(hrp.Position.X, hrp.Position.Y + 4, hrp.Position.Z)
	print("Updated")
end

Any help is appreciated!

There is probably collision between different body parts.
Try setting all body parts CanCollide to false

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.