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: Simple CFraming

Previous Thread :: Next Thread 
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
13 Jan 2016 05:34 PM
for i,v in pairs(MovingParts:GetChildren()) do
for i = 0, 10, .1 do
v.CFrame = v.CFrame * CFrame.new(0, -1, 0)
end
end

Trying to make some parts in a model move down at once. This isn't working, what am I doing wrong?
Report Abuse
DivinePheonix is not online. DivinePheonix
Joined: 30 Mar 2011
Total Posts: 11190
13 Jan 2016 05:35 PM
SetPrimaryPartCFrame!
Report Abuse
phoenix53124 is not online. phoenix53124
Joined: 25 Feb 2009
Total Posts: 4889
13 Jan 2016 05:36 PM
Wrong way around there.

for i=1,10,.1 do
for i,v in pairs(MovingParts:GetChildren()) do
v.CFrame = v.CFrame*CFrame.new(0,-1,0)
end
wait()
end
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
13 Jan 2016 05:36 PM
for i = 0, 100 do
for i,v in pairs(MovingParts:GetChildren()) do
v.CFrame = v.CFrame * CFrame.new(0, -1, 0)
end
wait(0.1)
end
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
13 Jan 2016 05:48 PM
Thank you. But any explanation as to why it doesn't move certain bricks that have SpecialMeshs in them? They're made to look like wedges and they're inside the model but not moving.
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
13 Jan 2016 06:10 PM
b
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
13 Jan 2016 06:25 PM
??
Report Abuse
litalela is not online. litalela
Joined: 30 Mar 2010
Total Posts: 6267
13 Jan 2016 06:30 PM
cause ur doing it wrong!!!!

also use primarypart pls


➳Lɪᴛᴀʟᴇʟᴀ ɪs ᴍʏ ɴᴀᴍᴇ, Lᴜᴀ ɪs ᴍʏ ɢᴀᴍᴇツ
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
13 Jan 2016 06:30 PM
actually they go in the opposite direction as everything else wtf
Report Abuse
LongKillKreations is not online. LongKillKreations
Joined: 14 Feb 2014
Total Posts: 4502
14 Jan 2016 01:02 AM
"actually they go in the opposite direction as everything else wtf"

I'm not really that good with this type of stuff, but this is probably because you are manipulating it in object space instead of world space.

http://wiki.roblox.com/index.php?title=CFrame&redirect=no#Methods
(scroll down)

Report Abuse
DatMichaelGuy is not online. DatMichaelGuy
Joined: 30 Aug 2008
Total Posts: 248
14 Jan 2016 03:56 AM
Are any of your bricks unioned? Or is it just the Meshes that are going in the opposite directions
Report Abuse
DatMichaelGuy is not online. DatMichaelGuy
Joined: 30 Aug 2008
Total Posts: 248
14 Jan 2016 04:00 AM
for i,v in pairs(MovingParts:FindFirstChild("Name of model parts are in"):GetChildren()) do
if v:IsA("BasePart") then
for i = 0, 10, .1 do
v.CFrame = v.CFrame*CFrame.new(0, -1, 0)
end
end
wait()
end

Try that. Should work I use this code a lot when I'm making multiple parts move and don't want call each part individually
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