generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Model CFrame

Previous Thread :: Next Thread 
HarrySnotte is not online. HarrySnotte
Joined: 27 Jun 2011
Total Posts: 2854
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 is not online. 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 is not online. kakbroek1
Joined: 16 Dec 2013
Total Posts: 136
06 Sep 2015 02:07 PM
yes what instawin says
Report Abuse
HarrySnotte is not online. HarrySnotte
Joined: 27 Jun 2011
Total Posts: 2854
06 Sep 2015 02:08 PM
and how would i be sure it's the most central part?
Report Abuse
instawin is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image