Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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

2 comments

0

if this helped please upvote my answer thx.

0

Thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.