I was making a game and I came across this error ServerScriptService.MainScript:56: bad argument #2 to 'random' (interval is empty). The script line: local ChosenMap = AvailableMaps[math.random(1,#AvailableMaps)] Can someone help me?????
"Interval is empty" reffers to the #AvalibleMaps part. That means this number is returning as 0 or nil. Double check you dont have a silly mistake such as calling :GetChildren() on a table or you miscounted .Parent's or something along those lines. If none of that works, send the code and I will help you out.