|
| 16 Jul 2012 05:48 AM |
| A brick that when u click it a model or something comes out.Example:I want to attach parachutes to my car but i want a brick that when u click it the parachutes will pop out.Help please |
|
|
| Report Abuse |
|
|
ExosXguy
|
  |
| Joined: 10 Oct 2010 |
| Total Posts: 2239 |
|
|
| 16 Jul 2012 09:38 AM |
| This belongs in SH more than BH. |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2012 02:45 PM |
| A gui and MouseButtonDown() or something like that. never scripted before, but you can use that and what you get from SH. |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2012 03:16 PM |
I can give it to you for a button, but not clicked:
p = script.Parent.Parent.InsertPartName function ontouched(hit) p.transparency = 0 end script.Parent.touched:connect()
This probably has a few errors, but it should be able to kinda work. Make sure the parachute is 1 brick with a mesh. Hopefully it's better than the last script I tried to provide... :P. |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2012 03:16 PM |
| Oh, and make sure that the button and the parachute are inside the same model. |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2012 04:25 PM |
p = script.Parent.Parent.(The model's name here) function onClick() p.transparency = 0 end script.Parent.Click:connect(onClick)
I think...? Oh and make sure the model would all have a transparency of 1 at first. |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2012 04:28 PM |
Oh gosh I'm so sorry I made an error. At the line where it says: script.Parent.Click:connect(onClick)
change that to
script.Parent.ClickDetector.MouseClick:connect(onClick)
Make sure there's a click detector in the brick... |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2012 09:48 PM |
| Shoot, I hope I'm not banned for replying too much. I'm making so much errors... Last correction: it's MouseButton1Down and not MouseClick x_x. |
|
|
| Report Abuse |
|
|