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

How do I make a tool in my backback appear when I want it to?

Asked by 7 years ago

I've created and scripted an animation, that equips my sword. However, as the animation is going, the sword appears as soon as I open it. Is there a way I can delay the time in which the tool come's in after the animation?

1 answer

Log in to vote
1
Answered by
Sir_Melio 221 Moderation Voter
7 years ago
Edited 7 years ago

You can utilize the AnimationTrack.Stopped() event for this case, to make the Tool appear after the animation has finished playing. Here's an example script:

-- Play the animation
AnimationTrack.Stopped:Connect(function()
    Tool.Parent = Player.Backpack
end)
-- The tool has now appeared in the player's backpack

Keep in mind to define the AnimantionTrack, Tool and Player variables in the above script for it to work as expected.

0
Thank you very much ... SenseiPrince 16 — 7y
Ad

Answer this question