daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top