Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Obby But Youβre On a Bike: Auto-Complete
- by darraghd493
- ]]
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local RunService = game:GetService("RunService")
- local Workspace = game:GetService("Workspace")
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- local RemoteEvents = ReplicatedStorage:WaitForChild("RemoteEvents")
- local NotificationRemote = RemoteEvents:FindFirstChild("Notification")
- local ReportResetRemote = RemoteEvents:FindFirstChild("ReportReset")
- if getgenv().AUTO_RESET then -- TODO: Clean up
- for _, connection in getconnections(NotificationRemote.OnClientEvent) do
- local old; old = hookfunction(connection.Function, function(text, ...)
- -- does text contain "beat"?
- if string.find(string.lower(text), "beat") then
- if getgenv().ACTIVE and getgenv().AUTO_RESET then -- ensure both are enabled
- task.delay(getgenv().AUTO_RESET_DELAY + math.random(0, getgenv().AUTO_RESET_DELAY_RANDOMISATION), function()
- ReportResetRemote:FireServer()
- end)
- end
- return
- end
- return old(text, ...)
- end)
- end
- end
- while getgenv().ACTIVE do
- local checkpoints = Workspace:WaitForChild("WorldMap"):WaitForChild("Checkpoints")
- local endCheckpoint = checkpoints[#checkpoints:GetChildren()]
- -- be safe, this is an autofarm after all xD
- local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
- local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
- repeat RunService.Heartbeat:Wait() until endCheckpoint:FindFirstChild("Hitbox")
- repeat RunService.Heartbeat:Wait() until endCheckpoint.Hitbox:FindFirstChild("TouchInterest")
- firetouchinterest(endCheckpoint.Hitbox, humanoidRootPart, true)
- firetouchinterest(endCheckpoint.Hitbox, humanoidRootPart, false)
- RunService.Heartbeat:Wait()
- end
Advertisement
Add Comment
Please, Sign In to add comment