Invalid Argument #2 to "random" (interval is empty)

So I’m making a module that tags a random player to be a killer, but it gives me an error message instead. There’s probably a solution to this already but I couldn’t find it.

code:
image

1 Like

This means the second argument is less than the first argument. I assume it’s the GetPlayers erroring, move the declaration inside the function

1 Like

My bad! It works now. Thank you!