Advertisement
Exploiter3030

Untitled

Feb 23rd, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.94 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. local A_1 = "" ..answer
  69. local A_2 = "All"
  70. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  71. Event:FireServer(A_1, A_2)
  72. end
  73. if operation.Text == "-" then
  74. local answer = number2.Text - number1.Text
  75. print(answer)
  76. local A_1 = "" ..answer
  77. local A_2 = "All"
  78. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  79. Event:FireServer(A_1, A_2)
  80. end
  81. if operation.Text == "/" then
  82. local answer = number2.Text / number1.Text
  83. print(answer)
  84. local A_1 = "" ..answer
  85. local A_2 = "All"
  86. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  87. Event:FireServer(A_1, A_2)
  88. end
  89. if operation.Text == "x" or operation.Text == "X" or operation.Text == "*" then
  90. local answer = number2.Text * number1.Text
  91. print(answer)
  92. local A_1 = "" ..answer
  93. local A_2 = "All"
  94. local Event = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  95. Event:FireServer(A_1, A_2)
  96. end
  97. end)
  98.  
  99. openclose.Name = "open/close"
  100. openclose.Parent = ScreenGui
  101. openclose.BackgroundColor3 = Color3.new(0.227451, 0.796079, 1)
  102. openclose.BackgroundTransparency = 0.55000001192093
  103. openclose.Position = UDim2.new(0, 0, 0.873096466, 0)
  104. openclose.Size = UDim2.new(0, 200, 0, 50)
  105. openclose.Font = Enum.Font.SourceSans
  106. openclose.Text = "Open/Close"
  107. openclose.TextColor3 = Color3.new(0, 0, 0)
  108. openclose.TextSize = 14
  109. openclose.MouseButton1Click:connect(function()
  110. if Frame.Visible == true then
  111. Frame.Visible = false
  112. else
  113. Frame.Visible = true
  114. end
  115. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement