I’m making an idle animation for a character. It has a sword and a sheath aswell which iv accounted for but it still wont play? Heres a clip of what happens. It should play at the start.
I’m not using the startercharacterscript and setting the idle animation as I will have multiple playable characters. Here is my code if anyone could help me work out what’s wrong? I also used moon animator for the animations.
local Anim = RS.Animations.SamSheathedIdle
local Players = game:GetService(“Players”)
local Player = Players.LocalPlayer
repeat wait() until Player.Character
local Char = Player.Character
local Hum = Char:WaitForChild(“Humanoid”)
local Animation = RS.Animations.SamSheathedIdle
local AnimController = Hum:FindFirstChildOfClass(“AnimationController”)
if AnimController then
local AnimTrack = AnimController:LoadAnimation(Anim)
AnimTrack:Play()
else
AnimController = Instance.new(“AnimationController”)
AnimController.Parent = Hum
local AnimTrack = AnimController:LoadAnimation(Anim)
AnimTrack:Play()
end
This is my welding script aswell incase that may be an issue
Humanoids don’t contain AnimationControllers? I believe you made a mistake, replace "AnimationController" with "Animator".
An AnimationController was a stripped down version of Humanoid to play animations. It’s useless now because you can just directly use the Animator. Parenting an AnimationController to a Humanoid will make the Animator think the character model is the humanoid.
Still the same thing, im used moon animator so that may be an issue? Do you think its best if I just use the Animate script from startercharacterscript?
I apologise for asking again but what’s the best way to set an idle animation with an accessory that’s connected via motor6d as the animate animate local script doesn’t seem to work neither does playing it directly as the with animation controller as it still plays whilst moving. If you could just give me some pointers on how to set the idle as the idle plays whilst the movement script.