ServerScriptService.MainScript:5: attempt to get length of local 'spawns' (a userdata value)
COMMUNITY QUESTION
What does this error mean?
1 answer
As you put no code at all, I'll just try my best guessing.
ServerScriptService.MainScript:5: attempt to get length of local 'spawns' (a userdata value) you most likely used string.len() to get the length of a string. If spawns is a userdata value then it can only be a TextBox, TextLabel, TextButton or StringValue. You'll need to add .Text or .Value to that. Correct me if I'm wrong, but I think that a userdata value is an object such as a part.
2 comments
0
Was my comment not sufficient enough for you
0
He had asked what the error means, you only told him how he could fix it.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Try changing spawns to spawns.Value. If that doesn't work, please add the script in question, as we are not psychics.
@Pyrondon speak for yourself.