Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Cloning troubles help?

(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

Perhaps you should create a variable.

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

1 comment

0

Thank you so much dude! :D

This discussion is preserved as it was. New answers, comments, and votes are closed.