Hello.
I got this error in a few lines;
local String = CB.Text.Value local Length = string.len(String)
This is only Part of my script.
CB is a text label. Text is a string value.
This is what the error said;
string expected got nil. near 'len'
If you know a way to fix it then please help with examples.
ROBLOX checks for properties before children of instances.
Change the name of Text to something more descriptive.
You're using .Value on the string of the text currently.
P.S: Just use #string to get the length