Advertisement
Exploiter3030

Untitled

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