How do I attach a part to a character without it becoming one with the character and glitching out

I want to attach a part to a character without making it become one with the character completely and glitching out

https://streamable.com/0smo6u

I’ve tried finding solutions for it but none work (Motor6D, WeldConstraint, and Welding doesn’t work)

Can you provide an example of the problem? I’m having trouble understanding what you’re saying.

Sorry for late response
Could you recheck?

With the information you’ve provided, I cannot know what the problem is, although I can assure you that the following code brings up positive results on my end.

Have you tried setting you part massless - (part.Massless = true)?

game:GetService("Players").PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		local part = Instance.new("Part")
		local weld = Instance.new("WeldConstraint")
		
		weld.Part0 = character:WaitForChild("HumanoidRootPart")
		weld.Part1 = part; weld.Parent = part
		
		part.Anchored = false; part.CanCollide = true
		part.Massless = true
		part.Size = Vector3.new(3, 2, 20)
		part.CFrame = (
			character.HumanoidRootPart.CFrame +
			Vector3.new(0, 0, -part.Size.Z *.5)
		)
		part.Parent = workspace
	end)
end)
1 Like