Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local network
- local reg = (getreg or debug.getregistry)()
- for i=1,#reg do
- local f = reg[i]
- if type(f)=="table" and rawget(f,"FireServer") and rawget(f,"BindEvents") then
- network = f
- end
- end
- workspace.Customers.ChildAdded:Connect(function(c)
- task.wait(1)
- if c:FindFirstChild("Head") then
- local dialog = c.Head.Dialog.Correct.ResponseDialog or ''
- local rootMoved = false
- local order = "MountainDew"
- if dialog:sub(-8)=="instead." then
- dialog = dialog:sub(-30)
- end
- if dialog:find("pepperoni",1,true) then
- order = "PepperoniPizza"
- elseif dialog:find("sausage",1,true) then
- order = "SausagePizza"
- elseif dialog:find("cheese",1,true) then
- order = "CheesePizza"
- end
- while true do task.wait(.30)
- network:FireServer("OrderComplete", c, order, workspace.Register3)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement