MRWho111

Miners haven remote gui

Apr 14th, 2017
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. local Toggled = false
  2.  
  3. local NewGuiPart1 = Instance.new("ScreenGui")
  4. NewGuiPart1.Parent = game.CoreGui
  5. -------
  6. local NewGuiPart2 = Instance.new("TextButton")
  7. NewGuiPart2.Active = true
  8. NewGuiPart2.AutoButtonColor = false
  9. NewGuiPart2.Selectable = true
  10. NewGuiPart2.Size = UDim2.new(0, 300, 0, 100)
  11. NewGuiPart2.Style = Enum.ButtonStyle.Custom
  12. NewGuiPart2.Font = Enum.Font.SciFi
  13. NewGuiPart2.FontSize = Enum.FontSize.Size36
  14. NewGuiPart2.Text = "Miners Haven"
  15. NewGuiPart2.TextYAlignment = Enum.TextYAlignment.Top
  16. NewGuiPart2.Draggable = true
  17. NewGuiPart2.Parent = NewGuiPart1
  18. NewGuiPart2.BackgroundColor3 = Color3.new(1,1,1)
  19. -------
  20. local NewGuiPart3 = Instance.new("TextButton")
  21. NewGuiPart3.Active = true
  22. NewGuiPart3.Position = UDim2.new(0, 75, 0, 70)
  23. NewGuiPart3.Selectable = true
  24. NewGuiPart3.Size = UDim2.new(0, 150, 0, 30)
  25. NewGuiPart3.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  26. NewGuiPart3.FontSize = Enum.FontSize.Size24
  27. NewGuiPart3.Text = "Toggle Remote Drops"
  28. NewGuiPart3.TextSize = 8
  29. NewGuiPart3.Parent = NewGuiPart2
  30. -------
  31. local NewGuiPart4 = Instance.new("TextLabel")
  32. NewGuiPart4.BackgroundTransparency = 1
  33. NewGuiPart4.Position = UDim2.new(0, 50, 0, 25)
  34. NewGuiPart4.Size = UDim2.new(0, 200, 0, 50)
  35. NewGuiPart4.Font = Enum.Font.SciFi
  36. NewGuiPart4.FontSize = Enum.FontSize.Size24
  37. NewGuiPart4.Text = "Status: Off"
  38. NewGuiPart4.Parent = NewGuiPart2
  39.  
  40. game["Run Service"].Heartbeat:connect(function()
  41. if Toggled == false then
  42. NewGuiPart4.TextColor3 = Color3.new(1,0,0)
  43. NewGuiPart4.Text = "Status: Off"
  44. else
  45. NewGuiPart4.TextColor3 = Color3.new(0,1,0)
  46. NewGuiPart4.Text = "Status: On"
  47. end
  48. end)
  49.  
  50. NewGuiPart3.MouseButton1Click:connect(function()
  51. print(Toggled)
  52. if Toggled == false then
  53. Toggled = true
  54. elseif Toggled == true then
  55. Toggled = false
  56. end
  57. end)
  58.  
  59. while wait() do
  60. if Toggled == true then
  61. wait(.1)
  62. game.ReplicatedStorage.RemoteDrop:FireServer()
  63. end
  64. end
Add Comment
Please, Sign In to add comment