Hello everyone.
This is my first ever submission as a community asset, so please leave any feedback as I love to understand and improve based on responses.
This is a rather small one and I’m sure a lot of you might’ve made your own. I have quickly created a Stun Module that can be used by anyone.
Inside this model includes the Stun Module (of course), an Action Checker, and a script to remove stun after a certain amount of time has passed.
The code below is intended for your combo. The action checker checks for the “IsStunned” attribute given by the module. If it returns true, then the function returns and doesn’t execute because of the stun.
local ServerStorage = game:GetService("ServerStorage");
local ActionChecker = require(ServerStorage.ActionCheck);
function Combo(plr)
if ActionChecker.Check(plr.Character) then return end;
end)
I hope this helps, although this was very short and intended for minor inconveniences.