|
| 31 Jul 2010 07:10 PM |
| I'm not grwat at scripting, could some one tell me how to make a script that I could put into a brick so when another brick touches it, that brick will shrink? I don't think it's hard, but then again, I can barely script. Please respond. |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2010 07:11 PM |
function onTouched() s=script.Parent s.Size=s.Size + Vector3.new(0, -0.1, 0) end script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
| |
|
|
| 31 Jul 2010 07:13 PM |
script.Parent.Touched:connect(function(part) local Mesh = script.Parent["BlockMesh"] while true do Mesh.Scale = Vector3.new(5, 5, 5) wait(1) Mesh.Scale = Vector3.new(4, 4, 4) wait(1) Mesh.Scale = Vector3.new(3, 3, 3) wait(1) Mesh.Scale = Vector3.new(2, 2, 2) wait(1) Mesh.Scale = Vector3.new(1, 1, 1) end end) |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2010 07:19 PM |
| neither of the scripts are working. The bricks will touch eachother and the scripted brick will just jump out of the way. I have the scripted brcik anchored, will that make a diffrence? |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2010 07:21 PM |
Is it a plate? If so, it needs to be.
~JONESY~ |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2010 07:23 PM |
| I made it a plate, but it's still not working. |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2010 07:24 PM |
hmn, I don't know then.
~JONESY~ |
|
|
| Report Abuse |
|
|
| |
|
|
| 31 Jul 2010 08:06 PM |
| Im need the same thing. Wouldn't be better with a script that makes the Brick shrink and enlarge itself automatically? |
|
|
| Report Abuse |
|
|
|
| 01 Aug 2010 08:36 AM |
Make sure the brick is the same hight as
"for i=1 INSERTNUMBERHERE do"
|
|
|
| Report Abuse |
|
|