#attempt to index string with 'Text'

19 messages · Page 1 of 1 (latest)

pale ether
#

Cannot change text with local script

#
script.Parent.Name.Text = "Test"```
jade spindle
#

The property "Name" is a string

#
script.Parent.Name = "Test"```
#

Removing the ".Text " should fix the error

pale ether
#

oh

#

hmmm

#

but looks it doesn't chnage

#

oh wait it works

#

oh ik why

pale ether
#

cuz name is a textlable in my GUI

#

oh anyway i think it is a roblox studio bug

#

if you name the thing to Name then doesn't matter you use .Name or use ["Name"] it always say you are trying to change name not a text label

jade spindle
simple tinselBOT
#

studio** You are now Level 9! **studio

jade spindle
#

if you want to keep the label name "Name" i suggest you to use :FindFirstChild("Name") or :WaitForChild("Name")

pale ether
#

yea

#

i changed to ItemName