Advertisement
scripthubzz

football fusion

Nov 25th, 2020
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. --football fusion
  2. local Input = game:GetService('UserInputService');
  3. local Players = game:GetService('Players')
  4. local Player = Players['LocalPlayer'];
  5. local Key = 'V';
  6.  
  7. while wait() do
  8. if Input:IsKeyDown(Enum.KeyCode[Key]) then
  9. local Char = Player.Character
  10. local HRP = Char and Char:FindFirstChild('HumanoidRootPart')
  11. local Ball = HRP and workspace:FindFirstChild('Football')
  12. local Mag = Ball and (function(p, p1)
  13. return ((p.Position - p1.Position).magnitude)
  14. end)
  15.  
  16. if Mag then
  17. local pos = Mag(HRP, Ball)
  18. repeat wait()
  19. pos = Mag(HRP, Ball)
  20. until (not Input:IsKeyDown(Enum.KeyCode[Key])) or (pos <= 150)
  21. Ball.CFrame = HRP.CFrame
  22. end
  23. end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement