Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Created fully by Pan#0012
- Game link: https://www.roblox.com/games/4186060228/UPDATE-2-Pickaxe-Simulator
- Enjoy! ;D
- ]]--
- local success, no pcall(function()
- local maingui = Instance.new("ScreenGui")
- local Gradient = Instance.new("ImageLabel")
- local topframe = Instance.new("ImageButton")
- local autofarm = Instance.new("ImageButton")
- local TextLabel = Instance.new("TextLabel")
- local codes = Instance.new("ImageButton")
- local TextLabel_2 = Instance.new("TextLabel")
- local bottomframe = Instance.new("ImageButton")
- local moreinfo = Instance.new("TextLabel")
- local credits = Instance.new("TextLabel")
- local close = Instance.new("ImageButton")
- local text = Instance.new("TextLabel")
- local Click = Instance.new("Sound",maingui)
- maingui.Name = "maingui"
- maingui.Parent = game.CoreGui
- Click.Name = "Click"
- Gradient.Name = "Gradient"
- Gradient.Parent = maingui
- Gradient.Active = true
- Gradient.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Gradient.BackgroundTransparency = 1.000
- Gradient.BorderSizePixel = 0
- Gradient.Position = UDim2.new(0.294693887, 0, 0.307308972, 0)
- Gradient.Selectable = true
- Gradient.Size = UDim2.new(0, 502, 0, 158)
- Gradient.Image = "http://www.roblox.com/asset/?id=3558891904"
- topframe.Name = "topframe"
- topframe.Parent = Gradient
- topframe.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- topframe.BackgroundTransparency = 1.000
- topframe.Position = UDim2.new(0.0219123513, 0, 0.0507622659, 0)
- topframe.Size = UDim2.new(0, 482, 0, 77)
- topframe.Image = "rbxassetid://2790371148"
- topframe.ImageColor3 = Color3.fromRGB(35, 35, 35)
- topframe.ImageTransparency = 0.600
- topframe.ScaleType = Enum.ScaleType.Slice
- topframe.SliceCenter = Rect.new(32, 32, 224, 224)
- topframe.SliceScale = 0.500
- autofarm.Name = "autofarm"
- autofarm.Parent = topframe
- autofarm.AnchorPoint = Vector2.new(0.5, 0.5)
- autofarm.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- autofarm.BackgroundTransparency = 1.000
- autofarm.Position = UDim2.new(0.247629791, 0, 0.484271348, 0)
- autofarm.Size = UDim2.new(0, 226, 0, 49)
- autofarm.Image = "rbxassetid://2790382281"
- autofarm.ImageColor3 = Color3.fromRGB(35, 35, 35)
- autofarm.ImageTransparency = 0.100
- autofarm.ScaleType = Enum.ScaleType.Slice
- autofarm.SliceCenter = Rect.new(4, 4, 252, 252)
- autofarm.MouseButton1Click:Connect(function()
- on = false
- if on == false then
- on = true
- else
- on = false
- end
- while on do wait(0.1)
- game:GetService("ReplicatedStorage").Events.Server.OreNodes.PickaxeStrikeNoNode:FireServer()
- game:GetService("ReplicatedStorage").Events.Server.Sell:FireServer()
- end
- end)
- autofarm.MouseButton1Click:Connect(function()
- Click.Playing = true
- end)
- autofarm.MouseEnter:Connect(function()
- autofarm:TweenSize(UDim2.new(0, 211,0, 37), nil, nil, 0.3)
- end)
- autofarm.MouseLeave:Connect(function()
- autofarm:TweenSize(UDim2.new(0, 226, 0, 49), nil, nil, 0.3)
- end)
- TextLabel.Parent = autofarm
- TextLabel.AnchorPoint = Vector2.new(0.5, 0.5)
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.BackgroundTransparency = 1.000
- TextLabel.BorderSizePixel = 0
- TextLabel.Position = UDim2.new(0.49999997, 0, 0.487500012, 0)
- TextLabel.Selectable = true
- TextLabel.Size = UDim2.new(0.340000004, -5, 0.675000012, -5)
- TextLabel.Font = Enum.Font.GothamSemibold
- TextLabel.Text = "Autofarm"
- TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.TextSize = 20.000
- codes.Name = "codes"
- codes.Parent = topframe
- codes.AnchorPoint = Vector2.new(0.5, 0.5)
- codes.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- codes.BackgroundTransparency = 1.000
- codes.Position = UDim2.new(0.749037266, 0, 0.484271348, 0)
- codes.Size = UDim2.new(0, 226, 0, 49)
- codes.Image = "rbxassetid://2790382281"
- codes.ImageColor3 = Color3.fromRGB(35, 35, 35)
- codes.ImageTransparency = 0.100
- codes.ScaleType = Enum.ScaleType.Slice
- codes.SliceCenter = Rect.new(4, 4, 252, 252)
- codes.MouseButton1Click:Connect(function()
- local args = {
- [1] = "release",
- }
- game:GetService("ReplicatedStorage").Events.Server.Codes:FireServer(unpack(args))
- local args = {
- [1] = "egg",
- }
- game:GetService("ReplicatedStorage").Events.Server.Codes:FireServer(unpack(args))
- local args = {
- [1] = "ryzoft",
- }
- game:GetService("ReplicatedStorage").Events.Server.Codes:FireServer(unpack(args))
- local args = {
- [1] = "itskolapo",
- }
- game:GetService("ReplicatedStorage").Events.Server.Codes:FireServer(unpack(args))
- end)
- codes.MouseEnter:Connect(function()
- codes:TweenSize(UDim2.new(0, 211,0, 37), nil, nil, 0.3)
- end)
- autofarm.MouseLeave:Connect(function()
- codes:TweenSize(UDim2.new(0, 226, 0, 49), nil, nil, 0.3)
- end)
- TextLabel_2.Parent = codes
- TextLabel_2.AnchorPoint = Vector2.new(0.5, 0.5)
- TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_2.BackgroundTransparency = 1.000
- TextLabel_2.BorderSizePixel = 0
- TextLabel_2.Position = UDim2.new(0.49999997, 0, 0.487500012, 0)
- TextLabel_2.Selectable = true
- TextLabel_2.Size = UDim2.new(0.340000004, -5, 0.675000012, -5)
- TextLabel_2.Font = Enum.Font.GothamSemibold
- TextLabel_2.Text = "Redeem SOME codes"
- TextLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel_2.TextSize = 20.000
- bottomframe.Name = "bottomframe"
- bottomframe.Parent = Gradient
- bottomframe.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- bottomframe.BackgroundTransparency = 1.000
- bottomframe.Position = UDim2.new(0.0219123513, 0, 0.601395249, 0)
- bottomframe.Size = UDim2.new(0, 482, 0, 59)
- bottomframe.Image = "rbxassetid://2790371148"
- bottomframe.ImageColor3 = Color3.fromRGB(35, 35, 35)
- bottomframe.ImageTransparency = 0.600
- bottomframe.ScaleType = Enum.ScaleType.Slice
- bottomframe.SliceCenter = Rect.new(32, 32, 224, 224)
- bottomframe.SliceScale = 0.500
- moreinfo.Name = "moreinfo"
- moreinfo.Parent = bottomframe
- moreinfo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- moreinfo.BackgroundTransparency = 1.000
- moreinfo.BorderSizePixel = 0
- moreinfo.Position = UDim2.new(0.0615050197, 0, 0.403561413, 0)
- moreinfo.Size = UDim2.new(0, 434, 0, 35)
- moreinfo.Font = Enum.Font.SourceSansBold
- moreinfo.Text = "More features will be added... soon!"
- moreinfo.TextColor3 = Color3.fromRGB(227, 227, 227)
- moreinfo.TextSize = 27.000
- moreinfo.TextStrokeColor3 = Color3.fromRGB(153, 104, 47)
- moreinfo.TextStrokeTransparency = 0.000
- credits.Name = "credits"
- credits.Parent = bottomframe
- credits.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- credits.BackgroundTransparency = 1.000
- credits.BorderSizePixel = 0
- credits.Position = UDim2.new(0.202939287, 0, -0.05524569, 0)
- credits.Size = UDim2.new(0, 319, 0, 35)
- credits.Font = Enum.Font.SourceSansBold
- credits.Text = "Pan#0012 is the owner of this gui."
- credits.TextColor3 = Color3.fromRGB(227, 227, 227)
- credits.TextSize = 25.000
- credits.TextStrokeColor3 = Color3.fromRGB(153, 104, 47)
- credits.TextStrokeTransparency = 0.000
- close.Name = "close"
- close.Parent = Gradient
- close.AnchorPoint = Vector2.new(0.5, 0.5)
- close.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- close.BackgroundTransparency = 1.000
- close.Position = UDim2.new(0.926112294, 0, -0.151898727, 0)
- close.Size = UDim2.new(0, 74, 0, 30)
- close.Image = "rbxassetid://2790382281"
- close.ImageColor3 = Color3.fromRGB(149, 0, 0)
- close.ScaleType = Enum.ScaleType.Slice
- close.SliceCenter = Rect.new(4, 4, 252, 252)
- close.MouseButton1Click:Connect(function()
- maingui:Destroy()
- end)
- text.Name = "text"
- text.Parent = close
- text.AnchorPoint = Vector2.new(0.5, 0.5)
- text.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- text.BackgroundTransparency = 1.000
- text.BorderSizePixel = 0
- text.Position = UDim2.new(0.493592143, 0, 0.487500012, 0)
- text.Size = UDim2.new(0.623399198, -5, 0.774999976, -5)
- text.Font = Enum.Font.GothamSemibold
- text.Text = "Close"
- text.TextColor3 = Color3.fromRGB(255, 255, 255)
- text.TextSize = 14.000
- text.TextStrokeColor3 = Color3.fromRGB(57, 0, 0)
- text.TextStrokeTransparency = 0.000
- local Frame = Gradient
- function dragify(Frame)
- dragToggle = nil
- dragSpeed = .25 -- You can edit this.
- dragInput = nil
- dragStart = nil
- dragPos = nil
- function updateInput(input)
- Delta = input.Position - dragStart
- Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
- game:GetService("TweenService"):Create(Frame, TweenInfo.new(.25), {Position = Position}):Play()
- end
- Frame.InputBegan:Connect(function(input)
- if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
- dragToggle = true
- dragStart = input.Position
- startPos = Frame.Position
- input.Changed:Connect(function()
- if (input.UserInputState == Enum.UserInputState.End) then
- dragToggle = false
- end
- end)
- end
- end)
- Frame.InputChanged:Connect(function(input)
- if (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
- dragInput = input
- end
- end)
- game:GetService("UserInputService").InputChanged:Connect(function(input)
- if (input == dragInput and dragToggle) then
- updateInput(input)
- end
- end)
- end
- dragify(Frame)
- if no then
- game.Players.LocalPlayer:Kick("Something went wrong with executing.")
- else
- print("Loaded autofarm and codes successfully!")
- warn("Created by Pan#0012")
- end
- end)
Add Comment
Please, Sign In to add comment