Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My animation wont play when it inside the script?

Asked by 5 years ago

I want my script so it plays the animation inside of it but it does not and does not give an error print on output. My script so far

local char = script.Parent
local hum = char:WaitForChild("Humanoid")
local animation = hum:LoadAnimation(script.Animation)
wait(5)
if char ~= nil then 
    animation:Play()
end

I do not know the problem, explain pls!

0
This might be caused the the animation priority https://developer.roblox.com/api-reference/enum/AnimationPriority User#5423 17 — 5y
0
Where is this located, and is it a local or server script? Aimarekin 345 — 5y
0
it is located in the animation plugin 0_Halloween 166 — 5y

Answer this question