69scott69
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 6136 |
|
|
| 11 Dec 2011 09:55 PM |
I have a huge noob model that I want to smash with a car (Its about 160 studs high with a whole lotta parts). I'm new to scripting so will this script in the bumpers work or am I out in left field?
game.Workspace.Vehicle:OnTouch("workspace.Noob") function x=Instance.new.hit:BreakJoints() end end end
Thanks!
|
|
|
| Report Abuse |
|
|
mage11561
|
  |
| Joined: 03 Sep 2008 |
| Total Posts: 13217 |
|
|
| 11 Dec 2011 09:57 PM |
function onTouched(part) a = part.Parent:FindFirstChild("Noob") if a ~= nil then a:BreakJoints() end end script.Parent.Touched:connect(onTouched)
That should work... i think. |
|
|
| Report Abuse |
|
|
Riderj
|
  |
| Joined: 15 Aug 2011 |
| Total Posts: 1534 |
|
|
| 11 Dec 2011 09:58 PM |
Your not even in the same park lol.
function ot(hit) if hit.Parent.Name == "Noob" and hit.Parent.ClassName == "Model" then hit.Parent:BreakJoints() end end
script.Parent.Touched:connect(ot)
that should work, was just winging it so please correct me if I am wrong. |
|
|
| Report Abuse |
|
|
mage11561
|
  |
| Joined: 03 Sep 2008 |
| Total Posts: 13217 |
|
|
| 11 Dec 2011 10:00 PM |
yeah use riderj's script, mine is a little messed up methinks. |
|
|
| Report Abuse |
|
|
69scott69
|
  |
| Joined: 30 Jan 2011 |
| Total Posts: 6136 |
|
|
| 11 Dec 2011 10:05 PM |
| @ both. Thanks for your help, I understand the basics of scripts that are written, but obviously fail miserably when trying to start from the beginning. lol |
|
|
| Report Abuse |
|
|