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

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

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

✓ Accepted answer

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.

1 comment

0

Thank you very much ...

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