#Such a basic thing that never works for me and I can't figure out why

1 messages · Page 1 of 1 (latest)

mighty marsh
#

Animation REFUSE to work no matter what. This is so random and I don't know why.

local anim = script:WaitForChild("Animation")

local character = script.Parent
local humanoid = character:WaitForChild("Humanoid")

local animationTrack = humanoid:LoadAnimation(anim)

task.wait(3)
animationTrack:Play()

the local script is inside startercharacterscripts and the animation has a working id on it that works on NPCs but not players?? Not sure if this is the right place to ask it but someone help.

tiny aspen
#

Use humanoid:FindFirstChild("Animator"):LoadAnimation(anim)

halcyon totem
chilly mist
#

Is it an animation you made or one that's been published by another user. Sometimes you're required to give permission to assets you use I think unless I am talking about something else

#

If it's an animation by another user, use animation spoofer and publish it to roblox yourself and try it from there

short totem
#

use

#
Humanoid:FindFirstChildOfClass("Animator"):LoadAnimation(anim)
short totem
#

try changing animation priority to like action

tiny aspen
tiny aspen
halcyon totem
short totem
#

its really useful

#

it give you typechecking and its jsut lowkey faster

tiny aspen
glacial spear
#

try adding a wait at the beginning

#

to see if the problem is some variable

mighty marsh
mighty marsh
#

also wdym by that

#

overriding?

mighty marsh
#

this could be an animation issue, it only works for one animation i made 2 years ago? All other animations do not work WTF is wrong with roblox sstudio i geniunley can't create games like this

#

Of course I have a problem nobody else has??????????????

#

This is my code now
local Animation = Instance.new("Animation")

Animation.AnimationId = "rbxassetid://79286632545387"
local Humanoid = script.Parent.Humanoid
local AnimationTrack = Humanoid.Animator:LoadAnimation(Animation)

task.wait(1)
AnimationTrack:Play()

halcyon totem
glacial spear
#

or something like this

mighty marsh
#

I fixed it, it just doesn't let me use R6 animations as hard as I try and I had to go back to the legacy roblox studio page format????? Very wierd fix