Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local lplr = Game:GetService("Players").LocalPlayer
- for i, c in pairs(workspace.Customers:GetChildren()) do
- local d = c.Head:FindFirstChild("Dialog")
- if d then
- local correct = d.Correct
- local head = c.Head
- workspace.TutorialService.PlayerAction:FireServer("ClickedBubble", true)
- workspace.Dialog:FireServer("ResponseSelected", correct, head)
- workspace.GameService.OrderCompleted:FireServer(c, false)
- end
- end
- workspace.Customers.ChildAdded:connect(function(c)
- local torso = c:WaitForChild("Torso")
- while wait() do
- if math.floor(torso.Position.Z) <= 104 then
- local d = c.Head:FindFirstChild("Dialog")
- if d then
- local correct = d.Correct
- local head = c.Head
- workspace.TutorialService.PlayerAction:FireServer("ClickedBubble", true)
- workspace.Dialog:FireServer("ResponseSelected", correct, head)
- workspace.GameService.OrderCompleted:FireServer(c, false)
- break
- end
- end
- end
- end)
- Have fun making those pizzas!
- [Image: 6d97eca31c60fd76794513dc89acd6db.png]
- Added: Auto Supplier! (People actually have to press the buttons though :c)
- yo bois forgot to add it in earlier and now I just add it:
- Code:
- -- Auto Supply
- -- Auto Supply
- local crates = workspace.AllSupplyBoxes
- local LocalPlayer = game.Players.LocalPlayer
- local DropOff = CFrame.new(43.5000114, 4.59913683, -9.79934692, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- local event = workspace.GameService.UpdateObjectProperty
- for i, c in pairs(crates:GetChildren()) do
- event:FireServer(c, "CFrame", DropOff)
- end
- crates.ChildAdded:connect(function(c)
- event:FireServer(c, "CFrame", DropOff)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement