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

Should I use Model:PivotTo() or Model:SetPrimaryPartCFrame()?

The question is up there... Pros and cons? I've heard SetPrimaryPartCFrame() moves everything to keep offset, while PivotTo() calls itself on descendants... Would one be slowers?

6 comments

2

SetPrimaryPartCFrame is deprecated, use PivotTo, cons of SetPrimaryPartCFrame: too long to type

0

Imkirda, deprecated isn't really a reason not to use it, a lot of games use it so I doubt it is bad for new work currently... And too long to type, what do you mean?

0

PivotTo does not need PrimaryPart, and it's shorter to type than SetPrimaryPartCFrame you get, it's long as 

0

Thank you for your response, can you put it as an answer so I might accept it or wait for more

1

wait for more im busy watching anime

0

What anime?

1 answer

It does not really matter what one you use as long as it works, :PivotTo() is in my opinion, easier and shorter to use. It is better for keeping the lines shorter. SetPrimaryPartCFrame is old and depreciated while pivotto is more new.

The main difference to think about whether or not you want to use a primary part, because :PivotTo() requires no primary part, when SetPrimaryPartCframe() does.

I do not believe one is slower than the other.

PivotTo

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