How do i scale a part so that the top of it stays anchored?

  1. What do you want to achieve?

I’m making a sailing system and I want the player to drop the sail in order to go faster.

  1. What is the issue?

I don’t know how to scale the sail so that the top of the sail stays attached to the yard while the bottom scales up.

a gif to better understand what I mean bc I’m bad at explaining things

  1. What solutions have you tried so far?
    I don’t know where to begin.
1 Like

I think you can use this

local size =,1,1)
local pos = part.Position -,size.Y/2,0)
part.Size = part.Size + size
part.Position = pos
1 Like