Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would i fill up a part with smaller parts?

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

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!)

2 comments

0

I have already made a disappear script. And I was talking about several pieces and not that the glass just goes away.

0

then sorrry

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!

2 comments

0

Uh, im also thinking about parts with sizes like 500 studs that break into 1 stud parts..

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

This discussion is preserved as it was. New answers, comments, and votes are closed.