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
 

Size something to...

Previous Thread :: Next Thread 
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
02 Oct 2016 03:02 PM
Distance between two objects..?
Report Abuse
DataRoot is not online. DataRoot
Joined: 07 Apr 2016
Total Posts: 586
02 Oct 2016 03:02 PM
This has all the answers: https://www.youtube.com/watch?v=OLuvQoF1o58
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
02 Oct 2016 03:03 PM
local distance = (thing1.Position-thing2.Position).magnitude


Report Abuse
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
02 Oct 2016 03:03 PM
local dist = (obj1.Position - obj2.Position).magnitude
part.Size = Vector3.new(dist, 1, 1)

you may want to change the components for the Size depending on what you want.
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
02 Oct 2016 03:12 PM
I'm trying to use something like:

local dist = ((c1 - c2).magnitude)
arm1.Size = Vector3.new(arm1.Size.X, arm1.Size.Y, dist)
local dis2t = ((p1 - p1).magnitude)
arm3.Size = Vector3.new(arm3.Size.X, arm3.Size.Y, dis2t)

But its not quite working:

https://www.roblox.com/games/508523310/other-place
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
08 Oct 2016 01:48 AM
b
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