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

The Walk/Run animations is not working?

Asked by
Nozyfo 2
4 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.

Here's a Local Script

local Player = game.Players.LocalPlayer
local anims = {"5283426957","5283485401","5283529976"}
local Tool = nil
local AnimScript = nil
local Active = true


script.Parent.Equipped:Connect(function()
    Tool = script.Parent
    AnimScript = Tool.Parent:WaitForChild("Animate")
    AnimScript:WaitForChild("toolnone"):WaitForChild("ToolNoneAnim")
    AnimScript.toolnone.ToolNoneAnim.AnimationId = "rbxassetid://5283297823" -- (Idle) Idle Prio

    AnimScript:WaitForChild("run"):WaitForChild("RunAnim")
    AnimScript.run.RunAnim.AnimationId = "rbxassetid://5292216509"

    AnimScript:WaitForChild("walk"):WaitForChild("WalkAnim")
    AnimScript.walk.WalkAnim.AnimationId = "rbxassetid://5292234920" -- (Walk) Movement Prio
end)

script.Parent.Unequipped:Connect(function()
    AnimScript:WaitForChild("toolnone"):WaitForChild("ToolNoneAnim")
    AnimScript.toolnone.ToolNoneAnim.AnimationId = "rbxassetid://"
end)

script.Parent.Activated:Connect(function()
    script.Parent.Hit:FireServer()
        if Active == true then
        local animation = Instance.new("Animation",  script.Parent.Parent)
        animation.AnimationId = "http://www.roblox.com/asset?id="..anims[math.random(1, #anims)]
        local chosenanim = script.Parent.Parent.Humanoid:LoadAnimation(animation)
        chosenanim:Play()
        Active = false
        wait(1.3)
        Active = true
    end
end)
0
Can you tell us if it errors or not, what error it produces? brokenVectors 525 — 4y
0
nothing Nozyfo 2 — 4y
0
What do you mean nothing? XLeMysterioX 22 — 4y
0
no errors it just said failed to load Nozyfo 2 — 4y

Answer this question