Trouble with welds

Hello again, I’ve tried to find some post to help me with my problem, but I haven’t been able to identify anything that could help me. My problem is that the part welded to my character’s head isn’t attached to the head whenever I walk or run. I’ve only used welds once before so I’d really like any help.

Heres part of my script so far

	
	for i, v in ipairs(players:GetPlayers()) do	
		print(v.Name)
		
		local character = v.Character
		local head = character:WaitForChild("Head")

		local aEC = aE:Clone()
		
		aEC.CFrame = head.CFrame * CFrame.new(-.15,.1,-.5)
		local weld = Instance.new("Weld")
		weld.Part0 = aEC
		weld.Part1 = head
		weld.C0 = aEC.CFrame:Inverse() * head.CFrame
		weld.Parent = weld.Part0
		
		aEC.Parent = workspace	
		
	end
end

Heres a video as well if that helps

its probably the velocity inheritance on the particle emitter

1 Like

Wow that was an easy fix ty!

(characters)

1 Like