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

Spawning Model From Lighting and Assigning Parent?

Asked by 8 years ago

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

Log in to vote
1
Answered by
NotSoNorm 777 Moderation Voter
8 years ago

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
Ad

Answer this question