I tried making a resize system the other way with if statements with the part.size.magnitude but if for an example y went to the scaling limit the z and x can't be scaled though they are not at the limit. And if i used distance then after it has reached the limit then if you try to resize it again the limit doesn't work i hope this makes sense. script :
Handles.MouseDrag:Connect(function(direction,distance)
if distance < 22 then
local delta = distance - PrevDistance
if math.abs(delta) >= Handles.Adornee.ResizeIncrement then
local SizeDelta = math.floor(delta/Handles.Adornee.ResizeIncrement + ResizeIncrement) * Handles.Adornee.ResizeIncrement
if Handles.Adornee:Resize(direction, SizeDelta) then
PrevDistance = distance
game.ReplicatedStorage.ResizeEvent:FireServer(direction, SizeDelta,MouseTarget)
end
end
end
end)
