Run it
Copy the script and paste it into your executor.
cloneref = ((cloneref) == cloneref) (inst) inst
= (() == ) ()
().SpeedCarCleanup
(().SpeedCarCleanup)
Players = (:())
ReplicatedStorage = (:())
UserInputService = (:())
localPlayer = Players.LocalPlayer Players.PlayerAdded:()
playerScripts = localPlayer:(, )
playerGui = localPlayer:(, )
sharedFolder = ReplicatedStorage:(, )
simFolder = sharedFolder sharedFolder:(, )
clientFolder = playerScripts playerScripts:(, )
(parent, name)
parent
child = parent:(name) parent:(name, )
child
ok, mod = (, child)
ok mod
CarModule = (simFolder, )
QuatModule = (simFolder, )
CarRuntimeModule = (clientFolder, )
ControlsModule = (clientFolder, )
HudTelemetryModule = (clientFolder, )
Config = {
Enabled = ,
Speed = ,
KeyToHide = .KeyCode.RightShift,
}
MAX_BOOST_SPEED =
BASE_ACCEL_MPS2 =
MPH_PER_MPS =
STEP_DT = /
makeVec = (vector vector.create) .new
LOCAL_FORWARD = (, , -)
COLOR_ON = .(, , )
COLOR_OFF = .(, , )
COLOR_STATUS_ACTIVE = .(, , )
COLOR_STATUS_IDLE = .(, , )
KEY_W = .KeyCode.W
KEY_UP = .KeyCode.Up
KEY_S = .KeyCode.S
KEY_DOWN = .KeyCode.Down
INPUT_MB1 = .UserInputType.MouseButton1
INPUT_MOUSEMOVE = .UserInputType.MouseMovement
INPUT_TOUCH = .UserInputType.Touch
connections = {}
hooks = {}
cleaned =
activeRt =
activeModel =
ancestryConn =
heldW = UserInputService:(KEY_W)
heldUp = UserInputService:(KEY_UP)
heldS = UserInputService:(KEY_S)
heldDown = UserInputService:(KEY_DOWN)
isTextFocused = UserInputService:() ~=
dirSign = ((heldW heldUp) ) - ((heldS heldDown) )
uiVisible =
lastDisplayedActive =
lastDisplayedMph = -
lastDisplayedName =
(tbl, key, makeWrapper)
(tbl) ~= (tbl[key]) ~=
orig = tbl[key]
wrapper = (orig)
tbl[key] = wrapper
.(hooks, { tbl = tbl, key = key, orig = orig, wrapper = wrapper })
()
dirSign = ((heldW heldUp) ) - ((heldS heldDown) )
(code, state)
code == KEY_W
heldW = state
code == KEY_UP
heldUp = state
code == KEY_S
heldS = state
code == KEY_DOWN
heldDown = state
()
()
heldW =
heldUp =
heldS =
heldDown =
dirSign =
(rt, body)
look = QuatModule (QuatModule.rotate) == body.qw body.qv
QuatModule.(body.qw, body.qv, LOCAL_FORWARD)
(rt.renderCF) == rt.renderCF.LookVector
look , ,
lx, lz = look.X, look.Z
horizSq = lx * lx + lz * lz
horizSq >
inv = / .(horizSq)
lx * inv, , lz * inv
ly = look.Y
fullSq = horizSq + ly * ly
fullSq >
inv = / .(fullSq)
lx * inv, ly * inv, lz * inv
, ,
(rt)
cleaned dirSign == Config.Enabled Config.Speed <= isTextFocused
(rt) ~= rt.error ~=
car = rt.car
(car) ~= (car.body) ~= (car.coupling) ~=
body = car.body
coupling = car.coupling
fx, fy, fz = (rt, body)
fx
fx *= dirSign
fy *= dirSign
fz *= dirSign
vel = body.vel
currentProj = vel.X * fx + vel.Y * fy + vel.Z * fz
maxTarget = .( + Config.Speed * , , MAX_BOOST_SPEED)
currentProj >= maxTarget
dv = .(Config.Speed * BASE_ACCEL_MPS2 * STEP_DT, maxTarget - currentProj)
dv <=
mass = ((coupling.mass) == coupling.mass > coupling.mass)
((body.mass) == body.mass > body.mass)
impulse = (fx * dv * mass, fy * dv * mass, fz * dv * mass)
CarModule (CarModule.push) ==
CarModule.(car, impulse)
car.components car.components.pushImpulse ~=
car.components.pushImpulse += impulse
(parent, radius)
corner = .()
corner.CornerRadius = .(, radius)
corner.Parent = parent
()
existing = playerGui:()
existing existing:()
ScreenGui = .()
ScreenGui.Name =
ScreenGui.ResetOnSpawn =
ScreenGui.DisplayOrder =
ScreenGui.ZIndexBehavior = .ZIndexBehavior.Sibling
ScreenGui.Parent = playerGui
MainFrame = .()
MainFrame.Name =
MainFrame.Size = .(, , , )
MainFrame.Position = .(, -, , )
MainFrame.BackgroundColor3 = .(, , )
MainFrame.BorderSizePixel =
MainFrame.Active =
MainFrame.Parent = ScreenGui
(MainFrame, )
Stroke = .()
Stroke.Color = .(, , )
Stroke.Thickness =
Stroke.Parent = MainFrame
Title = .()
Title.Size = .(, , , )
Title.BackgroundColor3 = .(, , )
Title.BorderSizePixel =
Title.Text =
Title.TextColor3 = .(, , )
Title.Font = .Font.GothamBold
Title.TextSize =
Title.Parent = MainFrame
(Title, )
StatusLabel = .()
StatusLabel.Size = .(, -, , )
StatusLabel.Position = .(, , , )
StatusLabel.BackgroundTransparency =
StatusLabel.Text =
StatusLabel.TextColor3 = COLOR_STATUS_IDLE
StatusLabel.Font = .Font.Gotham
StatusLabel.TextSize =
StatusLabel.TextXAlignment = .TextXAlignment.Left
StatusLabel.Parent = MainFrame
ToggleBtn = .()
ToggleBtn.Size = .(, -, , )
ToggleBtn.Position = .(, , , )
ToggleBtn.BackgroundColor3 = COLOR_ON
ToggleBtn.Text =
ToggleBtn.TextColor3 = .(, , )
ToggleBtn.Font = .Font.GothamSemibold
ToggleBtn.TextSize =
ToggleBtn.AutoButtonColor =
ToggleBtn.Parent = MainFrame
(ToggleBtn, )
SpeedLabel = .()
SpeedLabel.Size = .(, -, , )
SpeedLabel.Position = .(, , , )
SpeedLabel.BackgroundTransparency =
SpeedLabel.Text =
SpeedLabel.TextColor3 = .(, , )
SpeedLabel.Font = .Font.GothamMedium
SpeedLabel.TextSize =
SpeedLabel.TextXAlignment = .TextXAlignment.Left
SpeedLabel.Parent = MainFrame
SpeedBox = .()
SpeedBox.Size = .(, -, , )
SpeedBox.Position = .(, , , )
SpeedBox.BackgroundColor3 = .(, , )
SpeedBox.PlaceholderText =
SpeedBox.Text = (Config.Speed)
SpeedBox.TextColor3 = .(, , )
SpeedBox.Font = .Font.GothamBold
SpeedBox.TextSize =
SpeedBox.ClearTextOnFocus =
SpeedBox.Parent = MainFrame
(SpeedBox, )
HintLabel = .()
HintLabel.Size = .(, -, , )
HintLabel.Position = .(, , , -)
HintLabel.BackgroundTransparency =
HintLabel.Text =
HintLabel.TextColor3 = .(, , )
HintLabel.Font = .Font.Gotham
HintLabel.TextSize =
HintLabel.Parent = MainFrame
ScreenGui, MainFrame, StatusLabel, ToggleBtn, SpeedBox
ScreenGui, MainFrame, StatusLabel, ToggleBtn, SpeedBox = ()
(force)
cleaned uiVisible
activeRt
car = activeRt.car
mph = car .(.(car.speed ) * MPH_PER_MPS + )
name = activeRt.carId (activeModel activeModel.Name)
force lastDisplayedActive mph ~= lastDisplayedMph name ~= lastDisplayedName
lastDisplayedActive =
lastDisplayedMph = mph
lastDisplayedName = name
StatusLabel.Text = .(, (name), mph)
StatusLabel.TextColor3 = COLOR_STATUS_ACTIVE
force lastDisplayedActive
lastDisplayedActive =
lastDisplayedMph = -
lastDisplayedName =
StatusLabel.Text =
StatusLabel.TextColor3 = COLOR_STATUS_IDLE
(rt)
targetRt = (rt) == rt.error == rt
targetRt == activeRt
ancestryConn
ancestryConn:()
ancestryConn =
activeRt = targetRt
activeModel = targetRt targetRt.model
activeModel
ancestryConn = activeModel.AncestryChanged:((_, parent)
parent == activeModel:()
()
)
()
dragging =
dragStartInput =
dragMoveInput =
dragStartPos =
frameStartPos =
.(connections, MainFrame.InputBegan:((input)
inputType = input.UserInputType
inputType == INPUT_MB1 inputType == INPUT_TOUCH
dragging =
dragStartInput = input
dragStartPos = input.Position
frameStartPos = MainFrame.Position
))
.(connections, MainFrame.InputChanged:((input)
inputType = input.UserInputType
inputType == INPUT_MOUSEMOVE inputType == INPUT_TOUCH
dragMoveInput = input
))
.(connections, UserInputService.InputChanged:((input)
dragging input == dragMoveInput
delta = input.Position - dragStartPos
MainFrame.Position = .(
frameStartPos.X.Scale,
frameStartPos.X.Offset + delta.X,
frameStartPos.Y.Scale,
frameStartPos.Y.Offset + delta.Y
)
))
.(connections, ToggleBtn.MouseButton1Click:(()
Config.Enabled = Config.Enabled
Config.Enabled
ToggleBtn.Text =
ToggleBtn.BackgroundColor3 = COLOR_ON
ToggleBtn.Text =
ToggleBtn.BackgroundColor3 = COLOR_OFF
))
.(connections, SpeedBox.FocusLost:(()
val = (SpeedBox.Text)
val val >=
Config.Speed = .(val, )
SpeedBox.Text = (Config.Speed)
))
.(connections, UserInputService.TextBoxFocused:(()
isTextFocused =
()
))
.(connections, UserInputService.TextBoxFocusReleased:(()
isTextFocused = UserInputService:() ~=
))
.(connections, UserInputService.WindowFocusReleased:(()
()
dragging =
dragStartInput =
))
.(connections, UserInputService.InputBegan:((input)
code = input.KeyCode
(code, ) code == Config.KeyToHide isTextFocused
uiVisible = uiVisible
MainFrame.Visible = uiVisible
uiVisible
()
))
.(connections, UserInputService.InputEnded:((input)
input == dragStartInput
dragging =
dragStartInput =
(input.KeyCode, )
))
(HudTelemetryModule, , (orig)
(rt, ...)
cleaned (rt) ==
rt ~= activeRt
(rt)
()
(rt, ...)
)
(CarRuntimeModule, , (orig)
(rt, ...)
cleaned
(rt)
(rt, ...)
)
(CarRuntimeModule, , (orig)
(rt, dt, isDriven, ...)
cleaned
isDriven (rt) ==
rt ~= activeRt
(rt)
rt.error ~=
()
()
isDriven rt == activeRt
()
(rt, dt, isDriven, ...)
)
(ControlsModule, , (orig)
(active, ...)
cleaned active
()
(active, ...)
)
(ControlsModule, , (orig)
(...)
cleaned activeRt
(activeRt)
(...)
)
()
cleaned
cleaned =
ancestryConn
(()
ancestryConn:()
)
ancestryConn =
i = #hooks, , -
h = hooks[i]
(()
h.tbl[h.key] == h.wrapper
h.tbl[h.key] = h.orig
)
.(hooks)
i = #connections, , -
conn = connections[i]
(()
conn:()
)
.(connections)
ScreenGui
(()
ScreenGui:()
)
ScreenGui =
()
dragging =
dragStartInput =
dragMoveInput =
activeRt =
activeModel =
().SpeedCarCleanup =
().SpeedCarCleanup = cleanupspeed car