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

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

Asked by 3 years ago

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 ?

0
why do you want to change the parent of the scripts parent? catsalt29 57 — 3y
0
I want to make a random map generator LaaserPrimeYT 1 — 3y

2 answers

Log in to vote
0
Answered by 3 years ago

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.

0
I'm not sure why you made it so complex. He said the he wanted the script to be parented inside the workspace. raid6n 2196 — 3y
Ad
Log in to vote
0
Answered by 3 years ago

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
0
if your game is FE, ill make a new script brodywth 97 — 3y

Answer this question