So, im gonna cut a bit cause if not this would be a bible, the gist is, im trying to make a combat system (if details need be, i could go into it, but lets keep it in the important part), recently i wanted to make the hitboxes animation-accurate. how so? well Animation Events of course, so i spend my day remaking the animations to include animation events… and that brings us here
the system just. Doesnt wanna work, i have checked the whole script, but when i connect the hitbox making (long story, basically a cool module script i made), nothing happens the marker is reached, it does respond yes, the function is called, but the function never is bound to .RenderStepped
for the nature of this issue, i cant really show any gameplay or anything that shows a significant error, the best i can provide is the lack of prints from the function im binding to .RenderStepped

I have searched countless posts in here and other hideous spots of the internet to no avail, i dont know what is it that im doing wrong, if there is any alternative to this that would work i’d be willing to accept a rewrite (as long as it doesn’t have to do with :Disconnect(), i cant get that thing to work)
And as a last thing, ill leave the part of the script that has the problem
--more code that is not relevant to this, *Yes.* i have checked if i have all services and variables.
else
print("GG GOG DID IT")
if ComboCount == 1 then
--check if it is the first punch
print("First Punch")
PunchDebounce.Value = true
local PunchSwift1Anim = game.ReplicatedStorage.Animations.Player.PunchSwift1
local PunchSwift1AnimTrack = Humanoid:LoadAnimation(PunchSwift1Anim)
PunchSwift1AnimTrack:Play()
print("Played Animation.")
--create the hitbox module function
local function FirstSwiftPunch()
print("Sent Hitbox Data.")
local DamageSent = (1 + (Values.Stats.StrengthAdded.Value / 10) * Values.MultipliersAndBonuses.DamageMultiplier.Value) + Values.MultipliersAndBonuses.DamageBonus.Value
DamageHandler.Hitbox(Player.Character.HumanoidRootPart, Character.RightHand, 1, -0.5, DamageSent, 0, false, false, 0, {}, 0)
end
--[[a quick function i made to try to fix the issue, it receives a binary input and binds or unbinds the event accordingly **THIS IS ALSO WHERE THE ISSUE SUPPOSEDLY LIES**]]--
local function SwiftBinder1(Binder)
if Binder == 0 then
print("Bind")
RunService:BindToRenderStep("FirstSwiftPunch", Enum.RenderPriority.First.Value, FirstSwiftPunch)
else
print("Unbind")
RunService:UnbindFromRenderStep("FirstSwiftPunch")
end
end
--get the marker reached signal and send the proper binary to the Binder
PunchSwift1AnimTrack:GetMarkerReachedSignal("HitboxStart"):Connect(function(ParamString)
print(ParamString)
SwiftBinder1(0)
end)
PunchSwift1AnimTrack:GetMarkerReachedSignal("HitboxEnd"):Connect(function()
SwiftBinder1(1)
end)
--not really important, animation finished, endlag + cooldown occurs, and the player can now tap again to attack
PunchSwift1AnimTrack.Stopped:Wait()
wait(0.05)
print("Attack Finished")
HitboxDelay.Value = false
PunchDebounce.Value = false
end
end
sorry for the bother and thanks in advance to y’all!