I have no clue what to do. I'm trying to find something with the parents name with G at the end.
1 | local boy = script.Parent.Name .. "G" |
2 | local found = script.Parent.Parent:FindFirstChild(boy) |
3 | boy.Visible = true |
Error is at line 2.
I'm 100% sure the error was not on line 2, and was on line 3.
you're problem was, that on line 1, "boy" is a string value, though on line 3, you're trying to index (the dot at the end) the string value, which is not possible.
I think you meant to put "found" instead of "boy" on line 3:
1 | local boy = script.Parent.Name .. "G" |
2 | local found = script.Parent.Parent:FindFirstChild(boy) |
3 | found.Visible = true |