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
 

Re: Brick Between Two Others

Previous Thread :: Next Thread 
KiyomizuOkami is not online. KiyomizuOkami
Joined: 31 Jul 2008
Total Posts: 297
24 Aug 2016 04:29 PM
Anyone have a formula that will allow me to make a line between two points?
Thanks
Report Abuse
2eggnog is not online. 2eggnog
Joined: 08 Nov 2008
Total Posts: 1351
24 Aug 2016 04:32 PM
local point1, point2 = Vector3.new(0,0,0), Vector3.new(100,10,0)
local distance = (point2 - point1).magnitude

local part = Instance.new('Part', workspace)
part.Anchored = true
part.Size = Vector3.new(.2, .2, distance)
part.CFrame = CFrame.new(point1, point2) * CFrame.new(0, 0, -distance/2)


Report Abuse
KiyomizuOkami is not online. KiyomizuOkami
Joined: 31 Jul 2008
Total Posts: 297
24 Aug 2016 04:37 PM
Thank you!
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