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: if

Previous Thread :: Next Thread 
LV1Z is not online. LV1Z
Joined: 23 Jul 2011
Total Posts: 652
19 Nov 2013 07:33 PM
if model:GetChildren():IsA("Part") then
model.CFrame = CFrame.new(1,1,1)
end

would the parts move?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
19 Nov 2013 07:34 PM
no
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
19 Nov 2013 07:34 PM
No.


Model:MoveTo(Vector3.new(1,1,1))
Report Abuse
LV1Z is not online. LV1Z
Joined: 23 Jul 2011
Total Posts: 652
19 Nov 2013 07:35 PM
Is MoveTo() the same as CFrame-ing each part?
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
19 Nov 2013 07:36 PM
It just sets the models position just like CFrame would. You just can't rotate with MoveTo.
Report Abuse
LV1Z is not online. LV1Z
Joined: 23 Jul 2011
Total Posts: 652
19 Nov 2013 07:41 PM
Another question, sorry:

how do you get the center of the model?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
19 Nov 2013 07:46 PM
^ You don't without math, and it doesn't move it like CFrame, it moves it like Vector3, aka collision detecting
Report Abuse
LV1Z is not online. LV1Z
Joined: 23 Jul 2011
Total Posts: 652
19 Nov 2013 07:53 PM
By math u mean finding the midpoint the centroids in side the triangles inside the rectangular model?
Report Abuse
LV1Z is not online. LV1Z
Joined: 23 Jul 2011
Total Posts: 652
19 Nov 2013 07:54 PM
All I'm trying to make is the doors like the ones in Flood Escape
Report Abuse
ninjasamuraiux is not online. ninjasamuraiux
Joined: 23 Aug 2011
Total Posts: 5405
19 Nov 2013 07:55 PM
for i,v in pairs(model:GetChildren()) do
if v:IsA("Part") then
for i=1,10 do --replace 10 with your number
v.CFrame = v.CFrame + Vector3.new(0,0,0) --vector there
wait(0.1)
end
end
end
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
19 Nov 2013 08:08 PM
By getting all the parts position and averaging it
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