Ad
Log in to vote
0

Trying To Make A Expandable Part Is Just Broken?

Asked by 21 days ago

I Have A Script In The StarterGui Which Sizes A Block When Dragged But Instead Of Just Doing It Once It Rapidly Expands Even When I Let Go Of The Mouse Button!

Here Is The Script

script.Parent.MouseDrag:Connect(function(face,Distance)
    if face == Enum.NormalId.Top then
        print(Distance)
        print(face)
        if Distance >= 5 then
            script.Parent.Adornee.Size = script.Parent.Adornee.Size + Vector3.new(0,5,0)
            return
        end
    end
end)

Answer this question