- What do you want to achieve? Keep it simple and clear!
I want these animations to play in studio so I can test the game without publishing the new update and see it right away
- What is the issue? Include screenshots / videos if possible!
The animations play in the game but not in roblox studio
Animations in-game:
Animations in roblox studio:
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried copying the ids multiple times.
Most dev forums told me that they need to have the same owner but it already does
code from tutorial:
local function animateMob(object)
local humanoid = object:WaitForChild("Humanoid")
local animationsFolder = object:WaitForChild("Animations")
if humanoid and animationsFolder then
local walkAnimation = animationsFolder:WaitForChild("Walk")
if walkAnimation then
local animator = humanoid:FindFirstChild("Animator") or Instance.new("Animator", humanoid)
local walkTrack = animator:LoadAnimation(walkAnimation)
wait()
walkTrack:Play()
end
else
warn("ong what happened to the mob")
end
end
workspace.Mobs.Enemies.ChildAdded:Connect(animateMob)