Hey so i dont know and im not sure if its because of the script but could anyone run throught the script and check if anythings going on thats causing this script to not play the animation? cause when i did a lot of debug it said that the animation was played but it wasnt
-- Made by Frosty
local character = script.Parent
local hum = character:WaitForChild("Humanoid")
-- checks for animation
local animation = script:FindFirstChildOfClass("Animation")
if not animation then
warn("animation doesnt exit")
return
end
-- plays da aniamtion
local anim = hum:LoadAnimation(animation)
anim:Play()
-- checks for startup
local startupSound = script:FindFirstChild("Startup")
if startupSound and startupSound:IsA("Sound") then
startupSound:Play()
else
warn("startup doesnt exist)
end
Check for AnimationPriority and also load the animation through Animator instead of Humanoid.
hm okay, like the priority is fine but i will try that thx
1 Like
still nothing, im not sure if its cus of the animation or nah imma send vid
The Animation ID might not be right.,
What is the path of your script? (where is it located?)
StarterCharacterScripts, as it gets the character by script.Parent (im assuming)
starter character scripts
word limitttttt
-- Made by Frosty
local character = script.Parent
local hum = character:WaitForChild("Humanoid")
-- checks for animation
local animation = script:FindFirstChildOfClass("Animation")
if not animation then
warn("animation doesnt exit")
return
end
-- plays da aniamtion
local anim = hum:LoadAnimation(animation)
anim:Play()
if anim.IsPlaying then
print("Animation is playing")
end
-- checks for startup
local startupSound = script:FindFirstChild("Startup")
if startupSound and startupSound:IsA("Sound") then
startupSound:Play()
else
warn("startup doesnt exist")
end
could you try this and tell me if anything prints in your output?
i cant send vid “unexpected error” also sure
1 Like
21:10:31.534 Animation is playing - Server - PlayAnimation:17
Try republishing the animation, and put priority Action
So that means it is indeed playing, let me write a quick line for the AnimationPriority because that might be the problem
bet
word limittttttttttttttttt
-- Made by Frosty
local character = script.Parent
local hum = character:WaitForChild("Humanoid")
-- checks for animation
local animation = script:FindFirstChildOfClass("Animation")
if not animation then
warn("animation doesnt exit")
return
end
-- plays da aniamtion
local anim = hum:LoadAnimation(animation)
anim.Priority = Enum.AnimationPriority.Action4
anim:Play()
if anim.IsPlaying then
print("Animation is playing")
end
-- checks for startup
local startupSound = script:FindFirstChild("Startup")
if startupSound and startupSound:IsA("Sound") then
startupSound:Play()
else
warn("startup doesnt exist")
end
Try this
still nothing
word limittttttttt
It’s probably a bug in the engine itself
wait im gonna try it in a npc
word limitttt
Your animation id is either wrong or as @tolinsE3421 said.