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: How to get the center of a model

Previous Thread :: Next Thread 
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
16 Oct 2015 02:44 PM
like the part
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
16 Oct 2015 02:54 PM
not the part actually just the center position
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
16 Oct 2015 02:55 PM
local model; --Define your model

print(model:GetPrimaryPartCFrame());

That might not be the exact center.
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
16 Oct 2015 02:56 PM
I need the exact center
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
16 Oct 2015 03:01 PM
also there is no primary part
Report Abuse
cheatmaster18 is not online. cheatmaster18
Joined: 29 Oct 2010
Total Posts: 1871
16 Oct 2015 03:01 PM
it is that you could use but, I found a deprecated one:
model:GetModelCFrame()
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
16 Oct 2015 03:18 PM
thanks
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
16 Oct 2015 03:55 PM
Don't use the deprecated one. Make an invisible primary party and place it in the exact center
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
16 Oct 2015 03:57 PM
use the deprecated one


Red Blossoms
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
16 Oct 2015 06:57 PM
the deprecated one works,
and the title is "how to get the center of a model"

lol
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
16 Oct 2015 07:51 PM
Clearly you don't understand what deprecated means.
Report Abuse
Dogejia is not online. Dogejia
Joined: 08 Feb 2012
Total Posts: 1873
16 Oct 2015 07:53 PM
clearly it means you're old if you use it


gcmi lg lpxtlc; Decode it with Vigenere Cipher, keyword is Doge, if you dare >:)
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
16 Oct 2015 07:57 PM
clearly you have no idea what i asked and havent tested the method yet
Report Abuse
chimmmihc is not online. chimmmihc
Joined: 24 Jul 2014
Total Posts: 2420
16 Oct 2015 08:23 PM
Use this

Model:GetExtentSize()/2
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
16 Oct 2015 09:52 PM
how would i use that
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
16 Oct 2015 10:10 PM
@chim So a model at 50,50,50 with the size 10,10,10 is positioned at 5,5,5?

XD
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
16 Oct 2015 10:11 PM
^
Report Abuse
chimmmihc is not online. chimmmihc
Joined: 24 Jul 2014
Total Posts: 2420
16 Oct 2015 11:33 PM
Position + Model:GetExtent/2
Report Abuse
CLIMAXIMUS is not online. CLIMAXIMUS
Joined: 22 Jun 2012
Total Posts: 1738
16 Oct 2015 11:51 PM
what im trying to find is the position/cframe

wtf

and model:GetModelCFrame() works exactly how i want it to, makes no sense why its deprecated because there isnt anything better
Report Abuse
FlyNormal is not online. FlyNormal
Joined: 30 Sep 2015
Total Posts: 344
17 Oct 2015 12:29 AM
Well model::GetModelCFrame is deprecated for some odd reasons. I believe mainly because ROBLOX wants players to start using Model.PrimaryPart more often as the center. Which I also believe is a better thing to do as it's more ordered that way.
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