Advertisement
uor

blade ball script

uor
Oct 7th, 2023 (edited)
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. local UserInputService = game:GetService("UserInputService")
  2.  
  3. UserInputService.InputBegan:Connect(function(input, gameProcessedEvent)
  4. if input.KeyCode == Enum.KeyCode.Q and not gameProcessedEvent then
  5. local Players = game:GetService("Players")
  6. local LocalPlayer = Players.LocalPlayer
  7. local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
  8. local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
  9.  
  10. local closestPlayer
  11. local shortestDistance = math.huge
  12.  
  13. for _, player in ipairs(Players:GetPlayers()) do
  14. if player ~= LocalPlayer then
  15. local character = player.Character
  16. if character then
  17. local rootPart = character:FindFirstChild("HumanoidRootPart")
  18. if rootPart then
  19. local distance = (rootPart.Position - HumanoidRootPart.Position).Magnitude
  20. if distance < shortestDistance then
  21. closestPlayer = player
  22. shortestDistance = distance
  23. end
  24. end
  25. end
  26. end
  27. end
  28.  
  29. if closestPlayer then
  30. game:GetService("ReplicatedStorage").Remotes.Freeze:FireServer()
  31. end
  32. end
  33. end)
  34.  
  35. loadstring(game:HttpGet("https://github.com/SadlekAski/Scripts/raw/main/Blade%20Ball/Equip%20any%20ability.lua"))()
  36. loadstring(game:HttpGet("https://raw.githubusercontent.com/TypZeroSVK/Scripts/main/BladeBall%20Beta-1.0.0"))()
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement