|
| 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 |
|
|
|
| 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 |
|
|
|
| 21 Sep 2012 05:03 PM |
> Sees another thread. > Realizes it has the same content. > Gets confused. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|