Advertisement
2AreYouMental110

My hospital auto pick up patients

Feb 28th, 2021
78
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- original https://forum.robloxscripts.com/Thread-RELEASE-My-Hospital-Auto-Pick-Up-Patients-Open-Source
  2.  
  3. _G.Toggle = true
  4.  
  5. local plrName = game.Players.LocalPlayer.Name
  6.  
  7. while _G.Toggle do
  8. if game:GetService("Workspace").Vehicles:FindFirstChild(plrName) then
  9. if game:GetService("Workspace").Vehicles[plrName].VehicleSeat.Occupant then
  10. if game:GetService("Workspace"):FindFirstChild("GoalPart") then
  11. game:GetService("Workspace").Vehicles[plrName].Base.CFrame = game:GetService("Workspace").GoalPart.CFrame + Vector3.new(math.random(0, 1), math.random(0, 1), math.random(0, 1))
  12. end
  13. else
  14. game:GetService("Workspace").Vehicles[plrName].VehicleSeat:Sit(game.Players.LocalPlayer.Character.Humanoid)
  15. end
  16. else
  17. game:GetService("ReplicatedStorage").Remotes.Events.ToggleVehicle:FireServer()
  18. end
  19.  
  20. wait(1)
  21. end
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement