I am wanting to make my dragon play a animation.
In a script my dragon is welded to a hitbox part that is connected to a alignposition and alignorientation. It doesn’t decide to move and not play the animation of the baby dragon. When I put the humanoid, motor6Ds and animation.
There is no errors it prints that its playing but nothing is happening
this is the build of it
and the script:
-- sets the position of the hitbox of the dragon to the HumanoidRootPart
Dragon:SetPrimaryPartCFrame(HumanoidRootPart.CFrame)
-- creating the attachments to connect the alignposition and alignorientation
local CharacterAttachA1 = Instance.new("Attachment",HumanoidRootPart)
CharacterAttachA1.Name = "CharacterAttachA1"
CharacterAttachA1.Orientation = Vector3.new(0,-180,90)
local CharacterAttach2A2 = Instance.new("Attachment",HumanoidRootPart)
CharacterAttach2A2.Name = "CharacterAttach2A2"
CharacterAttach2A2.Orientation = Vector3.new(-0, 178, 90)
local DragonAttachment = Dragon.PrimaryPart.HBA
local DragonAlignPosition = Dragon.PrimaryPart.AlignPosition
local DragonAlignOrientation = Dragon.PrimaryPart.AlignOrientation
-- Setting the properties of the alignposition and alignorientation
DragonAlignPosition.MaxForce = 500000
DragonAlignPosition.Responsiveness = 20
DragonAlignOrientation.MaxTorque = 500000
DragonAlignOrientation.Responsiveness = 20
DragonAlignPosition.Attachment0 = DragonAttachment
DragonAlignPosition.Attachment1 = CharacterAttachA1
DragonAlignOrientation.Attachment0 = DragonAttachment
DragonAlignOrientation.Attachment1 = CharacterAttach2A2
Dragon.PrimaryPart.Position = HumanoidRootPart.Position + Vector3.new(0,2.5,0)
-- welds the model with the module dragon
DragonModel:WeldModel(Dragon:FindFirstChild("BabyDragon"),Dragon.PrimaryPart)
DragonModel:WeldModel(Dragon:FindFirstChild("TeenDragon"),Dragon.PrimaryPart)
Dragon.Parent = Character
Dragon:FindFirstChild("BabyDragon"):FindFirstChild("Humanoid"):LoadAnimation(Dragon:FindFirstChild("BabyDragon"):FindFirstChild("MovingAnim")):Play()
print("Playing animation")
