DanPanMan

Pickaxe Simulator Autofarm and All Codes GUI

May 9th, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.13 KB | None | 0 0
  1. --[[
  2. Created fully by Pan#0012
  3. Game link: https://www.roblox.com/games/4186060228/UPDATE-2-Pickaxe-Simulator
  4. Enjoy! ;D
  5. ]]--
  6. local success, no pcall(function()
  7. local maingui = Instance.new("ScreenGui")
  8. local Gradient = Instance.new("ImageLabel")
  9. local topframe = Instance.new("ImageButton")
  10. local autofarm = Instance.new("ImageButton")
  11. local TextLabel = Instance.new("TextLabel")
  12. local codes = Instance.new("ImageButton")
  13. local TextLabel_2 = Instance.new("TextLabel")
  14. local bottomframe = Instance.new("ImageButton")
  15. local moreinfo = Instance.new("TextLabel")
  16. local credits = Instance.new("TextLabel")
  17. local close = Instance.new("ImageButton")
  18. local text = Instance.new("TextLabel")
  19. local Click = Instance.new("Sound",maingui)
  20.  
  21. maingui.Name = "maingui"
  22. maingui.Parent = game.CoreGui
  23.  
  24. Click.Name = "Click"
  25.  
  26. Gradient.Name = "Gradient"
  27. Gradient.Parent = maingui
  28. Gradient.Active = true
  29. Gradient.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  30. Gradient.BackgroundTransparency = 1.000
  31. Gradient.BorderSizePixel = 0
  32. Gradient.Position = UDim2.new(0.294693887, 0, 0.307308972, 0)
  33. Gradient.Selectable = true
  34. Gradient.Size = UDim2.new(0, 502, 0, 158)
  35. Gradient.Image = "http://www.roblox.com/asset/?id=3558891904"
  36.  
  37. topframe.Name = "topframe"
  38. topframe.Parent = Gradient
  39. topframe.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  40. topframe.BackgroundTransparency = 1.000
  41. topframe.Position = UDim2.new(0.0219123513, 0, 0.0507622659, 0)
  42. topframe.Size = UDim2.new(0, 482, 0, 77)
  43. topframe.Image = "rbxassetid://2790371148"
  44. topframe.ImageColor3 = Color3.fromRGB(35, 35, 35)
  45. topframe.ImageTransparency = 0.600
  46. topframe.ScaleType = Enum.ScaleType.Slice
  47. topframe.SliceCenter = Rect.new(32, 32, 224, 224)
  48. topframe.SliceScale = 0.500
  49.  
  50. autofarm.Name = "autofarm"
  51. autofarm.Parent = topframe
  52. autofarm.AnchorPoint = Vector2.new(0.5, 0.5)
  53. autofarm.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  54. autofarm.BackgroundTransparency = 1.000
  55. autofarm.Position = UDim2.new(0.247629791, 0, 0.484271348, 0)
  56. autofarm.Size = UDim2.new(0, 226, 0, 49)
  57. autofarm.Image = "rbxassetid://2790382281"
  58. autofarm.ImageColor3 = Color3.fromRGB(35, 35, 35)
  59. autofarm.ImageTransparency = 0.100
  60. autofarm.ScaleType = Enum.ScaleType.Slice
  61. autofarm.SliceCenter = Rect.new(4, 4, 252, 252)
  62. autofarm.MouseButton1Click:Connect(function()
  63. on = false
  64.     if on == false then
  65.         on = true
  66.     else
  67.         on = false
  68.     end
  69.     while on do wait(0.1)
  70. game:GetService("ReplicatedStorage").Events.Server.OreNodes.PickaxeStrikeNoNode:FireServer()
  71. game:GetService("ReplicatedStorage").Events.Server.Sell:FireServer()
  72.     end
  73. end)
  74.  
  75. autofarm.MouseButton1Click:Connect(function()
  76.     Click.Playing = true
  77. end)
  78.  
  79. autofarm.MouseEnter:Connect(function()
  80.     autofarm:TweenSize(UDim2.new(0, 211,0, 37), nil, nil, 0.3)
  81. end)
  82.  
  83. autofarm.MouseLeave:Connect(function()
  84.     autofarm:TweenSize(UDim2.new(0, 226, 0, 49), nil, nil, 0.3)
  85. end)
  86.  
  87. TextLabel.Parent = autofarm
  88. TextLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  89. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  90. TextLabel.BackgroundTransparency = 1.000
  91. TextLabel.BorderSizePixel = 0
  92. TextLabel.Position = UDim2.new(0.49999997, 0, 0.487500012, 0)
  93. TextLabel.Selectable = true
  94. TextLabel.Size = UDim2.new(0.340000004, -5, 0.675000012, -5)
  95. TextLabel.Font = Enum.Font.GothamSemibold
  96. TextLabel.Text = "Autofarm"
  97. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  98. TextLabel.TextSize = 20.000
  99.  
  100. codes.Name = "codes"
  101. codes.Parent = topframe
  102. codes.AnchorPoint = Vector2.new(0.5, 0.5)
  103. codes.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  104. codes.BackgroundTransparency = 1.000
  105. codes.Position = UDim2.new(0.749037266, 0, 0.484271348, 0)
  106. codes.Size = UDim2.new(0, 226, 0, 49)
  107. codes.Image = "rbxassetid://2790382281"
  108. codes.ImageColor3 = Color3.fromRGB(35, 35, 35)
  109. codes.ImageTransparency = 0.100
  110. codes.ScaleType = Enum.ScaleType.Slice
  111. codes.SliceCenter = Rect.new(4, 4, 252, 252)
  112. codes.MouseButton1Click:Connect(function()
  113. local args = {
  114.     [1] = "release",
  115. }
  116.  
  117. game:GetService("ReplicatedStorage").Events.Server.Codes:FireServer(unpack(args))
  118.  
  119. local args = {
  120.     [1] = "egg",
  121. }
  122.  
  123. game:GetService("ReplicatedStorage").Events.Server.Codes:FireServer(unpack(args))
  124.  
  125. local args = {
  126.     [1] = "ryzoft",
  127. }
  128.  
  129. game:GetService("ReplicatedStorage").Events.Server.Codes:FireServer(unpack(args))
  130.  
  131. local args = {
  132.     [1] = "itskolapo",
  133. }
  134.  
  135. game:GetService("ReplicatedStorage").Events.Server.Codes:FireServer(unpack(args))
  136.  
  137. end)
  138.  
  139. codes.MouseEnter:Connect(function()
  140.     codes:TweenSize(UDim2.new(0, 211,0, 37), nil, nil, 0.3)
  141. end)
  142.  
  143. autofarm.MouseLeave:Connect(function()
  144.     codes:TweenSize(UDim2.new(0, 226, 0, 49), nil, nil, 0.3)
  145. end)
  146.  
  147. TextLabel_2.Parent = codes
  148. TextLabel_2.AnchorPoint = Vector2.new(0.5, 0.5)
  149. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  150. TextLabel_2.BackgroundTransparency = 1.000
  151. TextLabel_2.BorderSizePixel = 0
  152. TextLabel_2.Position = UDim2.new(0.49999997, 0, 0.487500012, 0)
  153. TextLabel_2.Selectable = true
  154. TextLabel_2.Size = UDim2.new(0.340000004, -5, 0.675000012, -5)
  155. TextLabel_2.Font = Enum.Font.GothamSemibold
  156. TextLabel_2.Text = "Redeem SOME codes"
  157. TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  158. TextLabel_2.TextSize = 20.000
  159.  
  160. bottomframe.Name = "bottomframe"
  161. bottomframe.Parent = Gradient
  162. bottomframe.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  163. bottomframe.BackgroundTransparency = 1.000
  164. bottomframe.Position = UDim2.new(0.0219123513, 0, 0.601395249, 0)
  165. bottomframe.Size = UDim2.new(0, 482, 0, 59)
  166. bottomframe.Image = "rbxassetid://2790371148"
  167. bottomframe.ImageColor3 = Color3.fromRGB(35, 35, 35)
  168. bottomframe.ImageTransparency = 0.600
  169. bottomframe.ScaleType = Enum.ScaleType.Slice
  170. bottomframe.SliceCenter = Rect.new(32, 32, 224, 224)
  171. bottomframe.SliceScale = 0.500
  172.  
  173. moreinfo.Name = "moreinfo"
  174. moreinfo.Parent = bottomframe
  175. moreinfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  176. moreinfo.BackgroundTransparency = 1.000
  177. moreinfo.BorderSizePixel = 0
  178. moreinfo.Position = UDim2.new(0.0615050197, 0, 0.403561413, 0)
  179. moreinfo.Size = UDim2.new(0, 434, 0, 35)
  180. moreinfo.Font = Enum.Font.SourceSansBold
  181. moreinfo.Text = "More features will be added... soon!"
  182. moreinfo.TextColor3 = Color3.fromRGB(227, 227, 227)
  183. moreinfo.TextSize = 27.000
  184. moreinfo.TextStrokeColor3 = Color3.fromRGB(153, 104, 47)
  185. moreinfo.TextStrokeTransparency = 0.000
  186.  
  187. credits.Name = "credits"
  188. credits.Parent = bottomframe
  189. credits.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  190. credits.BackgroundTransparency = 1.000
  191. credits.BorderSizePixel = 0
  192. credits.Position = UDim2.new(0.202939287, 0, -0.05524569, 0)
  193. credits.Size = UDim2.new(0, 319, 0, 35)
  194. credits.Font = Enum.Font.SourceSansBold
  195. credits.Text = "Pan#0012 is the owner of this gui."
  196. credits.TextColor3 = Color3.fromRGB(227, 227, 227)
  197. credits.TextSize = 25.000
  198. credits.TextStrokeColor3 = Color3.fromRGB(153, 104, 47)
  199. credits.TextStrokeTransparency = 0.000
  200.  
  201. close.Name = "close"
  202. close.Parent = Gradient
  203. close.AnchorPoint = Vector2.new(0.5, 0.5)
  204. close.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  205. close.BackgroundTransparency = 1.000
  206. close.Position = UDim2.new(0.926112294, 0, -0.151898727, 0)
  207. close.Size = UDim2.new(0, 74, 0, 30)
  208. close.Image = "rbxassetid://2790382281"
  209. close.ImageColor3 = Color3.fromRGB(149, 0, 0)
  210. close.ScaleType = Enum.ScaleType.Slice
  211. close.SliceCenter = Rect.new(4, 4, 252, 252)
  212. close.MouseButton1Click:Connect(function()
  213.     maingui:Destroy()
  214. end)
  215.  
  216.  
  217. text.Name = "text"
  218. text.Parent = close
  219. text.AnchorPoint = Vector2.new(0.5, 0.5)
  220. text.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  221. text.BackgroundTransparency = 1.000
  222. text.BorderSizePixel = 0
  223. text.Position = UDim2.new(0.493592143, 0, 0.487500012, 0)
  224. text.Size = UDim2.new(0.623399198, -5, 0.774999976, -5)
  225. text.Font = Enum.Font.GothamSemibold
  226. text.Text = "Close"
  227. text.TextColor3 = Color3.fromRGB(255, 255, 255)
  228. text.TextSize = 14.000
  229. text.TextStrokeColor3 = Color3.fromRGB(57, 0, 0)
  230. text.TextStrokeTransparency = 0.000
  231.  
  232. local Frame = Gradient
  233. function dragify(Frame)
  234. dragToggle = nil
  235. dragSpeed = .25 -- You can edit this.
  236. dragInput = nil
  237. dragStart = nil
  238. dragPos = nil
  239.  
  240. function updateInput(input)
  241. Delta = input.Position - dragStart
  242. Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  243. game:GetService("TweenService"):Create(Frame, TweenInfo.new(.25), {Position = Position}):Play()
  244. end
  245.  
  246. Frame.InputBegan:Connect(function(input)
  247. if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
  248. dragToggle = true
  249. dragStart = input.Position
  250. startPos = Frame.Position
  251. input.Changed:Connect(function()
  252. if (input.UserInputState == Enum.UserInputState.End) then
  253. dragToggle = false
  254. end
  255. end)
  256. end
  257. end)
  258.  
  259. Frame.InputChanged:Connect(function(input)
  260. if (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
  261. dragInput = input
  262. end
  263. end)
  264.  
  265. game:GetService("UserInputService").InputChanged:Connect(function(input)
  266. if (input == dragInput and dragToggle) then
  267. updateInput(input)
  268. end
  269. end)
  270. end
  271. dragify(Frame)
  272. if no then
  273.     game.Players.LocalPlayer:Kick("Something went wrong with executing.")
  274.     else
  275.         print("Loaded autofarm and codes successfully!")
  276.         warn("Created by Pan#0012")
  277. end
  278. end)
Add Comment
Please, Sign In to add comment