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

Cloning troubles help?

Asked by 8 years ago

(yes I'm that bad at scripting xddd)

I just wanted to know how would I position a cloned model, if there's already a model with the exact name as the model I'm cloning in Workspace? For example


game.ServerStorage.RandomModel:Clone().Parent = game.Workspace game.Workspace.RandomModel:MoveTo(game.Workspace.ModelLocate.Position)

(There's already a model in Workspace called RandomModel which moves to the Part called "ModelLocate" instead of the recently cloned one moving to this part. So how will I move the recently cloned one? Help is appreciated :D

1 answer

Log in to vote
0
Answered by
Micexz 5
8 years ago

Perhaps you should create a variable.

x = game.ServerStorage.RandomModel:Clone()
x.Parent = workspace
x:MoveTo(game.Workspace.ModelLocate.Position)
0
Thank you so much dude! :D creatorstorm 8 — 8y
Ad

Answer this question