iOSdeveloper

Untitled

Jan 2nd, 2025
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 KB | None | 0 0
  1. local players = game:GetService("Players")
  2. local teams = game:GetService("Teams")
  3. local replicatedStorage = game:GetService("ReplicatedStorage")
  4. local player = players.LocalPlayer
  5. local redzlib = loadstring(game:HttpGet("https://raw.githubusercontent.com/realredz/RedzLibV5/refs/heads/main/Source.lua"))()
  6.  
  7. local Window = redzlib:MakeWindow({
  8. Title = "redz Hub : Blox Fruits",
  9. SubTitle = "by redz9999",
  10. SaveFolder = "testando | redz lib v5.lua"
  11. })
  12.  
  13. Window:AddMinimizeButton({
  14. Button = { Image = "rbxassetid://122413984562434", BackgroundTransparency = 0 },
  15. Corner = { CornerRadius = UDim.new(0, 6) },
  16. })
  17.  
  18. local Tab2 = Window:MakeTab({"Auto Things", "Home"})
  19. local Section = Tab2:AddSection({"Auto Farm"})
  20.  
  21. local isAutoGoalEnabled = false
  22. local isAutoBallEnabled = false
  23.  
  24. local function AutoGoal()
  25. local character = player.Character or player.CharacterAdded:Wait()
  26. local football = workspace:FindFirstChild("Football")
  27.  
  28. if football then
  29. while isAutoGoalEnabled do
  30. if character:FindFirstChild("Football") then
  31. -- Teleport to the goal based on the player's team
  32. local goalPosition
  33. if player.Team.Name == "Away" then
  34. goalPosition = workspace.Goals.Away.CFrame
  35. elseif player.Team.Name == "Home" then
  36. goalPosition = workspace.Goals.Home.CFrame
  37. end
  38.  
  39. if goalPosition then
  40. character:SetPrimaryPartCFrame(goalPosition) -- Teleport to the goal
  41. wait(0.1) -- Short wait to ensure teleportation is processed
  42. -- Immediately shoot the ball after teleporting
  43. local args = {
  44. [1] = 30,
  45. [4] = Vector3.new(0, 0, 0)
  46. }
  47. replicatedStorage.Packages.Knit.Services.BallService.RE.Shoot:FireServer()
  48. end
  49.  
  50. wait(1) -- Wait before the next action to avoid spamming
  51. else
  52. wait(0.5) -- Shorter wait if the player doesn't have the football
  53. end
  54. end
  55. end
  56. end
  57.  
  58. local Toggle1 = Tab2:AddToggle({
  59. Name = "Auto Goal",
  60. Description = "Automatically goes to the goal when you have the football.",
  61. Default = false,
  62. Callback = function(value)
  63. isAutoGoalEnabled = value
  64. if isAutoGoalEnabled then
  65. AutoGoal() -- Start the AutoGoal function
  66. end
  67. end
  68. })
  69.  
  70. local function trackFootball()
  71. local character = player.Character or player.CharacterAdded:Wait()
  72.  
  73. while isAutoBallEnabled do
  74. local football = workspace:FindFirstChild("Football")
  75. if football then
  76. if not character:FindFirstChild("Football") then
  77. character:SetPrimaryPartCFrame(football.CFrame) -- Teleport to the football
  78. end
  79. else
  80. print("Football is not in workspace anymore")
  81. end
  82. wait(0.1) -- Wait for 0.1 seconds before checking again
  83. end
  84. end
  85.  
  86. local Toggle2 = Tab2:AddToggle({
  87. Name = "Auto Teleport to Football",
  88. Description = "Automatically teleports to the football until you get it.",
  89. Default = false,
  90. Callback = function(value)
  91. isAutoBallEnabled = value
  92. if isAutoBallEnabled then
  93. trackFootball() -- Start tracking the football
  94. end
  95. end
  96. })
  97.  
Advertisement
Add Comment
Please, Sign In to add comment