-- Credit to: @cool_guy57938 (aka Cobalt; Acid)
-- This script switches between normal and hammer animations automatically.
local tool = script.Parent
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local humanoid = char:WaitForChild("Humanoid")
local userInput = game:GetService("UserInputService")
-- // animation IDs //
-- normal animations
local normalIdleID = "rbxassetid://99314369318757"
local normalWalkID = "rbxassetid://82436976788404"
local normalRunID = "rbxassetid://76330324533361"
-- hammer animations
local hammerIdleID = "rbxassetid://101459788204850"
local hammerWalkID = "rbxassetid://92311528223084"
local hammerRunID = "rbxassetid://131744849726961"
-- // variables //
local isRunning = false
local isEquipped = false
-- // helper function to set animations //
local function setAnimations(idle, walk, run)
local animate = char:WaitForChild("Animate")
animate.idle.Animation1.AnimationId = idle
animate.idle.Animation2.AnimationId = idle
animate.walk.WalkAnim.AnimationId = walk
animate.run.RunAnim.AnimationId = run
-- disable default Roblox "tool hold" animation (stops arm/torso lock)
animate.toolnone.ToolNoneAnim.AnimationId = ""
end
(first part)