Advertisement
Guest User

Untitled

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