#play anim on a viewport frame

1 messages · Page 1 of 1 (latest)

nimble void
#

so im trying to play anim animation on this rig which is inside the viewport frame but i think im doing it wrong cus it prints its playing but doesnt rlly look like its playing the animation

    modelClone.Parent = viewportFrame
    modelClone.PrimaryPart = modelClone:FindFirstChild("HumanoidRootPart")
    modelClone:PivotTo(npc.PrimaryPart.CFrame * CFrame.Angles(0, math.rad(120), 0))
    
    local hum = modelClone:FindFirstChild("Humanoid")
    local animator = hum:FindFirstChild("Animator")
    local anim = RPS.Animations.Npc.Civilian.QuestGiver.Idle
    local track = animator:LoadAnimation(anim)
    track.Looped = true
    track:Play()
    
    if track.IsPlaying then
        print("playing")
    end ```
nimble ether
#

No errors?

restive turtle
nimble void
hexed geyser
#

if you haven't, i recommend you try it.

#

If you do and it prints 0, then it most likely hasn't loaded yet.

#

Else if it prints the correct animation length then we'll have to look into this further

hexed geyser
nimble void
hexed geyser
nimble void
hexed geyser