Gatuno7000
(Gatuno7000)
February 14, 2020, 3:12pm
#1
How can I make a script that when you collide with a part it’s shatters in parts and the shatter pattern is randomly generated
like this but when you touch it
Thanks for the help!
3 Likes
The best way to do it depends on whether that part is anchored (not moving) or not anchored (moving).
If anchored, have all the ‘pieces’ in a model, just iterate over the model and unachor each piece.
If not achored, then the pieces should be welded. Just destroy the welds.
Generally, something most people does with shatter is have a full piece that’s visible, and when it’s time to shatter, hide that piece and show the pieces (before doing what I stated above)
Jaycbee05
(Jaycbee)
February 14, 2020, 5:05pm
#3
Take a look at This/these threads:
This was a part of snack break 28, EgoMoose’s challenge:
CAUTION: Math and Trigonometric Manipulation content up ahead, turn back now before it’s too late.
Have no fear, for I think I have found what you’ve been looking for:
[image]
[image]
[image]
EgoMoose had a challenge on ScriptingHelpers that allowed people to find methods and ways to accomplish what he did in those gifs, Snack Break Problem #28 - Scripting Helpers
Luckily for us he provided the solution/source code, so you can take a look at it and see how you can implement it with your Li…
These might not be exactly what you are looking for but it might give you a better idea of how to go about your problem.
Hi, I know I have lots of questions. But that’s not the point.
Today,I planned to make a breakable glass.
I want to make make it like this for example:
[Rectangle]
PointO is the breakpoint.
And Point EFGH should be the position of triangles.
I want to make it generate eight pieces of triangle glass, in order to make it simple and lagless .
[RobloxScreenShot20191222_150757119]
it should be like this. Hope you guys can help me:)
How to make a breakable glass that generates …
Ok so for a long time I have been wondering how to make glass that can break when it is shot or hit with a certain speed… So I was wondering if anyone knew how to make glass that…
Breaks at a certain speed
Can be Shot or struck and break
If Shot struck or hit breaks into smaller fragments
The glass regenerates with no glass debris after a certain amount of time so it looks normal
Also realistic sound
1 Like