Advertisement
THEROBLOXSCRIPTMAN

Deflect

Aug 6th, 2024 (edited)
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.68 KB | Source Code | 0 0
  1. local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
  2. local Window = OrionLib:MakeWindow({Name = "Made By Bacon Scripts", HidePremium = false, SaveConfig = true, ConfigFolder = "OrionTest"})
  3. local MainSection = Window:MakeTab({
  4.     Name = "Auto Local Player",
  5.     Icon = "rbxassetid://4483345998",
  6.     PremiumOnly = false
  7. })
  8.  
  9.  
  10. MainSection:AddButton({
  11.     Name = "Auto deflect",
  12.     Callback = function()
  13.             getgenv().Toggle = true
  14. getgenv().BallDirection = Vector3.new(999999, 999999, 999999)
  15.  
  16. local plr = game.Players.LocalPlayer
  17. local ball = false
  18.  
  19. local function getBall()
  20. while true do game:GetService("RunService").Stepped:Wait()
  21. if workspace:FindFirstChild("Ball") ~= nil then
  22. ball = workspace.Ball
  23. end
  24. end
  25. end
  26.  
  27. task.spawn(getBall)
  28.  
  29. while Toggle do game:GetService("RunService").Stepped:Wait()
  30. if (ball and ball:FindFirstChild("Main") and plr.Character ~= nil) then
  31. local distance = plr:DistanceFromCharacter(ball.Main.Position)
  32. plr.Character:WaitForChild("HumanoidRootPart").CFrame = CFrame.lookAt(plr.Character.HumanoidRootPart.Position, Vector3.new(ball.Main.Position.X, plr.Character.HumanoidRootPart.Position.Y, ball.Main.Position.Z))
  33. if (distance <= 17.8) then
  34. plr.Character:WaitForChild("Deflection").Remote:FireServer("Deflect", BallDirection)
  35. end
  36. end
  37. end
  38.     end    
  39. })
  40.  
  41.  
  42. MainSection:AddSlider({
  43.     Name = "WalkSpeed",
  44.     Min = 0,
  45.     Max = 100,
  46.     Default = 5,
  47.     Color = Color3.fromRGB(255,255,255),
  48.     Increment = 1,
  49.     ValueName = "WalkSpeed",
  50.     Callback = function(Value)
  51.         game.Players.LocalPlayer.Character.humanoid.WalkSpeed = 100
  52.     end    
  53. })
  54.  
  55.  
  56. local MainSection = Tab:AddSection({
  57.     Name = "Section"
  58. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement