Hitbox Scheduler - streamline the process of scheduling hitbox's during animations

It’s pretty simple, it just renames the keyframe you want to start your hitbox at to “HitStart” so you can do AnimationTrack.KeyframeReached:Wait() or

local conn; conn = AnimationTrack.KeyframeReached:Connect(function(keyframeName)
 if not conn.Connected then return end

 if keyframeName == "HitStart" then
  conn:Disconect()

  -- Start hitbox here
 end
end)


Plugin: https://www.roblox.com/library/configure?id=10842307025#!/general

How to use

  1. Schedule the hitbox at the keyframe you want.
  2. Save the modified keyframe sequence as an animation.
  3. Play the animation and then use one of the two methods of listening for the AnimationTrack.KeyframeReached event I posted above to start the hitbox.
6 Likes

Another great resource by father wrello <3

2 Likes

There’s already KeyframeMarkers for this kind of stuff, so no need to reinvent the wheel here!

AnimationTrack:GetMarkerReachedSignal("HitStart"):Once(function()
	
end)
1 Like

When did Once get added? I can find no documentation on it.

1 Like

It got added in v530 or v531, you can check the updates’ documentations.