Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- As we all know, Bloxburg has added an anti teleport script to prevent 'instant pizza delivery' from happening again.
- 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.
- So I delivered what I promised, a script that auto delivers the pizza.
- 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.
- Leave a vouch down below if it worked Big Grin
- This script is a modified version of the old pizza tp script.
- 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.
- Code:
- game.Players.LocalPlayer.Character["Delivery Moped"]:remove()
- Code:game.Workspace.PizzaPlanet.Ring:Destroy()
- Code:
- game.Players.LocalPlayer.Character["Delivery Moped"]:remove()
- After that, go near the pizza boxes, do not get a new moped, and inject this code.
- The pathfinding service will find the closest way to deliver the pizza and come back to the pizza place.
- Sometimes the script may screw up as you may drop into holes etc.
- Code:local Player = game.Players.LocalPlayer
- local origPos = Player.Character.HumanoidRootPart.Position
- local MyChar = Player.Character
- local sfx1 = Instance.new('Sound', workspace)
- sfx1.SoundId = 'rbxassetid://138159357'
- sfx1.Volume = 5
- local sfx2 = Instance.new('Sound', workspace)
- sfx2.SoundId = 'rbxassetid://160715357'
- sfx2.Volume = 5
- while wait(.1) and MyChar and MyChar.Parent and MyChar.PrimaryPart do
- local t = {}
- repeat wait() until workspace.PizzaPlanet:FindFirstChild'Conveyor' and #workspace.PizzaPlanet.Conveyor.MovingBoxes:GetChildren() > 0
- if not MyChar or not MyChar.Parent or not MyChar.PrimaryPart then break end
- wait()
- t.Box = workspace.PizzaPlanet.Conveyor.MovingBoxes:GetChildren()[1]
- t.Type = 'TakePizzaBox'
- local customer = game.ReplicatedStorage.DataFunction:InvokeServer(t)
- wait(.2)
- MyChar.HumanoidRootPart.Anchored = false
- local tab = {}
- tab.Type = 'DeliverPizza'
- tab.Customer = customer
- if customer then
- for i = 1,10 do
- if not MyChar or not MyChar.Parent or not MyChar.PrimaryPart then return end
- local path = game:GetService("PathfindingService"):ComputeRawPathAsync(game.Players.LocalPlayer.Character.HumanoidRootPart.Position,customer.HumanoidRootPart.Position,500)
- local points = path:GetPointCoordinates()
- for p = 1,#points do
- game.Players.LocalPlayer.Character:WaitForChild("Humanoid"):MoveTo(points[p])
- repeat
- local distance = (points[p] - game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude
- wait(0.1)
- until distance < 4
- end
- game.ReplicatedStorage.DataEvent:FireServer(tab)
- wait()
- if not customer or not customer.Parent or (not MyChar or MyChar:FindFirstChild'Pizza Box') == nil then
- break
- end
- end
- sfx1:Play()
- local Left = MyChar and MyChar:FindFirstChild'Pizza Box'
- if Left then
- warn'Nope'
- game.ReplicatedStorage.DataEvent:FireServer({Item = Left, Type = 'UnequipItem'})
- end
- end
- wait(.2)
- if not MyChar or not MyChar.Parent or not MyChar.PrimaryPart then break end
- local path = game:GetService("PathfindingService"):ComputeRawPathAsync(game.Players.LocalPlayer.Character.HumanoidRootPart.Position,Vector3.new(1166.8,15.4,276),500)
- local points = path:GetPointCoordinates()
- for p = 1,#points do
- game.Players.LocalPlayer.Character:WaitForChild("Humanoid"):MoveTo(points[p])
- repeat
- local distance = (points[p] - game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude
- wait(0.1)
- until distance < 4
- end
- end
- sfx2:Play()
- sfx1:Destroy()
- sfx2:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement