Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. local Storage = game:GetService('ReplicatedStorage');
  2. local Players = game:GetService("Players")
  3. local Player = Players.LocalPlayer
  4. while wait(0.4) do
  5. local MyChar = Player.Character or Player.CharacterAdded:wait()
  6. local RootPart = MyChar:WaitForChild 'HumanoidRootPart';
  7.  
  8. local postcf = RootPart.Position - Vector3.new(RootPart.Velocity.X / 6, 0, RootPart.Velocity.Z / 6)
  9. local poscf = CFrame.new(postcf) + RootPart.CFrame.lookVector * 6
  10. local herecf = Vector3.new(poscf.X, poscf.Y, poscf.Z)
  11. for _, p in next, (Players:GetPlayers()) do
  12. if p ~= Player and p.Character and p.Character:FindFirstChild("HumanoidRootPart") and (p.Character.HumanoidRootPart.Position - herecf).magnitude < 20 and not p.Character:FindFirstChild("ball.weld") then
  13. Storage:WaitForChild('gameplay').character.movedoff:FireServer(p, p.Character.HumanoidRootPart.Position, p.Character.HumanoidRootPart.Position)
  14. end
  15. end
  16. end
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement