lolita5432

test

May 24th, 2018
416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. local a = Instance.new("Part", game.Players.LocalPlayer.Character)
  2. a.BrickColor = BrickColor.new("Really black")
  3. a.Material = "SmoothPlastic"
  4. a.Name = "Vacuum"
  5. local b = Instance.new("SpecialMesh", game.Players.LocalPlayer.Character.Vacuum)
  6. b.MeshType = "FileMesh"
  7. b.MeshId = "rbxassetid://1829355211"
  8. local c = Instance.new("ManualWeld", game.Players.LocalPlayer.Character)
  9. c.Part0 = game.Players.LocalPlayer.Character.Torso
  10. c.Part1 = game.Players.LocalPlayer.Character.Vacuum
  11. c.C0 = CFrame.new(0.7, 0, -1.5)*CFrame.fromEulerAnglesXYZ(0, 91.1, 0)
  12. local d = Instance.new("Tool", game.Players.LocalPlayer.Backpack)
  13. d.Name = "Vacuum"
  14. local e = Instance.new("Part", game.Players.LocalPlayer.Backpack.Vacuum)
  15. e.Name = "Handle"
  16. e.Size = Vector3.new(0.2, 0.2, 0.2)
  17. e.Transparency = 0
  18.  
  19. local tool = game.Players.LocalPlayer.Backpack.Vacuum
  20. local player = game:GetService("Players").LocalPlayer
  21.  
  22. tool.Equipped:connect(function(mouse)
  23.  
  24.  
  25. mouse.Button1Down:connect(function()
  26.  
  27. local ray = Ray.new(tool.Handle.CFrame.p, (mouse.Hit.p - tool.Handle.CFrame.p).unit * 300)
  28. local part, position = workspace:FindPartOnRay(ray, player.Character, false, true)
  29.  
  30. local beam = Instance.new("Part", workspace)
  31. beam.BrickColor = BrickColor.new("Really black")
  32. beam.FormFactor = "Custom"
  33. beam.Material = "SmoothPlastic"
  34. beam.Transparency = 1
  35. beam.Size = Vector3.new(80, 80, 80)
  36. beam.Anchored = true
  37. beam.Locked = true
  38. beam.CanCollide = false
  39.  
  40. local fog = Instance.new("Smoke", e)
  41. wait(2)
  42. fog:Destroy()
  43.  
  44. local distance = (tool.Handle.CFrame.p - position).magnitude
  45. beam.Size = Vector3.new(0.3, 0.3, distance)
  46. beam.CFrame = CFrame.new(tool.Handle.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  47.  
  48. game:GetService("Debris"):AddItem(beam, 0.1)
  49.  
  50. if part then
  51. local humanoid = part.Parent:FindFirstChild("Humanoid")
  52.  
  53. if not humanoid then
  54. humanoid = part.Parent.Parent:FindFirstChild("Humanoid")
  55. end
  56.  
  57. if humanoid then
  58. local Force1 local Force2 repeat Force1 = math.random(-92999,92999)
  59. until math.abs(Force1) >= 5555
  60. repeat Force2 = math.random(-92999,92999)
  61. until math.abs(Force2) >= 5555
  62. v.Character.Humanoid.PlatformStand = true v.Character.Torso.Velocity = Vector3.new(0,0,0)
  63.  
  64. local Fling = Instance.new('BodyForce', v.Character.Torso)
  65. Fling.Name = 'Flung'
  66. Fling.force = Vector3.new(Force1*4,9999*5,Force2*4)
  67. end
  68. end
  69. end
  70. end)
  71. end)
Add Comment
Please, Sign In to add comment