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

How do I make a tween size a part from one side?

1 answer

you are only changing the size of the part on the tween. You also need to tween the position to match the new beam size you are tweening. Usually you need to tween the position to half of the size you increased. Example: you increased your beam size by 10 studs, so increase the beampos to the same direction by 5 studs (10/2).

2 comments

0

Could you give me a code example? I'm pretty new to tweening.

0

Maybe something like this: sizeincrease = 10 tween = tweenservice:create(beam,tweeninfo,{size=size+Vector3.new(0,0, sizeincrease),CFrame=CFrame(0,0,(sizeincrease/2)). Its possible that you are resizing another vector of the part or that the CFrame orientation is wrong, try changing the z value of the cframe (which is sizeincrease/2) to negative or changing it to the x value)

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