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 » Scripting Helpers
Home Search
 

Re: Moving a very large object.

Previous Thread :: Next Thread 
opplo is not online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
14 Jan 2014 04:52 AM
Im trying to copy and paste this very wide object a railway track, it stretches for about 24,000 studs in length. However whenever I paste the model it ends up in around this location (-185470074880, -182040133632, -4765.7) so it's in the nil zone and doesn't paste to the location i'm wanting to paste it to. I cant get it out of the nil zone unless I use a script.

I've tried using moveTo:
This works and moves it to the right location, however the CFrame is messed up and it's not in the right rotation.

I need some help with this.
Report Abuse
DrHedgehogs is not online. DrHedgehogs
Joined: 07 Mar 2013
Total Posts: 11634
14 Jan 2014 05:37 AM
Re-C Frame it.
Report Abuse
opplo is not online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
14 Jan 2014 05:52 AM
Could you suggest a way I could CFrame it?
Report Abuse
DrHedgehogs is not online. DrHedgehogs
Joined: 07 Mar 2013
Total Posts: 11634
14 Jan 2014 05:54 AM
Not really, sorry.
Report Abuse
opplo is not online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
14 Jan 2014 06:16 AM
I just need it pasted or moved to the same position im copying it from.
Report Abuse
opplo is not online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
14 Jan 2014 08:21 AM
bump
Report Abuse
4444vince2 is not online. 4444vince2
Joined: 08 Nov 2008
Total Posts: 4880
14 Jan 2014 08:38 AM
if its locked u can Cframe it down as a model then have it cframe it up but use ( in pairs ) on the model and make them all get cframed so it says the same just gets moved
Report Abuse
opplo is not online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
14 Jan 2014 02:16 PM
Ill give it a try.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
14 Jan 2014 02:18 PM
I'm assuming the rotation of the GROUP of bricks is incorrect? If so, just use the rotation tool that comes with studio.

If the parts themselves are messed up, you'll have to re-CFrame the thing.

Though I suggest copy/pasting segments of the rail instead of everything at once, especially if you're getting the nil zone problem.
Report Abuse
opplo is not online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
14 Jan 2014 03:30 PM
Yes the group is Cframed wrong. Using the CFrame tool on potentially 20,000 bricks at once doesn't fare well with my laptop. I feel the scale is too large to do it in segments although that could be my last option. I'm going to attempt iterating through all the bricks and moving them using CFrame.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
14 Jan 2014 05:35 PM
You could also try using command line to clone and parent to the workspace.
Report Abuse
opplo is not online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
17 Jan 2014 12:46 PM
Ive tried CFraming which moved it correctly but each part was CFramed in the wrong direction they weren't rotated I used these lines, maybe someone could help.

I seemed to think that the " * CFrame.new(0,0,0)" made it keep it's rotation but I was wrong, maybe returning the CFrame it's currently in and then using that will work, not sure how.

for _,v in pairs(game.Selection:Get()) do
v.CFrame = CFrame.new(v.Position.X, v.Position.Y + 100000, v.Position.Z) * CFrame.new(0, 0, 0)
end

The cloning method didn't work.
Report Abuse
Duxs is not online. Duxs
Joined: 26 Dec 2013
Total Posts: 1212
17 Jan 2014 12:52 PM
Ozzy has a great plugin which lets you clone a model and it keeps the same position, basically putting it inside the original.
Report Abuse
opplo is not online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
17 Jan 2014 12:53 PM
That would be very helpful, could you tell me where to find it?
Report Abuse
Duxs is not online. Duxs
Joined: 26 Dec 2013
Total Posts: 1212
17 Jan 2014 12:54 PM
http://ozzypig.com/roblox

It is called the Tiger Copy Button.
Report Abuse
bellyboy99 is not online. bellyboy99
Joined: 27 Jan 2010
Total Posts: 433
17 Jan 2014 01:17 PM
Try just coping it through script and moving it with :MoveTo()
Report Abuse
opplo is not online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
17 Jan 2014 01:18 PM
I've managed to get that working Duxs, but now I cant move it around to get it into place because the grab points have glitched due to the scale of the model.
Report Abuse
opplo is not online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
17 Jan 2014 01:19 PM
And I've tried using moveTo() It doesnt keep the CFrame.
Report Abuse
btft is not online. btft
Joined: 19 Feb 2011
Total Posts: 1512
17 Jan 2014 01:19 PM
Brick.CFrame = Brick.CFrame * CFrame.Angles()
Report Abuse
opplo is not online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
17 Jan 2014 01:38 PM
I've managed to get it working now. Thanks guys.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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