When i use string.sub, it says an error:
Players.Player1.PlayerGui.ScreenGui.Frame.TextBox.LocalScri:7: attempt to call global 'string' (a userdata value)
can someone help me when I use this:
if string.sub(string(v),1,3) == script.Parent.Text then
v.PlayerGui.InviteValue.Value = true
v.PlayerGui.InvitePerson.Value = game.Players.LocalPlayer.Name
script.Parent.Text = ""

4 comments
Its not a variable, its v, which is the rest of the script,oo
I sent you the script in a roblox message.
string.sub(string.lower(v),1,3) is the error and all others with string.lower(v) you have to do string.lower(v.Name) if it didn't work notify me again
Kk :D thanks