Advertisement
Woof_bot_3000

Uuhhh.wav Gui

Nov 16th, 2018
447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.19 KB | None | 0 0
  1. -- Objects
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local CoinValue = Instance.new("TextLabel")
  6. local CoinText = Instance.new("TextBox")
  7. local Heal = Instance.new("TextButton")
  8. local Coin = Instance.new("TextButton")
  9. local Star = Instance.new("TextButton")
  10.  
  11. -- Properties
  12.  
  13. ScreenGui.Parent = game.CoreGui
  14.  
  15. Frame.Parent = ScreenGui
  16. Frame.Active = true
  17. Frame.BackgroundColor3 = Color3.new(0.14902, 0.14902, 0.14902)
  18. Frame.BackgroundTransparency = 0.10000000149012
  19. Frame.BorderColor3 = Color3.new(1, 1, 1)
  20. Frame.Draggable = true
  21. Frame.Position = UDim2.new(0.7, 0, 0.7, 0)
  22. Frame.Selectable = true
  23. Frame.Size = UDim2.new(0, 215, 0, 73)
  24.  
  25. CoinValue.Name = "CoinValue"
  26. CoinValue.Parent = Frame
  27. CoinValue.BackgroundColor3 = Color3.new(0, 0, 0)
  28. CoinValue.BackgroundTransparency = 1
  29. CoinValue.BorderColor3 = Color3.new(1, 1, 1)
  30. CoinValue.BorderSizePixel = 2
  31. CoinValue.Position = UDim2.new(1000000000, 0, 1000000000, 0)
  32. CoinValue.Size = UDim2.new(0, 10, 0, 10)
  33. CoinValue.Font = Enum.Font.Cartoon
  34. CoinValue.Visible = false
  35. CoinValue.Text = "0"
  36. CoinValue.TextScaled = false
  37. CoinValue.TextSize = 10
  38.  
  39. CoinText.Name = "CoinText"
  40. CoinText.Parent = Frame
  41. CoinText.AnchorPoint = Vector2.new(0.5, 0)
  42. CoinText.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  43. CoinText.BorderColor3 = Color3.new(1, 1, 1)
  44. CoinText.Position = UDim2.new(0.259, 0, 0.07, 0)
  45. CoinText.Size = UDim2.new(0, 100, 0, 30)
  46. CoinText.Font = Enum.Font.SourceSansBold
  47. CoinText.Text = "Set Amount"
  48. CoinText.TextColor3 = Color3.new(1, 1, 1)
  49. CoinText.TextSize = 14
  50.  
  51. Heal.Name = "Heal"
  52. Heal.Parent = Frame
  53. Heal.AnchorPoint = Vector2.new(0.5, 0)
  54. Heal.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  55. Heal.BorderColor3 = Color3.new(1, 1, 1)
  56. Heal.Position = UDim2.new(0.741, 0, 0.07, 0)
  57. Heal.Size = UDim2.new(0, 100, -0.00999999978, 30)
  58. Heal.AutoButtonColor = false
  59. Heal.Font = Enum.Font.SourceSansBold
  60. Heal.Text = "Loop Heal Off"
  61. Heal.TextColor3 = Color3.new(1, 1, 1)
  62. Heal.TextSize = 14
  63.  
  64. HealEnabled = false
  65.  
  66. Coin.Name = "Coin"
  67. Coin.Parent = Frame
  68. Coin.AnchorPoint = Vector2.new(0.5, 0)
  69. Coin.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  70. Coin.BorderColor3 = Color3.new(1, 1, 1)
  71. Coin.Position = UDim2.new(0.259, 0, 0.525, 0)
  72. Coin.Size = UDim2.new(0, 100, -0.00999999978, 30)
  73. Coin.AutoButtonColor = false
  74. Coin.Font = Enum.Font.SourceSansBold
  75. Coin.Text = "Give "..CoinValue.Text.." Coins"
  76. Coin.TextColor3 = Color3.new(1, 1, 1)
  77. Coin.TextSize = 14
  78.  
  79. Star.Name = "Star"
  80. Star.Parent = Frame
  81. Star.AnchorPoint = Vector2.new(0.5, 0)
  82. Star.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
  83. Star.BorderColor3 = Color3.new(1, 1, 1)
  84. Star.Position = UDim2.new(0.741, 0, 0.525, 0)
  85. Star.Size = UDim2.new(0, 100, -0.00999999978, 30)
  86. Star.AutoButtonColor = false
  87. Star.Font = Enum.Font.SourceSansBold
  88. Star.Text = "Give 1 Star"
  89. Star.TextColor3 = Color3.new(1, 1, 1)
  90. Star.TextSize = 14
  91.  
  92. CoinText.FocusLost:connect(function()
  93. CoinValue.Text = CoinText.Text
  94. CoinText.Text = "Current: "..CoinValue.Text
  95. if CoinValue.Text == "1" or CoinValue.Text == "-1" then
  96. Coin.Text = "Give "..CoinValue.Text.." Coin"
  97. else
  98. Coin.Text = "Give "..CoinValue.Text.." Coins"
  99. end
  100. wait(1.5)
  101. CoinText.Text = "Set Amount"
  102. end)
  103.  
  104. Heal.MouseButton1Down:connect(function()
  105. if HealEnabled == false then
  106. HealEnabled = true
  107. Heal.Text = "Loop Heal On"
  108. else
  109. HealEnabled = false
  110. Heal.Text = "Loop Heal Off"
  111. end
  112. end)
  113.  
  114. Coin.MouseButton1Down:connect(function()
  115. CoinsToGive = CoinValue.Text
  116. game.ReplicatedStorage.GiveCoins:FireServer(CoinsToGive)
  117. if CoinValue.Text == "1" or CoinValue.Text == "-1" then
  118. Coin.Text = "Gave "..CoinValue.Text.." Coin"
  119. wait(1.5)
  120. Coin.Text = "Give "..CoinValue.Text.." Coin"
  121. else
  122. Coin.Text = "Gave "..CoinValue.Text.." Coins"
  123. wait(1.5)
  124. Coin.Text = "Give "..CoinValue.Text.." Coins"
  125. end
  126. end)
  127.  
  128. Star.MouseButton1Down:connect(function()
  129. game.ReplicatedStorage.GiveStar:FireServer(1) -- You can change this if you want
  130. end)
  131.  
  132. while true do
  133. wait(0.05)
  134. if HealEnabled == true then
  135. game.ReplicatedStorage.Heal:FireServer()
  136. end
  137. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement