Advertisement
Cizzy

adasd

Mar 7th, 2021
428
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. _G.toggle = true -- if you want to turn it off change to false and re-execute
  2. game:getService("RunService"):BindToRenderStep(
  3. "",
  4. 0,
  5. function()
  6. if not game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid") then
  7. return
  8. end
  9. while wait() do
  10. if _G.toggle == true then
  11. game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid"):ChangeState(11)
  12. end
  13. end
  14. end
  15. )
  16. while wait(1) do
  17. if _G.toggle == true then
  18. pcall(
  19. function()
  20. for i, v in pairs(game:GetService("Workspace").Ignored.HospitalJob:GetChildren()) do
  21. if v:IsA("Model") then
  22. _G.patient = v.Name
  23. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame =
  24. game.Workspace.Ignored.HospitalJob[v.Name].HumanoidRootPart.CFrame *
  25. CFrame.new(Vector3.new(0, -6.5, 0), Vector3.new(0, 100, 0))
  26. end
  27. end
  28. for i, v in pairs(game.Workspace.Ignored.HospitalJob:GetChildren()) do
  29. if v.Name == "Can I get the Red bottle" then
  30. local clickdetector = game.Workspace.Ignored.HospitalJob.Red.ClickDetector
  31. fireclickdetector(clickdetector)
  32. elseif v.Name == "Can I get the Blue bottle" then
  33. local clickdetector = game.Workspace.Ignored.HospitalJob.Blue.ClickDetector
  34. fireclickdetector(clickdetector)
  35. elseif v.Name == "Can I get the Green bottle" then
  36. local clickdetector = game.Workspace.Ignored.HospitalJob.Green.ClickDetector
  37. fireclickdetector(clickdetector)
  38. end
  39. end
  40. local clickdetector2 = game:GetService("Workspace").Ignored.HospitalJob[_G.patient].ClickDetector
  41. fireclickdetector(clickdetector2)
  42. end
  43. )
  44. elseif _G.toggle == false then
  45. return
  46. end
  47. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement