Moolah101
|
  |
| Joined: 22 Sep 2010 |
| Total Posts: 614 |
|
|
| 19 Jun 2012 02:50 PM |
How would i put this script into this brick (and they have to be in same script):
b = Instance.new("Part",Workspace) b.Position = Vector3.new(0,1,0) b.Anchored = true
function onTouched(hit) hit.Parent:breakJoints() end
script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2012 02:56 PM |
| You can make a script clone a brick that already has that script in it. |
|
|
| Report Abuse |
|
|
Moolah101
|
  |
| Joined: 22 Sep 2010 |
| Total Posts: 614 |
|
| |
|
|
| 19 Jun 2012 03:17 PM |
I don't understand what you are trying to do, but one mistake that you have is that it is BreakJoints() not breakJoints(). The capital is important. |
|
|
| Report Abuse |
|
|
|
| 19 Jun 2012 03:19 PM |
Oh wait, so you want to move that script into the brick.
You could do
script.Parent = "BRICKNAMEHERE"
or you could clone the script and then set the scripts parent. |
|
|
| Report Abuse |
|
|
Moolah101
|
  |
| Joined: 22 Sep 2010 |
| Total Posts: 614 |
|
|
| 20 Jun 2012 07:42 AM |
b = Instance.new("Part",Workspace) b.Position = Vector3.new(0,1,0) b.Anchored = true b.Name = "lava"
script.Parent = "lava"
function onTouched(hit) hit.Parent:breakJoints() end
script.Parent.Touched:connect(onTouched)
Like that??? |
|
|
| Report Abuse |
|
|
Cheater
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 5258 |
|
|
| 20 Jun 2012 07:45 AM |
b = Instance.new("Part",Workspace) b.Position = Vector3.new(0,1,0) b.Anchored = true
script.Parent = b
function onTouched(hit) hit.Parent:breakJoints() end
script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
Moolah101
|
  |
| Joined: 22 Sep 2010 |
| Total Posts: 614 |
|
| |
|