Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Input = game:GetService('UserInputService');
- local Players = game:GetService('Players')
- local Player = Players['LocalPlayer'];
- local Key = 'V';
- while wait() do
- if Input:IsKeyDown(Enum.KeyCode[Key]) then
- local Char = Player.Character
- local HRP = Char and Char:FindFirstChild('HumanoidRootPart')
- local Ball = HRP and workspace:FindFirstChild('Football')
- local Mag = Ball and (function(p, p1)
- return ((p.Position - p1.Position).magnitude)
- end)
- if Mag then
- local pos = Mag(HRP, Ball)
- repeat wait()
- pos = Mag(HRP, Ball)
- until (not Input:IsKeyDown(Enum.KeyCode[Key])) or (pos <= 150)
- Ball.CFrame = HRP.CFrame
- end
- end
- end
Add Comment
Please, Sign In to add comment