Anonymouse10101

Miner Haven Reborn (GUI)

Apr 25th, 2019
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.83 KB | None | 0 0
  1. -- Objects
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Top = Instance.new("Frame")
  5. local Back = Instance.new("Frame")
  6. local TextButton1 = Instance.new("TextButton")
  7. local TextButton2 = Instance.new("TextButton")
  8. local TextButton3 = Instance.new("TextButton")
  9. local TextButton4 = Instance.new("TextButton")
  10. local Label = Instance.new("TextLabel")
  11.  
  12. -- Properties
  13.  
  14. ScreenGui.Parent = game.CoreGui
  15.  
  16. Top.Name = "Top"
  17. Top.Parent = ScreenGui
  18. Top.Active = true
  19. Top.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
  20. Top.Draggable = true
  21. Top.Position = UDim2.new(0.771902144, 0, 0.508005798, 0)
  22. Top.Selectable = true
  23. Top.Size = UDim2.new(0, 430, 0, 31)
  24.  
  25. Back.Name = "Back"
  26. Back.Parent = Top
  27. Back.BackgroundColor3 = Color3.new(0, 0.5, 0.7)
  28. Back.BackgroundTransparency = 0.20000000298023
  29. Back.Position = UDim2.new(0, 0, 1, 0)
  30. Back.Size = UDim2.new(0, 430, 0, 130)
  31.  
  32. TextButton1.Name = "TextButton1"
  33. TextButton1.Parent = Back
  34. TextButton1.BackgroundColor3 = Color3.new(0, 0.7, 0.9)
  35. TextButton1.Position = UDim2.new(0.02, 0, 0.05, 0)
  36. TextButton1.Size = UDim2.new(0, 200, 0, 50)
  37. TextButton1.Font = Enum.Font.SourceSans
  38. TextButton1.Text = "EarthMine"
  39. TextButton1.TextColor3 = Color3.new(1, 1, 1)
  40. TextButton1.TextSize = 30
  41. TextButton1.MouseButton1Click:connect(function()
  42. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(2.845, 11.115, 2.871)
  43. end)
  44.  
  45. TextButton2.Name = "TextButton2"
  46. TextButton2.Parent = Back
  47. TextButton2.BackgroundColor3 = Color3.new(0, 0.7, 0.9)
  48. TextButton2.Position = UDim2.new(0.515, 0, 0.05, 0)
  49. TextButton2.Size = UDim2.new(0, 200, 0, 50)
  50. TextButton2.Font = Enum.Font.SourceSans
  51. TextButton2.Text = "SpaceMine"
  52. TextButton2.TextColor3 = Color3.new(1, 1, 1)
  53. TextButton2.TextSize = 30
  54. TextButton2.MouseButton1Click:connect(function()
  55. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(2.66, 11.2, 1574.72)
  56. end)
  57.  
  58. TextButton3.Name = "TextButton3"
  59. TextButton3.Parent = Back
  60. TextButton3.BackgroundColor3 = Color3.new(0, 0.7, 0.9)
  61. TextButton3.Position = UDim2.new(0.02, 0, 0.55, 0)
  62. TextButton3.Size = UDim2.new(0, 200, 0, 50)
  63. TextButton3.Font = Enum.Font.SourceSans
  64. TextButton3.Text = "EarthSell"
  65. TextButton3.TextColor3 = Color3.new(1, 1, 1)
  66. TextButton3.TextSize = 30
  67. TextButton3.MouseButton1Click:connect(function()
  68. local part = Instance.new("Part", workspace)
  69.  
  70.  
  71.  
  72.    local var = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  73.    game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Activation.Sell.CFrame * CFrame.new(0,5,0)
  74.    wait(1)
  75.    game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = var
  76.    
  77.  
  78.  
  79. end)
  80.  
  81. TextButton4.Name = "TextButton4"
  82. TextButton4.Parent = Back
  83. TextButton4.BackgroundColor3 = Color3.new(0, 0.7, 0.9)
  84. TextButton4.Position = UDim2.new(0.515, 0, 0.55, 0)
  85. TextButton4.Size = UDim2.new(0, 200, 0, 50)
  86. TextButton4.Font = Enum.Font.SourceSans
  87. TextButton4.Text = "FastMining"
  88. TextButton4.TextColor3 = Color3.new(1, 1, 1)
  89. TextButton4.TextSize = 30
  90. TextButton4.MouseButton1Click:connect(function()
  91. while wait(1) do
  92. local Player = game.Players.LocalPlayer
  93. local Mouse = Player:GetMouse()
  94. local Activated = false
  95.  
  96. Mouse.Button1Down:connect(function()
  97. Activated = true
  98. end)
  99.  
  100. Mouse.Button1Up:connect(function()
  101. Activated = false
  102. end)
  103.  
  104. while true do
  105.    wait()
  106.    if Activated == true then
  107.        game.Workspace.RemoteEvent:FireServer("MineBlock", Mouse.Target.Parent)
  108.    end
  109.    end
  110. end
  111. end)
  112.  
  113. Label.Name = "Label"
  114. Label.Parent = Top
  115. Label.BackgroundColor3 = Color3.new(1, 1, 1)
  116. Label.BackgroundTransparency = 1
  117. Label.BorderSizePixel = 0
  118. Label.Position = UDim2.new(0.23, 0, 0, 0)
  119. Label.Size = UDim2.new(0, 242, 0, 31)
  120. Label.Font = Enum.Font.SourceSans
  121. Label.Text = "MiningSimulator GUI"
  122. Label.TextColor3 = Color3.new(1, 1, 1)
  123. Label.TextScaled = true
  124. Label.TextSize = 14
  125. Label.TextWrapped = true
Add Comment
Please, Sign In to add comment