Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Storage = game:GetService('ReplicatedStorage');
- local Players = game:GetService("Players")
- local Player = Players.LocalPlayer
- while wait(0.4) do
- local MyChar = Player.Character or Player.CharacterAdded:wait()
- local RootPart = MyChar:WaitForChild 'HumanoidRootPart';
- local postcf = RootPart.Position - Vector3.new(RootPart.Velocity.X / 6, 0, RootPart.Velocity.Z / 6)
- local poscf = CFrame.new(postcf) + RootPart.CFrame.lookVector * 6
- local herecf = Vector3.new(poscf.X, poscf.Y, poscf.Z)
- for _, p in next, (Players:GetPlayers()) do
- 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
- Storage:WaitForChild('gameplay').character.movedoff:FireServer(p, p.Character.HumanoidRootPart.Position, p.Character.HumanoidRootPart.Position)
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement