RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"can you make me an amazing dribbling script"
-- local script local ball = game.Workspace.Ball local player = game.Players.LocalPlayer local humanoid = player.Character.Humanoid local dribbling = false local function dribble() if dribbling then dribbling = false else dribbling = true while dribbling do local ballPos = ball.Position local playerPos = player.Character.HumanoidRootPart.Position local distance = (ballPos - playerPos).Magnitude if distance <= 5 then ball.Velocity = humanoid.MoveDirection * 10 end wait() end end end game:GetService("UserInputService").InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.Space then dribble() end end)