generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Shootable Glass

Previous Thread :: Next Thread 
sloppycrazykid246 is not online. sloppycrazykid246
Joined: 25 Aug 2012
Total Posts: 48
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
THELORD4733 is not online. THELORD4733
Joined: 14 Jun 2009
Total Posts: 52
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
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
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
THELORD4733 is not online. THELORD4733
Joined: 14 Jun 2009
Total Posts: 52
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
sloppycrazykid246 is not online. sloppycrazykid246
Joined: 25 Aug 2012
Total Posts: 48
01 Mar 2013 08:57 PM
ok, thx for your help thx so much, and yes i would like to shatter.
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
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
THELORD4733 is not online. THELORD4733
Joined: 14 Jun 2009
Total Posts: 52
01 Mar 2013 09:12 PM
xplain that in lua plz?
Report Abuse
Infocus is not online. 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 is not online. 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
sloppycrazykid246 is not online. sloppycrazykid246
Joined: 25 Aug 2012
Total Posts: 48
01 Mar 2013 09:28 PM
well could i use yours?
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
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 is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
01 Mar 2013 09:32 PM
Scripters won't be careful with you.
Report Abuse
sloppycrazykid246 is not online. sloppycrazykid246
Joined: 25 Aug 2012
Total Posts: 48
01 Mar 2013 09:40 PM
ok
Report Abuse
THELORD4733 is not online. THELORD4733
Joined: 14 Jun 2009
Total Posts: 52
02 Mar 2013 08:36 AM
I can never script :C
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image