Character always facing same direction with weldconstraint ring part

Hey. Please see video below and code


I want the character to face the position I am moving (like normal) but its locked facing the same direction even though I can move with the arrow keys just fine.

Code below…

local glowingPart = game.ServerStorage.GlowingPart

local function onCharacterAdded(character)
	print("character added")
	local ParticlePart = glowingPart:Clone()

    -- put the ring at the same level as their feet
	ParticlePart.CFrame = character.HumanoidRootPart.CFrame * CFrame.Angles(0, math.rad(90), math.rad(90)) + Vector3.new(0,-3,0)
	ParticlePart.CanCollide = false

	ParticlePart.Parent = character.HumanoidRootPart

	local Weld = Instance.new("WeldConstraint")
	print("weld made")
	Weld.Parent = character.HumanoidRootPart
	Weld.Part0 = ParticlePart
	Weld.Part1 = character.HumanoidRootPart
	
end

local function onPlayerAdded(player)
	player.CharacterAdded:Connect(onCharacterAdded)
end

game.Players.PlayerAdded:Connect(onPlayerAdded)

Reverse this, Part0 should be the HumanoidRootPart and Part1 should be ParticlePart.

2 Likes

Did not work, same issue persists

Hmm, try setting AutoRotate to true, but keep the Part0 and Part1 reversed:

local function onCharacterAdded(character)
	print("character added")
	local ParticlePart = glowingPart:Clone()
character.Humanoid.AutoRotate = true -- here
    -- put the ring at the same level as their feet
	ParticlePart.CFrame = character.HumanoidRootPart.CFrame * CFrame.Angles(0, math.rad(90), math.rad(90)) + Vector3.new(0,-3,0)
	ParticlePart.CanCollide = false

	ParticlePart.Parent = character.HumanoidRootPart

	local Weld = Instance.new("WeldConstraint")
	print("weld made")
	Weld.Parent = character.HumanoidRootPart
	Weld.Part0 = character.HumanoidRootPart
	Weld.Part1 = ParticlePart
1 Like

Hmmmmmmmmm. Still doesnt work.

I’m not sure as it should work if Part0 is the player but I’ll test later when I’m on pc

Just a wild guess but I believe the humanroot is also what controls the direction of the player so it may interfere with moving the player if you parent the part to the root of the player.

Maybe try parenting the part in the torso or something different?

Just a wild guess.