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

How to position a model(s) at a position?

Asked by 9 years ago

I have a particular model that I want to appear(perhaps cloned from lighting) at a certain position when I click a button. I know how to position a part, but how would I position a model? If you need any other details I'd be happy to oblige. Thanks!

1 answer

Log in to vote
0
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
9 years ago

Do your research before coming here! Looking up models on the wiki would have given you easy answers!

Use MoveTo or SetPrimaryPartCFrame.

The MoveTo method is easier to use because you don't have to have a primary part, but it does not preserve rotation, as you must give it a Vector3 for the argument. In addition, it will automatically move itself above any obstacles, since you're using Vector3.

0
Alrighty, thank you. lordrex12345 25 — 9y
0
I've tried this but it dosn't work and I know I am doing something wrong: wait(1) game.Lighting.RowBoat:Clone():MoveTo (Vector3.new(0,0,0)) lordrex12345 25 — 9y
0
You never set its Parent. Perci1 4988 — 9y
Ad

Answer this question