Advertisement
_Thanh_Thy_Cute_

East Brickton JOB SNIPER

Aug 18th, 2021
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. local ReplicatedStorage = game:GetService("ReplicatedStorage");
  2. local ApplyEvent = ReplicatedStorage.Events.JobService
  3. local Jobs = require(ReplicatedStorage.Modules.Jobs)
  4. local Players = game:GetService("Players")
  5. local Player = Players.LocalPlayer
  6. local Chat = Player.PlayerGui.Chat.Frame.ChatChannelParentFrame["Frame_MessageLogDisplay"].Scroller
  7. local gotJob = false
  8. Chat.ChildAdded:Connect(function (child)
  9. if child:IsA("Frame") and child:FindFirstChild("TextLabel") then
  10. if child:FindFirstChild("TextLabel").Text == "You already have a job!" then
  11. gotJob = true
  12. end
  13. end
  14. end)
  15.  
  16. while not gotJob do
  17. task.wait(0.5)
  18. for _, job in pairs(Jobs.Occupations) do
  19. ApplyEvent:FireServer("Apply", job)
  20.  
  21. if gotJob then
  22. break
  23. end
  24. end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement