Advertisement
josh97060

Untitled

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