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?
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.