Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How would i fill up a part with smaller parts?

Asked by 3 years ago

Hi, I'm making a click to break glass script. If you click on a piece of glass then the glass will disappear for three hundred seconds. I would like every piece of glass that a player presses to break into smaller pieces, I would like to generate smaller parts in it for the full size of the glass block. How do I do this?

I asked this question earlier but got no answer.

2 answers

Log in to vote
0
Answered by 3 years ago

Hello! So i can answer only on a one think you asked. so to make the glass disappear for 103seconds make: workspace.glassname.transparency = 0 workspace.glassname.CanCollide = false wait (103) workspace.glassname.transparency = 1 workspace.glassname.CanCollide = true

(This is ONLY FOR MAKE THE GLASS DISAPPEAR AND IT NOT WORKING FOR CLICK!)

0
I have already made a disappear script. And I was talking about several pieces and not that the glass just goes away. Bankrovers 226 — 3y
0
then sorrry superaceCZ 28 — 3y
Ad
Log in to vote
0
Answered by
spectsy 16
3 years ago

Weld many parts together and in the script break the weld attachments, if you want it to be random I recommend making a bunch of welds ad then going through the children and picking random welds to break. Good luck!

0
Uh, im also thinking about parts with sizes like 500 studs that break into 1 stud parts.. Bankrovers 226 — 3y
0
1. that would lag your game a lot 2. you should make a for loop that picks a random spot on your glass and instance new parts on that position? im not sure how that would work but it could work, and just unanchor them, once again, i do not know how that would work but might as well give it a shot. I think this is a very good challenge for me to try out my self, i'll keep you updated on it spectsy 16 — 3y

Answer this question