I am trying to make an idle animation, and it get messed up when loading. Any advice?
Here is the code that loads in the animation. It clearly plays the animation, just a wierd version of the same.
local WorldViewModel = tool.WorldView.BodyAttach
local IdleAnimation = tool:WaitForChild("Idle")
tool.Equipped:Connect(function()
local plr = PlayerService:GetPlayerFromCharacter(tool.Parent) -- ignore
local char = plr.Character or plr.CharacterAdded:Wait()
local anim = char.Humanoid:LoadAnimation(IdleAnimation)
anim:Play()
Ive tried a few different types of animations, not just this one. They are all a mess
local WorldViewModel = tool.WorldView.BodyAttach
local IdleAnimation = tool:WaitForChild("Idle")
tool.Equipped:Connect(function()
local plr = PlayerService:GetPlayerFromCharacter(tool.Parent) -- ignore
local char = plr.Character or plr.CharacterAdded:Wait()
local anim = char.Humanoid:LoadAnimation(IdleAnimation)
anim.Priority = Enum.AnimationPriority.Idle
anim:Play()