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

How to have a Custom animation in a custom Sword? [closed]

Asked by 5 years ago
Edited 5 years ago

How do you add when you click to attack with the sword the animation plays?

1
Use the Humanoid's LoadAnimation function. Sonnenroboter 336 — 5y
0
OOPSIE! Sonnenroboter 336 — 5y
0
Scriptinghelpers is not a request site. Click Moderation and report this! Sonnenroboter 336 — 5y

Closed as Not Constructive by Sonnenroboter, RetroGalacticGamer, namespace25, KDarren12, Nowaha, and Goulstem

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 5 years ago
local animation = 
local tool = 
local humanoid =

local anim = humanoid:LoadAnimation(animation)

tool.Activated:Connect(function()
    anim:Play()
end)

I don't know the setup you have so you'd have to add in the animation, humanoid, and tool variable

Ad