#Animation not working

1 messages · Page 1 of 1 (latest)

nimble grove
#
local boxOrig = script.Parent
local boxModel = game:GetService("ReplicatedStorage"):WaitForChild("Box")

pp.Triggered:Connect(function(player)
    local char = player.Character
    if not char then return end

    local torso = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
    if not torso then return end

    if char:FindFirstChild("CarriedBox") then return end

    local boxClone = boxModel:Clone()
    boxClone.Name = "CarriedBox"
    boxClone.Parent = char

    local offset = CFrame.new(0, 1, -1.5)
    boxClone:SetPrimaryPartCFrame(torso.CFrame * offset)

    local weld = Instance.new("WeldConstraint")
    weld.Part0 = torso
    weld.Part1 = boxClone.PrimaryPart
    weld.Parent = boxClone.PrimaryPart

    boxOrig:Destroy()
    pp.Enabled = false

    local humanoid = char:WaitForChild("Humanoid")
    local animator = humanoid:FindFirstChildOfClass("Animator")

    local anim = Instance.new("Animation")
    anim.AnimationId = "rbxassetid://126549707231736"
    anim.Parent = script
    local track = animator:LoadAnimation(anim)
    track.Looped = true
    track:Play()

    print("Playing pick-up animation")
end)```
#

It's basically a static animation that changes the position of player hands, torso and head Box grabbing
But when I pick up the box nothing happens
I see the "Playing pick-up animation" printed in output, but no animation

midnight swan
#

try printing Animator to make sure it's not nil

#

and check for any other errors/warnings

ionic sequoia
nimble grove
#

but i just tried smth...

#

R15 anim works on R6 now

#

and R6 animations aren't working on R6

dawn geode
#

Changing thr animations to r6 in avatar tab does not change the actual model

nimble grove
#

Idk but I enabled r6 in avatar setting of my place

#

There is a new R6 in Roblox

#

Which is R15, just with an animation of R6

dawn geode
#

Yea so thats r15 not r6

#

If it has 15 moving parts it's r15

nimble grove
#

But there was 6 moving parts

austere shuttleBOT
#

studio** You are now Level 1! **studio

nimble grove
#

While it was looking like r15

dawn geode
#

Can I see a ss of a char in the game?