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)

4 comments

0

Can you tell us if it errors or not, what error it produces?

0

nothing

0

What do you mean nothing?

0

no errors it just said failed to load