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
 

Moving a brick and keeping it's rotation

Previous Thread :: Next Thread 
CaptainGector is not online. CaptainGector
Joined: 02 May 2014
Total Posts: 487
10 Oct 2015 09:11 PM
How do I move a part and keep it's rotation?
Here's roughly what I'm doing right now.


while true do
script.Parent.CFrame = CFrame.new(X+1, Y+1, Z+1) * CFrame.Angles(script.Parent.Rotation)
end

X, Y, and Z are imaginary values. That's not actually my script.
Report Abuse
LongKillKreations is not online. LongKillKreations
Joined: 14 Feb 2014
Total Posts: 4502
10 Oct 2015 10:02 PM
bump
Report Abuse
R0WE is not online. R0WE
Joined: 10 Mar 2013
Total Posts: 1807
10 Oct 2015 10:02 PM
bump
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
10 Oct 2015 10:08 PM
local part = script.Parent;

while true do
wait();
part.CFrame = part.CFrame + Vector3.new(0, 1, 0);
end
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