Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I convert a SurfaceGui text with a preset text?

Asked by 10 years ago

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!

1 answer

Log in to vote
1
Answered by 10 years ago

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

0
if this helped please upvote my answer thx. DragonSkyye 517 — 10y
0
Thanks! ChipioIndustries 454 — 10y
Ad

Answer this question