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)
Advertisement
Add Comment
Please, Sign In to add comment