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

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

Asked by 10 years ago

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

Log in to vote
1
Answered by 10 years ago

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

0
Its not a variable, its v, which is the rest of the script,oo deputychicken 226 — 10y
0
I sent you the script in a roblox message. deputychicken 226 — 10y
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 SilenceCore 25 — 10y
0
Kk :D thanks deputychicken 226 — 10y
Ad

Answer this question