Advertisement
Exploiter3030

Untitled

Feb 23rd, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.40 KB | None | 0 0
  1. -- Instances:
  2. local ScreenGui = Instance.new("ScreenGui")
  3. local Frame = Instance.new("Frame")
  4. local number2 = Instance.new("TextBox")
  5. local operation = Instance.new("TextBox")
  6. local number1 = Instance.new("TextBox")
  7. local calculate = Instance.new("TextButton")
  8. local openclose = Instance.new("TextButton")
  9. --Properties:
  10. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  11. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  12.  
  13. Frame.Parent = ScreenGui
  14. Frame.BackgroundColor3 = Color3.new(0.168627, 0.168627, 1)
  15. Frame.BackgroundTransparency = 0.69999998807907
  16. Frame.Position = UDim2.new(0.25, 0, 0.167512685, 0)
  17. Frame.Size = UDim2.new(0, 301, 0, 247)
  18. Frame.Active = true
  19. Frame.Draggable = true
  20.  
  21. number2.Name = "number2"
  22. number2.Parent = Frame
  23. number2.BackgroundColor3 = Color3.new(1, 1, 1)
  24. number2.BackgroundTransparency = 0.64999997615814
  25. number2.Position = UDim2.new(0, 0, 0.178137645, 0)
  26. number2.Size = UDim2.new(0, 108, 0, 50)
  27. number2.Font = Enum.Font.SourceSans
  28. number2.Text = ""
  29. number2.TextColor3 = Color3.new(0, 0, 0)
  30. number2.TextSize = 14
  31.  
  32. operation.Name = "operation"
  33. operation.Parent = Frame
  34. operation.BackgroundColor3 = Color3.new(1, 1, 1)
  35. operation.BackgroundTransparency = 0.75
  36. operation.Position = UDim2.new(0.425249189, 0, 0.178137645, 0)
  37. operation.Size = UDim2.new(0, 67, 0, 50)
  38. operation.Font = Enum.Font.SourceSans
  39. operation.Text = ""
  40. operation.TextColor3 = Color3.new(0, 0, 0)
  41. operation.TextSize = 30
  42.  
  43. number1.Name = "number1"
  44. number1.Parent = Frame
  45. number1.BackgroundColor3 = Color3.new(1, 1, 1)
  46. number1.BackgroundTransparency = 0.80000001192093
  47. number1.Position = UDim2.new(0.681063116, 0, 0.178137645, 0)
  48. number1.Size = UDim2.new(0, 96, 0, 50)
  49. number1.Font = Enum.Font.SourceSans
  50. number1.Text = ""
  51. number1.TextColor3 = Color3.new(0, 0, 0)
  52. number1.TextSize = 14
  53.  
  54. calculate.Name = "calculate"
  55. calculate.Parent = Frame
  56. calculate.BackgroundColor3 = Color3.new(0.8, 0.396078, 1)
  57. calculate.BackgroundTransparency = 0.89999997615814
  58. calculate.Position = UDim2.new(0.164470434, 0, 0.460839719, 0)
  59. calculate.Size = UDim2.new(0, 200, 0, 50)
  60. calculate.Font = Enum.Font.SourceSans
  61. calculate.Text = "Calculate"
  62. calculate.TextColor3 = Color3.new(0, 0, 0)
  63. calculate.TextSize = 14
  64. calculate.MouseButton1Click:connect(function()
  65. if operation.Text == "+" then
  66. local answer = number2.Text + number1.Text
  67. print(answer)
  68. setclipboard(tostring(answer))
  69. end
  70. if operation.Text == "-" then
  71. local answer = number2.Text - number1.Text
  72. print(answer)
  73. setclipboard(tostring(answer))
  74. end
  75. if operation.Text == "/" then
  76. local answer = number2.Text / number1.Text
  77. print(answer)
  78. setclipboard(tostring(answer))
  79. end
  80. if operation.Text == "x" or operation.Text == "X" or operation.Text == "*" then
  81. local answer = number2.Text * number1.Text
  82. print(answer)
  83. setclipboard(tostring(answer))
  84. end
  85. end)
  86.  
  87. openclose.Name = "open/close"
  88. openclose.Parent = ScreenGui
  89. openclose.BackgroundColor3 = Color3.new(0.227451, 0.796079, 1)
  90. openclose.BackgroundTransparency = 0.55000001192093
  91. openclose.Position = UDim2.new(0, 0, 0.873096466, 0)
  92. openclose.Size = UDim2.new(0, 200, 0, 50)
  93. openclose.Font = Enum.Font.SourceSans
  94. openclose.Text = "Open/Close"
  95. openclose.TextColor3 = Color3.new(0, 0, 0)
  96. openclose.TextSize = 14
  97. openclose.MouseButton1Click:connect(function()
  98. if Frame.Visible == true then
  99. Frame.Visible = false
  100. else
  101. Frame.Visible = true
  102. end
  103. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement