How Can I make a Parent(a mesh) Follow its children which is a bone?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? I am trying to damage a Humanoid when a player uses attack! But turns out Roblox’s engine doesn’t make it so that the Parent wont follow its children’s Position!

  2. What is the issue? As stated parent is not following its children’s position.(mesh needs to follow the bone’s position)

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub? I did look for the answer but only one thing popped up, which is that welding bone and a mesh but it still doesn’t follow the position of the children

I tried to make it on first creating a part as a hitbox then checked if something hits it then will check if it has a humanoid or not if it has then it will Give damage but still doesn’t work :confused:

Code:

		if th.Parent:FindFirstChildOfClass("Humanoid") then
			local Humanoidd =  th.Parent.Humanoid
			Humanoidd:TakeDamage(10)
		end
	end)