UnAdmin
|
  |
| Joined: 10 Jul 2012 |
| Total Posts: 4706 |
|
|
| 19 Sep 2013 10:09 PM |
I am trying to move an object when I press a key. Here is the script.
function cirrus.keyDown(key) local v = p.Main.BodyVelocity.velocity if key == "w" then v.Z = -50 elseif key == "s" then v.Z = 50 elseif key == "a" then v.X = -50 elseif key == "d" then v.X = 50 end end
Error is - Z cannot be assigned to |
|
|
| Report Abuse |
|
|
UnAdmin
|
  |
| Joined: 10 Jul 2012 |
| Total Posts: 4706 |
|
|
| 19 Sep 2013 10:10 PM |
| ghad damn posted here where nobody can even comprehend what I typed |
|
|
| Report Abuse |
|
|
|
| 19 Sep 2013 10:12 PM |
| Why didn't scripting helpers help |
|
|
| Report Abuse |
|
|
UnAdmin
|
  |
| Joined: 10 Jul 2012 |
| Total Posts: 4706 |
|
|
| 19 Sep 2013 10:13 PM |
| posted here first on accident |
|
|
| Report Abuse |
|
|
| |
|