I am trying to make something that gets the name of a value and puts it on a gui. I am using a normal script. This is the code:
local itemName=sign.Name.Value screen.Name.Text=itemName
And this is my output:
15:27:27.821 - Workspace.Sign.Screen.Main:9: attempt to index field 'Name' (a string value) 15:27:27.822 - Stack Begin 15:27:27.822 - Script 'Workspace.Sign.Screen.Main', Line 9 15:27:27.822 - Stack End
Could someone correct any errors on this? Thanks!
on the normal script Name
does not work because it is already a string value because its a property for Screen
properties come before the code and children so if you have a child with the name Name
then change it to something like Nam