Advertisement
Guest User

Untitled

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