I think I should use the cut technology.
Bc it looks easier.
Bruh it’s hard.
I think I should use the cut technology.
Bc it looks easier.
Bruh it’s hard.
I guess I should make a handmade one.
Maybe make the glass a model made by more parts and when .Touched, use BreakJoints function.
Try to actually put some hard work in, and not pretty much ask for a ready-made script.
"Bruh that would will be very hard work.
Come on, Thousands of lines."
is not the right attitude.
The Scripting Support category is more of a place for asking others for help on issues you are facing or perhaps pointing you in the right direction, but it’s not a place to ask for others to write you working scripts.
A much simpler method to simulate breaking glass would probably to have the broken pieces in the frame with their transparency set to 1, cancollide false and all parts anchored then when it is broken get the script to remove the single intact glass piece then set the broken pieces transparency to the level you use for windows, set them to cancollide true and then unanchor them. This should give you the desired effect.
I don’t want to make it like that because I don’t have a lot of free time on studio.
I have to go to school and study, so I can’t make it like that.
Also, This topic is not solved but I use the breakable window by using a simple script for another way to make it.
I did what you said XD, This is the way I used. But I still want to know how to do the breakable glass on the topic.
made an example setup. In my example the glass breaks when touched Breaking Glass demo.rbxl (21.2 KB)
Heya, what @JinxFury18 suggested might be the easiest approach and you should try experimenting “Dividing” the part into 4 according to the impact.
Then, just convert the squares into triangles, Rotation according to the central point again.
What a great idea! I think i’m just figured it out .
How did you do that?!?! Can you tell me how more detailed, because that is what I am looking for!
I think this is a great way to do it, but how would you detect it, I’m trying to make breakable glass myself and can’t figure it out
By having a module for the glass, you could then call a function stating the point where it hit as well as the velocity of whatever you’re hitting it with (bullet, crowbar, sword, etc.). Then, you don’t have to handle necessarily detecting when its hit but rather calling the function when you know its hit.
Indeed, what jinxfury18 said is the easiest approach. However, let me explain to you the difficult way by showing you how “The Last of Us Part II” did this.
For those of you who played this, you would know that the creators of this game made the glass extremely satisfying compared to many other games. They created many different ways of the glass breaking for each method of attack, such as melee, throwable, weapons, etc.
Instead of having the glass break in real time, they made it seem like the glass was breaking real time. They made an effect. So, if you are going for a realistic approach, make an effect and not real time breaking. They had two layers of glass: Pane layer and debris layer. The pane layer gave the different sounds of the breaking glass to different sizes of glass. The debris layer is a mix of short and long glass debris. When you break it, it will all fall. As you see, this is an illusion. The player only sees the pane layer at first. When they finally strike the invisible pane layer, the pane layer makes the sound of breaking glass depending on the size of the glass, and then the debris layer will fall back by becoming unanchored.
I hope this helped for making a more realistic method and a performance efficient method.
Sincerely,
coolguyweir.