local shared = odh_shared_plugins
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local LocalPlayer = [Link]
local speed_glitch_section = [Link]("Auto Speed Glitch")
local speed_glitch_enabled = false
local horizontal_only = false
local speed_slider_value = 0
local default_speed = 16
local character, humanoid, rootPart
local is_in_air = false
local function onCharacterAdded(char)
character = char
humanoid = char:WaitForChild("Humanoid")
rootPart = char:WaitForChild("HumanoidRootPart")
[Link]:Connect(function(_, newState)
if newState == [Link] or newState ==
[Link] then
is_in_air = true
else
is_in_air = false
end
end)
end
if [Link] then
onCharacterAdded([Link])
end
[Link]:Connect(onCharacterAdded)
local function isMobile()
return [Link] and not [Link]
end
speed_glitch_section:AddToggle("Enable ASG", function(enabled)
speed_glitch_enabled = enabled
end)
speed_glitch_section:AddToggle("Sideways Only", function(enabled)
horizontal_only = enabled
end)
speed_glitch_section:AddSlider("Speed (0–255)", 0, 255, 0, function(value)
speed_slider_value = value
end)
[Link]:Connect(function()
if not isMobile() then return end
if not speed_glitch_enabled then return end
if not character or not humanoid or not rootPart then return end
local final_speed = default_speed + speed_slider_value
if is_in_air then
if horizontal_only then
local moveDir = [Link]
local rightDir = [Link]
local horizontalAmount = moveDir:Dot(rightDir)
if [Link](horizontalAmount) > 0.5 then
[Link] = final_speed
else
[Link] = default_speed
end
else
[Link] = final_speed
end
else
[Link] = default_speed
end
end)