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

Can you change the position of a model?

Asked by 4 years ago
Edited 4 years ago

I want to change the position of a model is it possible

0
This is not a site for requesting new scripts. This is pretty simple though, so you should be able to search online for answers easily. Hypoxla 125 — 4y
0
I searched the internet but nothing cam up so, I wen here plus don't take the high ground when your reputation is 22 FluffySheep46209 369 — 4y

1 answer

Log in to vote
1
Answered by
Erie20 102
4 years ago
Edited 4 years ago

if you want to change the model position like all the parts use model:SetPrimaryPartCFrame(). This only works if you set the PrimaryPart properties in studio.

e.g.

model = script.Parent
myvector = Vector3.new(0,0,0)
mycframe = CFrame.new(myvector)

model:SetPrimaryPartCFrame(mycframe)

you can also use MoveTo, as stated below in the comments. Use MoveTo if you just want to use Vector3 and not CFrames

model = script.Parent

model:MoveTo(Vector3.new(0,0,0))
1
Or use ":MoveTo()". youtubemasterWOW 2741 — 4y
0
huh. idk why i didnt see that. thx! Erie20 102 — 4y
Ad

Answer this question