Rage4EvA
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 145 |
|
|
| 22 Dec 2012 04:10 PM |
function BrickTouch(part) part.Position = Vector3.new(-2.965, 57.8, -89.87) Wait(1/30) part.Position = Vector3.new(-2.965, 58.8, -89.87) Wait(1/30) part.Position = Vector3.new(-2.965, 59.8, -89.87) Wait(1/30) part.Position = Vector3.new(-2.965, 57.8, -89.87) Wait(1/30) part.Position = Vector3.new(-2.965, 58.8, -89.87) Wait(1/30) part.Position = Vector3.new(-2.965, 59.8, -89.87) Wait(1/30) part.Position = Vector3.new(-2.965, 60.8, -89.87) Wait(1/30) part.Position = Vector3.new(-2.965, 61.8, -89.87) Wait(1/30) part.Position = Vector3.new(-2.965, 62.8, -89.87) Wait(1/30) part.Position = Vector3.new(-2.965, 63.8, -89.87) Wait(1/30) part.Position = Vector3.new(-2.965, 64.8, -89.87) Wait(1/30) part.Position = Vector3.new(-2.965, 65.8, -89.87) end
script.Parent.Touched:connect(BrickWasTouched)
I want it so when you touch this brick it moves up little by little so it looks like a animation |
|
|
| Report Abuse |
|
|
| 22 Dec 2012 04:18 PM |
Your connection is wrong. Here you go: script.Parent.Touched:connect(BrickTouch)
~LUV, LuaLearners Teacher(+2)~ |
|
|
| Report Abuse |
|
Rage4EvA
|
  |
| Joined: 29 Oct 2011 |
| Total Posts: 145 |
|
| |
Strieken
|
  |
| Joined: 17 Jun 2011 |
| Total Posts: 3058 |
|
|
| 22 Dec 2012 04:23 PM |
Holy.. Here, let me make this a LOT easier for you:
script.Parent.Touched:connect(function(part) for i = 57.8, 65.8, 1 do wait(1/30) script.Parent.Position = Vector3.new(-2.965, i, -89.87) end end)
:[Contact me if you would like to request a script/model through Electric Developments - more info within my profile]: |
|
|
| Report Abuse |
|
Strieken
|
  |
| Joined: 17 Jun 2011 |
| Total Posts: 3058 |
|
|
| 22 Dec 2012 04:27 PM |
Also, you should probably use CFrame instead of Vector3.
:[Contact me if you would like to request a script/model through Electric Developments - more info within my profile]: |
|
|
| Report Abuse |
|