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

Skinned Mesh Not Playing Animation, Scripting Issue?

Asked by 2 years ago
Edited 2 years ago

Don't know if to put it here but I'm currently trying to get a skinned mesh to play an animation looped indefinitely such as an idle npc. The animation runs seamlessly in the animation editor, but nothing happens when I try to run it in game. I do not know what is wrong. Does the script have an error?

local AnimationId = 10751121523

local Animation = Instance.new("Animation")
Animation.AnimationId = ("rbxassetid://%d"):format(AnimationId)
local AnimationTrack = script.Parent.Humanoid:LoadAnimation(Animation)
AnimationTrack.Looped = true
AnimationTrack:Play()

Screenshots of model: https://cdn.discordapp.com/attachments/735659530897195090/1013628455121854496/unknown.png https://cdn.discordapp.com/attachments/735659530897195090/1013628772504834128/unknown.png

Answer this question