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
-- 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?
-- 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