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
 

Move Model/Part Based on PrimaryPart/Part's Angle

Previous Thread :: Next Thread 
spot9110 is online. spot9110
Joined: 05 Dec 2009
Total Posts: 475
03 Jan 2017 06:14 PM
Expanded Subject: Move Model/Part Based on PrimaryPart/Part's Angle (or where the top of part is facing)

Subject says it all.

For Example: if a part was placed in by default, have it move up

^. - move up
-----
-----
-----

but it it was tilted, have it move up relative to top of part


----- <
----- - move at that angle (still moves up but now also slightly right due to the angle)
-----
Report Abuse
spot9110 is online. spot9110
Joined: 05 Dec 2009
Total Posts: 475
03 Jan 2017 06:19 PM
Bump. But I doubt anyone knows the answer.
Report Abuse
spot9110 is online. spot9110
Joined: 05 Dec 2009
Total Posts: 475
03 Jan 2017 06:24 PM
Bump Bump. Adding a 100R$ reward now
Report Abuse
spot9110 is online. spot9110
Joined: 05 Dec 2009
Total Posts: 475
03 Jan 2017 06:26 PM
...
Report Abuse
tbnj123 is online. tbnj123
Joined: 29 Oct 2010
Total Posts: 443
03 Jan 2017 06:27 PM
primary part huh

http://wiki.roblox.com/index.php?title=API:Class/Model/SetPrimaryPartCFrame
Report Abuse
spot9110 is online. spot9110
Joined: 05 Dec 2009
Total Posts: 475
03 Jan 2017 06:28 PM
^Thats not the part I'm wondering how to do. I need to know how to move it based on parts angle.
Report Abuse
Real_Spooky is not online. Real_Spooky
Joined: 23 Oct 2013
Total Posts: 3149
03 Jan 2017 06:32 PM
local pcf = game.Workspace.Part.CFrame

mov = 3

game.Workspace.Part.CFrame = pcf + pcf.upVector * mov

here go you welcome
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