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

How could I make an animation when welding a tool?

Asked by 6 years ago

So, I have already made the animations with my tool with the Character Creator Plugin and binding it, so now that I have the tool, how could I make it have like a new idle animation when I am welding the tool?

(Or if you could tell me how to delte the welding tool hand animation)

Thanks for reading!

2 answers

Log in to vote
0
Answered by 6 years ago
anim = Instance.new("Animation")
anim.Parent = script.Parent -- Or something else if desirable

Did you not know you could do that? ;)

0
That's not what he means lol User#20388 0 — 6y
Ad
Log in to vote
0
Answered by 6 years ago
repeat wait() until game.Players.LocalPlayer.Character
Tool = game.Parent
IDD = "1663688675" -- Animation ID
ID = script.Parent.Animation
ID.AnimationId = "rbxassetid://"..IDD

hum = game.Players.LocalPlayer.Character.Humanoid
animM = hum:LoadAnimation(script.Parent.Animation)
local Tool = script.Parent



Tool.Equipped:Connect(function(Load)
animM = hum:LoadAnimation(script.Parent.Animation)
current = animM
current:Play()
end)

I have that I think is good but I think the tool (a book) should be in the player's model when playing the game, should I clone it? Thats why your Script couldn't work

0
lol when a tool is equipped it automatically parents to the part in the character like right arm and your tool should be in starterpack so it goes into your backpack dareveloper 9 — 6y
0
on line two im not sure what you're trying to do if you want it nil then you dont have to assign it anything dareveloper 9 — 6y
0

Answer this question