Attempt to index string with 'Text'

Getting this error:

attempt to index string with 'Text'

My code:
DetectionScriptFrame.Information.Details.Name.Text = "d"
Files:
image

Try

DetectionScriptFrame.Information.Details:WaitForChild("Name").Text = "d"

It’s because it thinks the TextLabel ‘Name’ is the property ‘Name’, change the TextLabel’s name to something else. This will fix the issue.

1 Like