Advertisement
IAmBW

BATMAN

Mar 21st, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.51 KB | None | 0 0
  1. --Batmaan!! made by xSoulStealerx------------------------------------------------------------------------------------------------------------------------------------------------------------
  2. me = game.Players.IAmBW
  3. h = Instance.new("HopperBin",me.Backpack)
  4. h.Name = "Batman"
  5. script.Parent = h
  6.  
  7. bin = script.Parent
  8. hold = false
  9.  
  10. deb = false
  11.  
  12. torso = me.Character.Torso
  13. rarm = torso["Right Shoulder"]
  14. larm = torso["Left Shoulder"]
  15. leftnorm = larm.C0
  16. rightnorm = rarm.C0
  17.  
  18. part = Instance.new("Part",me.Character)
  19. part.Size = Vector3.new(1,1,1)aa
  20. part.Position = Vector3.new(0,10,0)
  21. part.CanCollide = false
  22. part.Transparency = 1
  23.  
  24. weld = Instance.new("Weld",torso)
  25. weld.Part0 = torso
  26. weld.Part1 = part
  27. weld.C1 = CFrame.fromEulerAnglesXYZ(-1.57,0,0) * CFrame.new(0,0,0)
  28.  
  29. wings = part:clone()
  30. wings.Parent = me.Character
  31. wings.Transparency = 0
  32.  
  33. mesh = Instance.new("SpecialMesh",wings)
  34. mesh.MeshType = "FileMesh"
  35. mesh.MeshId = "http://www.roblox.com/asset/?id=19367744"
  36. mesh.TextureId = "http://www.roblox.com/asset/?id=19367734"
  37. mesh.Scale = Vector3.new(2,2,2)
  38.  
  39. w2 = Instance.new("Weld",torso)
  40. w2.Part0 = w2.Parent
  41. w2.Part1 = wings
  42. w2.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.2,-2)
  43.  
  44. brick = part:clone()
  45. brick.Parent = me.Character
  46.  
  47. wah = Instance.new("Weld",torso)
  48. wah.Part0 = torso
  49. wah.Part1 = brick
  50. wah.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-1.2,-0.5,0)
  51.  
  52. rw = Instance.new("Weld",brick)
  53. rw.Part0 = nil
  54. rw.Part1 = nil
  55. rw.C1 = CFrame.fromEulerAnglesXYZ(-0.6,-0.1,-0.2) * CFrame.new(0,0.5,0.3)
  56.  
  57. star = Instance.new("Part",game.Lighting)
  58. star.formFactor = "Plate"
  59. star.Size = Vector3.new(1,0.4,1)
  60. star.CanCollide = false
  61. star:BreakJoints()
  62.  
  63. starmesh = Instance.new("SpecialMesh",star)
  64. starmesh.MeshType = "FileMesh"
  65. starmesh.MeshId = "http://www.roblox.com/asset/?id=11376946"
  66. starmesh.TextureId = "http://www.roblox.com/asset/?id=11376931"
  67. starmesh.Scale = Vector3.new(3,3,3)
  68.  
  69. speed = 0
  70. maxspeed = 100
  71.  
  72. bin.Selected:connect(function(mouse)
  73. speed = 0
  74. rw.Part0 = brick
  75. rw.Part1 = me.Character["Right Arm"]
  76. star.Parent = me.Character
  77. wepweld = Instance.new("Weld",me.Character["Right Arm"])
  78. wepweld.Part0 = wepweld.Parent
  79. wepweld.Part1 = star
  80. wepweld.C1 = CFrame.fromEulerAnglesXYZ(1.57,1,0) * CFrame.new(0,1.4,0)
  81. mouse.Button1Down:connect(function()
  82. if deb then return end
  83. deb = true
  84. hold = true
  85. me.Character.Humanoid.PlatformStand = true
  86. bg = Instance.new("BodyGyro",part)
  87. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  88. bv = Instance.new("BodyVelocity",part)
  89. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  90. bg.cframe = CFrame.new(part.Position, mouse.Hit.p)
  91. bv.velocity = part.CFrame.lookVector * speed
  92. while hold do
  93. wait()
  94. speed = speed + 2
  95. if speed >= maxspeed then
  96. speed = maxspeed
  97. end
  98. bg.cframe = CFrame.new(part.Position, mouse.Hit.p)
  99. bv.velocity = part.CFrame.lookVector * speed
  100. end
  101. end)
  102. mouse.Button1Up:connect(function()
  103. hold = false
  104. me.Character.Humanoid.PlatformStand = false
  105. for i = speed, 0, -8 do
  106. wait()
  107. speed = i
  108. bv.velocity = part.CFrame.lookVector * speed
  109. end
  110. bg:remove()
  111. bv:remove()
  112. deb = false
  113. end)
  114. mouse.KeyDown:connect(function(key)
  115. key = key:lower()
  116. if key == "q" then
  117. local bav = Instance.new("BodyAngularVelocity",torso)
  118. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  119. bav.angularvelocity = torso.CFrame.lookVector * -10
  120. wait(0.6)
  121. bav:remove()
  122. elseif key == "e" then
  123. local bav = Instance.new("BodyAngularVelocity",torso)
  124. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  125. bav.angularvelocity = torso.CFrame.lookVector * 10
  126. wait(0.6)
  127. bav:remove()
  128. elseif key == "f" then
  129. for i=1, 4 do
  130. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.1,0.05,-0.3)
  131. wait()
  132. end
  133. for i=1, 3 do
  134. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0.1,0.4)
  135. wait()
  136. end
  137. local throw = star:clone()
  138. throw.Parent = workspace
  139. throw.CanCollide = true
  140. throw.CFrame = star.CFrame * CFrame.new(0,0,-2)
  141. throw.CFrame = CFrame.new(throw.Position, mouse.Hit.p)
  142. throw.Velocity = throw.CFrame.lookVector * 230
  143. for i=1, 3 do
  144. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0.1,0.4)
  145. wait()
  146. end
  147. for i=1, 4 do
  148. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.1,-0.3)
  149. wait()
  150. end
  151. rw.C0 = CFrame.new(0,0,0)
  152. end
  153. end)
  154. end)
  155.  
  156. bin.Deselected:connect(function()
  157. rw.Part0 = nil
  158. rw.Part1 = nil
  159. star.Parent = game.Lighting
  160. speed = 0
  161. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement