Advertisement
RobloxScripty

Untitled

Jun 29th, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. --Gui------------------------------------------------------------------------------------------------------------
  2. vip = "RockitQueen"
  3. plyr = game.Players:findFirstChild(vip)
  4. pg = plyr:findFirstChild("PlayerGui")
  5. sign = >
  6.  
  7. sc = Instance.new("ScreenGui")
  8. sc.Name = "Calc"
  9. sc.Parent = pg
  10.  
  11. tx = Instance.new("TextLabel")
  12. tx.BackgroundTransparency = 0
  13. tx.Name = "Background"
  14. tx.Parent = sc
  15. tx.Position = UDim2.new(0, 180, 0, 150)
  16. tx.Size = UDim2.new(0, 200, 0, 300)
  17. tx.Text = " "
  18.  
  19. tx = Instance.new("TextLabel")
  20. tx.BackgroundTransparency = 0
  21. tx.Name = "Word"
  22. tx.Parent = sc
  23. tx.Position = UDim2.new(0, 180, 0, 150)
  24. tx.Size = UDim2.new(0, 200, 0, 40)
  25. tx.Text = " "
  26.  
  27. tx = Instance.new("TextButton")
  28. tx.BackgroundTransparency = 0
  29. tx.Name = "x"
  30. tx.Parent = sc
  31. tx.Position = UDim2.new(0, 180, 0, 190)
  32. tx.Size = UDim2.new(0, 50, 0, 40)
  33. tx.Text = "x"
  34.  
  35. tx.MouseButton1Click:connect(function()
  36. human = plyr.Character:findFirstChild("Humanoid")
  37. if human ~= nil then
  38. sign = x
  39. end
  40. end)
  41.  
  42. tx = Instance.new("TextButton")
  43. tx.BackgroundTransparency = 0
  44. tx.Name = "/"
  45. tx.Parent = sc
  46. tx.Position = UDim2.new(0, 230, 0, 190)
  47. tx.Size = UDim2.new(0, 50, 0, 40)
  48. tx.Text = "/"
  49.  
  50. tx.MouseButton1Click:connect(function()
  51. human = plyr.Character:findFirstChild("Humanoid")
  52. if human ~= nil then
  53. sign = /
  54. end
  55. end)
  56.  
  57. tx = Instance.new("TextButton")
  58. tx.BackgroundTransparency = 0
  59. tx.Name = "-"
  60. tx.Parent = sc
  61. tx.Position = UDim2.new(0, 280, 0, 190)
  62. tx.Size = UDim2.new(0, 50, 0, 40)
  63. tx.Text = "-"
  64.  
  65. tx.MouseButton1Click:connect(function()
  66. human = plyr.Character:findFirstChild("Humanoid")
  67. if human ~= nil then
  68. sign = -
  69. end
  70. end)
  71.  
  72. tx = Instance.new("TextButton")
  73. tx.BackgroundTransparency = 0
  74. tx.Name = "+"
  75. tx.Parent = sc
  76. tx.Position = UDim2.new(0, 330, 0, 190)
  77. tx.Size = UDim2.new(0, 50, 0, 40)
  78. tx.Text = "+"
  79.  
  80. tx.MouseButton1Click:connect(function()
  81. human = plyr.Character:findFirstChild("Humanoid")
  82. if human ~= nil then
  83. sign = +
  84. end
  85. end)
  86.  
  87. tx = Instance.new("TextButton")
  88. tx.BackgroundTransparency = 0
  89. tx.Name = "="
  90. tx.Parent = sc
  91. tx.Position = UDim2.new(0, 180, 0, 230)
  92. tx.Size = UDim2.new(0, 50, 0, 40)
  93. tx.Text = "="
  94.  
  95. tx.MouseButton1Click:connect(function()
  96. human = plyr.Character:findFirstChild("Humanoid")
  97. if human ~= nil then
  98. sign = >
  99. end
  100. end)
  101.  
  102. tx = Instance.new("TextButton")
  103. tx.BackgroundTransparency = 0
  104. tx.Name = "reset"
  105. tx.Parent = sc
  106. tx.Position = UDim2.new(0, 230, 0, 230)
  107. tx.Size = UDim2.new(0, 50, 0, 40)
  108. tx.Text = "reset"
  109.  
  110. tx.MouseButton1Click:connect(function()
  111. human = plyr.Character:findFirstChild("Humanoid")
  112. if human ~= nil then
  113. pg.Calc.Word.Text = " " sign " "
  114. end
  115. end)
  116.  
  117. plyr.Chatted:connect(function(msg)
  118. if msg == "removed" then
  119. sc:Remove()
  120. end
  121. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement