ShoccessX

rh2 AUTO

Sep 11th, 2024 (edited)
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.43 KB | None | 0 0
  1. -- Place this script in StarterPlayerScripts or StarterGui
  2.  
  3. -- List of allowed Place IDs
  4. local allowedPlaceIds = {
  5. [14269621394] = true,
  6. [15297128281] = true
  7. }
  8.  
  9. -- The Place ID to teleport to if the current Place ID is not allowed
  10. local teleportPlaceId = 15297128281
  11.  
  12. -- Check if the current Place ID is allowed
  13. local currentPlaceId = game.PlaceId
  14. if not allowedPlaceIds[currentPlaceId] then
  15. -- Current Place ID is not allowed, teleport the player
  16. local TeleportService = game:GetService("TeleportService")
  17. local player = game.Players.LocalPlayer
  18.  
  19. TeleportService:Teleport(teleportPlaceId, player)
  20. else
  21. -- If the current Place ID is 15297128281, execute the provided script
  22. if currentPlaceId == 15297128281 then
  23. local args = {
  24. [1] = "Change Ready Settings",
  25. [2] = true
  26. }
  27.  
  28. game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("Main.RE"):FireServer(unpack(args))
  29. end
  30.  
  31. -- If the current Place ID is 14269621394, execute the three provided scripts
  32. if currentPlaceId == 14269621394 then
  33. -- Script 1: Shooting Multiplier and Power Change Script
  34. -- Services
  35. local Players = game:GetService("Players")
  36. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  37.  
  38. -- Player Variables
  39. local localPlayer = Players.LocalPlayer
  40. local backpack = localPlayer:WaitForChild("Backpack")
  41. local actionValues = backpack:WaitForChild("ActionValues")
  42. local power = actionValues:WaitForChild("Power")
  43.  
  44. -- Globals
  45. _G.Xp = false
  46. _G.Multiplier = 100 -- Set the shot multiplier to 50
  47. _G.ChangeValue = 1
  48.  
  49. -- Function to Fire Shots Based on Multiplier
  50. local function onPowerChanged()
  51. if power.Value >= _G.ChangeValue and _G.Xp then
  52. local args = {
  53. [1] = false,
  54. [2] = "Shooting",
  55. [3] = "Standing Shot"
  56. }
  57.  
  58. local playerEvents = backpack:FindFirstChild("PlayerEvents") or ReplicatedStorage:FindFirstChild("PlayerEvents")
  59.  
  60. if playerEvents then
  61. local shootingEvent = playerEvents:FindFirstChild("Shooting")
  62. if shootingEvent then
  63. for i = 1, _G.Multiplier do
  64. shootingEvent:FireServer(unpack(args))
  65. end
  66. else
  67. warn("Shooting event not found in PlayerEvents.")
  68. end
  69. else
  70. warn("PlayerEvents folder not found in either Backpack or ReplicatedStorage.")
  71. end
  72. end
  73. end
  74.  
  75. -- Connect Power Change Signal
  76. power:GetPropertyChangedSignal("Value"):Connect(onPowerChanged)
  77.  
  78. -- Example Usage: Setting values
  79. _G.Xp = true -- Set to true to enable shooting
  80. _G.ChangeValue = 50 -- Minimum power value to trigger the shot
  81.  
  82. -- Script 2: Disable AFK Check
  83. local StarterGui = game:GetService("StarterGui")
  84.  
  85. local function disableAFKCheck()
  86. local starterGuiAFKUi = StarterGui:FindFirstChild("AFK.Ui")
  87. if starterGuiAFKUi then
  88. local afkCheckScript = starterGuiAFKUi:FindFirstChild("AFK.Check")
  89. if afkCheckScript and afkCheckScript:IsA("LocalScript") then
  90. afkCheckScript.Disabled = true
  91. print("AFK.Check script in StarterGui is disabled.")
  92. else
  93. print("AFK.Check script not found or not a LocalScript in StarterGui.")
  94. end
  95. else
  96. print("AFK.Ui not found in StarterGui.")
  97. end
  98.  
  99. local player = Players.LocalPlayer
  100. if player and player.PlayerGui then
  101. local playerGuiAFKUi = player.PlayerGui:FindFirstChild("AFK.Ui")
  102. if playerGuiAFKUi then
  103. local afkCheckScript = playerGuiAFKUi:FindFirstChild("AFK.Check")
  104. if afkCheckScript and afkCheckScript:IsA("LocalScript") then
  105. afkCheckScript.Disabled = true
  106. print("AFK.Check script in PlayerGui is disabled.")
  107. else
  108. print("AFK.Check script not found or not a LocalScript in PlayerGui.")
  109. end
  110. else
  111. print("AFK.Ui not found in PlayerGui.")
  112. end
  113. else
  114. print("PlayerGui not available.")
  115. end
  116. end
  117.  
  118. disableAFKCheck()
  119.  
  120. -- Script 3: Load Anti-AFK Script from URL with error handling
  121. local success, result = pcall(function()
  122. return game:HttpGet("https://pastebin.com/raw/DWhz7RHx", true)
  123. end)
  124. if success then
  125. loadstring(result)()
  126. else
  127. warn("Failed to load Anti-AFK Script: ", result)
  128. end
  129.  
  130. -- Script 4: Load additional script 1 with error handling
  131. success, result = pcall(function()
  132. return game:HttpGet("https://raw.githubusercontent.com/evxncodes/mainroblox/main/anti-afk", true)
  133. end)
  134. if success then
  135. loadstring(result)()
  136. else
  137. warn("Failed to load additional script 1: ", result)
  138. end
  139. end
  140. end
Advertisement
Add Comment
Please, Sign In to add comment