|
| 01 Mar 2013 08:43 PM |
| Hi, I need help me my game whoever helps me gets full credit in my game i'm wondering were do i find shootable glass i can't find any at all, plz help me or tell me how to make shootable glass plz help. |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2013 08:46 PM |
First u make the glass. Insert script(empty), the function is on touch. but use this : if (Player == nil) then THEN do the breaking and the sound animations. do the rest urself. btw anything but players can break it. u can also detect the name of the bullet so even small parts cannot break it |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2013 08:47 PM |
What do you mean by "Shootable"
Do you man it shatters into separate pieces, or dissapears completely? |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2013 08:55 PM |
| lol sorry yes if u make it shatter that clone some pieces and created sound but remember to clean up after a wait() to avoid spam n crash |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2013 08:57 PM |
| ok, thx for your help thx so much, and yes i would like to shatter. |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2013 08:58 PM |
| Make a script that detects when the bullet hits. Then, make a script that gets rid of the window, and replaces it with smaller parts. |
|
|
| Report Abuse |
|
|
| |
|
Infocus
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 8022 |
|
|
| 01 Mar 2013 09:25 PM |
If would be easier if that glass was a model made out of different parts. Then make a part invisible that goes around it and overlaps a bit.
Then you would just add to the overlapping part:
lol = script.Parent
lol.Touched:connect(function(hit) lol.Parent:BreakJoints() end)
It would break lal.
|
|
|
| Report Abuse |
|
|
Infocus
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 8022 |
|
|
| 01 Mar 2013 09:26 PM |
That's how I would make mine anyways.
Or you can use a for loop that makes smaller versions of the glass to imitate shattering. |
|
|
| Report Abuse |
|
|
| |
|
|
| 01 Mar 2013 09:31 PM |
No-one has made a script yet. Please, go make one yourself, or make a request on the Scripting forum, not scripting helpers. |
|
|
| Report Abuse |
|
|
Infocus
|
  |
| Joined: 28 Apr 2011 |
| Total Posts: 8022 |
|
|
| 01 Mar 2013 09:32 PM |
| Scripters won't be careful with you. |
|
|
| Report Abuse |
|
|
| |
|
| |
|