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: Placing clone elsewhere

Previous Thread :: Next Thread 
AxeOfMen is not online. AxeOfMen
Joined: 14 Dec 2011
Total Posts: 196
14 Jan 2012 01:06 AM
I have a clone of a model and I want to place it at a given CFrame and I'm not sure how to do that. I've tried creating welds between the "Head" and all the other parts, but when I set the CFrame of the "Head" all the other parts do not move with the Head. Shouldn't setting the CFrame of the head cause all the welded parts to move with the head? Or am I working under a wrong assumption?
Report Abuse
DragonFang1 is not online. DragonFang1
Joined: 02 Apr 2009
Total Posts: 1068
14 Jan 2012 02:24 AM
no .. actually you should use the
:MoveTo()
but if you do need CFrame you should just combine it with the MoveTo() function.
Report Abuse
DragonFang1 is not online. DragonFang1
Joined: 02 Apr 2009
Total Posts: 1068
14 Jan 2012 02:28 AM
Idk if that what you want but if you want to CFrame a whole model like I did once then you will basicly need to do the same thing I did so you may make use of this:
------
"dragon" is the name of the clone and "b" is a brick
--
dragon:MoveTo(b.Position)
b:remove()
local g =dragon:GetChildren()
for i=1, #g do
if g[i]:IsA("Part") then
g[i].CFrame = g[i].CFrame + person.Character.Torso.CFrame.lookVector * 6
end
end
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