iOSdeveloper

Untitled

Jan 4th, 2025
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.50 KB | None | 0 0
  1. local replicated_storage = game:GetService("ReplicatedStorage")
  2. local players = game:GetService("Players")
  3. local teams = game:GetService("Teams")
  4. local user_input_service = game:GetService("UserInputService")
  5. local run_service = game:GetService("RunService")
  6. local player = players.LocalPlayer
  7. local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/shlexware/Orion/main/source"))()
  8.  
  9. local window = library:MakeWindow({
  10. Name = "Batuş Hub - Blue Lock: Rivals",
  11. HidePremium = false,
  12. SaveConfig = true,
  13. ConfigFolder = "batuşhub"
  14. })
  15.  
  16. local camera = workspace.CurrentCamera
  17. local lock_ball = false
  18. local away_coords = Vector3.new(-232.98773193359375, 11.166533470153809, -64.32842254638672)
  19. local home_coords = Vector3.new(310.09368896484375, 11.166532516479492, -35.67409133911133)
  20. local default_shoot_power = 700
  21. local shoot_power = default_shoot_power
  22.  
  23. local cursor_image = "rbxassetid://7072729817"
  24. local cursor = Instance.new("ImageLabel")
  25. cursor.Image = cursor_image
  26. cursor.Size = UDim2.new(0, 32, 0, 32)
  27. cursor.BackgroundTransparency = 1
  28. cursor.Visible = false
  29. cursor.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  30.  
  31. local function find_ball()
  32. local football = workspace:FindFirstChild("Football")
  33. if football then
  34. return football:FindFirstChild("BallAnims"):FindFirstChild("BALL") or football:FindFirstChild("BALL")
  35. end
  36. return nil
  37. end
  38.  
  39. local ball = find_ball()
  40.  
  41. run_service.RenderStepped:Connect(function()
  42. if user_input_service.MouseEnabled or user_input_service.TouchEnabled then
  43. local position = user_input_service:GetMouseLocation()
  44. cursor.Position = UDim2.new(0, position.X, 0, position.Y)
  45. cursor.Visible = true
  46. else
  47. cursor.Visible = false
  48. end
  49. end)
  50.  
  51. local function lockb()
  52. while lock_ball do
  53. ball = find_ball()
  54. if ball then
  55. local ball_position = ball.Position
  56. local camera_position = camera.CFrame.Position
  57. local smooth_speed = 0.2
  58. local camera_offset = Vector3.new(0, 5, -10)
  59. local target_position = ball_position + camera_offset
  60. local cla = ball_position
  61. local ncp = camera.CFrame.Position:Lerp(target_position, smooth_speed)
  62. camera.CFrame = CFrame.new(ncp, cla)
  63. end
  64. task.wait(0.1)
  65. end
  66. end
  67.  
  68. local function shoot_ball()
  69. ball = find_ball()
  70. if ball then
  71. local character = player.Character or player.CharacterAdded:Wait()
  72. local humanoid_root_part = character:WaitForChild("HumanoidRootPart")
  73. local team = player.Team
  74. local target_coords = (team == teams:FindFirstChild("Home")) and home_coords or away_coords
  75. local direction = (target_coords - ball.Position).unit
  76. local body_velocity = ball:FindFirstChild("BodyVelocity") or Instance.new("BodyVelocity")
  77. body_velocity.MaxForce = Vector3.new(100000, 100000, 100000)
  78. body_velocity.Velocity = direction * shoot_power
  79. body_velocity.Parent = ball
  80. end
  81. end
  82.  
  83. local function set_style(desired_style)
  84. if player:FindFirstChild("PlayerStats") then
  85. local playerStats = player.PlayerStats
  86. if playerStats:FindFirstChild("Style") then
  87. playerStats.Style.Value = desired_style
  88. end
  89. end
  90. end
  91.  
  92. local function set_flow(desired_flow)
  93. if player:FindFirstChild("PlayerStats") then
  94. local playerStats = player.PlayerStats
  95. if playerStats:FindFirstChild("Flow") then
  96. playerStats.Flow.Value = desired_flow
  97. end
  98. end
  99. end
  100.  
  101. local main_tab = window:MakeTab({ Name = "Main", Icon = "rbxassetid://4483345998" })
  102. main_tab:AddSection({ Name = "Main" })
  103. local function AutoGoal()
  104. local character = player.Character or player.CharacterAdded:Wait()
  105. local football = workspace:FindFirstChild("Football")
  106.  
  107. if football then
  108. while isAutoGoalEnabled do
  109. if character:FindFirstChild("Football") then
  110. -- check teams by touka :)
  111. local goalPosition
  112. if player.Team.Name == "Away" then
  113. goalPosition = workspace.Goals.Away.CFrame
  114. elseif player.Team.Name == "Home" then
  115. goalPosition = workspace.Goals.Home.CFrame
  116. end
  117.  
  118. if goalPosition then
  119. character:SetPrimaryPartCFrame(goalPosition)
  120. wait(0.1)
  121. local args = {
  122. [1] = 30,
  123. [4] = Vector3.new(0, 0, 0)
  124. }
  125. replicatedStorage.Packages.Knit.Services.BallService.RE.Shoot:FireServer()
  126. end
  127.  
  128. wait(1) -- Here you can change the Time to the next teleport i make it 1 to avoid spamming :)
  129. else
  130. wait(0.5)
  131. end
  132. end
  133. end
  134. end
  135.  
  136. main_tab:AddToggle({
  137. Name = "Auto Goal",
  138. Callback = function(value)
  139. isAutoGoalEnabled = value
  140. if isAutoGoalEnabled then
  141. AutoGoal()
  142. end
  143. end
  144. })
  145.  
  146. local function trackFootball()
  147. local character = player.Character or player.CharacterAdded:Wait()
  148.  
  149. while isAutoBallEnabled do
  150. local football = workspace:FindFirstChild("Football")
  151. if football then
  152. if not character:FindFirstChild("Football") then
  153. character:SetPrimaryPartCFrame(football.CFrame)
  154. end
  155. else
  156. print("Football is not in workspace anymore")
  157. end
  158. wait(0.1)
  159. end
  160. end
  161.  
  162. main_tab:AddToggle({
  163. Name = "Auto Teleport to Football",
  164. Callback = function(value)
  165. isAutoBallEnabled = value
  166. if isAutoBallEnabled then
  167. trackFootball()
  168. end
  169. end
  170. })
  171. main_tab:AddButton({
  172. Name = "Toggle Ball Lock",
  173. Callback = function()
  174. lock_ball = not lock_ball
  175. if lock_ball then
  176. task.spawn(lockb)
  177. end
  178. end
  179. })
  180. main_tab:AddButton({
  181. Name = "Inf Stamina",
  182. Callback = function()
  183. local args = {
  184. [1] = 0/0
  185. }
  186.  
  187. game:GetService("ReplicatedStorage").Packages.Knit.Services.StaminaService.RE.DecreaseStamina:FireServer(unpack(args))
  188. end
  189. })
  190.  
  191. local flow_tab = window:MakeTab({ Name = "Flow", Icon = "rbxassetid://4483345998" })
  192. flow_tab:AddSection({ Name = "! USE THIS FEATURE AT YOUR OWN RISK !" })
  193. flow_tab:AddButton({
  194. Name = "Flow Gui",
  195. Callback = function()
  196. loadstring(game:HttpGet("https://raw.githubusercontent.com/BatusBey/Flow/refs/heads/main/Flow"))()
  197. end
  198. })
  199.  
  200. local misc_tab = window:MakeTab({ Name = "Misc", Icon = "rbxassetid://4483345998" })
  201. misc_tab:AddSection({ Name = "Misc" })
  202. misc_tab:AddLabel("Coming Soon...")
  203.  
  204. local notes_tab = window:MakeTab({ Name = "Info", Icon = "rbxassetid://4483345998" })
  205. notes_tab:AddSection({ Name = "Info" })
  206. notes_tab:AddLabel("Status : WORKING 🟢")
  207. notes_tab:AddLabel("Guis by : mrkayra.exe")
  208. notes_tab:AddLabel("Scripted by : xbatuhan2, mrkayra.exe")
  209. notes_tab:AddLabel("Auto Farm by : Touka")
  210.  
  211. local credits_tab = window:MakeTab({ Name = "Credits", Icon = "rbxassetid://4483345998" })
  212. credits_tab:AddSection({ Name = "Credits" })
  213. credits_tab:AddLabel("Owner, Head Scripter : xbatuhan2")
  214. credits_tab:AddLabel("Co-Owner, Scripter, Gui Designer: mrkayra.exe")
  215. credits_tab:AddLabel("Bug Fixer : Touka")
  216. credits_tab:AddLabel("Join our server : discord.gg/vBXTpqX4rY")
  217. credits_tab:AddLabel("Join Touka's server : https://discord.gg/ZMqzMFQfy5")
  218.  
  219. library:Init()
Advertisement
Add Comment
Please, Sign In to add comment