wentman
|
  |
| Joined: 13 Aug 2013 |
| Total Posts: 130 |
|
|
| 19 Jul 2017 11:37 PM |
I'm pretty stupid at Lua, but how do I do math and change a X position of a part E.g: X pos : 14-3 |
|
|
| Report Abuse |
|
|
wentman
|
  |
| Joined: 13 Aug 2013 |
| Total Posts: 130 |
|
| |
|
nullfeels
|
  |
| Joined: 31 Mar 2017 |
| Total Posts: 1215 |
|
|
| 19 Jul 2017 11:44 PM |
Roblox doesn't allow setting it directly so you need to do this:
local vec1 = Vector3.new(14,0,0) vec1 = vec1 - Vector3.new(3,0,0) |
|
|
| Report Abuse |
|
|
Whoami102
|
  |
| Joined: 25 Jul 2013 |
| Total Posts: 131 |
|
|
| 20 Jul 2017 12:31 AM |
You can change the position using Vectors if you want it to go to an exact place, or you can change the CFrame and translate the part (X) studs in the X direction.
print("You probably pronounced my name wrong") |
|
|
| Report Abuse |
|
|