B0NDIAS

Cashier RoVille

Sep 2nd, 2020
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.67 KB | None | 0 0
  1. -- Bad exploit check
  2. if not fireclickdetector then
  3.     game:Shutdown()
  4. end
  5.  
  6. -- Variable
  7. local player = game.Players.LocalPlayer
  8.  
  9. -- Get Cashiers
  10. local cashiers = {}
  11. local stuff = workspace:GetDescendants()
  12. for i = 1, #stuff do local v = stuff[i]
  13.     if v.Name == "Cashier" then
  14.         table.insert(cashiers, v)
  15.     end
  16. end
  17.  
  18. -- Get Customers
  19. while wait() do
  20.     for _ = 1, 3 do
  21.         for i,v in pairs(cashiers[_].Customers:GetChildren()) do
  22.             if v:FindFirstChild("ChoiceShow") then
  23.                 if string.find(v.ChoiceShow.TextLabel.Text, "Fries") then
  24.                     player.Character.Humanoid:MoveTo(cashiers[_].QSpot.Position)
  25.                     wait(player:DistanceFromCharacter(cashiers[_].QSpot.Position)/player.Character.Humanoid.WalkSpeed+0.3)
  26.                     fireclickdetector(cashiers[_].Choices["Bloxy Fries"].ClickDetector, 1)
  27.                 elseif string.find(v.ChoiceShow.TextLabel.Text, "Cola") then
  28.                     player.Character.Humanoid:MoveTo(cashiers[_].QSpot.Position)
  29.                     wait(player:DistanceFromCharacter(cashiers[_].QSpot.Position)/player.Character.Humanoid.WalkSpeed+0.3)
  30.                     fireclickdetector(cashiers[_].Choices["Bloxy Cola"].ClickDetector, 1)
  31.                 elseif string.find(v.ChoiceShow.TextLabel.Text, "Burger") then
  32.                     player.Character.Humanoid:MoveTo(cashiers[_].QSpot.Position)
  33.                     wait(player:DistanceFromCharacter(cashiers[_].QSpot.Position)/player.Character.Humanoid.WalkSpeed+0.3)
  34.                     fireclickdetector(cashiers[_].Choices["Bloxy Burger"].ClickDetector, 1)
  35.                 end
  36.             end
  37.         end
  38.     end
  39. end
Add Comment
Please, Sign In to add comment