Facebook
From Ben, 6 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 302
  1.  local m = "yourmainhere"
  2. local CornFolder = game:GetService("Workspace"):WaitForChild("CandyCorns")
  3. repeat wait() until game:GetService("Players").LocalPlayer.Character
  4. local root
  5. root = game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart")
  6. local OldPos
  7. OldPos = root.CFrame
  8. local PlaceID = game.PlaceId
  9. local AllIDs = {}
  10. local foundAnything = ""
  11. local actualHour = os.date("!*t").hour
  12. local Deleted = false
  13. local File = pcall(function()
  14.    AllIDs = game:GetService('HttpService'):JSONDecode(readfile("NotSameServers.json"))
  15. end)
  16. if not File then
  17.    table.insert(AllIDs, actualHour)
  18.    writefile("NotSameServers.json", game:GetService('HttpService'):JSONEncode(AllIDs))
  19. end
  20. function TPReturner()
  21.    local Site;
  22.    if foundAnything == "" then
  23.        Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100'))
  24.    else
  25.        Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100&cursor;=' .. foundAnything))
  26.    end
  27.    local ID = ""
  28.    if Site.nextPageCursor and Site.nextPageCursor ~= "null" and Site.nextPageCursor ~= nil then
  29.        foundAnything = Site.nextPageCursor
  30.    end
  31.    local num = 0;
  32.    for i,v in pairs(Site.data) do
  33.        local Possible = true
  34.        ID = tostring(v.id)
  35.        if tonumber(v.maxPlayers) > tonumber(v.playing) then
  36.            for _,Existing in pairs(AllIDs) do
  37.                if num ~= 0 then
  38.                    if ID == tostring(Existing) then
  39.                        Possible = false
  40.                    end
  41.                else
  42.                    if tonumber(actualHour) ~= tonumber(Existing) then
  43.                        local delFile = pcall(function()
  44.                            delfile("NotSameServers.json")
  45.                            AllIDs = {}
  46.                            table.insert(AllIDs, actualHour)
  47.                        end)
  48.                    end
  49.                end
  50.                num = num + 1
  51.            end
  52.            if Possible == true then
  53.                table.insert(AllIDs, ID)
  54.                wait()
  55.                pcall(function()
  56.                    writefile("NotSameServers.json", game:GetService('HttpService'):JSONEncode(AllIDs))
  57.                    wait()
  58.                    game:GetService("TeleportService"):TeleportToPlaceInstance(PlaceID, ID, game.Players.LocalPlayer)
  59.                end)
  60.                wait(4)
  61.            end
  62.        end
  63.    end
  64. end
  65. function Teleport()
  66.    while wait() do
  67.        pcall(function()
  68.            TPReturner()
  69.            if foundAnything ~= "" then
  70.                TPReturner()
  71.            end
  72.        end)
  73.    end
  74. end
  75. local function CollectCorn(Corn)
  76. OldPos = root.CFrame
  77. root.CFrame = Corn.CFrame + Vector3.new(0,10,0)
  78. wait(1)
  79. root.CFrame = OldPos
  80. end
  81. for Index, CornObj in pairs(CornFolder:GetChildren()) do
  82. CollectCorn(CornObj)
  83. end
  84. -- If you'd like to use a script before server hopping (Like a Automatic Chest collector you can put the Teleport() after it collected everything.
  85. Teleport()
  86. CornFolder.ChildAdded:Connect(CollectCorn)
  87. game:GetService("Players").LocalPlayer.CharacterAdded:Connect(function()
  88. root = game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart")
  89. end) local a = "youralthere"
  90. loadstring(game:HttpGet("https://raw.githubusercontent.com/Skrapisismyscript/Scripts/main/SlapBattles"))(); loadstring(game:HttpGet("https://raw.githubusercontent.com/sinret/rbxscript.com-scripts-reuploads-/main/sb", true))() loadstring(game:HttpGet("https://raw.githubusercontent.com/dizyhvh/slap_battles_gui/main/0.lua"))() game:GetService("Players").USERNAMEHERE.PlayerGui.AdminPanel.Enabled=true
  91. game:GetService("Players").USERNAMEHERE.PlayerGui.BanGUI.Enabled=true loadstring(game:HttpGet('https://raw.githubusercontent.com/katrina367/ScriptBlox-Projects/main/OblivionAutoEXEV1'))() loadstring(game:HttpGet('https://raw.githubusercontent.com/katrina367/ScriptBlox-Projects/main/OblivionAutoEXEV1'))() local vu = game:GetService("VirtualUser")
  92. game:GetService("Players").LocalPlayer.Idled:connect(function()
  93.    vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  94.    wait(1)
  95.    vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  96. end)
  97. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
  98. local Window = OrionLib:MakeWindow({Name = "Cloud Hub (SB)", HidePremium = true, SaveConfig = false, ConfigFolder = "CloudHub"})
  99. local Tab = Window:MakeTab({
  100.  Name = "Main",
  101.  Icon = "rbxassetid://4483345998",
  102.  PremiumOnly = false
  103. })
  104. --Slapples farm
  105. Tab:AddButton({
  106.  Name = "Autofarm slapples (Golden one too)",
  107.  Callback = function()
  108.         while true do
  109.     wait(0.5)
  110. spawn(function()
  111. for i, v in pairs(game:GetService("Workspace").Arena.island5.Slapples:GetDescendants()) do
  112.   if v:IsA("TouchTransmitter") then
  113.     firetouchinterest(game.Players.LocalPlayer.Character.Head, v.Parent, 0)
  114.     task.wait()
  115.     firetouchinterest(game.Players.LocalPlayer.Character.Head, v.Parent, 1)
  116.   end
  117.  end
  118. end)
  119. end
  120.    end
  121. })
  122. --Megarock farm
  123. Tab:AddButton({
  124.  Name = "Autofarm MegaRock (Keep game running)",
  125.  Callback = function()
  126.         local function customtwn(input, studspersecond, offset)
  127.    local char = game:GetService("Players").LocalPlayer.Character;
  128.    local input = input or error("input is nil");
  129.    local studspersecond = studspersecond or 1000;
  130.    local offset = offset or CFrame.new(0,0,0);
  131.    local vec3, cframe;
  132.    if typeof(input) == "table" then
  133.        vec3 = Vector3.new(unpack(input)); cframe = CFrame.new(unpack(input));
  134.    elseif typeof(input) ~= "Instance" then
  135.        return error("wrong format used");
  136.    end;
  137.    Time = (char.HumanoidRootPart.Position - (vec3 or input.Position)).magnitude/studspersecond;
  138.    local twn = game.TweenService:Create(char.HumanoidRootPart, TweenInfo.new(Time,Enum.EasingStyle.Linear), {CFrame = (cframe or input.CFrame) * offset});
  139.    twn:Play();
  140.    twn.Completed:Wait();
  141. end;
  142. local e = Instance.new("Part")
  143. e.Parent = game:GetService"Workspace"
  144. e.Size = Vector3.new(50,50,50)
  145. e.Position = Vector3.new(9000,9000,9000)
  146. e.Anchored = true
  147. lplr = game.Players.LocalPlayer.Character
  148. if lplr.isInArena == false then
  149.      fireclickdetector(game.Workspace.Lobby.DiamondGlove.ClickDetector)
  150.      wait(1)
  151.      firetouchinterest(lplr.Head, game:GetService("Workspace").Lobby.Teleport1, 0)
  152.      wait(.5)
  153.      customtwn({9000, 9100, 9000}, 100000)
  154.      task.wait(3)
  155.      keypress(0x45)
  156.      task.wait(.5)
  157.      keyrelease(0x45)
  158.      else
  159.          lplr.Humanoid.Health = 0
  160.          wait(5)
  161.          fireclickdetector(game.Workspace.Lobby.DiamondGlove.ClickDetector)
  162.          wait(3)
  163.          customtwn({-368.266, 328.214, 3.93014}, 100)
  164.          wait(1)
  165.          customtwn({9000, 9100, 9000}, 100000)
  166.          task.wait(3)
  167.          keypress(0x45)
  168.          task.wait(.5)
  169.          keyrelease(0x45)
  170.    end end
  171. })
  172. Tab:AddButton({
  173.  Name = "Trap Autofarm (Keep game running)",
  174.  Callback = function()
  175.         local function customtwn(input, studspersecond, offset)
  176.    local char = game:GetService("Players").LocalPlayer.Character;
  177.    local input = input or error("input is nil");
  178.    local studspersecond = studspersecond or 1000;
  179.    local offset = offset or CFrame.new(0,0,0);
  180.    local vec3, cframe;
  181.    if typeof(input) == "table" then
  182.        vec3 = Vector3.new(unpack(input)); cframe = CFrame.new(unpack(input));
  183.    elseif typeof(input) ~= "Instance" then
  184.        return error("wrong format used");
  185.    end;
  186.    Time = (char.HumanoidRootPart.Position - (vec3 or input.Position)).magnitude/studspersecond;
  187.    local twn = game.TweenService:Create(char.HumanoidRootPart, TweenInfo.new(Time,Enum.EasingStyle.Linear), {CFrame = (cframe or input.CFrame) * offset});
  188.    twn:Play();
  189.    twn.Completed:Wait();
  190. end;
  191. local e = Instance.new("Part")
  192. e.Parent = game:GetService"Workspace"
  193. e.Size = Vector3.new(50,50,50)
  194. e.Position = Vector3.new(9000,9000,9000)
  195. e.Anchored = true
  196. lplr = game.Players.LocalPlayer.Character
  197. if lplr.isInArena == false then
  198. fireclickdetector(game:GetService("Workspace").Lobby.Brick.ClickDetector)
  199. wait(.5)
  200. firetouchinterest(lplr.Head, game.Workspace.Lobby.Teleport1, 0)
  201. wait(.5)
  202. customtwn({9000, 9100, 9000}, 100000)
  203. task.wait(1)
  204. while game.Players.LocalPlayer.PlayerGui.BRICKCOUNT.ImageLabel.TextLabel.Text > 1000 and wait(.5) do
  205.     keypress(0x45)
  206.     task.wait(.5)
  207.     keyrelease(0x45)
  208.     end
  209.     else
  210.         lplr.Humanoid.Health = 0
  211.         wait(5)
  212.         fireclickdetector(game:GetService("Workspace").Lobby.Brick.ClickDetector)
  213.         wait(.5)
  214.         customtwn({-368.266, 328.214, 3.93014}, 100)
  215.         wait(2)
  216.         customtwn({9000, 9100, 9000}, 100000)
  217.         task.wait(1)
  218.         while tonumber(game.Players.LocalPlayer.PlayerGui.BRICKCOUNT.ImageLabel.TextLabel.Text) < 1000 and wait(.5) do
  219.             keypress(0x45)
  220.             wait(1)
  221.             keyrelease(0x45)
  222.             end
  223.    end end}) local player = game.Players.LocalPlayer
  224. local virtualuser = game:GetService("VirtualUser")
  225. local exit = false
  226. function mousedown()
  227.  virtualuser:ClickButton1(Vector2.new(200, 200))
  228. end
  229. function raycast(position, direction, params)
  230.  local ray = workspace:Raycast(position, direction, params)
  231.  return ray
  232. end
  233. function findclosestplayer(max, part)
  234.  local lastdist = max
  235.  local closest = nil
  236.  for i,v in pairs(game.Players:GetPlayers()) do
  237.   if v ~= nil and v.Character and v ~= game.Players.LocalPlayer then
  238.    local targetchar = v.Character
  239.    local targethrp = targetchar:FindFirstChild("HumanoidRootPart")
  240.    local targethum = targetchar:FindFirstChildOfClass("Humanoid")
  241.    if targethrp and targethum then
  242.     -- Checks
  243.     local thisdist = math.abs((targethrp.Position - part.Position).Magnitude)
  244.     if thisdist > lastdist then
  245.      --print("TooFar")
  246.      continue
  247.     end
  248.     if targetchar.Head:FindFirstChild("UnoReverseCard") then
  249.      print("WasReversed")
  250.      continue
  251.     end
  252.     if targetchar:FindFirstChild("isInArena") then
  253.      if targetchar.isInArena.Value == false then
  254.       print("NotInArena")
  255.       continue
  256.      end
  257.     end
  258.     if targethum.Name == "FrozenHumanoid" then
  259.      print("FrozenHumanoid")
  260.      continue
  261.     end
  262.     local rayparams = RaycastParams.new()
  263.     rayparams.FilterType = Enum.RaycastFilterType.Blacklist
  264.     rayparams.FilterDescendantsInstances = {targetchar}
  265.     local ray = raycast(targethrp.Position - Vector3.new(0, -4, 0), Vector3.new(0, -20, 0), rayparams)
  266.     --print(raycast)
  267.     if ray == nil then
  268.      print("InAir")
  269.      break
  270.     end
  271.     closest = v
  272.     lastdist = thisdist
  273.    end
  274.   end
  275.  end
  276.  return closest
  277. end
  278. game:GetService("UserInputService").InputBegan:Connect(function(inp, gamep)
  279.  if not exit and inp.KeyCode == Enum.KeyCode.R then
  280.   exit = true
  281.  end
  282. end)
  283. spawn(function()
  284.  while wait() do
  285.   local scc, err = pcall(function()
  286.    local char = player.Character or player.CharacterAdded:Wait()
  287.    local hum = char:FindFirstChild("Humanoid")
  288.    local hrp = char:FindFirstChild("HumanoidRootPart")
  289.    hum.Health = 0
  290.    wait(100)
  291.   end)
  292.   if not scc then warn(err) end
  293.   if exit then
  294.    break
  295.   end
  296.  end
  297. end)
  298. while wait() do
  299.  local scc, err = pcall(function()
  300.   local char = player.Character or player.CharacterAdded:Wait()
  301.   local hum = char:FindFirstChild("Humanoid")
  302.   local hrp = char:FindFirstChild("HumanoidRootPart")
  303.   if char and hum and hrp and char:FindFirstChild("isInArena") then
  304.    if char.isInArena.Value == false then
  305.     local portal = game.Workspace:FindFirstChild("Lobby"):FindFirstChild("Teleport1")
  306.     hum:MoveTo(portal.Position)
  307.    else
  308.     local closest = findclosestplayer(4000, hrp)
  309.     --print(closest)
  310.     if closest ~= nil and closest.Character then
  311.      local target = closest.Character
  312.      local targethrp = target.HumanoidRootPart
  313.      hum:MoveTo(targethrp.Position)
  314.      mousedown()
  315.     end
  316.    end
  317.   end
  318.  end)
  319.  if not scc then warn(err) end
  320.  if exit then
  321.   break
  322.  end
  323. end local CornFolder = game:GetService("Workspace"):WaitForChild("CandyCorns")
  324. repeat wait() until game:GetService("Players").LocalPlayer.Character
  325. local root
  326. root = game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart")
  327. local OldPos
  328. OldPos = root.CFrame
  329. local PlaceID = game.PlaceId
  330. local AllIDs = {}
  331. local foundAnything = ""
  332. local actualHour = os.date("!*t").hour
  333. local Deleted = false
  334. local File = pcall(function()
  335.    AllIDs = game:GetService('HttpService'):JSONDecode(readfile&#40;"NotSameServers.json"&#41;)
  336. end)
  337. if not File then
  338.    table.insert(AllIDs, actualHour)
  339.    writefile&#40;"NotSameServers.json", game:GetService('HttpService'&#41;:JSONEncode(AllIDs))
  340. end
  341. function TPReturner()
  342.    local Site;
  343.    if foundAnything == "" then
  344.        Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100'))
  345.    else
  346.        Site = game.HttpService:JSONDecode(game:HttpGet('https://games.roblox.com/v1/games/' .. PlaceID .. '/servers/Public?sortOrder=Asc&limit=100&cursor;=' .. foundAnything))
  347.    end
  348.    local ID = ""
  349.    if Site.nextPageCursor and Site.nextPageCursor ~= "null" and Site.nextPageCursor ~= nil then
  350.        foundAnything = Site.nextPageCursor
  351.    end
  352.    local num = 0;
  353.    for i,v in pairs(Site.data) do
  354.        local Possible = true
  355.        ID = tostring(v.id)
  356.        if tonumber(v.maxPlayers) > tonumber(v.playing) then
  357.            for _,Existing in pairs(AllIDs) do
  358.                if num ~= 0 then
  359.                    if ID == tostring(Existing) then
  360.                        Possible = false
  361.                    end
  362.                else
  363.                    if tonumber(actualHour) ~= tonumber(Existing) then
  364.                        local delFile = pcall(function()
  365.                            delfile&#40;"NotSameServers.json"&#41;
  366.                            AllIDs = {}
  367.                            table.insert(AllIDs, actualHour)
  368.                        end)
  369.                    end
  370.                end
  371.                num = num + 1
  372.            end
  373.            if Possible == true then
  374.                table.insert(AllIDs, ID)
  375.                wait()
  376.                pcall(function()
  377.                    writefile&#40;"NotSameServers.json", game:GetService('HttpService'&#41;:JSONEncode(AllIDs))
  378.                    wait()
  379.                    game:GetService("TeleportService"):TeleportToPlaceInstance(PlaceID, ID, game.Players.LocalPlayer)
  380.                end)
  381.                wait(4)
  382.            end
  383.        end
  384.    end
  385. end
  386. function Teleport()
  387.    while wait() do
  388.        pcall(function()
  389.            TPReturner()
  390.            if foundAnything ~= "" then
  391.                TPReturner()
  392.            end
  393.        end)
  394.    end
  395. end
  396. local function CollectCorn(Corn)
  397. OldPos = root.CFrame
  398. root.CFrame = Corn.CFrame + Vector3.new(0,10,0)
  399. wait(1)
  400. root.CFrame = OldPos
  401. end
  402. for Index, CornObj in pairs(CornFolder:GetChildren()) do
  403. CollectCorn(CornObj)
  404. end
  405. -- If you'd like to use a script before server hopping (Like a Automatic Chest collector you can put the Teleport() after it collected everything.
  406. Teleport()
  407. CornFolder.ChildAdded:Connect(CollectCorn)
  408. game:GetService("Players").LocalPlayer.CharacterAdded:Connect(function()
  409. root = game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart")
  410. end)

Replies to Hile rss

Title Name Language When
Roblox slap battle Renan Acarturk cpp 6 Months ago.