|
| 05 Jun 2014 11:51 PM |
How do I get this to shrink? Like shrink then when its so small u cant see...
function onTouched(hit) local doors = script.Parent.Parent.Parent.Doors local door1 = doors.door1 local door2 = doors.door2 repeat door1.Size.X door1.Size.Y door1.Size.Z until door1.Size.X == 0 end
script.Parent.Touched:connect(onTouched)
Thats as far as I got... |
|
|
| Report Abuse |
|
|
|
| 05 Jun 2014 11:52 PM |
door1.Size = door1.Size-Vector3.new(1,1,1) wait() until door1.Size.X<=0 |
|
|
| Report Abuse |
|
|
robomax11
|
  |
| Joined: 07 Jul 2011 |
| Total Posts: 6828 |
|
|
| 05 Jun 2014 11:54 PM |
function onTouched(hit) local doors = script.Parent.Parent.Parent.Doors local door1 = doors.door1 local door2 = doors.door2 repeat wait() door1.Size = door1.Size - Vector3.new(.1, .1, .1) until door1.Size == Vector3.new(.2, .2, .2) -- .2 is lowest if brick is custom --code for when door is small end |
|
|
| Report Abuse |
|
|
kubuto2
|
  |
| Joined: 16 Jul 2008 |
| Total Posts: 1275 |
|
|
| 06 Jun 2014 12:24 AM |
function onTouched(hit) local doors = script.Parent.Parent.Parent.Doors local door1 = doors.door1 local door2 = doors.door2 repeat wait() door1.Size = door1.Size - Vector3.new(.1, .1, .1) until door1.Size == Vector3.new(.2, .2, .2) -- .2 is lowest if brick is custom so we must put a mesh in it! local mesh = Instance.new("BrickMesh", door1) repeat wait() mesh.Scale = mesh.Scale - Vector3.new(.1, .1, .1) until mesh.Scale == Vector3.new(0, 0, 0)
end |
|
|
| Report Abuse |
|
|