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

Spawning Model From Lighting and Assigning Parent?

The goal of this script is to spawn a specific model that I have stored in lighting into the world , named Model1, and then assign its parent as "MoneyBricks" but I'm a little stuck on as to how I should go about doing this.

After this, I want to make sure its spawned 2 blocks below a specific block, and then it should be fine.

I feel bad asking about this, as it is largely undone, but I cant seem to find a way to spawn the model below a pre-existing part and then assign its parent.

while true do
	wait (5)
	local model = game.Lighting.Drop1:Clone()
	Drop1.Parent = MoneyBricks
end

1 answer

✓ Accepted answer

What you're trying to do is change the brick without a path, You can just refer to 'model instead'

while true do
    wait (5)
    local model = game.Lighting.Drop1:Clone()
    model.Parent = MoneyBricks --Idk if MoneyBricks is a defined path, but uh, yeah.
end

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