When i use string.sub, it says an error:
1 | Players.Player 1. PlayerGui.ScreenGui.Frame.TextBox.LocalScri: 7 : attempt to call global 'string' (a userdata value) |
can someone help me when I use this:
1 | if string.sub(string(v), 1 , 3 ) = = script.Parent.Text then |
2 | v.PlayerGui.InviteValue.Value = true |
3 | v.PlayerGui.InvitePerson.Value = game.Players.LocalPlayer.Name |
4 | script.Parent.Text = "" |
You can't name a variable "string" or if that's not the problem I need all your script.