Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How could I make an animation when welding a tool?

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

anim = Instance.new("Animation")
anim.Parent = script.Parent -- Or something else if desirable

Did you not know you could do that? ;)

1 comment

0

That's not what he means lol

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

3 comments

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

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

0

This discussion is preserved as it was. New answers, comments, and votes are closed.