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: CFraming Union parts?

Previous Thread :: Next Thread 
udayk8139 is not online. udayk8139
Joined: 25 Aug 2013
Total Posts: 622
17 May 2015 04:09 AM
I am making something which needs the parts to move..

so I made some script like this..

function Pulldown()
local parts = script.Parent:GetChildren()
for _,v in pairs(parts) do
if v:IsA("BasePart") or v:IsA("UnionOperation") then
v.CFrame = v.CFrame * CFrame.new(0,10,0)
end
end
end


The problem here is, that the part is moved 10 studs up but the Union which is in the same group isn't moving...
Report Abuse
Intern33t is not online. Intern33t
Joined: 19 Nov 2010
Total Posts: 1530
17 May 2015 04:33 AM
Using command line, this worked for me:

for k, v in pairs(workspace:GetChildren()) do if v:IsA("UnionOperation") then v.CFrame = v.CFrame + Vector3.new(0, 10, 0) end end



~ᵂʰᵒ ᵃʳᵉ ʸᵒᵘ ᵗᵒᵈᵃʸ﹖~
Report Abuse
distalDigitPhalanx is not online. distalDigitPhalanx
Joined: 25 Jan 2015
Total Posts: 1509
17 May 2015 04:34 AM
Unions are baseparts
Report Abuse
Intern33t is not online. Intern33t
Joined: 19 Nov 2010
Total Posts: 1530
17 May 2015 04:36 AM
It would make sense if you did just BasePart or Part + UnionOperation then

~ᵂʰᵒ ᵃʳᵉ ʸᵒᵘ ᵗᵒᵈᵃʸ﹖~
Report Abuse
buildersteven4 is not online. buildersteven4
Joined: 08 May 2009
Total Posts: 1325
17 May 2015 04:56 AM
how about just using model:TranslateBy(Vector3.new(0,10,0)) instead?

http://wiki.roblox.com/index.php?title=API:Class/Model/TranslateBy
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