|
| 06 Sep 2015 02:00 PM |
I have two exact the same models, except for their CFrames. How would I get one model to have the EXACT same CFrame as the other? I have tried some things, but none of it worked... MoveTo is not an option, it's no CFrame. I've struggled a bit with PrimaryParts, which got me close, but not exactly right(about 10 studs away from the needed CFrame).
Anyone has an idea? |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 06 Sep 2015 02:06 PM |
make sure you set the PrimaryPart of the model as the most central part in your model
local model1 = pls local model2 = plsdefine
model2:SetPrimaryPartCFrame(model1:GetPrimaryPartCFrame()) |
|
|
| Report Abuse |
|
|
kakbroek1
|
  |
| Joined: 16 Dec 2013 |
| Total Posts: 136 |
|
| |
|
|
| 06 Sep 2015 02:08 PM |
| and how would i be sure it's the most central part? |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 06 Sep 2015 02:10 PM |
look at the model and determine the most central part
on the other hand, you could use deprecated methods:
http://wiki.roblox.com/index.php?title=API:Class/Model/GetModelCFrame http://wiki.roblox.com/index.php?title=API:Class/Model/GetModelSize
and a deprecated property model.CoordinateFrame -- a write only property, cannot read from it |
|
|
| Report Abuse |
|
|