FEAR1201
|
  |
| Joined: 29 Jun 2009 |
| Total Posts: 18 |
|
|
| 25 Nov 2014 05:37 PM |
| Guess what? I'm a complete noob to scripting and making games on here. Now that, that's out of the way. I am just trying out a few things but I want to make it so that if you walk into a brick it falls apart or like has physics applied to it like when you walk into a weak wall it just falls apart. searching through class files or the advanced objects, I couldn't seem to figure out on how to actually accomplish this. Please, need assistance. |
|
|
| Report Abuse |
|
|
jasondee1
|
  |
| Joined: 26 Jul 2008 |
| Total Posts: 8002 |
|
|
| 25 Nov 2014 05:39 PM |
| make the brick out of smaller bricks |
|
|
| Report Abuse |
|
|
FEAR1201
|
  |
| Joined: 29 Jun 2009 |
| Total Posts: 18 |
|
|
| 26 Nov 2014 06:38 PM |
| Yeah, but I'm looking for an actually like touch effect or something. |
|
|
| Report Abuse |
|
|
| |
|
FEAR1201
|
  |
| Joined: 29 Jun 2009 |
| Total Posts: 18 |
|
|
| 26 Nov 2014 06:44 PM |
| Now would this make the brick fall and let physics interact with it? |
|
|
| Report Abuse |
|
|
FEAR1201
|
  |
| Joined: 29 Jun 2009 |
| Total Posts: 18 |
|
|
| 26 Nov 2014 06:58 PM |
| Imperial what comes before the semi colon? and where do i enter this? |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2014 07:11 PM |
function onTouch(hit) local find = game.Workspace:FindFirstChild("ModelName") find:BreakJoints() end
Then call the function. |
|
|
| Report Abuse |
|
|
FEAR1201
|
  |
| Joined: 29 Jun 2009 |
| Total Posts: 18 |
|
|
| 29 Nov 2014 10:27 AM |
| Alright, I'll try it. Now what does "Child" stand for in lua? |
|
|
| Report Abuse |
|
|
FEAR1201
|
  |
| Joined: 29 Jun 2009 |
| Total Posts: 18 |
|
|
| 29 Nov 2014 10:43 AM |
| Also how exactly do you call a function? |
|
|
| Report Abuse |
|
|
fret13103
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 881 |
|
|
| 29 Nov 2014 11:02 AM |
| ... Just make the brick out of little bricks and unanchor them all. Make sure they don't have joints using a for loop in pairs to go through the children and delete joints if they have any. |
|
|
| Report Abuse |
|
|
FEAR1201
|
  |
| Joined: 29 Jun 2009 |
| Total Posts: 18 |
|
| |
|
FEAR1201
|
  |
| Joined: 29 Jun 2009 |
| Total Posts: 18 |
|
|
| 30 Nov 2014 10:59 AM |
| Do I put the script in the workspace or the brick itself? |
|
|
| Report Abuse |
|
|