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

Can you change the position of a model?

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

2 comments

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.

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

1 answer

✓ Accepted answer

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))

2 comments

1

Or use ":MoveTo()".

0

huh. idk why i didnt see that. thx!

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