Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

( Updated ) How to scale a part only in 1 position using Vectro3?

local Part = script.Parent

-- Part size is 2,2,2

Part.Size = Vector3.new(3,3,3)

So how to make the part not scale upwards? normally it scales on all axis, but I want it to scale like this v

https://gyazo.com/d7ec17771b8672753fc0dcf861491ea1

7 comments

0

You can add the Vector3 values, like Part.Size = Part.Size + Vector3.new(1,1,1)

0

you can do something like vector3.new(nil,nil,3)

0

Thats not what I need, I want it to scale on all axes, but not move up

0

Roblox automatically moves the axes, because the size has changed. If the size changes, then the volume increases, and then it moves. You can't really stop it from moving. If you want to reset the position, then do Part.Position = Vector3.new()

0

That's like saying: I wanna size up a brick instantly, and once you do that, it automatically moves up.

0

you need to use the Resize() method

0

Does my answer work?

1 answer

If you want to do the thing in the gif, do this

local part = script.Parent
repeat
wait(0.1)
part.Size = part.Size + Vector3.new(0.1,0.1,0.1)
until part.Size == Vector3.new(6,6,6)

13 comments

0

THATS NOT WHAT I NEED

0

Then please be more descriptive

0

look at the image i attached

0

This is not what we meant by 'descriptive'.

0

So then you want to scale a part like that?

0

yes, check the gyazo gif

0

nope, it scaled like normaly

0

So how the hell do you want it scaled.

0

I just want to achive that with a script

0

You want it to do it smoothly? You want to scale it smoothly?

0

no just snap into that size using vector3.new

0

Dude, that's what my answer is doing dull head.

This discussion is preserved as it was. New answers, comments, and votes are closed.