Lolw2ewsdwsdwsws

Untitled

Oct 22nd, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.76 KB | None | 0 0
  1. I = "LocalPlayer"
  2. he = game.Workspace[I]
  3. he["Left Arm"]:Remove()
  4. he["Right Arm"]:Remove()
  5. Player = game.Players[I]
  6. local h = Instance.new("HopperBin")
  7. h.Name = "Batman!"
  8. h.Parent = Player.Backpack
  9. local s = Instance.new("Script")
  10. s.Parent = h
  11. s.Name = "Script"
  12. local bin = s.Parent
  13. length = 5
  14. away = 2
  15. gap = 0
  16. local p0 = Instance.new("Part")
  17. p0.Parent = game.Players[I].Character.Torso
  18. p0.Position = Vector3.new(0, 50, 0)
  19. p0.BrickColor = BrickColor.new("Really black")
  20. p0.TopSurface = 0
  21. p0.BottomSurface = 0
  22. p0.Size = Vector3.new(3, 1, 2)
  23. p0.CanCollide = False
  24. local w = Instance.new("Weld")
  25. w.Parent = game.Players[I].Character
  26. w.Part1 = game.Players[I].Character.Head
  27. w.Part0 = p0
  28. w.C0 = CFrame.new(0, 1,-0.7) * CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  29. local A = Instance.new("SpecialMesh")
  30. A.MeshId = "http://www.roblox.com/asset/?id=19367744"
  31. A.Parent = p0
  32. A.Scale = Vector3.new(2, 2, 2)
  33. local part1 = Instance.new("Part")
  34. local p1 = Instance.new("Part")
  35. p1.Parent = game.Players[I].Character.Torso
  36. p1.Position = Vector3.new(0, 50, 0)
  37. p1.BrickColor = BrickColor.new("Really black")
  38. p1.TopSurface = 0
  39. p1.BottomSurface = 0
  40. p1.Size = Vector3.new(3, 1, 2)
  41. p1.CanCollide = False
  42. p1.Transparency = 1
  43. local w = Instance.new("Weld")
  44. w.Parent = game.Players[I].Character
  45. w.Part1 = game.Players[I].Character.Head
  46. w.Part0 = p1
  47. w.C0 = CFrame.new(0,-1,-2.3) * CFrame.fromEulerAnglesXYZ(math.pi/-2,0,0)
  48. local A = Instance.new("SpecialMesh")
  49. A.MeshId = "http://www.roblox.com/asset/?id=19367744"
  50. A.Parent = p1
  51. A.Scale = Vector3.new(2, 2, 2)
  52. local part1 = Instance.new("Part")
  53. part1.BrickColor = BrickColor.new("White")
  54. part1.TopSurface = 0
  55. part1.BottomSurface = 0
  56. part1.Locked = true
  57. part1.Size = Vector3.new(2,1,4)
  58. part1.Anchored = true
  59. part1.Shape = 1
  60. part1.CanCollide = true
  61. part1.Parent = nil
  62. part1.Name = "Part1"
  63. part1.Transparency = 1
  64. local A = Instance.new("SpecialMesh")
  65. A.MeshType = "Brick"
  66. A.Parent = part1
  67. A.Scale = Vector3.new(0.9, 1.1, 1.1)
  68. distance = length/2
  69. speed = 0.5
  70. local main = part1:Clone()
  71. main.Anchored = true
  72. main.TopSurface = 0
  73. main.BottomSurface = 0
  74. main.Transparency = 1
  75. function onButton1Down(mouse)
  76. clicking = true
  77. local player = game.Players.LocalPlayer
  78. if player == nil then return end
  79. main.Parent = me
  80. part1.Parent = me
  81. me1 = bin.Parent.Parent
  82. me = bin.Parent.Parent.Character
  83. while clicking do
  84. distance = length/3
  85. mousehit = mouse.Hit.p
  86. if (main.Position - mousehit).magnitude >speed then
  87. main_mousehit = (main.Position - mousehit).unit*speed
  88. else
  89. main_mousehit = (main.Position - mousehit).unit*1
  90. end
  91. start1 = main.Position-main_mousehit
  92. main.CFrame = CFrame.new(start1.x, start1.y, start1.z)
  93. p1pos = part1.Position
  94. start1_p1pos = (start1 - p1pos).unit
  95. spreadp1 = start1_p1pos*(distance+away)
  96. part1.CFrame = CFrame.new(start1-spreadp1, start1)
  97. start1 = main.Position-main_mousehit
  98. main.CFrame = CFrame.new(start1.x, start1.y, start1.z)
  99. p1pos = part1.Position
  100. start1_p1pos = (start1 - p1pos).unit
  101. spreadp1 = start1_p1pos*(distance+away)
  102. part1.CFrame = CFrame.new(start1-spreadp1, start1)
  103. he.Torso.Neck.C1=CFrame.new(0,-0.5,0,-1,-0,-0,0,0,1,0,1,0)
  104. he.Torso.Neck.C1=he.Torso.Neck.C1*CFrame.Angles(math.rad(80),0,0)
  105. he.Torso.CFrame=part1.CFrame*CFrame.new(0,1,0)*CFrame.fromEulerAnglesXYZ(-math.pi/2,0,0)
  106. he.Torso.Anchored = true
  107. wait()
  108. end
  109. end
  110. function onButton1Up(mouse)
  111. clicking = false
  112. end
  113. function onSelected(mouse)
  114. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  115. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  116. mouse.Button1Up:connect(function() onButton1Up(mouse) end)
  117. end
  118. bin.Selected:connect(onSelected)
  119. while true do
  120. wait(0.2)
  121. p1.Transparency = 0
  122. p0.Transparency = 1
  123. wait(0.2)
  124. p1.Transparency = 1
  125. p0.Transparency = 0
  126. end
Add Comment
Please, Sign In to add comment