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

How to move model to a part without vector 3 positions?

Asked by 5 years ago

This is what I tried but it doesn't work

model = script.Parent
Part = game.Workspace.TelePart.Position

model:MoveTo (Part)
0
I know for MoveTo, a Vector3 position is required...why no Vector3? ABK2017 406 — 5y
0
If its not too big, maybe using Tween? Motor6d the unanchored parts of the model to the Root part and Tween it?? ABK2017 406 — 5y
0
Or maybe use model.WalkToPoint=Part.Position, maybe? mixgingengerina10 223 — 5y
0
Errors? ArtFoundation 255 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

Possible solution

It could be that you have not set a PrimaryPart for the model in properties. Make sure to check that and to check for errors in the output too.

Secondly which should be obvious, if your game is FilteringEnabled make sure your script is a server script and isn't placed in ServerStorage.

If that doesn't work

Try using SetPrimaryPartCFrame.

It is the same as :MoveTo() but that it will use the CFrame.

Make sure that you set a PrimaryPart in the properties of the model you want.

Ad

Answer this question