Can you use something else than script.Parent?

Is there something similar to it? Or do you have to keep typing script.Parent? I wrote a long script with it containing script.Parent.Parent.Parent.Parent.Parent 5 or 7 times

You can make local variables instead of using script.Parent!

Example:

local variableName = script.Parent -- You can name the variable whatever you want, just change variableName to your liking!

Learn more about variables here!

1 Like

Thanks man, I really appreciate it :slight_smile:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.