Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

This Animation is not playing for my tool. I still have not found a fix for it. What is going wrong?

script.Parent.Equipped:Connect(function()

    rp = game:GetService("ReplicatedStorage")
    Sword1Tool = script.Parent
    char = script.Parent.Parent

    rp.Sword1ConnectM6D:FireServer(Sword1Tool.BodyAttach)

    char.RightHand.ToolGrip.Part0 = char.RightHand
    char.RightHand.ToolGrip.Part1 = Sword1Tool.BodyAttach

    Sword1Idle = Sword1Tool.Sword1Idle
    Sword1Draw = Sword1Tool.Sword1Draw
    Sword1Swing = Sword1Tool.Sword1Swing
    char.Humanoid:LoadAnimation(Sword1Draw)
end)

script.Parent.Unequipped:Connect(function()
    rp.Sword1DisconnectM6D:FireServer()
end)

It outputs no error. What is wrong with this?

1 answer

Instead of "FireServer" make a variable for your animation. Then do "AnimationVariable:Play()"

This discussion is preserved as it was. New answers, comments, and votes are closed.