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

How can I clone a model in a different place?

Asked by 4 years ago

Hello. So I'm trying to make a model clone but in a different place.

wait(10)
local oryginal = script.Parent.Chair
local klon = oryginal:Clone()
klon.Parent = game.Workspace
klon.Position =  Vector3.new(67.351, 14.844, 143.018)

I wrote this script but the game says that models don't have a position. Any ideas on how I can make this script work? (I'm a beginner btw)

0
All i can think is to put multiple clone at multiple place Nguyenlegiahung 1091 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

You must use the MoveTo() function. Try this.

wait(10)
local oryginal = script.Parent.Chair
local klon = oryginal:Clone()
klon.Parent = game.Workspace
klon:MoveTo(Vector3.new(67.351, 14.844, 143.018))

Ad

Answer this question