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 » Game Design
Home Search
 

Re: Breakable Windows..?

Previous Thread :: Next Thread 
DiamondGamer7820 is not online. DiamondGamer7820
Joined: 08 Nov 2014
Total Posts: 390
01 Nov 2015 10:28 PM
I've tried..
I really need help on this
how tf do i make breakable glass?
like in Phantom Forces
Iv'e made my own script where i made CanCollide false when you hit the window but that failed.. please help
Report Abuse
PvN is not online. PvN
Joined: 10 Apr 2010
Total Posts: 22145
01 Nov 2015 11:45 PM
window:destroy()
Report Abuse
AlgyLacey is not online. AlgyLacey
Joined: 14 Jun 2013
Total Posts: 3736
02 Nov 2015 04:27 AM
You need to make the parts of the window how you want when you break them.
Put those parts in exactly the same place as the window, then make them invisible.
When something touches the big window, make the big window invisible and the pieces visible, un-anchor the small pieces and bingo!



#code local First, Second, Third = "Create", "Publish", "Improve"
Report Abuse
direMitten is not online. direMitten
Joined: 18 Jun 2015
Total Posts: 1294
02 Nov 2015 05:04 AM
You could use a finite number of window sizes. For each window size, have two models. One will just be a normal window pane. The other will be a window pane with its glass broken into pieces. When the window is shot, replace the pane with the broken pane of the same size, and give each shard of glass a random velocity + the direction of the shot.

Alternatively, you could break the windows procedurally. Repeatedly break each shard (there will only be 1 at first, the whole pane) into two, smaller parts along the shortest axis (that is not the thickness). This will give you many, randomly sized rectangular shards of glass without any modeling work.
Report Abuse
TacticalKiller91 is not online. TacticalKiller91
Joined: 28 Jan 2014
Total Posts: 228
02 Nov 2015 07:28 AM
Create segmented windows via unions and negatives, script for onTouch when a bullet hit's the window change the anchor option for the segmented windows to false and add a bit of body velocity.

Your Welcome


~I would spit on you, but I don't want to turn you on.~
Report Abuse
TacticalKiller91 is not online. TacticalKiller91
Joined: 28 Jan 2014
Total Posts: 228
02 Nov 2015 07:32 AM
You're*
Report Abuse
DiamondGamer7820 is not online. DiamondGamer7820
Joined: 08 Nov 2014
Total Posts: 390
02 Nov 2015 08:45 AM
alright i'll try what you guys told me to do and see how it works out thanks
Report Abuse
lightpower26 is not online. lightpower26
Joined: 26 Apr 2012
Total Posts: 1046
02 Nov 2015 10:08 AM
Hmm... I got an idea, but I need to test it first. I'm not so sure about what I'm about to do...

Sizing and positioning in a script... *shudders*
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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