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: Getting every point between to points?

Previous Thread :: Next Thread 
callmeduck2 is not online. callmeduck2
Joined: 18 Jan 2010
Total Posts: 2804
31 May 2012 03:29 PM
every X coordinate to be exact.. How would I find every x coordinate between 1.2 and 6.8 for example? I need like 1.3, 1.4, 1.5, 1.6, etc.. Im assuming I could do something like,
while wait() do
if X_coor < PointA.Position.X and > PointB.Position.X then
add to table somehow?

(i realize I just did from point B to point A.. Same difference ;/)

Saving for PSTF.. 13k/60k-ish :/
Report Abuse
callmeduck2 is not online. callmeduck2
Joined: 18 Jan 2010
Total Posts: 2804
31 May 2012 03:30 PM
while wait() do
if X_coor < PointA.Position.X and > PointB.Position.X then
X_coor = X_coor + 0.1
add to table somehow
end
end

Saving for PSTF.. 13k/60k-ish :/
Report Abuse
C0D3Y is not online. C0D3Y
Joined: 24 Jul 2010
Total Posts: 1692
31 May 2012 03:31 PM
What would the point of this be?
Report Abuse
callmeduck2 is not online. callmeduck2
Joined: 18 Jan 2010
Total Posts: 2804
31 May 2012 03:35 PM
I have my reasons. and before my train of thought derails, I think Ive got my answer.

while wait() do
local x_coordinate = 0
local table_value = 1
positions = {}
if x_coordinate > PointA.Position.X and < PointB.Position.X then
positions[table_value] = x_coordinate
x_coordinate = x_coordinate + 0.1
table_value = table_value + 1
else
print("Table loaded")
end
end


Saving for PSTF.. 13k/60k-ish :/
Report Abuse
Candymaniac is not online. Candymaniac
Joined: 08 Oct 2009
Total Posts: 8985
31 May 2012 03:38 PM
You could always use :lerp to find out a point between any two vector points.

☜▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☜☆☞▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☞ - Candymaniac, a highly reactive substance.
Report Abuse
callmeduck2 is not online. callmeduck2
Joined: 18 Jan 2010
Total Posts: 2804
31 May 2012 03:40 PM
not what Im needin. I got it I think

Saving for PSTF.. 13k/60k-ish :/
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