Advertisement
Versqual

Untitled

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