Lua errors lol need help

hi im new to this and im trying to use one of my macros but it keeps giving me this error and i have no idea how to fix it lol.

Message: …UI/Libraries/LibRangeCheck-3.0/LibRangeCheck-3.0.lua:541: IsSpellInRange(): Invalid spell slot
Time: Sat Dec 9 17:48:46 2023
Count: 1543
Stack: …UI/Libraries/LibRangeCheck-3.0/LibRangeCheck-3.0.lua:541: IsSpellInRange(): Invalid spell slot
[string “=(tail call)”]: ?
[string “=[C]”]: ?
[string “=[C]”]: ?
[string “@Interface/AddOns/KkthnxUI/Libraries/LibRangeCheck-3.0/LibRangeCheck-3.0.lua”]:541: in function <…UI/Libraries/LibRangeCheck-3.0/LibRangeCheck-3.0.lua:540>
[string “@Interface/AddOns/KkthnxUI/Libraries/LibRangeCheck-3.0/LibRangeCheck-3.0.lua”]:650: in function `checker’
[string “@Interface/AddOns/KkthnxUI/Libraries/LibRangeCheck-3.0/LibRangeCheck-3.0.lua”]:749: in function <…UI/Libraries/LibRangeCheck-3.0/LibRangeCheck-3.0.lua:744>
[string “=(tail call)”]: ?
[string “@Interface/AddOns/KkthnxUI/Libraries/LibRangeCheck-3.0/LibRangeCheck-3.0.lua”]:828: in function <…UI/Libraries/LibRangeCheck-3.0/LibRangeCheck-3.0.lua:809>
[string “=(tail call)”]: ?
[string “@Interface/AddOns/KkthnxUI/Modules/UnitFrames/Elements/Range.lua”]:53: in function <…ddOns/KkthnxUI/Modules/UnitFrames/Elements/Range.lua:52>
[string “@Interface/AddOns/KkthnxUI/Modules/UnitFrames/Elements/Range.lua”]:88: in function <…ddOns/KkthnxUI/Modules/UnitFrames/Elements/Range.lua:72>
[string “=(tail call)”]: ?
[string “@Interface/AddOns/KkthnxUI/Libraries/oUF/elements/range.lua”]:94: in function <…ace/AddOns/KkthnxUI/Libraries/oUF/elements/range.lua:88>

Locals: (*temporary) = 0.012000
(*temporary) = defined =[C]:-1

any help will be really appreciated. thanks

you using a addon called KkthnxUI? thats waht is causing the error. update it or turn it off.

i just had to type this command in to fix it. [/console scriptError 0] easy peasy lol.