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

I want to make an animation into tool script. But how?

Asked by 6 years ago

Leftclick tool = Load animation. I need help!

0
There are plenty ways to make animation to work on tools. Here is a script you can do. https://gyazo.com/6d5bdf39c32c4c50ea010fc816db2cae In this photo will show you how to start and how to begin! So, let's begin with the local script. dog6779 25 — 6y

1 answer

Log in to vote
0
Answered by
dog6779 25
6 years ago

Here is the script for the local script:

-- make sure the change the animationId value in the tool!
wait(0.5)
local Tool = script.Parent
local AnimationId = Tool.AnimationId.Value
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
local Cooldown = false
local Animation = Instance.new("Animation")
Animation.AnimationId = "rbxassetid://"..AnimationId
Animation.Parent = Humanoid
Tool.Activated:Connect(function()
    local Anim = Humanoid:LoadAnimation(Animation)
    Anim:Play()
end) -- put a IntValue in the tool and name it AnimationId then just paste the id of the animation you want in the IntValue number label.

Now, for that weld you saw thats for the weld for the handle to make sure it's in place if you wanna get it here is the link.

https://www.roblox.com/library/1065742801/qPerfectionWeld

Now, to the Animotion ID for it you see that Animation Id Vaule? https://gyazo.com/be0a31530331ce229ee7fa030bb9ecbb

Click with your right mouse and click IntValue and name it AnimationId. and when you click it. You will see the properties here.

https://gyazo.com/0b0425d1623d72dd35d947679d7be53a

Now you will see the Value put the id for the Animation you wanna add like this

https://gyazo.com/3b614fca7faf81bd39e3bcb8105f5228 https://gyazo.com/a563ca4da28ced826532ffef2da81b54

And there you will see those numbers make sure you copy and paste them in the value. and there you go you did a good job!

-dog6779

-P.S hope this works! if not why not reply this answer and I will able to help.

0
And if you want the link for this tool here it is. https://www.roblox.com/library/1501134263/Testing-2 dog6779 25 — 6y
0
@dog6779 Thank you. HeisukeKexji 8 — 6y
0
Also, if you are doing in a group you must go to the group animation then after that you get the id there. Make sure that the animation you made in the animation group that you chosen on. dog6779 25 — 6y
Ad

Answer this question