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

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

Asked by 4 years ago

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.
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. Adenandpuppy 87 — 4y
1
scripts that are descendants of Lighting dont run theking48989987 2147 — 4y
0
Is there any other parts to this script? itchymoonfire 179 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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.

Ad

Answer this question