Advertisement
9_cVv

wormfaceautofarm gui

Dec 2nd, 2020 (edited)
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.98 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local gamehahagamehaha = Instance.new("ScreenGui")
  7. local loadFrame = Instance.new("ImageLabel")
  8. local openButton = Instance.new("TextButton")
  9. local roundify = Instance.new("ImageLabel")
  10. local openLabel = Instance.new("TextLabel")
  11. local creds = Instance.new("TextLabel")
  12. local main = Instance.new("ImageLabel")
  13. local creds_2 = Instance.new("TextLabel")
  14. local toggleButton = Instance.new("TextButton")
  15. local roundify_2 = Instance.new("ImageLabel")
  16. local toggleLabel = Instance.new("TextLabel")
  17. local toggle = Instance.new("ImageLabel")
  18.  
  19. --Properties:
  20.  
  21. gamehahagamehaha.Name = "gamehahagamehaha"
  22. gamehahagamehaha.Parent = game:GetService("CoreGui")
  23.  
  24. loadFrame.Name = "loadFrame"
  25. loadFrame.Parent = gamehahagamehaha
  26. loadFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  27. loadFrame.BackgroundTransparency = 1.000
  28. loadFrame.Position = UDim2.new(0.338912129, 0, 0.364520073, 0)
  29. loadFrame.Size = UDim2.new(0, 216, 0, 99)
  30. loadFrame.Image = "rbxassetid://3570695787"
  31. loadFrame.ImageColor3 = Color3.fromRGB(90, 90, 90)
  32. loadFrame.ScaleType = Enum.ScaleType.Slice
  33. loadFrame.SliceCenter = Rect.new(100, 100, 100, 100)
  34. loadFrame.SliceScale = 0.120
  35.  
  36. openButton.Name = "openButton"
  37. openButton.Parent = loadFrame
  38. openButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  39. openButton.BackgroundTransparency = 1.000
  40. openButton.BorderSizePixel = 0
  41. openButton.Position = UDim2.new(0.135209531, 0, -0.101010099, 50)
  42. openButton.Size = UDim2.new(0, 156, 0, 31)
  43. openButton.Font = Enum.Font.GothamBlack
  44. openButton.Text = "Open"
  45. openButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  46. openButton.TextSize = 20.000
  47.  
  48. roundify.Name = "roundify"
  49. roundify.Parent = openButton
  50. roundify.Active = true
  51. roundify.AnchorPoint = Vector2.new(0.5, 0.5)
  52. roundify.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  53. roundify.BackgroundTransparency = 1.000
  54. roundify.Position = UDim2.new(0.5, 0, 0.5, 0)
  55. roundify.Selectable = true
  56. roundify.Size = UDim2.new(1, 0, 1, 0)
  57. roundify.Image = "rbxassetid://3570695787"
  58. roundify.ImageColor3 = Color3.fromRGB(100, 100, 100)
  59. roundify.ScaleType = Enum.ScaleType.Slice
  60. roundify.SliceCenter = Rect.new(100, 100, 100, 100)
  61. roundify.SliceScale = 0.120
  62.  
  63. openLabel.Name = "openLabel"
  64. openLabel.Parent = openButton
  65. openLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  66. openLabel.BackgroundTransparency = 1.000
  67. openLabel.BorderSizePixel = 0
  68. openLabel.Size = UDim2.new(0, 156, 0, 31)
  69. openLabel.Font = Enum.Font.GothamBlack
  70. openLabel.Text = "Open"
  71. openLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  72. openLabel.TextSize = 20.000
  73. openLabel.TextWrapped = true
  74.  
  75. creds.Name = "creds"
  76. creds.Parent = loadFrame
  77. creds.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  78. creds.BackgroundTransparency = 1.000
  79. creds.BorderSizePixel = 0
  80. creds.Size = UDim2.new(0, 216, 0, 27)
  81. creds.Font = Enum.Font.GothamBlack
  82. creds.Text = "Made by TechHog#8983"
  83. creds.TextColor3 = Color3.fromRGB(255, 255, 255)
  84. creds.TextScaled = true
  85. creds.TextSize = 20.000
  86. creds.TextWrapped = true
  87.  
  88. main.Name = "main"
  89. main.Parent = gamehahagamehaha
  90. main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  91. main.BackgroundTransparency = 1.000
  92. main.Position = UDim2.new(0.337596893, 0, 0.372917414, 0)
  93. main.Size = UDim2.new(0, 221, 0, 96)
  94. main.Image = "rbxassetid://3570695787"
  95. main.ImageColor3 = Color3.fromRGB(90, 90, 90)
  96. main.ScaleType = Enum.ScaleType.Slice
  97. main.SliceCenter = Rect.new(100, 100, 100, 100)
  98. main.SliceScale = 0.120
  99. main.Visible = false
  100.  
  101. creds_2.Name = "creds"
  102. creds_2.Parent = main
  103. creds_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  104. creds_2.BackgroundTransparency = 1.000
  105. creds_2.BorderSizePixel = 0
  106. creds_2.Position = UDim2.new(0.000298892759, 0, -3.17891448e-07, 0)
  107. creds_2.Size = UDim2.new(0, 220, 0, 20)
  108. creds_2.Font = Enum.Font.GothamBlack
  109. creds_2.Text = "Made by TechHog#8984"
  110. creds_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  111. creds_2.TextScaled = true
  112. creds_2.TextSize = 20.000
  113. creds_2.TextWrapped = true
  114.  
  115. toggleButton.Name = "toggleButton"
  116. toggleButton.Parent = main
  117. toggleButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  118. toggleButton.BackgroundTransparency = 1.000
  119. toggleButton.BorderSizePixel = 0
  120. toggleButton.Position = UDim2.new(0.157097593, 0, -0.141992897, 50)
  121. toggleButton.Size = UDim2.new(0, 150, 0, 23)
  122. toggleButton.Font = Enum.Font.GothamBlack
  123. toggleButton.Text = "Open"
  124. toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  125. toggleButton.TextSize = 20.000
  126.  
  127. roundify_2.Name = "roundify"
  128. roundify_2.Parent = toggleButton
  129. roundify_2.Active = true
  130. roundify_2.AnchorPoint = Vector2.new(0.5, 0.5)
  131. roundify_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  132. roundify_2.BackgroundTransparency = 1.000
  133. roundify_2.Position = UDim2.new(0.500126123, 0, 0.501796544, 0)
  134. roundify_2.Selectable = true
  135. roundify_2.Size = UDim2.new(1.00025225, 0, 1.0035975, 0)
  136. roundify_2.Image = "rbxassetid://3570695787"
  137. roundify_2.ImageColor3 = Color3.fromRGB(100, 100, 100)
  138. roundify_2.ScaleType = Enum.ScaleType.Slice
  139. roundify_2.SliceCenter = Rect.new(100, 100, 100, 100)
  140. roundify_2.SliceScale = 0.120
  141.  
  142. toggleLabel.Name = "toggleLabel"
  143. toggleLabel.Parent = toggleButton
  144. toggleLabel.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  145. toggleLabel.BackgroundTransparency = 1.000
  146. toggleLabel.BorderSizePixel = 0
  147. toggleLabel.Position = UDim2.new(0.0320595279, 0, -2.6537025e-06, 0)
  148. toggleLabel.Size = UDim2.new(0, 150, 0, 23)
  149. toggleLabel.Font = Enum.Font.GothamBlack
  150. toggleLabel.Text = "Toggle"
  151. toggleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  152. toggleLabel.TextSize = 20.000
  153. toggleLabel.TextWrapped = true
  154.  
  155. toggle.Name = "toggle"
  156. toggle.Parent = main
  157. toggle.Active = true
  158. toggle.AnchorPoint = Vector2.new(0.5, 0.5)
  159. toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  160. toggle.BackgroundTransparency = 1.000
  161. toggle.Position = UDim2.new(0.516397893, 0, -0.138382271, 95)
  162. toggle.Selectable = true
  163. toggle.Size = UDim2.new(0.378619671, 0, 0.144349709, 0)
  164. toggle.Image = "rbxassetid://3570695787"
  165. toggle.ImageColor3 = Color3.fromRGB(100, 100, 100)
  166. toggle.ScaleType = Enum.ScaleType.Slice
  167. toggle.SliceCenter = Rect.new(100, 100, 100, 100)
  168. toggle.SliceScale = 0.120
  169.  
  170. -- Scripts:
  171.  
  172. local function SXWV_fake_script() -- loadFrame.loadScript
  173.     local script = Instance.new('LocalScript', loadFrame)
  174.  
  175.     local tweenService = game:GetService("TweenService")
  176.    
  177.     local frame = script.Parent
  178.     local main = script.Parent.Parent.main
  179.     local openButton = frame.openButton
  180.    
  181.     frame.Visible = true
  182.    
  183.     openButton.MouseButton1Click:connect(function()
  184.         tweenService:Create(frame, TweenInfo.new(1), {Size=UDim2.new(0,0,0,frame.Size.Y.Offset)}):Play()
  185.         for a,obj in pairs(frame:GetChildren()) do
  186.             if not obj:IsA("LocalScript") then
  187.                 tweenService:Create(obj, TweenInfo.new(1), {Size=UDim2.new(0,0,0,obj.Size.Y.Offset)}):Play()
  188.                 tweenService:Create(obj, TweenInfo.new(1), {TextTransparency=1}):Play()
  189.                 for a,objChild in pairs(obj:GetChildren()) do
  190.                     if not objChild:IsA("ImageLabel") then
  191.                         tweenService:Create(objChild, TweenInfo.new(1), {Size=UDim2.new(0,0,0,objChild.Size.Y.Offset)}):Play()
  192.                         tweenService:Create(objChild, TweenInfo.new(1), {TextTransparency=1}):Play()
  193.                     end
  194.                 end
  195.             end
  196.         end
  197.         wait(1)
  198.         main.Visible = true
  199.         frame.Visible = false
  200.     end)
  201. end
  202. coroutine.wrap(SXWV_fake_script)()
  203. local function KVTFO_fake_script() -- loadFrame.Dragify
  204.     local script = Instance.new('LocalScript', loadFrame)
  205.  
  206.     function dragify(Frame)
  207.         dragToggle = nil
  208.         local dragSpeed = .25 -- You can edit this.
  209.         dragInput = nil
  210.         dragStart = nil
  211.         local dragPos = nil
  212.    
  213.         function updateInput(input)
  214.             local Delta = input.Position - dragStart
  215.             local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  216.             game:GetService("TweenService"):Create(Frame, TweenInfo.new(.25), {Position = Position}):Play()
  217.         end
  218.    
  219.         Frame.InputBegan:Connect(function(input)
  220.             if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
  221.                 dragToggle = true
  222.                 dragStart = input.Position
  223.                 startPos = Frame.Position
  224.                 input.Changed:Connect(function()
  225.                     if (input.UserInputState == Enum.UserInputState.End) then
  226.                         dragToggle = false
  227.                     end
  228.                 end)
  229.             end
  230.         end)
  231.    
  232.         Frame.InputChanged:Connect(function(input)
  233.             if (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
  234.                 dragInput = input
  235.             end
  236.         end)
  237.    
  238.         game:GetService("UserInputService").InputChanged:Connect(function(input)
  239.             if (input == dragInput and dragToggle) then
  240.                 updateInput(input)
  241.             end
  242.         end)
  243.     end
  244.    
  245.     dragify(loadFrame)
  246. end
  247. coroutine.wrap(KVTFO_fake_script)()
  248. local function ITRZRT_fake_script() -- main.mainScript
  249.     local script = Instance.new('LocalScript', main)
  250.  
  251.     local tweenService = game:GetService("TweenService")
  252.     local runService = game:GetService("RunService")
  253.     local players = game:GetService("Players")
  254.    
  255.     local player = players.LocalPlayer
  256.     local frame = script.Parent
  257.     local toggleButton = frame.toggleButton
  258.     local toggleImage = frame.toggle
  259.     local toggle = false
  260.    
  261.     local rebirthRemote = game.ReplicatedStorage.RebirthRequest
  262.    
  263.     local rebirthGui = player.PlayerGui.RebirthGui
  264.     local lengthText = rebirthGui.Window.Content.InnerPanel.ProgressBar.Background.Text
  265.     local items = game.Workspace.Items
  266.    
  267.     local playerStats = player.Stats
  268.     local length = playerStats.Length
  269.     local gems = playerStats.Gems
  270.    
  271.     local function checkRebirth()
  272.         local args = string.split(lengthText.Text, '/')
  273.         local have = tostring(length.Value)
  274.         local need = args[2]
  275.         if have >= need then
  276.             return true
  277.         else
  278.             return false
  279.         end
  280.     end
  281.     local function autofarm()
  282.         local character = player.Character
  283.         if character then
  284.             for a,item in pairs(items:GetChildren()) do
  285.                 if item:FindFirstChild("Part") then
  286.                     if toggle == true then
  287.                         character:MoveTo(item.Part.Position)
  288.                         if _G.doRebirth == true then
  289.                             if checkRebirth() == true then
  290.                                 rebirthRemote:InvokeServer()
  291.                             end
  292.                         end
  293.                         wait()
  294.                     end
  295.                 end
  296.             end
  297.         end
  298.     end
  299.    
  300.     toggleButton.MouseButton1Click:connect(function()
  301.         if toggle == false then
  302.             toggle = true
  303.             tweenService:Create(toggleImage, TweenInfo.new(1), {ImageColor3=Color3.fromRGB(34, 255, 0)}):Play()    
  304.         else
  305.             toggle = false
  306.             tweenService:Create(toggleImage, TweenInfo.new(1), {ImageColor3=Color3.fromRGB(255, 0, 0)}):Play()
  307.         end
  308.     end)
  309.    
  310.     runService.RenderStepped:connect(function()
  311.         if toggle == true then
  312.             wait()
  313.             autofarm()
  314.         end
  315.     end)
  316. end
  317. coroutine.wrap(ITRZRT_fake_script)()
  318. local function JSWR_fake_script() -- main.Dragify
  319.     local script = Instance.new('LocalScript', main)
  320.  
  321.     function dragify(Frame)
  322.         dragToggle = nil
  323.         local dragSpeed = .25 -- You can edit this.
  324.         dragInput = nil
  325.         dragStart = nil
  326.         local dragPos = nil
  327.    
  328.         function updateInput(input)
  329.             local Delta = input.Position - dragStart
  330.             local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  331.             game:GetService("TweenService"):Create(Frame, TweenInfo.new(.25), {Position = Position}):Play()
  332.         end
  333.    
  334.         Frame.InputBegan:Connect(function(input)
  335.             if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
  336.                 dragToggle = true
  337.                 dragStart = input.Position
  338.                 startPos = Frame.Position
  339.                 input.Changed:Connect(function()
  340.                     if (input.UserInputState == Enum.UserInputState.End) then
  341.                         dragToggle = false
  342.                     end
  343.                 end)
  344.             end
  345.         end)
  346.    
  347.         Frame.InputChanged:Connect(function(input)
  348.             if (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
  349.                 dragInput = input
  350.             end
  351.         end)
  352.    
  353.         game:GetService("UserInputService").InputChanged:Connect(function(input)
  354.             if (input == dragInput and dragToggle) then
  355.                 updateInput(input)
  356.             end
  357.         end)
  358.     end
  359.    
  360.     dragify(main)
  361. end
  362. coroutine.wrap(JSWR_fake_script)()
  363.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement