Run it
Copy the script and paste it into your executor.
Calculator = .()
MainFrame = .()
UICorner = .()
ButtonsFrame = .()
UICorner_2 = .()
UIGridLayout = .()
_1 = .()
UICorner_3 = .()
UIPadding = .()
_2 = .()
UICorner_4 = .()
_3 = .()
UICorner_5 = .()
TextButton = .()
UICorner_6 = .()
_4 = .()
UICorner_7 = .()
_5 = .()
UICorner_8 = .()
_6 = .()
UICorner_9 = .()
TextButton_2 = .()
UICorner_10 = .()
_7 = .()
UICorner_11 = .()
_8 = .()
UICorner_12 = .()
_9 = .()
UICorner_13 = .()
TextButton_3 = .()
UICorner_14 = .()
_0 = .()
UICorner_15 = .()
TextButton_4 = .()
UICorner_16 = .()
TextButton_5 = .()
UICorner_17 = .()
TextButton_6 = .()
UICorner_18 = .()
C = .()
UICorner_19 = .()
TextButton_7 = .()
UICorner_20 = .()
TextButton_8 = .()
UICorner_21 = .()
TextButton_9 = .()
UICorner_22 = .()
UIPadding_2 = .()
NumFrame = .()
UIPadding_3 = .()
UICorner_23 = .()
Text = .()
Calculator.Name =
Calculator.Parent = :()
Calculator.ZIndexBehavior = .ZIndexBehavior.Sibling
MainFrame.Name =
MainFrame.Parent = Calculator
MainFrame.AnchorPoint = .(, )
MainFrame.BackgroundColor3 = .(, , )
MainFrame.Position = .(, , , )
MainFrame.Size = .(, , , )
UICorner.Parent = MainFrame
ButtonsFrame.Name =
ButtonsFrame.Parent = MainFrame
ButtonsFrame.BackgroundColor3 = .(, , )
ButtonsFrame.Position = .(, , , )
ButtonsFrame.Size = .(, , , )
UICorner_2.Parent = ButtonsFrame
UIGridLayout.Parent = ButtonsFrame
UIGridLayout.HorizontalAlignment = .HorizontalAlignment.Center
UIGridLayout.SortOrder = .SortOrder.LayoutOrder
UIGridLayout.VerticalAlignment = .VerticalAlignment.Center
UIGridLayout.CellSize = .(, , , )
_1.Name =
_1.Parent = ButtonsFrame
_1.BackgroundColor3 = .(, , )
_1.LayoutOrder =
_1.Size = .(, , , )
_1.AutoButtonColor =
_1.Font = .Font.GothamBold
_1.Text =
_1.TextColor3 = .(, , )
_1.TextScaled =
_1.TextSize =
_1.TextWrapped =
UICorner_3.Parent = _1
UIPadding.Parent = ButtonsFrame
UIPadding.PaddingBottom = .(, )
UIPadding.PaddingLeft = .(, )
UIPadding.PaddingRight = .(, )
UIPadding.PaddingTop = .(, )
_2.Name =
_2.Parent = ButtonsFrame
_2.BackgroundColor3 = .(, , )
_2.LayoutOrder =
_2.Size = .(, , , )
_2.AutoButtonColor =
_2.Font = .Font.GothamBold
_2.Text =
_2.TextColor3 = .(, , )
_2.TextScaled =
_2.TextSize =
_2.TextWrapped =
UICorner_4.Parent = _2
_3.Name =
_3.Parent = ButtonsFrame
_3.BackgroundColor3 = .(, , )
_3.LayoutOrder =
_3.Size = .(, , , )
_3.AutoButtonColor =
_3.Font = .Font.GothamBold
_3.Text =
_3.TextColor3 = .(, , )
_3.TextScaled =
_3.TextSize =
_3.TextWrapped =
UICorner_5.Parent = _3
TextButton.Name =
TextButton.Parent = ButtonsFrame
TextButton.BackgroundColor3 = .(, , )
TextButton.LayoutOrder =
TextButton.Size = .(, , , )
TextButton.AutoButtonColor =
TextButton.Font = .Font.GothamBold
TextButton.Text =
TextButton.TextColor3 = .(, , )
TextButton.TextScaled =
TextButton.TextSize =
TextButton.TextWrapped =
UICorner_6.Parent = TextButton
_4.Name =
_4.Parent = ButtonsFrame
_4.BackgroundColor3 = .(, , )
_4.LayoutOrder =
_4.Size = .(, , , )
_4.AutoButtonColor =
_4.Font = .Font.GothamBold
_4.Text =
_4.TextColor3 = .(, , )
_4.TextScaled =
_4.TextSize =
_4.TextWrapped =
UICorner_7.Parent = _4
_5.Name =
_5.Parent = ButtonsFrame
_5.BackgroundColor3 = .(, , )
_5.LayoutOrder =
_5.Size = .(, , , )
_5.AutoButtonColor =
_5.Font = .Font.GothamBold
_5.Text =
_5.TextColor3 = .(, , )
_5.TextScaled =
_5.TextSize =
_5.TextWrapped =
UICorner_8.Parent = _5
_6.Name =
_6.Parent = ButtonsFrame
_6.BackgroundColor3 = .(, , )
_6.LayoutOrder =
_6.Size = .(, , , )
_6.AutoButtonColor =
_6.Font = .Font.GothamBold
_6.Text =
_6.TextColor3 = .(, , )
_6.TextScaled =
_6.TextSize =
_6.TextWrapped =
UICorner_9.Parent = _6
TextButton_2.Name =
TextButton_2.Parent = ButtonsFrame
TextButton_2.BackgroundColor3 = .(, , )
TextButton_2.LayoutOrder =
TextButton_2.Size = .(, , , )
TextButton_2.AutoButtonColor =
TextButton_2.Font = .Font.GothamBold
TextButton_2.Text =
TextButton_2.TextColor3 = .(, , )
TextButton_2.TextScaled =
TextButton_2.TextSize =
TextButton_2.TextWrapped =
UICorner_10.Parent = TextButton_2
_7.Name =
_7.Parent = ButtonsFrame
_7.BackgroundColor3 = .(, , )
_7.LayoutOrder =
_7.Size = .(, , , )
_7.AutoButtonColor =
_7.Font = .Font.GothamBold
_7.Text =
_7.TextColor3 = .(, , )
_7.TextScaled =
_7.TextSize =
_7.TextWrapped =
UICorner_11.Parent = _7
_8.Name =
_8.Parent = ButtonsFrame
_8.BackgroundColor3 = .(, , )
_8.LayoutOrder =
_8.Size = .(, , , )
_8.AutoButtonColor =
_8.Font = .Font.GothamBold
_8.Text =
_8.TextColor3 = .(, , )
_8.TextScaled =
_8.TextSize =
_8.TextWrapped =
UICorner_12.Parent = _8
_9.Name =
_9.Parent = ButtonsFrame
_9.BackgroundColor3 = .(, , )
_9.LayoutOrder =
_9.Size = .(, , , )
_9.AutoButtonColor =
_9.Font = .Font.GothamBold
_9.Text =
_9.TextColor3 = .(, , )
_9.TextScaled =
_9.TextSize =
_9.TextWrapped =
UICorner_13.Parent = _9
TextButton_3.Name =
TextButton_3.Parent = ButtonsFrame
TextButton_3.BackgroundColor3 = .(, , )
TextButton_3.LayoutOrder =
TextButton_3.Size = .(, , , )
TextButton_3.AutoButtonColor =
TextButton_3.Font = .Font.GothamBold
TextButton_3.Text =
TextButton_3.TextColor3 = .(, , )
TextButton_3.TextScaled =
TextButton_3.TextSize =
TextButton_3.TextWrapped =
UICorner_14.Parent = TextButton_3
_0.Name =
_0.Parent = ButtonsFrame
_0.BackgroundColor3 = .(, , )
_0.LayoutOrder =
_0.Size = .(, , , )
_0.AutoButtonColor =
_0.Font = .Font.GothamBold
_0.Text =
_0.TextColor3 = .(, , )
_0.TextScaled =
_0.TextSize =
_0.TextWrapped =
UICorner_15.Parent = _0
TextButton_4.Name =
TextButton_4.Parent = ButtonsFrame
TextButton_4.BackgroundColor3 = .(, , )
TextButton_4.LayoutOrder =
TextButton_4.Size = .(, , , )
TextButton_4.AutoButtonColor =
TextButton_4.Font = .Font.GothamBold
TextButton_4.Text =
TextButton_4.TextColor3 = .(, , )
TextButton_4.TextScaled =
TextButton_4.TextSize =
TextButton_4.TextWrapped =
UICorner_16.Parent = TextButton_4
TextButton_5.Name =
TextButton_5.Parent = ButtonsFrame
TextButton_5.BackgroundColor3 = .(, , )
TextButton_5.LayoutOrder =
TextButton_5.Size = .(, , , )
TextButton_5.AutoButtonColor =
TextButton_5.Font = .Font.GothamBold
TextButton_5.Text =
TextButton_5.TextColor3 = .(, , )
TextButton_5.TextScaled =
TextButton_5.TextSize =
TextButton_5.TextWrapped =
UICorner_17.Parent = TextButton_5
TextButton_6.Name =
TextButton_6.Parent = ButtonsFrame
TextButton_6.BackgroundColor3 = .(, , )
TextButton_6.LayoutOrder =
TextButton_6.Size = .(, , , )
TextButton_6.AutoButtonColor =
TextButton_6.Font = .Font.GothamBold
TextButton_6.Text =
TextButton_6.TextColor3 = .(, , )
TextButton_6.TextScaled =
TextButton_6.TextSize =
TextButton_6.TextWrapped =
UICorner_18.Parent = TextButton_6
C.Name =
C.Parent = ButtonsFrame
C.BackgroundColor3 = .(, , )
C.LayoutOrder =
C.Size = .(, , , )
C.AutoButtonColor =
C.Font = .Font.GothamBold
C.Text =
C.TextColor3 = .(, , )
C.TextScaled =
C.TextSize =
C.TextWrapped =
UICorner_19.Parent = C
TextButton_7.Name =
TextButton_7.Parent = ButtonsFrame
TextButton_7.BackgroundColor3 = .(, , )
TextButton_7.LayoutOrder =
TextButton_7.Size = .(, , , )
TextButton_7.AutoButtonColor =
TextButton_7.Font = .Font.GothamBold
TextButton_7.Text =
TextButton_7.TextColor3 = .(, , )
TextButton_7.TextScaled =
TextButton_7.TextSize =
TextButton_7.TextWrapped =
UICorner_20.Parent = TextButton_7
TextButton_8.Name =
TextButton_8.Parent = ButtonsFrame
TextButton_8.BackgroundColor3 = .(, , )
TextButton_8.LayoutOrder =
TextButton_8.Size = .(, , , )
TextButton_8.AutoButtonColor =
TextButton_8.Font = .Font.GothamBold
TextButton_8.Text =
TextButton_8.TextColor3 = .(, , )
TextButton_8.TextScaled =
TextButton_8.TextSize =
TextButton_8.TextWrapped =
UICorner_21.Parent = TextButton_8
TextButton_9.Name =
TextButton_9.Parent = ButtonsFrame
TextButton_9.BackgroundColor3 = .(, , )
TextButton_9.LayoutOrder =
TextButton_9.Size = .(, , , )
TextButton_9.AutoButtonColor =
TextButton_9.Font = .Font.GothamBold
TextButton_9.Text =
TextButton_9.TextColor3 = .(, , )
TextButton_9.TextScaled =
TextButton_9.TextSize =
TextButton_9.TextWrapped =
UICorner_22.Parent = TextButton_9
UIPadding_2.Parent = MainFrame
UIPadding_2.PaddingBottom = .(, )
UIPadding_2.PaddingLeft = .(, )
UIPadding_2.PaddingRight = .(, )
UIPadding_2.PaddingTop = .(, )
NumFrame.Name =
NumFrame.Parent = MainFrame
NumFrame.BackgroundColor3 = .(, , )
NumFrame.Size = .(, , , )
UIPadding_3.Parent = NumFrame
UIPadding_3.PaddingBottom = .(, )
UIPadding_3.PaddingLeft = .(, )
UIPadding_3.PaddingRight = .(, )
UIPadding_3.PaddingTop = .(, )
UICorner_23.Parent = NumFrame
Text.Name =
Text.Parent = NumFrame
Text.BackgroundColor3 = .(, , )
Text.BackgroundTransparency =
Text.Size = .(, , , )
Text.Font = .Font.Gotham
Text.Text =
Text.TextColor3 = .(, , )
Text.TextScaled =
Text.TextSize =
Text.TextWrapped =
Text.TextXAlignment = .TextXAlignment.Right
numLabel = Calculator.MainFrame.NumFrame.Text
_, v (Calculator.MainFrame.ButtonsFrame:())
v:()
v.Name ==
v.MouseButton1Click:(()
ran, val = ((.. numLabel.Text ..))
ran
numLabel.Text = val
numLabel.Text =
)
v.Name ==
v.MouseButton1Click:(()
numLabel.Text =
)
v.MouseButton1Click:(()
numLabel.Text == numLabel.Text ==
numLabel.Text =
numLabel.Text = numLabel.Text.. v.Name
)
UserInputService = :()
gui = Calculator.MainFrame
dragging
dragInput
dragStart
startPos
(input)
delta = input.Position - dragStart
gui.Position = .(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
gui.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
dragging =
dragStart = input.Position
startPos = gui.Position
input.Changed:(()
input.UserInputState == .UserInputState.End
dragging =
)
)
gui.InputChanged:((input)
input.UserInputType == .UserInputType.MouseMovement input.UserInputType == .UserInputType.Touch
dragInput = input
)
UserInputService.InputChanged:((input)
input == dragInput dragging
(input)
)