--We create an element rotation table where each key is stronger than the value
--Idk if i got this right but for example Fire is stronger than Water
local ElementRotation = {
["Fire"] = "Water",
["Water"] = "Nature",
["Nature"] = "Wind",
["Wind"] = "Fire"
}
local YourElement = --Your element here
local EnemyElement = --Enemy element
--now for damage checking whenever u try to deal damage you do :
if ElementRotation[YourElement] == EnemyElement then
--Deal increased damage (your element stronger than enemy's)
elseif ElementRotation[EnemyElement] == YourElement then
--Deal reduced damage (enemy's damage stronger than yours)
end