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

How do I make it so that a model will spawn at certain coordinates once?

I don't really have much to say down here..

2 answers

✓ Accepted answer

Quick add-on to MrFlimsy's

function SpawnModel(x,y,z,Map)
    local model = game.ServerStorage[Map]:clone()
    model.Parent = game.Workspace
    model:MoveTo(x,y,z)
end

That will allow it to do multiple maps by setting it's name.

SpawnModel(0,0,0,"NameHere")

Hope I helped!

1 comment

0

Completely tested

Put the model in ServerStorage, and use this:

function SpawnModel(x,y,z)
    local model = game.ServerStorage.ModelNameHere:clone()
    model.Parent = game.Workspace
    model:MoveTo(x,y,z)
end

Then, when you want to spawn the model, use this:

SpawnModel(0,0,0) --Put coordinates here

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