| |
|
|
| 12 Mar 2016 10:40 PM |
game.Workspace.Part.Size = Vector3.new(12.2, i, 16.2) --
How do you expect it to recognize it if dont tell it that it's a vector3 value?
|
|
|
| Report Abuse |
|
|
| |
|
|
| 12 Mar 2016 10:42 PM |
Well obviously,because you're reducing it's size in object space not world space. If you want it to decrease it's size without moving it's position you have to use CFrame. |
|
|
| Report Abuse |
|
|
|
| 12 Mar 2016 10:42 PM |
When you're doing anything involving Vector3, you need to build a Vector3 to set it to You can do that with Vector3.new()
So in this case you would do Vector3.new(12.2, i, 16.2)
But for this you can also do part.Size = part.Size - Vector3.new(0, 0.1, 0), which would work with any size X and Z rather than just being hardcoded
And you'd also want to set the Part's FormFactor to Enum.FormFactor.Custom, or you won't see the 0.1 changes (it won't show up until every 1.2 for normal parts) |
|
|
| Report Abuse |
|
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
| |
|