Run it
Copy the script and paste it into your executor.
uniLoaded =
hoopsLoaded =
(flagName, fn)
[flagName]
[flagName] =
()
Players = :()
player = Players.LocalPlayer
splash = .(, player:())
splash.Name =
lbl = .(, splash)
lbl.Size = .(, , , )
lbl.Position = .(, -, , -)
lbl.BackgroundColor3 = .(,,)
lbl.TextColor3 = .(,,)
lbl.TextScaled =
lbl.Font = .Font.SourceSansBold
lbl.Text =
splashGone =
.(,()
splash:()
splashGone =
)
()
splashGone .()
()
selector = .(, player.PlayerGui)
selector.Name =
frame = .(, selector)
frame.Size = .(, , , )
frame.Position = .(, -, , -)
frame.BackgroundColor3 = .(,,)
frame.BorderSizePixel =
frame.Active =
frame.Draggable =
title = .(, frame)
title.Size = .(,,,)
title.Position = .(,,,)
title.BackgroundTransparency =
title.TextColor3 = .(,,)
title.TextScaled =
title.Font = .Font.SourceSansBold
title.Text =
(text, y)
b = .(, frame)
b.Size = .(,,,)
b.Position = .(,,y,)
b.BackgroundColor3 = .(,,)
b.TextColor3 = .(,,)
b.Font = .Font.SourceSans
b.TextScaled =
b.Text = text
b
uniBtn = (, )
hoopBtn = (,)
()
(, ()
Players = :()
RunService = :()
UIS = :()
VirtualInputManager = :()
player = Players.LocalPlayer
character = player.Character player.CharacterAdded:()
humanoid = character:()
hrp = character:()
hoopPosition =
target =
guardEnabled =
guardDistance =
minDistance =
bypassSpeed =
speedMultiplier =
keysDown = {}
autoPaused =
holdDuration =
canHold =
speedEnabled =
baseSpeed = humanoid.WalkSpeed
currentSpeed = baseSpeed
bodyVelocity = .()
bodyVelocity.MaxForce = .(, , )
bodyVelocity.Velocity = .(, , )
bodyVelocity.Parent = hrp
screenGui = .(, player:())
screenGui.Name =
frame = .(, screenGui)
frame.Position = .(, , , )
frame.Size = .(, , , )
frame.BackgroundColor3 = .(, , )
frame.BorderSizePixel =
frame.Active =
frame.Draggable =
eLabel = .(, frame)
eLabel.Size = .(, , , )
eLabel.Text =
eLabel.BackgroundTransparency =
eLabel.TextColor3 = .(,,)
eLabel.Font = .Font.SourceSans
eLabel.TextSize =
eBox = .(, frame)
eBox.Size = .(, , , )
eBox.Position = .(, , , )
eBox.Text = (holdDuration)
eBox.BackgroundColor3 = .(,,)
eBox.TextColor3 = .(,,)
eBox.Font = .Font.SourceSans
eBox.TextSize =
eBox.ClearTextOnFocus =
eBox.FocusLost:(()
v = (eBox.Text)
v holdDuration = v eBox.Text = (holdDuration)
)
gdLabel = .(, frame)
gdLabel.Size = .(, , , )
gdLabel.Position = .(, , , )
gdLabel.Text =
gdLabel.BackgroundTransparency =
gdLabel.TextColor3 = .(,,)
gdLabel.Font = .Font.SourceSans
gdLabel.TextSize =
gdBox = .(, frame)
gdBox.Size = .(, , , )
gdBox.Position = .(, , , )
gdBox.Text = (guardDistance)
gdBox.BackgroundColor3 = .(,,)
gdBox.TextColor3 = .(,,)
gdBox.Font = .Font.SourceSans
gdBox.TextSize =
gdBox.ClearTextOnFocus =
gdBox.FocusLost:(()
v = (gdBox.Text)
v v >= guardDistance = v gdBox.Text = (guardDistance)
)
(name, posY, note)
t = .(, frame)
t.Size = .(, , , )
t.Position = .(, , posY, )
t.BackgroundColor3 = .(,,)
t.TextColor3 = .(,,)
t.Font = .Font.SourceSans
t.TextSize =
t.Text = name..
noteLbl
note
noteLbl = .(, frame)
noteLbl.Position = .(, , posY, )
noteLbl.Size = .(, -, , )
noteLbl.Text = note
noteLbl.BackgroundTransparency =
noteLbl.TextColor3 = .(,,)
noteLbl.Font = .Font.SourceSansItalic
noteLbl.TextSize =
noteLbl.TextXAlignment = .TextXAlignment.Left
state =
t.MouseButton1Click:(()
state = state
t.Text = name....(state )
t.BackgroundColor3 = state .(,,) .(,,)
)
() state
getDistanceIndicatorOn = (, )
getGreenToggleOn = (, )
getAutoGuardOn = (, , )
getSpeedChangerOn = (, )
speedFrame = .(, frame)
speedFrame.Size = .(, , , )
speedFrame.Position = .(, , , )
speedFrame.BackgroundColor3 = .(,,)
speedFrame.BorderSizePixel =
minusBtn = .(, speedFrame)
minusBtn.Size = .(, , , )
minusBtn.Position = .(, , , )
minusBtn.Text =
minusBtn.TextScaled =
minusBtn.Font = .Font.SourceSans
minusBtn.BackgroundColor3 = .(,,)
minusBtn.TextColor3 = .(,,)
plusBtn = .(, speedFrame)
plusBtn.Size = .(, , , )
plusBtn.Position = .(, , , )
plusBtn.Text =
plusBtn.TextScaled =
plusBtn.Font = .Font.SourceSans
plusBtn.BackgroundColor3 = .(,,)
plusBtn.TextColor3 = .(,,)
speedLabel = .(, speedFrame)
speedLabel.Size = .(, , , )
speedLabel.Position = .(, , , )
speedLabel.BackgroundTransparency =
speedLabel.Font = .Font.SourceSans
speedLabel.TextScaled =
speedLabel.TextColor3 = .(,,)
speedLabel.Text = ..bypassSpeed
()
speedMultiplier = bypassSpeed /
speedLabel.Text = ..bypassSpeed
isHoldingPlus =
isHoldingMinus =
lastSpamTime =
spamDelay =
()
currentTime = ()
currentTime - lastSpamTime >= spamDelay
isHoldingPlus ()
bypassSpeed = bypassSpeed +
()
isHoldingMinus ()
bypassSpeed = .(, bypassSpeed - )
()
lastSpamTime = currentTime
RunService.Heartbeat:(handleHoldSpam)
minusBtn.MouseButton1Down:(()
()
isHoldingMinus =
bypassSpeed = .(, bypassSpeed - )
()
)
minusBtn.MouseButton1Up:(()
isHoldingMinus =
)
plusBtn.MouseButton1Down:(()
()
isHoldingPlus =
bypassSpeed = bypassSpeed +
()
)
plusBtn.MouseButton1Up:(()
isHoldingPlus =
)
(key)
VirtualInputManager:(, key, , )
(key)
VirtualInputManager:(, key, , )
UIS.InputBegan:((inp,gp)
gp
inp.KeyCode==.KeyCode.W inp.KeyCode==.KeyCode.A inp.KeyCode==.KeyCode.S inp.KeyCode==.KeyCode.D
keysDown[inp.KeyCode]=
autoPaused = (keysDown)~=
inp.KeyCode==.KeyCode.L
hoopPosition = hrp.Position
(, hoopPosition)
inp.KeyCode==.KeyCode.B
hoopPosition () ()
()
guardEnabled = guardEnabled
( .. (guardEnabled ))
guardEnabled
closest,minDist=,.huge
_,p (Players:())
p~=player p.Character p.Character:()
d=(p.Character.HumanoidRootPart.Position-hrp.Position).Magnitude
d<minDist minDist=d closest=p.Character.HumanoidRootPart
target=closest
inp.KeyCode==.KeyCode.E canHold
canHold=
(.KeyCode.E)
.(holdDuration/,()
(.KeyCode.E)
canHold=
)
)
UIS.InputEnded:((inp)
inp.KeyCode==.KeyCode.W inp.KeyCode==.KeyCode.A inp.KeyCode==.KeyCode.S inp.KeyCode==.KeyCode.D
keysDown[inp.KeyCode]=
autoPaused = (keysDown)~=
)
distDot = .(, screenGui)
distDot.Size = .(,,,)
distDot.Position = .(,-,,-)
distDot.BackgroundTransparency =
distDot.Visible=
distDot.BorderSizePixel =
guideFrame = .(, screenGui)
guideFrame.Size=.(,,,)
guideFrame.Visible=
RunService.RenderStepped:(()
hoopPosition
toHRP = hrp.Position - hoopPosition
dist = toHRP.Magnitude
dist < minDistance
dir = toHRP.Unit
vel = hrp.AssemblyLinearVelocity
inward = (vel:(-dir))
inward >
corrected = vel + dir * inward
hrp.AssemblyLinearVelocity = .(corrected.X, vel.Y, corrected.Z)
guardEnabled target target.Parent hoopPosition autoPaused
dirToPlayer = (target.Position - hoopPosition).Unit
guardPos = target.Position - dirToPlayer * guardDistance
guardPos = .(guardPos.X, hrp.Position.Y, guardPos.Z)
.(,)==
guardPos += .(.(-,),,.(-,)).Unit*
humanoid:(guardPos)
moveDir = humanoid.MoveDirection
moveDir.Magnitude >
finalSpeed = bypassSpeed * speedMultiplier
vel = hrp.AssemblyLinearVelocity
newVel = moveDir.Unit * finalSpeed
hrp.AssemblyLinearVelocity = .(newVel.X, vel.Y, newVel.Z)
bodyVelocity.Velocity = .(newVel.X, , newVel.Z)
bodyVelocity.Velocity = .(, , )
() target
d=(target.Position-hrp.Position).Magnitude
distDot.BackgroundColor3 = d< .(,,) (() .(,,) .(,,))
distDot.Visible=
distDot.Visible=
character character.Parent
character = player.Character
character
humanoid = character:()
hrp = character:()
bodyVelocity bodyVelocity:()
bodyVelocity = .()
bodyVelocity.MaxForce = .(, , )
bodyVelocity.Velocity = .(, , )
bodyVelocity.Parent = hrp
)
)
()
(, ()
RS = :()
(fn)
.(fn)
UIS = :()
VIM = :()
Players = :()
TweenService = :()
Replicated = :()
player = Players.LocalPlayer
character = player.Character player.CharacterAdded:()
humanoid = character:()
HRP = character:()
keysDown = {}
autoPaused =
hoopPos =
targetPart =
guardEnabled =
guardDistance =
guardMode =
speedEnabled =
baseSpeed = humanoid.WalkSpeed
targetSpeed = baseSpeed +
speedMultiplier =
hipHeightEnabled =
baseHipHeight = humanoid.HipHeight
targetHipHeight = baseHipHeight
bodyVelocity = .()
bodyVelocity.MaxForce = .(, , )
bodyVelocity.Velocity = .(, , )
bodyVelocity.Parent = HRP
.HL_HoopPosition =
.HL_TargetPart =
.HL_GuardDistance = guardDistance
.HL_MinDistance =
gui = .()
gui.ResetOnSpawn =
gui.Name =
gui.Parent = player:()
mainFrm = .(, gui)
mainFrm.Size = .(, )
mainFrm.Position = .(, , , )
mainFrm.BackgroundColor3= .(, , )
mainFrm.BorderSizePixel =
mainFrm.Active =
mainFrm.Draggable =
(text)
gui:()
gui.HL_Helper:()
card = .()
card.Name =
card.AnchorPoint = .(,)
card.Size = .(,)
card.Position = mainFrm.Position + .(,,,-)
card.BackgroundColor3 = .(,,)
card.BorderSizePixel =
card.Text = text
card.TextScaled =
card.Font = .Font.SourceSansBold
card.TextColor3 = .(,,)
card.Parent = gui
.(()
.()
i=,,
card.BackgroundTransparency = i
card.TextTransparency = i
card.Position = card.Position + .(,,,-)
.()
card:()
)
(txt, relY)
btn = .(, mainFrm)
btn.Size = .(, , , )
btn.Position = .(, , relY, )
btn.BackgroundColor3= .(, , )
btn.TextColor3 = .(, , )
btn.TextScaled =
btn.Font = .Font.SourceSans
state =
() btn.Text = .(, txt, state )
()
btn.MouseButton1Click:(()
state = state
btn.BackgroundColor3 = state .(,,) .(,,)
()
)
() state , btn
isAutoShoot , _shootBtn = (, )
isAutoGuard , _guardBtn = (, )
isAutoBlock , _blockBtn = (, )
_speedToggleChk, speedBtn = (, )
_hipToggleChk, hipBtn = (, )
modeBar = .(, mainFrm)
modeBar.Size = .(, , , )
modeBar.Position = .(, , , )
modeBar.BackgroundColor3= .(, , )
modes = {, , }
modeButtons = {}
i, m (modes)
b = .(, modeBar)
b.Size = .(/#modes, , , )
b.Position = .((i-)/#modes, , , )
b.Text = m
b.TextScaled =
b.Font = .Font.SourceSans
b.TextColor3 = .(,,)
modeButtons[m] = b
()
b.BackgroundColor3 = (guardMode == m) .(,,) .(,,)
()
b.MouseButton1Click:(()
guardMode = m
_, ob (modeButtons)
ob.BackgroundColor3 = .(,,)
()
)
speedGui
()
speedGui = .(, mainFrm)
speedGui.Size = .(, , , )
speedGui.Position = .(, , , )
speedGui.BackgroundColor3= .(,,)
minus = .(, speedGui)
minus.Size = .(, , , )
minus.Text =
minus.TextScaled =
minus.Font = .Font.SourceSans
minus.BackgroundColor3= .(,,)
minus.TextColor3 = .(,,)
plus = minus:()
plus.Parent = speedGui
plus.Text =
plus.Position = .(, , , )
plus.BackgroundColor3 = .(,,)
label = .(, speedGui)
label.Size = .(, , , )
label.Position = .(,,,)
label.BackgroundTransparency =
label.Font = .Font.SourceSans
label.TextScaled =
label.TextColor3 = .(,,)
()
label.Text = ..targetSpeed
speedMultiplier = targetSpeed / baseSpeed
()
minus.MouseButton1Click:(()
targetSpeed = .(, targetSpeed - )
()
)
plus.MouseButton1Click:(()
targetSpeed +=
()
)
()
speedGui speedGui:(); speedGui =
hipGui
()
hipGui = .(, mainFrm)
hipGui.Size = .(, , , )
hipGui.Position = .(, , , )
hipGui.BackgroundColor3= .(,,)
minus = .(, hipGui)
minus.Size = .(, , , )
minus.Text =
minus.TextScaled =
minus.Font = .Font.SourceSans
minus.BackgroundColor3= .(,,)
minus.TextColor3 = .(,,)
plus = minus:()
plus.Parent = hipGui
plus.Text =
plus.Position = .(, , , )
plus.BackgroundColor3 = .(,,)
label = .(, hipGui)
label.Size = .(, , , )
label.Position = .(,,,)
label.BackgroundTransparency =
label.Font = .Font.SourceSans
label.TextScaled =
label.TextColor3 = .(,,)
()
label.Text = ..targetHipHeight
humanoid.HipHeight = targetHipHeight
()
minus.MouseButton1Click:(()
targetHipHeight = targetHipHeight -
()
)
plus.MouseButton1Click:(()
targetHipHeight = targetHipHeight +
()
)
()
hipGui hipGui:(); hipGui =
speedBtn.MouseButton1Click:(()
(()
speedEnabled = ()
speedEnabled
baseSpeed = humanoid.WalkSpeed
targetSpeed = baseSpeed +
()
()
()
()
targetSpeed = baseSpeed
speedMultiplier =
()
)
)
hipBtn.MouseButton1Click:(()
(()
hipHeightEnabled = ()
hipHeightEnabled
baseHipHeight = humanoid.HipHeight
targetHipHeight = baseHipHeight +
()
()
()
()
humanoid.HipHeight = baseHipHeight
targetHipHeight = baseHipHeight
()
)
)
_shootBtn.MouseButton1Click:(()
(()
()
()
)
)
_guardBtn.MouseButton1Click:(()
(()
()
()
)
)
moveKeys = {W=, A=, S=, D=}
UIS.InputBegan:((inp, gp)
gp
moveKeys[inp.KeyCode.Name]
keysDown[inp.KeyCode] =
autoPaused =
inp.KeyCode == .KeyCode.L
hoopPos = HRP.Position
.HL_HoopPosition = hoopPos
()
inp.KeyCode == .KeyCode.B ()
hoopPos ()
guardEnabled = guardEnabled
autoPaused =
( .. (guardEnabled ))
inp.KeyCode == .KeyCode.K hipHeightEnabled
targetHipHeight == baseHipHeight
targetHipHeight = baseHipHeight +
humanoid.HipHeight = targetHipHeight
()
humanoid.HipHeight = baseHipHeight
targetHipHeight = baseHipHeight
()
inp.KeyCode == .KeyCode.Q ()
shoot = Replicated:():()
shoot:(, , , , , )
.()
shoot:(, , , , , )
)
UIS.InputEnded:((inp)
moveKeys[inp.KeyCode.Name]
keysDown[inp.KeyCode] =
autoPaused = (keysDown) ~=
)
IGNORE_IDS = {
[] = , [] = , [] = , [] = ,
[] = , [] = , [] = , [] = ,
[] = , [] = , [] = , [] = ,
[] = , [] = , [] = , [] = ,
[] = , [] = , [] = , [] = ,
[] = , [] = , [] = , [] = ,
[] = , [] = , [] = , [] = ,
[] = , [] = , [] = , [] = ,
[] = , [] = , [] = , [] = ,
[] = , [] = , [] = , [] = ,
[] = , [] = , [] = , [] = ,
[] = , [] = , [] = , [] = ,
[] = , [] = , [] = , [] = ,
[] = , [] = , [] = ,
}
(track)
(track.Animation.AnimationId):()
()
_=,
VIM:(, .KeyCode.Space, , )
RS.Heartbeat:()
VIM:(, .KeyCode.Space, , )
queueJump =
RS:(, .RenderPriority.First.Value, ()
queueJump ()
queueJump =
()
)
(plr)
hum = plr.Character plr.Character:()
hum
animator = hum:() hum:()
animator.AnimationPlayed:((track)
plr == player
IGNORE_IDS[(track)]
root = hum.RootPart hum.Parent:()
root (root.Position - HRP.Position).Magnitude <=
queueJump =
)
_, p (Players:()) (p)
Players.PlayerAdded:((p)
p.CharacterAdded:(()
(p)
)
)
RS.RenderStepped:(()
ok, err = (()
hoopPos
diff = HRP.Position - hoopPos
diff.Magnitude <
dir = diff.Unit
vel = HRP.AssemblyLinearVelocity
inward = vel:(-dir)
inward >
corrected = vel + dir * inward
HRP.AssemblyLinearVelocity = .(corrected.X, vel.Y, corrected.Z)
guardEnabled autoPaused
bestDist = .huge
targetPart =
_, p (Players:())
p ~= player p.Character p.Character:()
d = (p.Character.HumanoidRootPart.Position - HRP.Position).Magnitude
d < bestDist
bestDist = d
targetPart = p.Character.HumanoidRootPart
.HL_TargetPart = targetPart
guardEnabled targetPart hoopPos autoPaused
dir = (targetPart.Position - hoopPos).Unit
guardPos = targetPart.Position - dir * guardDistance
guardPos = .(guardPos.X, HRP.Position.Y, guardPos.Z)
moveDirection = (guardPos - HRP.Position)
distance = moveDirection.Magnitude
distance >
moveDirection = moveDirection.Unit
moveDirection = .zero
baseSpeed = (targetPart.AssemblyLinearVelocity.Magnitude > targetPart.AssemblyLinearVelocity.Magnitude )
guardSpeed = baseSpeed * speedMultiplier
guardSpeed <
guardSpeed =
bodyVelocity.MaxForce = .(, , )
bodyVelocity.Velocity = moveDirection * guardSpeed
guardMode ==
smallPush = moveDirection * (guardSpeed * )
HRP.AssemblyLinearVelocity = .(smallPush.X, HRP.AssemblyLinearVelocity.Y, smallPush.Z)
guardMode ==
push = moveDirection * (guardSpeed * )
HRP.AssemblyLinearVelocity = .(push.X, HRP.AssemblyLinearVelocity.Y, push.Z)
guardMode ==
hackerVelocity = moveDirection * (guardSpeed * )
bodyVelocity.Velocity = .zero
HRP.AssemblyLinearVelocity = .(hackerVelocity.X, HRP.AssemblyLinearVelocity.Y, hackerVelocity.Z)
bodyVelocity.Velocity = .zero
speedEnabled
moveDir = humanoid.MoveDirection
moveDir.Magnitude >
finalSpeed = targetSpeed * speedMultiplier
vel = HRP.AssemblyLinearVelocity
newVel = moveDir.Unit * finalSpeed
HRP.AssemblyLinearVelocity = .(newVel.X, vel.Y, newVel.Z)
guardEnabled
bodyVelocity.Velocity = .(newVel.X, , newVel.Z)
guardEnabled
bodyVelocity.Velocity = .(, , )
.HL_GuardDistance = guardDistance
)
ok
(, err)
)
player.CharacterAdded:((newChar)
character = newChar
humanoid = character:()
HRP = character:()
bodyVelocity bodyVelocity:()
bodyVelocity = .()
bodyVelocity.MaxForce = .(, , )
bodyVelocity.Velocity = .(, , )
bodyVelocity.Parent = HRP
baseSpeed = humanoid.WalkSpeed
speedEnabled targetSpeed = baseSpeed
baseHipHeight = humanoid.HipHeight
hipHeightEnabled targetHipHeight = baseHipHeight
)
)
uniBtn.MouseButton1Click:(()
selector:()
()
)
hoopBtn.MouseButton1Click:(()
selector:()
()
)
Universal Basketball Script. version: 0.2 [ FEATURES ] Universal: Auto Guard Auto Green Indicator Distance Hoops Life: Auto Green Auto Guard (with difficulty settings) Auto Block (still kinda wonky) [How to use] (only explains for features that dont have a tutorial in game) Universal: Indicator Distance: 1. Toggle On 2. enemy < 10 (studs): red; enemy > 10: green Hoops Life: Future Updates: Auto dribble. (uses z,x,c ; shiftlock .... etc) Auto dunk. (presses spacebar when near hoop position) HipHeight. (become uncontestable) etc. These "Updates" are very simple to implement yourself. So Go Ahead! Special Thanks To: j5draco (Hoops Life Auto Green) Script made by irdk, Discord: idrk_scriptblox