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

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

Asked by 10 years ago

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

2 answers

Log in to vote
0
Answered by 10 years ago

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!

0
Completely tested fireboltofdeath 635 — 10y
Ad
Log in to vote
0
Answered by
MrFlimsy 345 Moderation Voter
10 years ago

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

Answer this question