Guest User

Untitled

a guest
Apr 23rd, 2018
2,741
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. As we all know, Bloxburg has added an anti teleport script to prevent 'instant pizza delivery' from happening again.
  2. So what I decided to do is make your character walk to the person to deliver the pizza, it is a slow script, however it does the job.
  3. So I delivered what I promised, a script that auto delivers the pizza.
  4.  
  5. Note that earning money using this will be slower, however if you leave your PC on overnight, I believe you can make tons of money easily.
  6. Leave a vouch down below if it worked Big Grin
  7.  
  8. This script is a modified version of the old pizza tp script.
  9.  
  10. To do this, you have to get onto a delivery moped and inject this code down below to remove the moped so you can walk around.
  11.  
  12. Code:
  13. game.Players.LocalPlayer.Character["Delivery Moped"]:remove()
  14.  
  15. Code:game.Workspace.PizzaPlanet.Ring:Destroy()
  16.  
  17. Code:
  18. game.Players.LocalPlayer.Character["Delivery Moped"]:remove()
  19.  
  20. After that, go near the pizza boxes, do not get a new moped, and inject this code.
  21. The pathfinding service will find the closest way to deliver the pizza and come back to the pizza place.
  22. Sometimes the script may screw up as you may drop into holes etc.
  23.  
  24.  
  25. Code:local Player = game.Players.LocalPlayer
  26. local origPos = Player.Character.HumanoidRootPart.Position
  27. local MyChar = Player.Character
  28.  
  29. local sfx1 = Instance.new('Sound', workspace)
  30. sfx1.SoundId = 'rbxassetid://138159357'
  31. sfx1.Volume = 5
  32.  
  33. local sfx2 = Instance.new('Sound', workspace)
  34. sfx2.SoundId = 'rbxassetid://160715357'
  35. sfx2.Volume = 5
  36. while wait(.1) and MyChar and MyChar.Parent and MyChar.PrimaryPart do
  37. local t = {}
  38. repeat wait() until workspace.PizzaPlanet:FindFirstChild'Conveyor' and #workspace.PizzaPlanet.Conveyor.MovingBoxes:GetChildren() > 0
  39. if not MyChar or not MyChar.Parent or not MyChar.PrimaryPart then break end
  40. wait()
  41. t.Box = workspace.PizzaPlanet.Conveyor.MovingBoxes:GetChildren()[1]
  42. t.Type = 'TakePizzaBox'
  43. local customer = game.ReplicatedStorage.DataFunction:InvokeServer(t)
  44. wait(.2)
  45. MyChar.HumanoidRootPart.Anchored = false
  46. local tab = {}
  47. tab.Type = 'DeliverPizza'
  48.  
  49. tab.Customer = customer
  50. if customer then
  51. for i = 1,10 do
  52.  
  53. if not MyChar or not MyChar.Parent or not MyChar.PrimaryPart then return end
  54. local path = game:GetService("PathfindingService"):ComputeRawPathAsync(game.Players.LocalPlayer.Character.HumanoidRootPart.Position,customer.HumanoidRootPart.Position,500)
  55.  
  56.  
  57. local points = path:GetPointCoordinates()
  58. for p = 1,#points do
  59. game.Players.LocalPlayer.Character:WaitForChild("Humanoid"):MoveTo(points[p])
  60. repeat
  61. local distance = (points[p] - game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude
  62. wait(0.1)
  63. until distance < 4
  64. end
  65.  
  66. game.ReplicatedStorage.DataEvent:FireServer(tab)
  67. wait()
  68. if not customer or not customer.Parent or (not MyChar or MyChar:FindFirstChild'Pizza Box') == nil then
  69. break
  70. end
  71. end
  72. sfx1:Play()
  73. local Left = MyChar and MyChar:FindFirstChild'Pizza Box'
  74. if Left then
  75. warn'Nope'
  76. game.ReplicatedStorage.DataEvent:FireServer({Item = Left, Type = 'UnequipItem'})
  77. end
  78. end
  79. wait(.2)
  80. if not MyChar or not MyChar.Parent or not MyChar.PrimaryPart then break end
  81. local path = game:GetService("PathfindingService"):ComputeRawPathAsync(game.Players.LocalPlayer.Character.HumanoidRootPart.Position,Vector3.new(1166.8,15.4,276),500)
  82.  
  83.  
  84. local points = path:GetPointCoordinates()
  85. for p = 1,#points do
  86. game.Players.LocalPlayer.Character:WaitForChild("Humanoid"):MoveTo(points[p])
  87. repeat
  88. local distance = (points[p] - game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude
  89. wait(0.1)
  90. until distance < 4
  91. end
  92. end
  93.  
  94. sfx2:Play()
  95. sfx1:Destroy()
  96. sfx2:Destroy()
RAW Paste Data