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: What am I doing incorrectly?

Previous Thread :: Next Thread 
Arkose is not online. Arkose
Joined: 26 May 2013
Total Posts: 745
26 Dec 2013 07:34 PM
vert1 = riverstart.Position + Vector3.new(riverstart.Size.X/2 + riverstart.Size.X, -50, riverstart.Size.Z/2 + riverstart.Size.Z)
print(vert1)
vert2 = riverstart.Position + Vector3.new(-(riverstart.Size.X/2) - (riverstart.Size.X), 50, -(riverstart.Size.Z/2) -(riverstart.Size.Z))
print(vert2)
print(riverstart.Position)

riverstart.BrickColor = BrickColor.new("Hot pink")
print(#(Workspace:FindPartsInRegion3(Region3.new(vert1, vert2), nil, 100)))

Output:

60, -47.5999985, 90
30, 52.4000015, 60
45, 2.4000001, 75
0

No errors, but it is not capturing any of the parts, even though they are definitely in that region.




~ắṝḱờṧἓ
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
26 Dec 2013 07:35 PM
Did you define riverstart??
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
26 Dec 2013 07:35 PM
Everything.
Report Abuse
Arkose is not online. Arkose
Joined: 26 May 2013
Total Posts: 745
26 Dec 2013 07:36 PM
Everything is defined, this is just a small portion of code.






~ắṝḱờṧἓ
Report Abuse
Arkose is not online. Arkose
Joined: 26 May 2013
Total Posts: 745
26 Dec 2013 07:39 PM
As you can tell by the output, the part is definitely within the region.






~ắṝḱờṧἓ
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
26 Dec 2013 07:40 PM
No, I meant, you're doing everything wrong ._.
Report Abuse
Arkose is not online. Arkose
Joined: 26 May 2013
Total Posts: 745
26 Dec 2013 07:40 PM
What are you talking about?





~ắṝḱờṧἓ
Report Abuse
Arkose is not online. Arkose
Joined: 26 May 2013
Total Posts: 745
26 Dec 2013 07:46 PM
bump





~ắṝḱờṧἓ
Report Abuse
lolb3 is not online. lolb3
Joined: 16 Jan 2010
Total Posts: 2268
26 Dec 2013 07:50 PM
here's one thing
instead of adding half just multiply by 1.5

vert1 = riverstart.Position + Vector3.new(riverstart.Size.X*1.5, -50, riverstart.Size.Z*1.5)
print(vert1)
vert2 = riverstart.Position + Vector3.new(riverstats.Size.X*-1.5, 50, riverstats.Size.Z*-1.5)
Report Abuse
Arkose is not online. Arkose
Joined: 26 May 2013
Total Posts: 745
26 Dec 2013 08:58 PM
True.

Bumpbump
Report Abuse
barson3 is not online. barson3
Joined: 16 Jan 2011
Total Posts: 1706
26 Dec 2013 11:43 PM
Ok, lets start over.

~Cleverbot
Report Abuse
Arkose is not online. Arkose
Joined: 26 May 2013
Total Posts: 745
27 Dec 2013 08:26 PM
bump






~ắṝḱờṧἓ
Report Abuse
Arkose is not online. Arkose
Joined: 26 May 2013
Total Posts: 745
28 Dec 2013 12:35 PM
buuuump






~ắṝḱờṧἓ
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