Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

changing the increment for a custom resize tool?

Asked by 5 years ago
Edited 5 years ago

I am having trouble changing the increment for a resize tool I adapted for my project.

001local tool = script.Parent
002local plr = game.Players.LocalPlayer
003local mouse = plr:GetMouse()
004enabled = true
005local selectionBox
006local selectionLasso
007local handles
008local previousDistance
009local originalpart
010local buttonupconnection
011local tempart
012 
013function onHandlesDown(normal)
014    previousDistance = 0
015end
View all 121 lines...

the current function that I am concerned about is onhandlesdrag. I tried changing various things such as handles.adornee.sizeincrement. I tried changing sizedelta up but that didnt work.

I want to change the increment to 0.5, but any attempts that didn't end in failure only ended in the part resizing 1 stud.

1 answer

Log in to vote
1
Answered by
moo1210 587 Moderation Voter
5 years ago

Sadly, ResizeIncrement is a read-only value that is the minimum size :Resize() can do. You're going to have to look into editing the size property, you might be able to find a module that is :Resize() but just unlocked?

Ad

Answer this question