Hello I want to increase the height of a part with a script but everytime I do it the part goes crazzzy and it goes into the floor instead of just going up. Ive tried so many searches on the google and I tried to fix it myself but the part still keeps going craazzy please help me.
1 Like
When changing the size of a part, it will increase its size in both directions. So, in order to counteract this change, you have to move the part up by half of the change in size.
local part = Instance.new("Part")
part.Parent = workspace
wait(1)
local move = Vector3.new(0, 2)
part.Size += move
part.Position += move / 2
1 Like
It worked the part is now calm