-- Shoutout for amperbee for helping me out, feel free to use part or this script as its reusable. local GiveRings = false --Variable that handles giving rings. addHook("MobjDamage", function(target, inflictor, source, dmg, dmgtype) if (inflictor.flags & MT_PLAYER) -- If Player damaged... if (target.flags & MF_ENEMY) or (target.flags & MF_BOSS) -- A Enemy or Boss then... GiveRings = true --Variable that handles giving rings is true end end end) addHook("PlayerThink", function(player) if GiveRings -- If GiveRings is true then... player.rings = player.rings + 1 --Player is given 1 ring... GiveRings = false --GiveRing variable is reset end end)