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

Is there a script that can spawn models?

Asked by 10 years ago
Edited 7 years ago

When you click a button/part, it should activate a script. So when it's clicked, a model should appear/spawn in a specific spot. Is there a script that does that?

EDIT:

I don't know much about scripting, I know there is ClickDetector, but is there a script something less complicated? Also, another script that can remove the spawned model.

3 answers

Log in to vote
1
Answered by
Tesouro 407 Moderation Voter
10 years ago
newmodel = game:GetService("InsertService"):LoadAsset(ModelAssetID)
newmodel:MoveTo(Vector3.new(0, 0, 0))
Ad
Log in to vote
0
Answered by
KAAK82 16
10 years ago

u can; Make a Model Inside put a Part called SpaWnPart Inside the Model as Well put a Part called Button insert a model called 'Model' into ServerStorage Insert a Script into the Button along With a ClickDetector

button = script.Parent.ClickDetector
spaWn = script.Parent.Parent.SpaWnPart

function SpaWnModel()
    model = game.ServerStorage.Model:clone()
    model.Parent = game.Workspace
    model:MoveTo(spaWn.Position)

button.Clicked:connect(SpaWnModel)

anything Wrong, Ask me, but if this does Help, make sure u Click the 'AnsWered' button here cos I hate it When I put my Time into Helping someone and they don't even thank me or anything...

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

KAAK82

I Dont Understand What I Want Is To Stand On A Button And A Model Appears (On My Server I Want A Segway To Spawn) So I Followed What You Did But I Cant Get it To Work Please Help (I Am New To Building Servers)

Answer this question