Advertisement
SumitScripts

Untitled

Apr 11th, 2024 (edited)
8,834
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.28 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3. -- Brought to you by SumitScripts on YT
  4.  
  5. -- Instances:
  6.  
  7. local HeraBattlegrounds = Instance.new("ScreenGui")
  8. local TopBg = Instance.new("Frame")
  9. local UIGradient = Instance.new("UIGradient")
  10. local Body = Instance.new("Frame")
  11. local UIGradient_2 = Instance.new("UIGradient")
  12. local BlockAura = Instance.new("TextButton")
  13. local UICorner = Instance.new("UICorner")
  14. local minimize = Instance.new("ImageButton")
  15. local TextLabel = Instance.new("TextLabel")
  16.  
  17. --Properties:
  18.  
  19. HeraBattlegrounds.Name = "HeraBattlegrounds"
  20. HeraBattlegrounds.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  21. HeraBattlegrounds.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  22. HeraBattlegrounds.ResetOnSpawn = false
  23.  
  24. TopBg.Name = "TopBg"
  25. TopBg.Parent = HeraBattlegrounds
  26. TopBg.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  27. TopBg.BorderColor3 = Color3.fromRGB(27, 42, 53)
  28. TopBg.BorderSizePixel = 0
  29. TopBg.Position = UDim2.new(0.267471403, 0, 0.242474914, 0)
  30. TopBg.Size = UDim2.new(0, 142, 0, 21)
  31.  
  32. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(137, 0, 254)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(223, 0, 255))}
  33. UIGradient.Parent = TopBg
  34.  
  35. Body.Name = "Body"
  36. Body.Parent = TopBg
  37. Body.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  38. Body.BorderColor3 = Color3.fromRGB(27, 42, 53)
  39. Body.BorderSizePixel = 0
  40. Body.Position = UDim2.new(0, 0, 0.976190448, 0)
  41. Body.Size = UDim2.new(0, 142, 0, 37)
  42.  
  43. UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(55, 0, 103)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(223, 0, 255))}
  44. UIGradient_2.Parent = Body
  45.  
  46. BlockAura.Name = "BlockAura"
  47. BlockAura.Parent = Body
  48. BlockAura.BackgroundColor3 = Color3.fromRGB(43, 41, 83)
  49. BlockAura.BackgroundTransparency = 0.250
  50. BlockAura.BorderSizePixel = 0
  51. BlockAura.Position = UDim2.new(0, 0, 0.151454702, 0)
  52. BlockAura.Size = UDim2.new(0, 142, 0, 24)
  53. BlockAura.Font = Enum.Font.SourceSansBold
  54. BlockAura.Text = "BlockAura: OFF"
  55. BlockAura.TextColor3 = Color3.fromRGB(255, 98, 140)
  56. BlockAura.TextSize = 14.000
  57.  
  58. UICorner.CornerRadius = UDim.new(1, 8)
  59. UICorner.Parent = BlockAura
  60.  
  61. minimize.Name = "minimize"
  62. minimize.Parent = TopBg
  63. minimize.BackgroundTransparency = 1.000
  64. minimize.Position = UDim2.new(0.823943675, 0, -0.119047642, 0)
  65. minimize.Size = UDim2.new(0, 25, 0, 25)
  66. minimize.ZIndex = 2
  67. minimize.Image = "rbxassetid://3926307971"
  68. minimize.ImageRectOffset = Vector2.new(164, 484)
  69. minimize.ImageRectSize = Vector2.new(36, 36)
  70.  
  71. TextLabel.Parent = TopBg
  72. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  73. TextLabel.BackgroundTransparency = 1.000
  74. TextLabel.BorderSizePixel = 0
  75. TextLabel.Size = UDim2.new(0, 142, 0, 20)
  76. TextLabel.Font = Enum.Font.SourceSansBold
  77. TextLabel.Text = "BlockAura By SumitScripts"
  78. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  79. TextLabel.TextSize = 15.000
  80.  
  81. -- Scripts:
  82.  
  83. local function JLXHHH_fake_script() -- BlockAura.BlockAura
  84. local script = Instance.new('LocalScript', BlockAura)
  85.  
  86. local Usuario = game:GetService("Players").LocalPlayer
  87.  
  88. function Blocking()
  89. local args = {
  90. [1] = {
  91. ["Goal"] = "KeyPress",
  92. ["Key"] = Enum.KeyCode.F
  93. }
  94. }
  95. game:GetService("Players").LocalPlayer.Character.Communicate:FireServer(unpack(args))
  96. end
  97.  
  98. function Unblock()
  99. local args = {
  100. [1] = {
  101. ["Goal"] = "KeyRelease",
  102. ["Key"] = Enum.KeyCode.F
  103. }
  104. }
  105. game:GetService("Players").LocalPlayer.Character.Communicate:FireServer(unpack(args))
  106. end
  107.  
  108. _G.BlockAura = false
  109. script.Parent.MouseButton1Click:Connect(function()
  110. if _G.BlockAura == false then
  111. _G.BlockAura = true
  112. script.Parent.TextColor3 = Color3.fromRGB(76, 241, 46)
  113. script.Parent.Text = "BlockAura: ON"
  114. while _G.BlockAura do
  115. local closestDistance = math.huge
  116. local closestPlayer = nil
  117.  
  118. for i,v in next, game:GetService("Players"):GetPlayers() do
  119. if (v ~= Usuario and Usuario.Character and Usuario.Character:FindFirstChild("HumanoidRootPart") and v.Character and v.Character:FindFirstChild("HumanoidRootPart")) then
  120. local distance = (v.Character.HumanoidRootPart.Position - Usuario.Character.HumanoidRootPart.Position).magnitude
  121.  
  122. if (distance < closestDistance and distance <= 17) then -- Verificando se é o jogador mais próximo e se ele está dentro da distância permitida
  123. closestDistance = distance
  124. closestPlayer = v
  125. end
  126. end
  127. end
  128.  
  129. if closestPlayer then
  130. Blocking()
  131. local playerPosition = closestPlayer.Character.HumanoidRootPart
  132. Usuario.Character.HumanoidRootPart.CFrame = playerPosition.CFrame * CFrame.new(0, 0, 3)
  133. Unblock()
  134. end
  135. wait()
  136. end
  137. else
  138. _G.BlockAura = false
  139. script.Parent.TextColor3 = Color3.fromRGB(255, 98, 140)
  140. script.Parent.Text = "BlockAura: OFF"
  141. end
  142. end)
  143.  
  144. local UIB = game:GetService("UserInputService")
  145. UIB.InputBegan:Connect(function(tecla,gameprocess)
  146. if not gameprocess then
  147. if tecla.KeyCode == Enum.KeyCode.LeftControl then
  148. if _G.BlockAura == false then
  149. _G.BlockAura = true
  150. script.Parent.TextColor3 = Color3.fromRGB(76, 241, 46)
  151. script.Parent.Text = "BlockAura: ON"
  152. while _G.BlockAura do
  153. local closestDistance = math.huge
  154. local closestPlayer = nil
  155.  
  156. for i,v in next, game:GetService("Players"):GetPlayers() do
  157. if (v ~= Usuario and Usuario.Character and Usuario.Character:FindFirstChild("HumanoidRootPart") and v.Character and v.Character:FindFirstChild("HumanoidRootPart")) then
  158. local distance = (v.Character.HumanoidRootPart.Position - Usuario.Character.HumanoidRootPart.Position).magnitude
  159.  
  160. if (distance < closestDistance and distance <= 17) then -- Verificando se é o jogador mais próximo e se ele está dentro da distância permitida
  161. closestDistance = distance
  162. closestPlayer = v
  163. end
  164. end
  165. end
  166.  
  167. if closestPlayer then
  168. Blocking()
  169. local playerPosition = closestPlayer.Character.HumanoidRootPart
  170. Usuario.Character.HumanoidRootPart.CFrame = playerPosition.CFrame * CFrame.new(0, 0, 3)
  171. Unblock()
  172. end
  173. wait()
  174. end
  175. else
  176. _G.BlockAura = false
  177. script.Parent.TextColor3 = Color3.fromRGB(255, 98, 140)
  178. script.Parent.Text = "BlockAura: OFF"
  179. end
  180. end
  181. end
  182. end)
  183. end
  184. coroutine.wrap(JLXHHH_fake_script)()
  185. local function IECHPZY_fake_script() -- minimize.LocalScript
  186. local script = Instance.new('LocalScript', minimize)
  187.  
  188. script.Parent.MouseButton1Click:Connect(function()
  189. script.Parent.Parent.Body.Visible = not script.Parent.Parent.Body.Visible
  190. end)
  191. end
  192. coroutine.wrap(IECHPZY_fake_script)()
  193. local function JHSE_fake_script() -- TopBg.Drag
  194. local script = Instance.new('LocalScript', TopBg)
  195.  
  196. local UserInputService = game:GetService("UserInputService")
  197. local gui = script.Parent
  198. local dragging
  199. local dragInput
  200. local dragStart
  201. local startPos
  202.  
  203. local function update(input)
  204. local delta = input.Position - dragStart
  205. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  206. end
  207.  
  208. gui.InputBegan:Connect(function(input)
  209. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  210. dragging = true
  211. dragStart = input.Position
  212. startPos = gui.Position
  213.  
  214. input.Changed:Connect(function()
  215. if input.UserInputState == Enum.UserInputState.End then
  216. dragging = false
  217. end
  218. end)
  219. end
  220. end)
  221.  
  222. gui.InputChanged:Connect(function(input)
  223. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  224. dragInput = input
  225. end
  226. end)
  227.  
  228. UserInputService.InputChanged:Connect(function(input)
  229. if input == dragInput and dragging then
  230. update(input)
  231. end
  232. end)
  233. end
  234. coroutine.wrap(JHSE_fake_script)()
  235. local function KMSN_fake_script() -- TopBg.ToggleUI
  236. local script = Instance.new('LocalScript', TopBg)
  237.  
  238. local UIS = game:GetService("UserInputService")
  239. UIS.InputBegan:Connect(function(tecla,gameprocess)
  240. if not gameprocess then
  241. if tecla.KeyCode == Enum.KeyCode.RightControl then
  242. script.Parent.Parent.TopBg.Visible = not script.Parent.Parent.TopBg.Visible
  243. end
  244. end
  245. end)
  246. end
  247. coroutine.wrap(KMSN_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement