Advertisement
probanana

Blackhawk Rescue Mission 5 OP GUI

Dec 4th, 2022
2,176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.98 KB | None | 0 0
  1. repeat task.wait() until game.GameId ~= 0
  2.  
  3. if Parvus and Parvus.Game then
  4. Parvus.Utilities.UI:Notification({
  5. Title = "Parvus Hub",
  6. Description = "Script already running!",
  7. Duration = 5
  8. }) return
  9. end
  10.  
  11. local PlayerService = game:GetService("Players")
  12. repeat task.wait() until PlayerService.LocalPlayer
  13. local LocalPlayer = PlayerService.LocalPlayer
  14. local QueueOnTeleport = queue_on_teleport or
  15. (syn and syn.queue_on_teleport)
  16. local LoadArgs = {...}
  17.  
  18. local function GetSupportedGame() local Game
  19. for Id,Info in pairs(Parvus.Games) do
  20. if tostring(game.GameId) == Id then
  21. Game = Info break
  22. end
  23. end if not Game then
  24. return Parvus.Games.Universal
  25. end return Game
  26. end
  27.  
  28. local function Concat(Array,Separator)
  29. local Output = "" for Index,Value in ipairs(Array) do
  30. Output = Index == #Array and Output .. tostring(Value)
  31. or Output .. tostring(Value) .. Separator
  32. end return Output
  33. end
  34.  
  35. local function GetScript(Script)
  36. return Parvus.Debug and readfile("Parvus/" .. Script .. ".lua")
  37. or game:HttpGetAsync(("%s%s.lua"):format(Parvus.Domain,Script))
  38. end
  39.  
  40. local function LoadScript(Script)
  41. return loadstring(Parvus.Debug and readfile("Parvus/" .. Script .. ".lua")
  42. or game:HttpGetAsync(("%s%s.lua"):format(Parvus.Domain,Script)))()
  43. end
  44.  
  45. getgenv().Parvus = {Debug = LoadArgs[1],Utilities = {},
  46. Domain = "https://raw.githubusercontent.com/AlexR32/Parvus/main/",Games = {
  47. ["Universal" ] = {Name = "Universal", Script = "Universal" },
  48. ["1168263273"] = {Name = "Bad Business", Script = "Games/BB" },
  49. ["1586272220"] = {Name = "Steel Titans", Script = "Games/ST" },
  50. ["807930589" ] = {Name = "The Wild West", Script = "Games/TWW" },
  51. ["580765040" ] = {Name = "RAGDOLL UNIVERSE", Script = "Games/RU" },
  52. ["187796008" ] = {Name = "Those Who Remain", Script = "Games/TWR" },
  53. ["358276974" ] = {Name = "Apocalypse Rising 2", Script = "Games/AR2" },
  54. ["1054526971"] = {Name = "Blackhawk Rescue Mission 5",Script = "Games/BRM5"}
  55. }
  56. }
  57.  
  58. Parvus.Utilities.UI = LoadScript("Utilities/UI")
  59. Parvus.Utilities.Misc = LoadScript("Utilities/Misc")
  60. Parvus.Utilities.Drawing = LoadScript("Utilities/Drawing")
  61.  
  62. local SupportedGame = GetSupportedGame()
  63. LocalPlayer.OnTeleport:Connect(function(State)
  64. if State == Enum.TeleportState.InProgress then
  65. QueueOnTeleport(([[local LoadArgs = {%s}
  66. loadstring(LoadArgs[1] and readfile("Parvus/Loader.lua") or
  67. game:HttpGetAsync("%sLoader.lua"))(unpack(LoadArgs))
  68. ]]):format(Concat(LoadArgs,","),Parvus.Domain))
  69. end
  70. end)
  71.  
  72. if SupportedGame then
  73. Parvus.Game = SupportedGame.Name
  74. LoadScript(SupportedGame.Script)
  75. Parvus.Utilities.UI:Notification({
  76. Title = "Parvus Hub",
  77. Description = Parvus.Game .. " loaded!",
  78. Duration = LoadArgs[2]
  79. })
  80. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement