Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. main.CFrame = CFrame.new(pos) * CFrame.Angles(0,math.random(-32,32)/10,0)
  2.  
  3. main.Name = "Torso"
  4.  
  5. Instance.new("SpecialMesh",main).MeshType = "Sphere"
  6.  
  7.  
  8.  
  9. local pa1 = Instance.new("Part")
  10.  
  11. prop(pa1,mod,false,0,0,0.9,1,0.9,"Black",false,"Custom")
  12.  
  13. pa1.CFrame = main.CFrame
  14.  
  15. pa1.Name = "Head"
  16.  
  17. Instance.new("SpecialMesh",pa1).MeshType = "Sphere"
  18.  
  19.  
  20.  
  21. local pa2 = Instance.new("Part")
  22.  
  23. prop(pa2,mod,false,0,0,0.2,0.4,0.7,"Neon orange",false,"Custom")
  24.  
  25. pa2.CFrame = main.CFrame
  26.  
  27. Instance.new("SpecialMesh",pa2).MeshType = "Wedge"
  28.  
  29.  
  30.  
  31. local wing1 = Instance.new("Part")
  32.  
  33. prop(wing1,mod,false,0,0,0.2,1.8,1.1,"Black",false,"Custom")
  34.  
  35. wing1.CFrame = main.CFrame
  36.  
  37.  
  38.  
  39. local wing2 = Instance.new("Part")
  40.  
  41. prop(wing2,mod,false,0,0,0.2,1.8,1.1,"Black",false,"Custom")
  42.  
  43. wing2.CFrame = main.CFrame
  44.  
  45.  
  46.  
  47.  
  48.  
  49. local w1 = Instance.new("Weld")
  50.  
  51. weld(w1,main,pa1,0.5,0,0,0,-0.6,1.2)
  52.  
  53. w1.Name = "Neck"
  54.  
  55.  
  56.  
  57. local w2 = Instance.new("Weld")
  58.  
  59. weld(w2,main,pa2,-0.2,0,0,0,-0.6,1.7)
  60.  
  61.  
  62.  
  63. local wi1 = Instance.new("Weld")
  64.  
  65. weld(wi1,main,wing1,0,0,math.pi/2,-1,-0.1,0.1)
  66.  
  67. local worig1 = CFrame.new(0.4,0,0) * CFrame.fromEulerAnglesXYZ(0,0,-0.4)
  68.  
  69. wi1.C0 = worig1
  70.  
  71.  
  72.  
  73. local wi2 = Instance.new("Weld")
  74.  
  75. weld(wi2,main,wing2,0,0,-math.pi/2,1,-0.1,0.1)
  76.  
  77. local worig2 = CFrame.new(-0.4,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0.4)
  78.  
  79. wi2.C0 = worig2
  80.  
  81.  
  82.  
  83. local hum = Instance.new("Humanoid",mod)
  84.  
  85. hum.Name = "Humanoid"
  86.  
  87. hum.MaxHealth = 30
  88.  
  89. hum.Health = 30
  90.  
  91.  
  92.  
  93. local bv = Instance.new("BodyVelocity",main)
  94.  
  95. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  96.  
  97. bv.P = 5000
  98.  
  99. bv.velocity = main.CFrame.lookVector * 6
  100.  
  101.  
  102.  
  103. local bav = Instance.new("BodyAngularVelocity",main)
  104.  
  105. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  106.  
  107. bav.P = 5000
  108.  
  109. bav.angularvelocity = Vector3.new(0,0,0)
  110.  
  111.  
  112.  
  113. hum.Died:connect(function()
  114.  
  115. bv:remove()
  116.  
  117. bav:remove()
  118.  
  119. wait(4)
  120.  
  121. mod:remove()
  122.  
  123. end)
  124.  
  125. mod.Parent = workspace
  126.  
  127. mod:MakeJoints()
  128.  
  129. coroutine.resume(coroutine.create(function()
  130.  
  131. while true do
  132.  
  133. for i=0.4,-0.4,-0.15 do
  134.  
  135. wait()
  136.  
  137. wi1.C0 = worig1 * CFrame.fromEulerAnglesXYZ(0,0,i)
  138.  
  139. wi2.C0 = worig2 * CFrame.fromEulerAnglesXYZ(0,0,-i)
  140.  
  141. end
  142.  
  143. for i=0.4,-0.4,-0.15 do
  144.  
  145. wait()
  146.  
  147. wi1.C0 = worig1 * CFrame.fromEulerAnglesXYZ(0,0,-i)
  148.  
  149. wi2.C0 = worig2 * CFrame.fromEulerAnglesXYZ(0,0,i)
  150.  
  151. end
  152.  
  153. end
  154.  
  155. end))
  156.  
  157. coroutine.resume(coroutine.create(function()
  158.  
  159. while true do
  160.  
  161. wait(0.1)
  162.  
  163. local turn = math.random(1,6)
  164.  
  165. coroutine.resume(coroutine.create(function()
  166.  
  167. if turn == 1 then
  168.  
  169. bav.angularvelocity = Vector3.new(0,6,0)
  170.  
  171. wait(1)
  172.  
  173. bav.angularvelocity = Vector3.new(0,0,0)
  174.  
  175. bv.velocity = main.CFrame.lookVector * 6
  176.  
  177. elseif turn == 2 then
  178.  
  179. bav.angularvelocity = Vector3.new(0,-6,0)
  180.  
  181. wait(1)
  182.  
  183. bav.angularvelocity = Vector3.new(0,0,0)
  184.  
  185. bv.velocity = main.CFrame.lookVector * 6
  186.  
  187. end
  188.  
  189. end))
  190.  
  191. end
  192.  
  193. end))
  194.  
  195. end
  196.  
  197.  
  198.  
  199. for i=1, math.random(4,11) do
  200.  
  201. local poz = Vector3.new(math.random(-100,100),math.random(60,80),math.random(-100,100))
  202.  
  203. bird(poz)
  204.  
  205. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement