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

How do i change the parent of a model? [closed]

Asked by 4 years ago

I'm trying to make an enemy model spawn in front of a door with a script but it doesn't work. I put it in ReplicatedStorage and tried making a lot of different scripts to see if it would work but it didn't.

I'll just put this as an example of what I mean more clearly. So the game Piggy has the piggy spawning in front of a door after 30 seconds. And I'm trying to do the same thing.

0
Do you have any scripts? You need to sent them. ArtemVoronin0 171 — 4y

Closed as Not Constructive by PrismaticFruits, Xapelize, ScuffedAI, moo1210, AntiWorldliness, and killerbrenden

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 4 years ago

Script inside model:

local clone = script.Parent:Clone()
clone.Parent = game.Workspace
0
This will clone it once. If you want you could learn about loops to that every while it clones. PrismaticFruits 842 — 4y
Ad