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: CFraming a Model via Script

Previous Thread :: Next Thread 
Aurarus is not online. Aurarus
Joined: 22 Dec 2008
Total Posts: 4761
05 Dec 2012 03:40 PM
I'm aware of the MoveTo() method, but I want to know if there's a method which "Forces" a model to be in a certain position.

Because with MoveTo(), the model teleports up if something is in the way.

Thanks!
Report Abuse
Raphael7 is not online. Raphael7
Joined: 03 Dec 2008
Total Posts: 2479
05 Dec 2012 04:03 PM
Use CFrame, but make sure the models are welded to the Part.
Report Abuse
Aurarus is not online. Aurarus
Joined: 22 Dec 2008
Total Posts: 4761
05 Dec 2012 04:04 PM
Let's say welding all the parts to the model would cause massive lag, and/or not be a viable option for what I'm trying to accomplish.
Report Abuse
cygorx is not online. cygorx
Joined: 09 Nov 2012
Total Posts: 668
05 Dec 2012 04:11 PM
give the parts some love. the parts love you. wielding them is highly abusive, and could hurt them.
try glue.
i'm kidding. use rotational matrices and make a constant distance between all of them, it's a lot easier than you think.
Report Abuse
Aurarus is not online. Aurarus
Joined: 22 Dec 2008
Total Posts: 4761
05 Dec 2012 05:20 PM
If it's so easy, why don't you care to explain it to someone who has never heard of it before? :o
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
05 Dec 2012 05:22 PM
for i,v in pairs(game.Workspace.Model:GetChildren()) do
if v:IsA("Part") then
v.CFrame = CFrame.new(0,0,0)
end
end

Error 407:["Siggy.exe not found."] Please try again in a few moments.
Report Abuse
Aurarus is not online. Aurarus
Joined: 22 Dec 2008
Total Posts: 4761
05 Dec 2012 05:40 PM
That won't work for what I'm trying to do.

It's also just going to CFrame everything into one spot...
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
05 Dec 2012 05:41 PM
Then what are you trying to do...

Error 407:["Siggy.exe not found."] Please try again in a few moments.
Report Abuse
Aurarus is not online. Aurarus
Joined: 22 Dec 2008
Total Posts: 4761
05 Dec 2012 05:45 PM
I have a list of models in Lighting which we will call "ModelList" for the time being.

When the game starts, at 3 different points, a random model from "ModelList" is cloned and put into that point.

But it has to be specific on where the model is put in.
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