Advertisement
Honansik

Fighter's Era Auto Job Script

Dec 24th, 2021
1,487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.98 KB | None | 0 0
  1. repeat wait() until game:IsLoaded()
  2. repeat wait() until workspace:FindFirstChild("QuestBoards")
  3. repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and workspace:FindFirstChild("milkyd") and workspace:FindFirstChild("PizzaDetector")
  4. local plr = game.Players.LocalPlayer
  5. local x = {}
  6. for i = 1,10 do
  7.    task.wait()
  8.    for i,v in pairs(workspace.QuestBoards.QuestBoard:GetChildren()) do
  9.        if v.Name == "Paper" then
  10.            if v.SurfaceGui.Desc.Text == "Deliver pizza to a party" then
  11.                plr.Character.HumanoidRootPart.CFrame = v.CFrame
  12.                wait(0.1)
  13.                fireclickdetector(v.ClickDetector)
  14.                wait(0.3)
  15.                firetouchinterest(plr.Character.HumanoidRootPart,workspace.PizzaDetector,0)
  16.                firetouchinterest(plr.Character.HumanoidRootPart,workspace.PizzaDetector,1)
  17.                task.wait()
  18.            elseif v.SurfaceGui.Desc.Text == "Pickup Groceries and deliver them to the store" then
  19.                plr.Character.HumanoidRootPart.CFrame = v.CFrame
  20.                wait(0.1)
  21.                fireclickdetector(v.ClickDetector)
  22.                wait(0.3)
  23.                firetouchinterest(plr.Character.HumanoidRootPart,workspace.milkf,0)
  24.                firetouchinterest(plr.Character.HumanoidRootPart,workspace.milkf,1)
  25.                task.wait()
  26.                firetouchinterest(plr.Character.HumanoidRootPart,workspace.milkyd,0)
  27.                firetouchinterest(plr.Character.HumanoidRootPart,workspace.milkyd,1)
  28.                task.wait()
  29.            end
  30.        end
  31.    end
  32. end
  33.  
  34. for _, v in ipairs(game:GetService("HttpService"):JSONDecode(game:HttpGetAsync("https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?sortOrder=Asc&limit=100")).data) do
  35. if type(v) == "table" and v.maxPlayers > v.playing and v.id ~= game.JobId then
  36. x[#x + 1] = v.id
  37. end
  38. end
  39. if #x > 0 then
  40. game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, x[math.random(1, #x)])
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement