RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"script a swing tool animation"
-- local script local tool = script.Parent local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local animation = Instance.new("Animation") animation.AnimationId = "rbxassetid://123456789" -- Replace with your swing animation asset ID local function playSwingAnimation() local animTrack = humanoid:LoadAnimation(animation) animTrack:Play() end tool.Activated:Connect(playSwingAnimation)