Thesisa

Apocalypse Rising 2 GUI

Mar 28th, 2023
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.27 KB | None | 0 0
  1. repeat task.wait() until game.GameId ~= 0
  2.  
  3. if Parvus and Parvus.Loaded 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 LoadArgs = {...}
  15.  
  16. local function GetSupportedGame() local Game
  17. for Id,Info in pairs(Parvus.Games) do
  18. if tostring(game.GameId) == Id then
  19. Game = Info break
  20. end
  21. end
  22.  
  23. if not Game then
  24. return Parvus.Games.Universal
  25. end return Game
  26. end
  27.  
  28. local function Concat(Table,Separator) local String = ""
  29. for Index,Value in pairs(Table) do
  30. String = Index == #Table and String .. tostring(Value)
  31. or String .. tostring(Value) .. Separator
  32. end return String
  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 = {
  46. Domain = "https://raw.githubusercontent.com/AlexR32/Parvus/main",
  47. Debug = LoadArgs[1],Game = "None",Loaded = false,Utilities = {},
  48. Games = {
  49. ["Universal"] = {
  50. Name = "Universal",
  51. Script = "Universal"
  52. },
  53. ["1054526971"] = {
  54. Name = "Blackhawk Rescue Mission 5",
  55. Script = "Games/BRM5"
  56. },
  57. ["580765040"] = {
  58. Name = "RAGDOLL UNIVERSE",
  59. Script = "Games/RU"
  60. },
  61. ["1168263273"] = {
  62. Name = "Bad Business",
  63. Script = "Games/BB"
  64. },
  65. ["807930589"] = {
  66. Name = "The Wild West",
  67. Script = "Games/TWW"
  68. },
  69. ["187796008"] = {
  70. Name = "Those Who Remain",
  71. Script = "Games/TWR"
  72. },
  73. ["1586272220"] = {
  74. Name = "Steel Titans",
  75. Script = "Games/ST"
  76. },
  77. ["358276974"] = {
  78. Name = "Apocalypse Rising 2",
  79. Script = "Games/AR2"
  80. }
  81. }
  82. }
  83.  
  84. Parvus.Utilities.Misc = LoadScript("Utilities/Misc")
  85. Parvus.Utilities.UI = LoadScript("Utilities/UI")
  86. Parvus.Utilities.Drawing = LoadScript("Utilities/Drawing")
  87.  
  88. LocalPlayer.OnTeleport:Connect(function(State)
  89. if State == Enum.TeleportState.Started then
  90. local QueueOnTeleport = (syn and syn.queue_on_teleport) or queue_on_teleport
  91. QueueOnTeleport(([[local LoadArgs = {%s}
  92. loadstring(LoadArgs[1] and readfile("Parvus/Loader.lua") or
  93. game:HttpGetAsync("%s/Loader.lua"))(unpack(LoadArgs))
  94. ]]):format(Concat(LoadArgs,","),Parvus.Domain))
  95. end
  96. end)
  97.  
  98. local SupportedGame = GetSupportedGame()
  99. if SupportedGame then
  100. Parvus.Game = SupportedGame.Name
  101. LoadScript(SupportedGame.Script)
  102. Parvus.Utilities.UI:Notification({
  103. Title = "🎃 Parvus Hub",
  104. Description = Parvus.Game .. " loaded!",
  105. Duration = LoadArgs[2]
  106. }) Parvus.Loaded = true
  107. end
Add Comment
Please, Sign In to add comment