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

I pasted my animation id into my character mesh on my seat, but it's not working?

Asked by 3 years ago

Here is the script for the seat:

seat = script.Parent
function added(child)
    if (child.className=="Weld") then
        human = child.part1.Parent:FindFirstChild("Humanoid")
        if human ~= nil then
            anim = human:LoadAnimation(seat.sitanim)
            anim:Play()
        end
     end
end

function removed(child2)
    if anim ~= nil then
        anim:Stop()
        anim:Remove()
    end
end

seat.ChildAdded:connect(added)
seat.ChildRemoved:connect(removed)

I input my animation id into the data, but it won't work.

0
did you get any errors in the developer console? if so please mention the error. NGC4637 602 — 3y

Answer this question