I have this animation I made in Blender and I am using CAUTIONEDS plugin to import the animation. In the plugins preview it works perfectly fine but ingame the character flings to the side where the real animation goes directly vertical.
When I imported my first animation I noticed that the characters are set up wonky so I fixed it with a script, which fixed my run animation and apparently this animation (in the preview). But now in game it does this… How would I fix it?
local player = game:GetService("Players").LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
-- Had to fix the Motor6D's or else the animations would be all wonky.
char:WaitForChild('HumanoidRootPart').RootJoint.C0 = CFrame.new(0,0,0) * CFrame.Angles(-90,0,0)
char:WaitForChild('HumanoidRootPart').RootJoint.C1 = CFrame.new(0,0,0) * CFrame.Angles(-90,0,0)
char.Torso.Neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(0,0,0)
char.Torso.Neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(0,0,0)
--Fixing Collisions for Animations and Climbing
char.Torso.CanCollide = false
char.Head.CanCollide = false
char.HumanoidRootPart.CanCollide = true
-- Adding Animations
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://102475746853356" --121754690221200
anim.Parent = char.Humanoid.Animator
anim.Name = "SPAWN_ANIM"
-- Changing walkspeed to 23. From the default 16.
char.Humanoid.WalkSpeed = 23
local spawnAnim = char.Humanoid.Animator:LoadAnimation(anim)
spawnAnim:Play()
This is the script that I made to do everything… Character wise.
I also want to point out that the dummy that im using for the preview has the same properties I changed in the script as the player
EDIT: I played the animation on the zombie during the game and it worked right. No idea whats different between the two other than one is being controlled