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: EFFICIENT WAY TO MOVE A MODEL

Previous Thread :: Next Thread 
Darkenus is not online. Darkenus
Joined: 17 Jul 2014
Total Posts: 1997
29 Feb 2016 08:38 PM
So heres my situation:

I have a bunch of spike thingies, they are packed together into a model, so they consist of many different parts. They use their own meshes so they cannot be turned into a union.

All I need is for them to keep going up and down forever, like 10 studs up, 10 studs down.

-Ive tried looping through every part and moving it up one. (This works perfectly except....)

I have like 10+ of these spike thingies and since they're all moving up and down, THE. LAG. IS. REAL.

Any ideas of how I can minimize the lag?
(if only body movers existed for models)
Report Abuse
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
29 Feb 2016 08:40 PM
Weld them all to one part, CFrame = up wait() cframe = down, repeat..
Report Abuse
SpeedyJZoel is not online. SpeedyJZoel
Joined: 16 Aug 2010
Total Posts: 2416
29 Feb 2016 08:41 PM
Try setting a part as the model's primarypart. Then use model:SetPrimaryPartCFrame(movement cframe stuf) in a for loop.


Report Abuse
SpeedyJZoel is not online. SpeedyJZoel
Joined: 16 Aug 2010
Total Posts: 2416
29 Feb 2016 08:42 PM
Mor, welds are meant to work with unanchored parts.


Report Abuse
AdvancedObjects is not online. AdvancedObjects
Joined: 11 Dec 2012
Total Posts: 3354
29 Feb 2016 08:44 PM
use :MoveTo or SetPrimaryPartCFrame()



Report Abuse
WoolHat is not online. WoolHat
Joined: 19 May 2013
Total Posts: 1873
29 Feb 2016 08:47 PM
You don't even need to set the primary part (if you're only going by the axes anyways)
for i = 1,50 do
game.Workspace.Model:TranslateBy(Vector3.new(0,.1,0)
wait()
end
Report Abuse
SpeedyJZoel is not online. SpeedyJZoel
Joined: 16 Aug 2010
Total Posts: 2416
29 Feb 2016 08:47 PM
Advance, MoveTo is setting the position of a part. Thus if you try to set the position down it will just move up until there is no part in the way. Odds are his spikes collide with other bricks that aren't in the model.


Report Abuse
SpeedyJZoel is not online. SpeedyJZoel
Joined: 16 Aug 2010
Total Posts: 2416
29 Feb 2016 08:48 PM
Good game wool.

Although setting a primary part is fairly easy, so either would work.


Report Abuse
Darkenus is not online. Darkenus
Joined: 17 Jul 2014
Total Posts: 1997
29 Feb 2016 08:49 PM
thx for all the posts guys!
its working pretty smoothly.

as a cheat lol, i enabled this:
http://wiki.roblox.com/index.php?title=Network_streaming

teehee, now its even more less laggier. ;)
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