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

How do you move a model using scripts?

Asked by
Cowgato 33
4 years ago

Hello

I've been trying to figure out how to move a model using scripts. I don't want to move a model's parts one by one as that would consume a lot of time. If you do know the answer, please help!

game.workspace.GROUP.Position = Vector3.new(12413412) --group is the name of the model

An example of what I've been trying to do ^^^

1 answer

Log in to vote
0
Answered by
Ziffixture 6913 Moderation Voter Community Moderator
4 years ago

I don't know where you got this code, but please abandon it.

You can use a function known as :MoveTo(). This will set the PrimaryPart's position to any given Vector3.

Note: You must set a PrimaryPart before proceeding.

workspace.GROUP:MoveTo(Vector3.new(0, 0, 0))
0
Thank you so much, it works. don't worry, i'll abandon the script lol Cowgato 33 — 4y
Ad

Answer this question