DevSmart
|
  |
| Joined: 16 Jun 2012 |
| Total Posts: 139 |
|
|
| 03 Mar 2016 07:27 PM |
How do I change a vector3 value to a brick's vector3 value using a script? I've tried using this script:
while true do wait() script.Value.Value.X = script.Parent.CFrame.X script.Value.Value.Y = script.Parent.CFrame.Y script.Value.Value.Z = script.Parent.CFrame.Z end
But I get an error. Can someone help ~ basically give me the script. :P
|
|
|
| Report Abuse |
|
|
DevSmart
|
  |
| Joined: 16 Jun 2012 |
| Total Posts: 139 |
|
| |
|
| |
|
|
| 03 Mar 2016 08:07 PM |
CFrame has vector components but it isn't the same as a vector3.
try CFrame.p.X or just Position.X, they're the same anyway. |
|
|
| Report Abuse |
|
|
DevSmart
|
  |
| Joined: 16 Jun 2012 |
| Total Posts: 139 |
|
|
| 03 Mar 2016 08:33 PM |
| The error is X cannot be assigned to . |
|
|
| Report Abuse |
|
|
DevSmart
|
  |
| Joined: 16 Jun 2012 |
| Total Posts: 139 |
|
| |
|
DevSmart
|
  |
| Joined: 16 Jun 2012 |
| Total Posts: 139 |
|
| |
|
|
| 03 Mar 2016 09:04 PM |
while true do wait() script.Value.Value = Vector3.new(script.Parent.CFrame.p) end |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2016 09:05 PM |
| if "script.Value" is a Vector3Value object then that should work. |
|
|
| Report Abuse |
|
|