Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I need help with a group gui, can someone help me?

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 = ""

1 answer

✓ Accepted answer

You can't name a variable "string" or if that's not the problem I need all your script.

4 comments

0

Its not a variable, its v, which is the rest of the script,oo

0

I sent you the script in a roblox message.

0

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

0

Kk :D thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.