whats the “effects()” function? i dont see it defined anywhere
if it did exist, it would be overwritten by the paramater. are you trying to pass a function?
This kind of errors usually happens if some lines at script got syntax as invaild or not returning the module and it’s function at the end. From your case are you sure you made your syntax correct and set your varibles correct or did you gave any undefinied varibles ?
i’m not too sure what your issue is, but i feel obligated to mention that math.random(2,3.5) will only ever return 2 and 3. math.random() is incapable of returning decimals.
consider replacing it with Random.new():NextNumber(2,3.5)
if this issue can not be solved I am most likely needing to just take another module, place the stunner code in that module and the rest, because it is letting me to do an module without anything in it which it isn’t in a folder
The video from where I inspired a little bit is on yt, from him I took this HitService idea, and I did the same as he, I placed the module like him, I gave the same args. but for him it worked. If ur interested you can find the video on the channel SushiMaster, the video is called combat system(REWORKED)