Advertisement
suramraja1

Reha petfndng

Apr 24th, 2024
584
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.32 KB | None | 0 0
  1.  
  2.  
  3. coroutine.wrap(function()
  4.     pcall(function()
  5.         if game.PlaceId == 5589810303 then --Rh3Office
  6.             repeat task.wait() until game:GetService("Workspace").CollectibleDiamonds:FindFirstChild("Part") == nil
  7.             task.wait(10)
  8.             game:GetService("ReplicatedStorage").SceptorTeleport:FireServer("Lobby")
  9.         end
  10.         if game.PlaceId == 735030788 then --Arrival Lobby
  11.             repeat task.wait() until game:GetService("Workspace").CollectibleDiamonds:FindFirstChild("Part") == nil
  12.             task.wait(10)
  13.             game:GetService("ReplicatedStorage").SceptorTeleport:FireServer("RH3Office")
  14.         end
  15.     end)
  16. end)()
  17.  
  18. coroutine.wrap(function() --pathfinder
  19.     while task.wait() do
  20.         pcall(function()
  21.             local PathfindingService = game:GetService("PathfindingService")
  22.             local human = game:GetService("Players").LocalPlayer.Character.Humanoid
  23.             local torso = game.Players.LocalPlayer.Character.HumanoidRootPart
  24.  
  25.             local path = PathfindingService:CreatePath()
  26.             path:ComputeAsync(torso.Position, workspace.CollectibleDiamonds.Part.Position)
  27.             local waypoints = path:GetWaypoints()
  28.  
  29.             for i, waypoint in pairs(waypoints) do
  30.                 if waypoint.Action == Enum.PathWaypointAction.Jump then
  31.                     human:ChangeState(Enum.HumanoidStateType.Jumping)
  32.                 end
  33.                 human:MoveTo(waypoint.Position)
  34.                 human.MoveToFinished:Wait(1)
  35.             end
  36.  
  37.             human:MoveTo(game.Worksape.endingPart.Position)
  38.         end)
  39.     end
  40. end)()
  41.  
  42. coroutine.wrap(function() --- anti sit
  43.     firesignal(game:GetService("Players").LocalPlayer.PlayerGui.HUD.Run.MouseButton1Click) --run mode RH
  44.     while task.wait() do
  45.         if game:GetService("Players").LocalPlayer.Character.Humanoid.Sit == true then
  46.             task.wait()
  47.             game:GetService("Players").LocalPlayer.Character.Humanoid.Sit = false
  48.         end
  49.     end
  50. end)()
  51.  
  52. coroutine.wrap(function()
  53.     while true do
  54.         for i,v in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
  55.             if v:IsA("BasePart") and v.CanCollide == true then
  56.                 v.CanCollide = false
  57.             end
  58.         end
  59.             game:GetService("RunService").Stepped:wait()
  60.         end
  61. end)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement