Need help with combo system

So I’m working on this combat system and I need just one thing:

Is there any way to script a “timer thing” into the system?

I’m talking about a “if player doesn’t press a key within a second the combo resets” type of timer.
I’m saying this because I’m almost finished with the combat system!

Please reply if you have the answer! :smiley:

1 Like

you can use delay to that like an example would be like

if combo == 1 then
whatever your doing in your system like damage or firing remotes or whatever
     delay(TIME,function()
            if combo == 1 then
                 reset the combo
           end
     end)
end
2 Likes