Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What does this error mean?

Asked by 8 years ago

ServerScriptService.MainScript:5: attempt to get length of local 'spawns' (a userdata value)

0
Try changing spawns to spawns.Value. If that doesn't work, please add the script in question, as we are not psychics. Pyrondon 2089 — 8y
0
@Pyrondon speak for yourself. Shawnyg 4330 — 8y

1 answer

Log in to vote
1
Answered by
Wutras 294 Moderation Voter
8 years ago

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.

0
Was my comment not sufficient enough for you Pyrondon 2089 — 8y
0
He had asked what the error means, you only told him how he could fix it. Wutras 294 — 8y
Ad

Answer this question