(2nd time posting about this because the first time no one responded )
I have an animation for a minigun and for some reason certain parts of the minigun do not rotate in game as they do in the animation.
Animation in moon animator
Animation in game
The most obvious part is the barrel but even some of the smaller parts rotate in completely different directions.
So far I’ve tried:
Reuploading the animation multiple times
Using Roblox’s default animator to see if it was a Moon Animator bug
Disabling all other animations to see if the bug was to do with multiple animations playing at once
Remaking the unions in case that was somehow messing up the animations
This is how the model is setup
theres a Motor6D in the character’s Right Arm that is connected to the Main part of the model
How is the barrel rotated? With the animation? With a HingeConstraint? With a Motor?
Do Animations get affected by Parts that are CanCollide true? If so and you have Parts touching other Parts try using CollisionGroups.
Since it’s the Scripting Support forum please post your script as well so others can see how you are doing this. Please put 3 backticks (```) before and after the script so it formats properly.
The barrel gets rotated through the animation, all of the parts of the model have CanCollide set to false so it shouldn’t be a collision issue.
The whole script is a bit long since it handles shooting the minigun and all of that but here’s all of the code that handles Motor6D’s and equipping/idle animations
local MinigunModel = game.ReplicatedStorage["Minigun Model"]:Clone()
MinigunModel.Parent = Character
local MinigunM6D = Instance.new("Motor6D")
MinigunM6D.Parent = Character["Right Arm"]
MinigunM6D.Name = "MinigunM6D"
MinigunM6D.Part0 = Character["Right Arm"]
MinigunM6D.Part1 = MinigunModel.Main
local AnimationsFolder = game.ReplicatedStorage.Animations.Skills.PowerArmor.Minigun
local ArmIdle = Animator:LoadAnimation(AnimationsFolder.MinigunArmIdle)
local MinigunToGun = Animator:LoadAnimation(AnimationsFolder.MinigunToGun)
local MinigunGunModeIdle = Animator:LoadAnimation(AnimationsFolder.MinigunGunModeIdle)
local MinigunGunModeFire = Animator:LoadAnimation(AnimationsFolder.MinigunGunModeFire)
ArmIdle:Play()
Ability.Equipped:Connect(function()
local EndCon = nil
ArmIdle:Stop()
MinigunToGun:Play()
MinigunFired:FireAllClients("Equip")
EndCon = MinigunToGun:GetMarkerReachedSignal("END"):Connect(function()
EndCon:Disconnect()
EndCon = nil
MinigunToGun:Stop()
MinigunGunModeIdle:Play()
ReadyToFire = true
end)
end)