Advertisement
Guest User

Untitled

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