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

Why isnt the parent changing? no error show up in output.

So this script is inside a folder. the folder is inside lighting. inside the folder is a bunch of models. this script SHOULD change the parent of the folder, therefore making it appear in workspace, but it dosent. Please help! (PS the purpose of this script is to work on the game without the models causing lag in editor, since its a big model.)

local Target = script.Parent-- the folder
Target.Parent = game.Workspace trying to change the "Parent" property inside folder.

3 comments

0

INFO: folder is in lighting, and the trying to change the paretn thing is not apart of the script, i forgot to take it out of the code block.

1

scripts that are descendants of Lighting dont run

0

Is there any other parts to this script?

1 answer

Scripts that are descendants of lighting don't run (Credit to theking48989987 for that). Instead, I would put the models in replicatedstorage, and the scripts in ServerScriptService.

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