I've been trying to do a two-part JoJo animation tool, but the problem is the second animation refuses to load no matter what I do.
I've tried putting wait() at the very start of the script, copy and pasting the first animation line, also did an error and re-exporting the second animation, all of them failed.
The script is a local script, inside a Tool.
Code:
wait()
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:wait()
local hum = char:WaitForChild("Humanoid")
local mouse = plr:GetMouse()
local canMuda = true
while char == nil do
char.AncestryChanged:wait()
end
script.Parent.Activated:connect(function()
if canMuda == true then
canMuda = false
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://1405868584"
local track = hum:LoadAnimation(anim)
track:Play()
local MUDAA = Instance.new("Sound", char.Head)
MUDAA.SoundId = "rbxassetid://1405349581"
MUDAA:Play()
wait(2.5)
anim:Destroy()
track:Stop()
local newanim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://1405868584"
print(char)
local newtrack = hum:LoadAnimation(newanim)
newtrack:Play()
wait(0.7)
newtrack:Stop()
wait(3)
canMuda = true
end
end)

2 comments
Make sure you actually OWN both of those animations. That might be it.
I do own both animations. But for some reason the second animation just doesn't load in.