darraghd493

Obby But You’re On a Bike: Auto-Complete

Oct 31st, 2025 (edited)
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.00 KB | Source Code | 0 0
  1. --[[
  2.     Obby But You’re On a Bike: Auto-Complete
  3.     by darraghd493
  4. ]]
  5.  
  6. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  7. local RunService = game:GetService("RunService")
  8. local Workspace = game:GetService("Workspace")
  9. local Players = game:GetService("Players")
  10.  
  11. local LocalPlayer = Players.LocalPlayer
  12.  
  13. local RemoteEvents = ReplicatedStorage:WaitForChild("RemoteEvents")
  14. local NotificationRemote = RemoteEvents:FindFirstChild("Notification")
  15. local ReportResetRemote = RemoteEvents:FindFirstChild("ReportReset")
  16.  
  17. if getgenv().AUTO_RESET then -- TODO: Clean up
  18.     for _, connection in getconnections(NotificationRemote.OnClientEvent) do
  19.         local old; old = hookfunction(connection.Function, function(text, ...)
  20.             -- does text contain "beat"?
  21.             if string.find(string.lower(text), "beat") then
  22.                 if getgenv().ACTIVE and getgenv().AUTO_RESET then -- ensure both are enabled
  23.                     task.delay(getgenv().AUTO_RESET_DELAY + math.random(0, getgenv().AUTO_RESET_DELAY_RANDOMISATION), function()
  24.                         ReportResetRemote:FireServer()
  25.                     end)
  26.                 end
  27.                 return
  28.             end
  29.             return old(text, ...)
  30.         end)
  31.     end
  32. end
  33.  
  34. while getgenv().ACTIVE do
  35.     local checkpoints = Workspace:WaitForChild("WorldMap"):WaitForChild("Checkpoints")
  36.     local endCheckpoint = checkpoints[#checkpoints:GetChildren()]
  37.  
  38.     -- be safe, this is an autofarm after all xD
  39.     local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
  40.     local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  41.  
  42.     repeat RunService.Heartbeat:Wait() until endCheckpoint:FindFirstChild("Hitbox")
  43.     repeat RunService.Heartbeat:Wait() until endCheckpoint.Hitbox:FindFirstChild("TouchInterest")
  44.  
  45.     firetouchinterest(endCheckpoint.Hitbox, humanoidRootPart, true)
  46.     firetouchinterest(endCheckpoint.Hitbox, humanoidRootPart, false)
  47.    
  48.     RunService.Heartbeat:Wait()
  49. end
  50.  
Advertisement
Add Comment
Please, Sign In to add comment