Why am I getting this error message?

Error: ‘Players.Player1.PlayerScripts.MatchResultGui:105: attempt to index string with ‘Text’’

player.PlayerGui.MatchResult.Frame.Content.T1Player1.Name.Text = losers[1].Name

I don’t really understand whats erroring, becuase “Text” is supposed to be a string.

because .Name is a property, when referring to a child use :FindFirstChild or something

player.PlayerGui.MatchResult.Frame.Content.T1Player1:FindFirstChild(‘Name’).Text = losers[1].Name

2 Likes

I recommend watching this video:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.