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: Region3 Trouble

Previous Thread :: Next Thread 
Dozer86421 is not online. Dozer86421
Joined: 18 Aug 2011
Total Posts: 726
21 Sep 2012 04:55 PM
I am learning how to use Region3, and I've already messed up on the code! Does this look wrong to you? Here's the code:

-Made by Dozer86421
script.Name = "Region3Script"
local Region3 = Region3.new(Vector3.new(600,600,600),Vector3.new(0,0,0))
local Objects = Workspace:FindPartsInRegion3(Region3,100,100)

for i = 1, #Objects do
Objects[i]:Destroy()
end

And Output:

16:45:37 - Unable to cast value to Object
16:45:37 - Script "Workspace.Region3Script", Line 4
16:45:37 - stack end

It's on line 4, and I think it's the arguments. There's three arguments, and I think it was the first one I messed up on.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
21 Sep 2012 05:03 PM
http://wiki.roblox.com/index.php/Region3 that could help you, but I don't know if you looked at it or another script, but I do know CM32 has a plane kit with the button having a Region3 in it, so you could take a look at that.

http://www.roblox.com/CeaselessSouls-Admin-Commands-Gui-based-item?id=92856199 -- Take one and enjoy! Read the description, has a lot of information. http://www.roblox.com/Forum/ShowPost.aspx?PostID=78242642 -- Read this no requests thread, this is all true.
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
21 Sep 2012 05:03 PM
> Sees another thread.
> Realizes it has the same content.
> Gets confused.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
21 Sep 2012 05:06 PM
XD.

http://www.roblox.com/CeaselessSouls-Admin-Commands-Gui-based-item?id=92856199 -- Take one and enjoy! Read the description, has a lot of information. http://www.roblox.com/Forum/ShowPost.aspx?PostID=78242642 -- Read this no requests thread, this is all true.
Report Abuse
Dozer86421 is not online. Dozer86421
Joined: 18 Aug 2011
Total Posts: 726
21 Sep 2012 05:06 PM
I already looked at that article! It's the one that confused me and made my code not work!
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