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 ?
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 ?
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.
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
if your game is FE, ill make a new script
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
why do you want to change the parent of the scripts parent?
I want to make a random map generator