|
| 12 Apr 2014 09:55 PM |
while true do wait(0.02) local value = script.Parent local x, y, z = value.x, value.y, value.z x, y, z = x + 0, y + 0.01, z + 0 script.Parent.Parent.Position = Vector3.new(x, y, z) end
The script's parent is a Vector3Value and the parent of that is a part. But there's something wrong with the script.
Output- "x is not a valid member of Vector3Value - line 4"
Any help would be appreciated |
|
|
| Report Abuse |
|
|
|
| 12 Apr 2014 09:56 PM |
| what is 'x' (a number value...?) |
|
|
| Report Abuse |
|
|
|
| 12 Apr 2014 10:08 PM |
| It's supposed to represent the 'x' value of the Vector3Value |
|
|
| Report Abuse |
|
|
|
| 12 Apr 2014 11:35 PM |
So assuming 'value' represents a Vector3Value...
while true do wait(0.02) local value = script.Parent local x, y, z = value.Value.X, value.Value.Y, value.Value.Z x, y, z = x + 0, y + 0.01, z + 0 script.Parent.Parent.Position = Vector3.new(x, y, z) end |
|
|
| Report Abuse |
|
|