Advertisement
bubnake

Batman -- Roblox

Aug 30th, 2016
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.43 KB | None | 0 0
  1. me = game.Players.bubnake
  2.  
  3. h = Instance.new("HopperBin",me.Backpack)
  4.  
  5. h.Name = "Batman"
  6.  
  7. script.Parent = h
  8.  
  9.  
  10.  
  11. bin = script.Parent
  12.  
  13. hold = false
  14.  
  15.  
  16.  
  17. deb = false
  18.  
  19.  
  20.  
  21. torso = me.Character.Torso
  22.  
  23. rarm = torso["Right Shoulder"]
  24.  
  25. larm = torso["Left Shoulder"]
  26.  
  27. leftnorm = larm.C0
  28.  
  29. rightnorm = rarm.C0
  30.  
  31.  
  32.  
  33. part = Instance.new("Part",me.Character)
  34.  
  35. part.Size = Vector3.new(1,1,1)
  36.  
  37. part.Position = Vector3.new(0,10,0)
  38.  
  39. part.CanCollide = false
  40.  
  41. part.Transparency = 1
  42.  
  43.  
  44.  
  45. weld = Instance.new("Weld",torso)
  46.  
  47. weld.Part0 = torso
  48.  
  49. weld.Part1 = part
  50.  
  51. weld.C1 = CFrame.fromEulerAnglesXYZ(-1.57,0,0) * CFrame.new(0,0,0)
  52.  
  53.  
  54.  
  55. wings = part:clone()
  56.  
  57. wings.Parent = me.Character
  58.  
  59. wings.Transparency = 0
  60.  
  61.  
  62.  
  63. mesh = Instance.new("SpecialMesh",wings)
  64.  
  65. mesh.MeshType = "FileMesh"
  66.  
  67. mesh.MeshId = "http://www.roblox.com/asset/?id=19367744"
  68.  
  69. mesh.TextureId = "http://www.roblox.com/asset/?id=19367734"
  70.  
  71. mesh.Scale = Vector3.new(2,2,2)
  72.  
  73.  
  74.  
  75. w2 = Instance.new("Weld",torso)
  76.  
  77. w2.Part0 = w2.Parent
  78.  
  79. w2.Part1 = wings
  80.  
  81. w2.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.2,-2)
  82.  
  83.  
  84.  
  85. brick = part:clone()
  86.  
  87. brick.Parent = me.Character
  88.  
  89.  
  90.  
  91. wah = Instance.new("Weld",torso)
  92.  
  93. wah.Part0 = torso
  94.  
  95. wah.Part1 = brick
  96.  
  97. wah.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(-1.2,-0.5,0)
  98.  
  99.  
  100.  
  101. rw = Instance.new("Weld",brick)
  102.  
  103. rw.Part0 = nil
  104.  
  105. rw.Part1 = nil
  106.  
  107. rw.C1 = CFrame.fromEulerAnglesXYZ(-0.6,-0.1,-0.2) * CFrame.new(0,0.5,0.3)
  108.  
  109.  
  110.  
  111. star = Instance.new("Part",game.Lighting)
  112.  
  113. star.formFactor = "Plate"
  114.  
  115. star.Size = Vector3.new(1,0.4,1)
  116.  
  117. star.CanCollide = false
  118.  
  119. star:BreakJoints()
  120.  
  121.  
  122.  
  123. starmesh = Instance.new("SpecialMesh",star)
  124.  
  125. starmesh.MeshType = "FileMesh"
  126.  
  127. starmesh.MeshId = "http://www.roblox.com/asset/?id=11376946"
  128.  
  129. starmesh.TextureId = "http://www.roblox.com/asset/?id=11376931"
  130.  
  131. starmesh.Scale = Vector3.new(3,3,3)
  132.  
  133.  
  134.  
  135. speed = 0
  136.  
  137. maxspeed = 100
  138.  
  139.  
  140.  
  141. bin.Selected:connect(function(mouse)
  142.  
  143. speed = 0
  144.  
  145. rw.Part0 = brick
  146.  
  147. rw.Part1 = me.Character["Right Arm"]
  148.  
  149. star.Parent = me.Character
  150.  
  151. wepweld = Instance.new("Weld",me.Character["Right Arm"])
  152.  
  153. wepweld.Part0 = wepweld.Parent
  154.  
  155. wepweld.Part1 = star
  156.  
  157. wepweld.C1 = CFrame.fromEulerAnglesXYZ(1.57,1,0) * CFrame.new(0,1.4,0)
  158.  
  159. mouse.Button1Down:connect(function()
  160.  
  161. if deb then return end
  162.  
  163. deb = true
  164.  
  165. hold = true
  166.  
  167. me.Character.Humanoid.PlatformStand = true
  168.  
  169. bg = Instance.new("BodyGyro",part)
  170.  
  171. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  172.  
  173. bv = Instance.new("BodyVelocity",part)
  174.  
  175. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  176.  
  177. bg.cframe = CFrame.new(part.Position, mouse.Hit.p)
  178.  
  179. bv.velocity = part.CFrame.lookVector * speed
  180.  
  181. while hold do
  182.  
  183. wait()
  184.  
  185. speed = speed + 2
  186.  
  187. if speed >= maxspeed then
  188.  
  189. speed = maxspeed
  190.  
  191. end
  192.  
  193. bg.cframe = CFrame.new(part.Position, mouse.Hit.p)
  194.  
  195. bv.velocity = part.CFrame.lookVector * speed
  196.  
  197. end
  198.  
  199. end)
  200.  
  201. mouse.Button1Up:connect(function()
  202.  
  203. hold = false
  204.  
  205. me.Character.Humanoid.PlatformStand = false
  206.  
  207. for i = speed, 0, -8 do
  208.  
  209. wait()
  210.  
  211. speed = i
  212.  
  213. bv.velocity = part.CFrame.lookVector * speed
  214.  
  215. end
  216.  
  217. bg:remove()
  218.  
  219. bv:remove()
  220.  
  221. deb = false
  222.  
  223. end)
  224.  
  225. mouse.KeyDown:connect(function(key)
  226.  
  227. key = key:lower()
  228.  
  229. if key == "q" then
  230.  
  231. local bav = Instance.new("BodyAngularVelocity",torso)
  232.  
  233. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  234.  
  235. bav.angularvelocity = torso.CFrame.lookVector * -10
  236.  
  237. wait(0.6)
  238.  
  239. bav:remove()
  240.  
  241. elseif key == "e" then
  242.  
  243. local bav = Instance.new("BodyAngularVelocity",torso)
  244.  
  245. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  246.  
  247. bav.angularvelocity = torso.CFrame.lookVector * 10
  248.  
  249. wait(0.6)
  250.  
  251. bav:remove()
  252.  
  253. elseif key == "f" then
  254.  
  255. for i=1, 4 do
  256.  
  257. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.1,0.05,-0.3)
  258.  
  259. wait()
  260.  
  261. end
  262.  
  263. for i=1, 3 do
  264.  
  265. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0.1,0.4)
  266.  
  267. wait()
  268.  
  269. end
  270.  
  271. local throw = star:clone()
  272.  
  273. throw.Parent = workspace
  274.  
  275. throw.CanCollide = true
  276.  
  277. throw.CFrame = star.CFrame * CFrame.new(0,0,-2)
  278.  
  279. throw.CFrame = CFrame.new(throw.Position, mouse.Hit.p)
  280.  
  281. throw.Velocity = throw.CFrame.lookVector * 230
  282.  
  283. for i=1, 3 do
  284.  
  285. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0.1,0.4)
  286.  
  287. wait()
  288.  
  289. end
  290.  
  291. for i=1, 4 do
  292.  
  293. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.1,-0.3)
  294.  
  295. wait()
  296.  
  297. end
  298.  
  299. rw.C0 = CFrame.new(0,0,0)
  300.  
  301. end
  302.  
  303. end)
  304.  
  305. end)
  306.  
  307.  
  308.  
  309. bin.Deselected:connect(function()
  310.  
  311. rw.Part0 = nil
  312.  
  313. rw.Part1 = nil
  314.  
  315. star.Parent = game.Lighting
  316.  
  317. speed = 0
  318.  
  319. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement