Dragon attachment isn't sticking to players attachment?

So I have made a dragon and want it to be connected to the player and not make it spin around and go crazy. The Dragons Parts are all unanchored and cancollide = false. They are all welded to a hitbox. When I had the dragon following the player it would spin around crazy maybe resizing the hitbox to the size of the dragon would fix it. But it didn’t and this is the result of that.

Script:

local function equipDragon(player,Dragon,Slot)
local char = player.Character

if Dragon ~= nil and char ~= nil then
	Dragon.Name = player.Name..Slot
	
	if char:FindFirstChild(player.Name..Slot) then
		char[player.Name..Slot]:Destroy()
	end
end

if char.HumanoidRootPart:FindFirstChild("AttachChar") then
	char.HumanoidRootPart:FindFirstChild("AttachChar"):Destroy()
end

Dragon:SetPrimaryPartCFrame(char.HumanoidRootPart.CFrame)

local DragonStuff = Dragon:FindFirstChild("DragonStuff")

local CurrentModel = Dragon.PrimaryPart.Size

local AttachChar = Instance.new("Attachment")
AttachChar.Name = "AttachChar"
AttachChar.Parent = char.HumanoidRootPart

if DragonStuff.DragonType.Value == "Air" then
	AttachChar.Position = Vector3.new(1,1,0) + CurrentModel
elseif DragonStuff.DragonType.Value == "Land" then
	AttachChar.Position = Vector3.new(1.5,0.2,0) + CurrentModel
end

local AttachDragon = Instance.new("Attachment")
AttachDragon.Parent = Dragon.PrimaryPart
AttachDragon.Name = "AttachDragon"

local alignPosition = Instance.new("AlignPosition")
alignPosition.MaxForce = 25000
alignPosition.Attachment0 = AttachDragon
alignPosition.Attachment1 = AttachChar
alignPosition.Responsiveness = 25
alignPosition.Parent = Dragon

local alignOrientation = Instance.new("AlignOrientation")
alignOrientation.MaxTorque = 25000
alignOrientation.Attachment0 = AttachDragon
alignPosition.Attachment1 = AttachChar
alignOrientation.Responsiveness = 25
alignOrientation.Parent = Dragon

Dragon.Parent = char

end

Did you forget to anchor this by any chance?

its all unanchored just how its suppose to be…

Then maybe CanCollide? or what?

I can name one possible fix, you need to anchor this

I anchor all of it it won’t move

The last thing I can advise is to use TweenService
https://developer.roblox.com/en-us/api-reference/class/TweenService

How am I suppose to tween consistantly to the attachment? Idk

No one has a solution i guess :frowning:

Update: I used align positions and orientation again to see if it works it does! but the issue is I want the attachments to be rotated automatically to where the player is looking at.

You can still do this, I have just recently done it for my Puppy Simulator, you’ll need to mess around with the Attachment’s orientation etc to make it line up, my suggestion would be to keep plugging around until you get what you want.

You will need an attachment positioned ahead of the player’s HumanoidRootPart for the orientation to align with.

Any queries drop me a DM - Astral#0003