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

How to move a model to lighting?

title is self explanatory.

2 answers

local model = workspace:WaitForChild("modelName")
model.Parent = game:GetService("Lighting")

Model = script.Parent

cModel = Model:Clone()

cModel.Parent = game.Lighting

cModel.Script:Destroy()

if game.Lighting.ChildAdded:Wait() then

game.Lighting.ChildAdded:Connect(function(child)

if child.Name == Model.Name then

script.Parent:Destroy()

else

return

end

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