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: CFrame to rotate

Previous Thread :: Next Thread 
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
25 Mar 2012 10:40 PM
I'm making a vehicle rotate and I want to use CFrame instead of BodyGyro and BodyPosition, but when I try to set a new cframe eg: part.CFrame = part.CFrame*CFrame.Angles(.2,0,0), it goes to the new position and then smoothly rotates back to its original position. How do I make it set to the new position?
Report Abuse
DXPower is not online. DXPower
Joined: 21 Oct 2008
Total Posts: 2866
25 Mar 2012 10:41 PM
I would use a while loop.

Annoying the crap out of you, one word at a time. -Says suoicodilaipxecitsaligirfilacrepus repeatedly-
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
25 Mar 2012 10:43 PM
So the problem of the part re-calibrating itself is not fixable?
(The part has other parts welded to it, it's just the "engine" of the vehicle)
Why isn't it staying at the new CFrame?
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
25 Mar 2012 11:16 PM
Whhhhy?
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
26 Mar 2012 12:24 AM
Anyone?
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
26 Mar 2012 01:26 PM
bump
Report Abuse
galenwaros is not online. galenwaros
Joined: 20 Nov 2010
Total Posts: 225
26 Mar 2012 01:30 PM
you want a CFarme rotate tool?
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
26 Mar 2012 01:31 PM
Is this happening because of the weld C0's and C1's? Are they causing it to go back to original position?
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
26 Mar 2012 01:31 PM
I'm trying to rotate a part and the parts welded to it with a CFrame on the "engine" or "base" part, but after I set the new CFrame, it smoothly goes back to its original rotation/position.
Report Abuse
galenwaros is not online. galenwaros
Joined: 20 Nov 2010
Total Posts: 225
26 Mar 2012 01:31 PM
CFarme rotate tool?
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
26 Mar 2012 01:33 PM
No, not a tool, a vehicle, but good job repeating your question.
Report Abuse
galenwaros is not online. galenwaros
Joined: 20 Nov 2010
Total Posts: 225
26 Mar 2012 01:34 PM
use this model:

http://www.roblox.com/CmdUtl-Command-Utility-v3-0-0-item?id=56988233





you need to execute this script
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
26 Mar 2012 01:35 PM
You're dense
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
26 Mar 2012 01:36 PM
"I'm making a vehicle rotate"
Literally the first words of this thread
The vehicle is rotating in game time, I'm not trying to statically rotate a vehicle in studio.
Report Abuse
galenwaros is not online. galenwaros
Joined: 20 Nov 2010
Total Posts: 225
26 Mar 2012 01:37 PM
*face palm*
you too
i send you a link that help you
its help me too
Report Abuse
galenwaros is not online. galenwaros
Joined: 20 Nov 2010
Total Posts: 225
26 Mar 2012 01:38 PM
You're dense

the model will work
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
26 Mar 2012 01:42 PM
I don't need a tool for offline editing or a script to copy from
I would like an explanation of why setting a new CFrame on a welded set of parts does not keep them at the new CFrame during server interactions. I have a feeling it has to do with the C0 and C1 settings of the welds, but I can't custom set those each time, it would be too laggy. It also auto-corrects and goes back original position even though the part is anchored.
Report Abuse
galenwaros is not online. galenwaros
Joined: 20 Nov 2010
Total Posts: 225
26 Mar 2012 01:45 PM
Use this then


http://www.roblox.com/Vehicle-Rotate-GUI-item?id=75837758


gui will work
Report Abuse
galenwaros is not online. galenwaros
Joined: 20 Nov 2010
Total Posts: 225
26 Mar 2012 01:46 PM
and put the gui in StarterGui
Report Abuse
Ravenshield is not online. Ravenshield
Joined: 21 Nov 2007
Total Posts: 4143
26 Mar 2012 01:54 PM
Are any of the bricks welded to it anchored?
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
26 Mar 2012 02:16 PM
Yes, they are all anchored except the basepart, although I just found on testing, now the basepart rotates and moves position but the rest of the vehicle stays behind.
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
26 Mar 2012 02:17 PM
*unanchored
Report Abuse
xFortunato is not online. xFortunato
Joined: 25 Nov 2010
Total Posts: 865
26 Mar 2012 02:18 PM
Scratch that, the rest of the vehicle updates to the new cframe if I do a quick Unanchor and then re-anchor the basepart
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