0

# Is there a script that can spawn models?

Edited 4 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.

1
Tesouro 407
7 years ago
newmodel = game:GetService("InsertService"):LoadAsset(ModelAssetID)
newmodel:MoveTo(Vector3.new(0, 0, 0))

0
KAAK82 16
7 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...