Is there a specific algorithm that I could to do to this easily? I tried one method I saw which was making the position it’s current position + half of the size, yet that didn’t work quite well.
3 Likes
I’m not sure what you mean, but I think it should be as easy as this:
local position = part.Position
part.Size = Vector3.new(num, num, num)
part.Position = position
1 Like
Not at all, you know how when you move on the Y axis of a part, it’ll stay in the same place and go into the ground. I want it to appear as if it was always in the same place, however I know you’d have to change the Y axis. I came up with my own algorithm after like 30 minutes of tinkering though.
1 Like
Ohhh, I get it now; apologies. Do you mind sharing the solution so that others can find it?
1 Like
Yeah sure:
This works to the best of my ability, but, say I’m increasing a part on the Y axis by 5. And it’s position is Vector3.new(0,0,0)
I would do this:
local part = workspace.Part
part.Size = part.Size+Vector.new(0,5,0)
part.CFrame = part.CFrame+Vector.new(0,1,0)
I take instead a quarter of what I’m increasing it by. So 5 = 1, 8 = 2, etc.
1 Like