Run it
Copy the script and paste it into your executor.
Players = :()
RunService = :()
UIS = :()
VirtualInputManager = :()
player = Players.LocalPlayer
character = player.Character player.CharacterAdded:()
humanoid = character:()
hrp = character:()
hoopPosition =
target =
guardEnabled =
currentDistance =
nextDistance =
lastUpdate =
holdDuration =
canHold =
startupGui = .(, player:())
startupGui.Name =
label = .(, startupGui)
label.Size = .(, , , )
label.Position = .(, -, , -)
label.Text =
label.BackgroundColor3 = .(, , )
label.TextColor3 = .(, , )
label.TextScaled =
label.Font = .Font.SourceSansBold
.(, ()
startupGui:()
)
screenGui = .(, player:())
screenGui.Name =
frame = .(, screenGui)
frame.Position = .(, , , )
frame.Size = .(, , , )
frame.BackgroundColor3 = .(, , )
frame.BorderSizePixel =
frame.Active =
frame.Draggable =
label = .(, frame)
label.Size = .(, , , )
label.Text =
label.BackgroundTransparency =
label.TextColor3 = .(, , )
label.Font = .Font.SourceSans
label.TextSize =
textBox = .(, frame)
textBox.Size = .(, , , )
textBox.Position = .(, , , )
textBox.Text = (holdDuration)
textBox.BackgroundColor3 = .(, , )
textBox.TextColor3 = .(, , )
textBox.Font = .Font.SourceSans
textBox.TextSize =
textBox.ClearTextOnFocus =
textBox.FocusLost:(()
val = (textBox.Text)
val holdDuration = val
)
(name, posY, note)
toggle = .(, frame)
toggle.Size = .(, , , )
toggle.Position = .(, , posY, )
toggle.BackgroundColor3 = .(, , )
toggle.TextColor3 = .(, , )
toggle.Font = .Font.SourceSans
toggle.TextSize =
toggle.Text = name ..
noteLabel
note
noteLabel = .(, frame)
noteLabel.Position = .(, , posY, )
noteLabel.Size = .(, -, , )
noteLabel.Text = note
noteLabel.BackgroundTransparency =
noteLabel.TextColor3 = .(, , )
noteLabel.Font = .Font.SourceSansItalic
noteLabel.TextSize =
noteLabel.TextXAlignment = .TextXAlignment.Left
state =
toggle.MouseButton1Click:(()
state = state
toggle.Text = name .. .. (state )
toggle.BackgroundColor3 = state .(, , ) .(, , )
)
()
state
getDistanceIndicatorOn = (, )
getGreenToggleOn = (, )
getAutoGuardOn = (, , )
guideFrame = .(, screenGui)
guideFrame.Position = .(, -, , )
guideFrame.Size = .(, , , )
guideFrame.BackgroundColor3 = .(, , )
guideFrame.Visible =
guideText = .(, guideFrame)
guideText.Size = .(, , , )
guideText.TextColor3 = .(, , )
guideText.TextWrapped =
guideText.TextSize =
guideText.Text =
guideText.BackgroundTransparency =
distDot = .(, frame)
distDot.Size = .(, , , )
distDot.Position = .(, -, , )
distDot.BackgroundColor3 = .(, , )
distDot.Visible =
UIS.InputBegan:((input, gameProcessed)
gameProcessed
input.KeyCode == .KeyCode.L
hoopPosition = hrp.Position
input.KeyCode == .KeyCode.B
hoopPosition ()
guardEnabled = guardEnabled
guardEnabled
closest, minDist = , .huge
_, p (Players:())
p ~= player p.Character p.Character:()
dist = (p.Character.HumanoidRootPart.Position - hrp.Position).Magnitude
dist < minDist
minDist = dist
closest = p.Character.HumanoidRootPart
target = closest
guideFrame.Visible = guardEnabled ()
input.KeyCode == .KeyCode.E canHold
canHold =
VirtualInputManager:(, .KeyCode.E, , )
.(holdDuration / , ()
VirtualInputManager:(, .KeyCode.E, , )
canHold =
)
)
RunService.RenderStepped:((dt)
guardEnabled target target.Parent hoopPosition
now = ()
now - lastUpdate >
nextDistance = .(, ) /
lastUpdate = now
currentDistance = currentDistance + ((nextDistance - currentDistance) * dt * )
dirToPlayer = (target.Position - hoopPosition).Unit
guardPos = target.Position - dirToPlayer * currentDistance
guardPos = .(guardPos.X, hrp.Position.Y, guardPos.Z)
.(, ) ==
offset = .(.(-,), , .(-,)).Unit *
guardPos += offset
humanoid:(guardPos)
() target
dist = (target.Position - hrp.Position).Magnitude
distDot.BackgroundColor3 = dist < .(, , ) (() .(, , ) .(, , ))
distDot.Visible =
distDot.Visible =
)
Universal Basketball Script. version: 0.1 [ FEATURES ] Auto Guard Auto Green Indicator Distance [How to use] Auto Guard: 1. Toggle on 2. Go under the hoop, then press L 3. Press B to use Auto Guard 4. You still need to hold guard, e.g "G", if the game requires so. 5. You still need to hold shift to run, if the game requires so. Auto Green: 1. Toggle on 2. Update the millisecond counter for your personal perfect green 3. Press E to use Auto Green Indicator Distance: 1. Toggle On 2. enemy < 10 (studs): red; enemy > 10: green Future Updates: Auto dribble. (uses z,x,c ; shiftlock .... etc) Auto shoot. (shoots when the Indicator distance is green) Auto dunk. (presses spacebar when near hoop position) Defense Boost. (get a walkspeed boost for defense. [risky] ) HipHeight. (become uncontestable) Auto Block. etc. These "Updates" are very simple to implement yourself. So Go Ahead! Script made by irdk, Discord: idrk_scriptblox