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

Why does this (not) work?

If I say have a gui and I want to change the text through a script this works:

script.Parent.Text = "Blah"

And this does:

Words = script.Parent
Words.Text = "Blah"

But this does not:

Words = script.Parent.Text
Word = "Blah"

How come?

1 comment

0

You would be resetting the variable. You could try adding a .Value to Words but that might not work. You might just have to live with it. I know, it's the end of the world.

1 answer

✓ Accepted answer

Your indexing is wrong. The variable 'Word' is not located in the script, so it doesn't know what to do.

Words = script.Parent.Text
Words = "Blah"

4 comments

0

Oops that's a mistake of just typing it in the question bar It doesnt work like that though

0

Edited answer

0

^ I've edited it please take a look

0

Please, read my answer.

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