|
| 25 Nov 2012 01:40 PM |
Why isn't this working?
function onClicked() local conv = script.Parent.Parent.Conveyor3 local bf = Instance.new("BodyForce",conv) script.Parent.ClickDetector.MouseClick:connect(function) bf.force = Vector3.new(0,0,500) end script.Parent.ClickDetector.MouseClick:connect(onClicked) |
|
|
| Report Abuse |
|
|
eJorge
|
  |
| Joined: 09 Jun 2011 |
| Total Posts: 5966 |
|
|
| 25 Nov 2012 01:47 PM |
local conv = script.Parent.Parent.Conveyor3 local bf = Instance.new("BodyForce",conv) script.Parent.ClickDetector.MouseClick:connect(function() bf.force = bf.force + Vector3.new(0,0,500) end)
Why did you change the script? It was right the way I PMed it :l |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 25 Nov 2012 01:58 PM |
| eJorge's code is correct. Something you're doing is wrong. Are you sure that the script is in the right place? |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2012 02:01 PM |
| It's all in the right place. it's not creating a BodyVelocity inside conveyor3 |
|
|
| Report Abuse |
|
|