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
 

Neat joints trick

Previous Thread :: Next Thread 
sk8ercool456 is not online. sk8ercool456
Joined: 24 Jan 2008
Total Posts: 1846
12 Nov 2011 07:02 PM
You can tell when a joint breaks in-game, and then get the name of the two parts that were broken apart:

function checkBrokenJoint(joint)
print(joint.Part0, joint.Part1)
end

game.JointsService.ChildRemoved:connect(checkBrokenJoint)

I feel slow for just figuring this out :P
Report Abuse
xSIXxStorage is not online. xSIXxStorage
Joined: 22 Aug 2010
Total Posts: 1811
12 Nov 2011 07:02 PM
cOLD mOLD
Report Abuse
sk8ercool456 is not online. sk8ercool456
Joined: 24 Jan 2008
Total Posts: 1846
12 Nov 2011 07:03 PM
ikr
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
12 Nov 2011 07:05 PM
its very mOLDy cOLD
Report Abuse
sk8ercool456 is not online. sk8ercool456
Joined: 24 Jan 2008
Total Posts: 1846
12 Nov 2011 07:05 PM
That's why I put that last line in. I don't do much tinkering with this kind of stuff
Report Abuse
gyz is not online. gyz
Joined: 27 Aug 2008
Total Posts: 741
13 Nov 2011 12:13 AM
well if you want more info...

JointsService stores ALL the snaps of bricks. That's how people make spreading fire. By checking each snap and seeing if the bricks are attached.
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
13 Nov 2011 06:38 AM
@gyz

No thats how nubs make spreading fire.


Pros use laggy loops that use cframe and random vector3 math to get closeby parts!


xLegoX AKA s_____? uses high performance octrees and fancy algorithms that look like theyre directly from wikipedia.
Report Abuse
gyz is not online. gyz
Joined: 27 Aug 2008
Total Posts: 741
13 Nov 2011 06:10 PM
Eh,
I firmly believe in "the end justifies the means..."

so... if its laggy, no cake for you.

Seriously, if it doesn't run smoothly enough on my comp, its not good enough.
I'm saying, 512mb of RAM, Intel Pentium 4, and crappy integrated graphics. And sounds like a jet engine going on and off.

The ONLY thing that my computer does better than other computers is powerpoint animations. It can animate 20 things at once extremely smoothly, while other computers will choke at 5fps.
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
13 Nov 2011 07:20 PM
cOLD mOLD on a sLATE pLATE with a sOLD mOLDy pLATE on the LATE sLATE pLATE LATE LATE late late
Report Abuse
coplox is not online. coplox
Joined: 07 Jun 2008
Total Posts: 3252
13 Nov 2011 07:29 PM
I would just use;

local Num = 30
Stuff = Workspace:FindPartsInRegion3(Part.Position + Vector3.new(Num/2, Num/2, Num/2), Part.Position - Vector3.new(Num/2, Num/2, Num/2))
--Do things with 'Stuff'
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
14 Nov 2011 06:48 AM
@coplox

But doesnt that search by the parts centers, not whether theyre actually in the region?





And it uses ugly roblox function, xL3GOX AKA s______ wants you to use laggy Lua octrees. Or something.
Report Abuse
HotThoth is not online. HotThoth
Forum Moderator
Joined: 24 Aug 2010
Total Posts: 1176
14 Nov 2011 12:00 PM
No, Region3 queries see if the part overlaps or lies within the bounding region, and makes use of the spatial hashing already in place in the ROBLOX engine, so it'd be pretty tough to do faster than that.
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
14 Nov 2011 12:04 PM
Y didnt i know that earlier D:

*goes make super fast spreading fire*
Report Abuse
zars15 is not online. zars15
Joined: 10 Nov 2008
Total Posts: 9999
14 Nov 2011 12:21 PM
Why random Vector3 and CFrame math for fire? Just use rays!
Report Abuse
gyz is not online. gyz
Joined: 27 Aug 2008
Total Posts: 741
14 Nov 2011 06:56 PM
Because rays are even more laggy.
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