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

I have issues with script Parent, it is not working help zzzz ?

Hello i'm a begginer scripter but i have issues with the parent change, here is the script

script.Parent.Parent = workspace

but when i run the game the script parent isn't workspace, how can i fix this ?

2 comments

0

why do you want to change the parent of the scripts parent?

0

I want to make a random map generator

2 answers

Are you trying to set the script's parent to the workspace or the script's parent's parent to the workspace?

If option 1 is true, then you just want:

script.Parent = game.Workspace

If option 2 is true, then you want:

script.Parent.Parent = game.Workspace

If you need any explanations, I'd be happy to oblige.

I hope this answers your question.

1 comment

0

I'm not sure why you made it so complex. He said the he wanted the script to be parented inside the workspace.

Since the other person is sorta stupid, and gave him a script that just changes the parent of the script "script.Parent = game.Workspace" I'll give an actual answer.

Put this script in your part

parent = script.Parent

parent.Parent = game.workspace

1 comment

0

if your game is FE, ill make a new script

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