Advertisement
Cartman366

Untitled

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