Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

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

Asked by 9 days 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 — 9d
0
I want to make a random map generator LaaserPrimeYT 1 — 2d

2 answers

Log in to vote
0
Answered by
KBRM101 383 Moderation Voter
9 days 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 2290 — 9d
Ad
Log in to vote
0
Answered by 9 days 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 45 — 9d

Answer this question