Advertisement
NoTextForSpeech

mega boss survival autofarm (simple)

Feb 10th, 2024 (edited)
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.22 KB | None | 0 0
  1. local Library = loadstring(game:HttpGet("https://pastebin.com/raw/vff1bQ9F"))()
  2. local Window = Library.CreateLib("Mega Boss Survival", "DarkTheme")
  3. local Tab = Window:NewTab("HI")
  4. local Section = Tab:NewSection("MAIN")
  5. Section:NewButton("Autofarm kinda", "kinda", function()
  6. local function createPartAtPosition(position, size, transparency)
  7. local part = Instance.new("Part")
  8. part.Size = size
  9. part.Position = position
  10. part.Anchored = true
  11. part.Transparency = transparency
  12. part.Parent = workspace -- Change the parent as needed (e.g., to a Model)
  13.  
  14. return part
  15. end
  16.  
  17. local targetPosition = Vector3.new(-312, 100000, -288)
  18. local targetSize = Vector3.new(2048, 10, 2048)
  19. local targetTransparency = 1
  20. local createdPart = createPartAtPosition(targetPosition, targetSize, targetTransparency)
  21. print("Part created at", createdPart.Position)
  22. local player = game.Players.LocalPlayer.Character.HumanoidRootPart
  23. local cframe = CFrame.new(-312, 100010, -288)
  24. player.CFrame = cframe
  25. print("Clicked")
  26. end)
  27. Section:NewButton("Anti Afk", "Make you not get kick after 20min afk", function()
  28. wait(0.5)local ba=Instance.new("ScreenGui")
  29. local ca=Instance.new("TextLabel")local da=Instance.new("Frame")
  30. local _b=Instance.new("TextLabel")local ab=Instance.new("TextLabel")ba.Parent=game.CoreGui
  31. ba.ZIndexBehavior=Enum.ZIndexBehavior.Sibling;ca.Parent=ba;ca.Active=true
  32. ca.BackgroundColor3=Color3.new(0.176471,0.176471,0.176471)ca.Draggable=true
  33. ca.Position=UDim2.new(0.698610067,0,0.098096624,0)ca.Size=UDim2.new(0,370,0,52)
  34. ca.Font=Enum.Font.SourceSansSemibold;ca.Text="Anti AFK Script"ca.TextColor3=Color3.new(0,1,1)
  35. ca.TextSize=22;da.Parent=ca
  36. da.BackgroundColor3=Color3.new(0.196078,0.196078,0.196078)da.Position=UDim2.new(0,0,1.0192306,0)
  37. da.Size=UDim2.new(0,370,0,107)_b.Parent=da
  38. _b.BackgroundColor3=Color3.new(0.176471,0.176471,0.176471)_b.Position=UDim2.new(0,0,0.800455689,0)
  39. _b.Size=UDim2.new(0,370,0,21)_b.Font=Enum.Font.Arial;_b.Text="made by ur mom "
  40. _b.TextColor3=Color3.new(0,1,1)_b.TextSize=20;ab.Parent=da
  41. ab.BackgroundColor3=Color3.new(0.176471,0.176471,0.176471)ab.Position=UDim2.new(0,0,0.158377,0)
  42. ab.Size=UDim2.new(0,370,0,44)ab.Font=Enum.Font.ArialBold;ab.Text="Status: Active"
  43. ab.TextColor3=Color3.new(0,1,1)ab.TextSize=20;local bb=game:service'VirtualUser'
  44. game:service'Players'.LocalPlayer.Idled:connect(function()
  45. bb:CaptureController()bb:ClickButton2(Vector2.new())
  46. ab.Text="Roblox tried to kick u but i kicked him instead"wait(2)ab.Text="Status : Active"end)
  47. end)
  48. Section:NewButton("Spectate", "ButtonInfo", function()
  49. local runDummyScript = function(f,scri)
  50. local oldenv = getfenv(f)
  51. local newenv = setmetatable({}, {
  52. __index = function(_, k)
  53. if k:lower() == 'script' then
  54. return scri
  55. else
  56. return oldenv[k]
  57. end
  58. end
  59. })
  60. setfenv(f, newenv)
  61. ypcall(function() f() end)
  62. end
  63. cors = {}
  64. mas = Instance.new("Model",game:GetService("Lighting"))
  65. mas.Name = "CompiledModel"
  66. o1 = Instance.new("ScreenGui")
  67. o2 = Instance.new("Frame")
  68. o3 = Instance.new("TextButton")
  69. o4 = Instance.new("TextButton")
  70. o5 = Instance.new("TextLabel")
  71. o6 = Instance.new("ImageButton")
  72. o7 = Instance.new("LocalScript")
  73. o1.Name = "SpectateGui"
  74. o1.Parent = mas
  75. o2.Name = "Bar"
  76. o2.Parent = o1
  77. o2.Position = UDim2.new(-1,-100,0.87999999523163,-50)
  78. o2.Size = UDim2.new(0,200,0,50)
  79. o2.Position = UDim2.new(-1,-100,0.87999999523163,-50)
  80. o2.BackgroundColor3 = Color3.new(0, 0, 0)
  81. o2.BackgroundTransparency = 0.20000000298023
  82. o2.BorderSizePixel = 5
  83. o3.Name = "Previous"
  84. o3.Parent = o2
  85. o3.Size = UDim2.new(0.25,0,1,0)
  86. o3.Text = "<"
  87. o3.BackgroundColor3 = Color3.new(0.52549, 0.52549, 0.52549)
  88. o3.BorderColor3 = Color3.new(0.509804, 0.796079, 1)
  89. o3.BorderSizePixel = 0
  90. o3.Font = Enum.Font.SourceSans
  91. o3.FontSize = Enum.FontSize.Size48
  92. o3.TextColor3 = Color3.new(1, 1, 1)
  93. o4.Name = "Next"
  94. o4.Parent = o2
  95. o4.Position = UDim2.new(1,0,0,0)
  96. o4.Size = UDim2.new(-0.25,0,1,0)
  97. o4.Text = ">"
  98. o4.Position = UDim2.new(1,0,0,0)
  99. o4.BackgroundColor3 = Color3.new(0.52549, 0.52549, 0.52549)
  100. o4.BorderColor3 = Color3.new(0.509804, 0.796079, 1)
  101. o4.BorderSizePixel = 0
  102. o4.Font = Enum.Font.SourceSans
  103. o4.FontSize = Enum.FontSize.Size48
  104. o4.TextColor3 = Color3.new(1, 1, 1)
  105. o5.Name = "Title"
  106. o5.Parent = o2
  107. o5.Position = UDim2.new(0.27500000596046,0,0,0)
  108. o5.Size = UDim2.new(0.44999998807907,0,1,0)
  109. o5.Text = ""
  110. o5.Position = UDim2.new(0.27500000596046,0,0,0)
  111. o5.BackgroundColor3 = Color3.new(1, 1, 1)
  112. o5.BackgroundTransparency = 1
  113. o5.Font = Enum.Font.SourceSans
  114. o5.FontSize = Enum.FontSize.Size14
  115. o5.TextColor3 = Color3.new(1, 1, 1)
  116. o5.TextScaled = true
  117. o5.TextWrapped = true
  118. o6.Name = "Button"
  119. o6.Parent = o1
  120. o6.Position = UDim2.new(0,0,0.5,-25)
  121. o6.Size = UDim2.new(0,50,0,50)
  122. o6.Position = UDim2.new(0,0,0.5,-25)
  123. o6.BackgroundColor3 = Color3.new(1, 1, 1)
  124. o6.BackgroundTransparency = 0.30000001192093
  125. o6.BorderSizePixel = 5
  126. o6.Image = "http://www.roblox.com/asset/?id=176106970"
  127. o7.Parent = o1
  128. table.insert(cors,coroutine.create(function()
  129. wait()
  130. runDummyScript(function()
  131.  
  132. cam = game.Workspace.CurrentCamera
  133.  
  134. local bar = script.Parent.Bar
  135. local title = bar.Title
  136. local prev = bar.Previous
  137. local nex = bar.Next
  138. local button = script.Parent.Button
  139.  
  140. function get()
  141. for _,v in pairs(game.Players:GetPlayers())do
  142. if v.Name == title.Text then
  143. return(_)
  144. end
  145. end
  146. end
  147.  
  148.  
  149. local debounce = false
  150. button.MouseButton1Click:connect(function()
  151. if debounce == false then debounce = true
  152. bar:TweenPosition(UDim2.new(.5,-100,0.88,-50),"In","Linear",1,true)
  153. pcall(function()
  154. title.Text = game.Players:GetPlayerFromCharacter(cam.CameraSubject.Parent).Name
  155. end)
  156. elseif debounce == true then debounce = false
  157. pcall(function() cam.CameraSubject = game.Players.LocalPlayer.Character.Humanoid end)
  158. bar:TweenPosition(UDim2.new(-1,-100,0.88,-50),"In","Linear",1,true)
  159. end
  160. end)
  161.  
  162. prev.MouseButton1Click:connect(function()
  163. wait(.1)
  164. local players = game.Players:GetPlayers()
  165. local num = get()
  166. if not pcall(function()
  167. cam.CameraSubject = players[num-1].Character.Humanoid
  168. end) then
  169. cam.CameraSubject = players[#players].Character.Humanoid
  170. end
  171. pcall(function()
  172. title.Text = game.Players:GetPlayerFromCharacter(cam.CameraSubject.Parent).Name
  173. end)
  174. end)
  175.  
  176. nex.MouseButton1Click:connect(function()
  177. wait(.1)
  178. local players = game.Players:GetPlayers()
  179. local num = get()
  180. if not pcall(function()
  181. cam.CameraSubject = players[num+1].Character.Humanoid
  182. end) then
  183. cam.CameraSubject = players[1].Character.Humanoid
  184. end
  185. pcall(function()
  186. title.Text = game.Players:GetPlayerFromCharacter(cam.CameraSubject.Parent).Name
  187. end)
  188. end)
  189.  
  190.  
  191. end,o7)
  192. end))
  193. mas.Parent = workspace
  194. mas:MakeJoints()
  195. local mas1 = mas:GetChildren()
  196. for i=1,#mas1 do
  197. mas1[i].Parent = game:GetService("Players").LocalPlayer.PlayerGui
  198. ypcall(function() mas1[i]:MakeJoints() end)
  199. end
  200. mas:Destroy()
  201. for i=1,#cors do
  202. coroutine.resume(cors[i])
  203. end
  204. end)
  205. Section:NewButton("Remove Barrier", "ButtonInfo", function()
  206.  
  207. local partToDelete = "Barrier"
  208.  
  209. local function deletePartByName(name)
  210. local part = game.Workspace:FindFirstChild(name)
  211.  
  212. if part then
  213. part:Destroy()
  214. print("Part deleted successfully.")
  215. else
  216. print("Part not found.")
  217. end
  218. end
  219.  
  220. deletePartByName(partToDelete)
  221. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement