From 6f73db5053cd0f4fc9752929780041dd8539a3ac Mon Sep 17 00:00:00 2001 From: MatusGuy Date: Wed, 20 Jul 2022 23:20:40 +0100 Subject: [PATCH] holding up & down on the keyboard will constantly increment the value --- Mt.rbxlx | 87 ++++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 65 insertions(+), 22 deletions(-) diff --git a/Mt.rbxlx b/Mt.rbxlx index 70a26d5..140748d 100644 --- a/Mt.rbxlx +++ b/Mt.rbxlx @@ -82,27 +82,27 @@ - -195.025513 - 28.0680141 - -129.069443 - -0.955332339 - 0.040107429 - 0.292799413 + -151.715057 + 41.4328918 + -181.816376 + -0.493952453 + -0.858784437 + 0.13601692 -0 - 0.990748405 - -0.135711923 - -0.295533568 - -0.129649982 - -0.946494043 + 0.156433195 + 0.987688661 + -0.869489014 + 0.48787123 + -0.0772705525 null 0 70 0 - -195.611115 - 28.3394394 - -127.176445 + -151.987091 + 39.4575157 + -181.661835 1 0 0 @@ -3481,7 +3481,8 @@ return MWidget]]> MSpinBox {C66A5253-EE5E-430B-969B-9F8BE66CCF97} - boolean, interval: number) + self:IncValue(inc) + task.wait(.5) + while whileCondition() do + self:IncValue(inc) + task.wait(interval) + end +end + function MSpinBox:GetLimitedValue(value:number,min:number,max:number): number value = value or self:GetValue() min = min or self.Min @@ -3527,7 +3570,7 @@ end function MSpinBox:SetValue(value: number) rawset(self, "Value", self:GetLimitedValue(value)) - self.Input.Text = tostring(value) + self.Input.Text = tostring(self.Value) end function MSpinBox:GetValue(): number @@ -3711,7 +3754,7 @@ return MSpinBox]]> 0 0 - + AgAAAAMAAABJTkMFAAAAAAgAAABfUFJFU1NFRAMA true true 0 @@ -3812,7 +3855,7 @@ return MSpinBox]]> 0 0 - + AgAAAAMAAABJTkMGAAAAAAAA8D8IAAAAX1BSRVNTRUQDAA== true true 0