Advertisement
JuicyPenguin

Eagle script

Sep 22nd, 2015
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Made by DoogleFox, don't care what people say.. It's the truth. (We did it)
  2.  
  3. if script.Parent.className ~= "HopperBin" then
  4. bin = Instance.new("HopperBin")
  5. bin.Name = "Eagle"
  6. bin.Parent = game.Players.Imtannerbanner56.Backpack
  7. script.Parent = bin
  8. end
  9. eaglesize = 1.7
  10. speed = 50
  11.  
  12. bin = script.Parent
  13. bv = Instance.new("BodyVelocity")
  14. bv.Name = "BV"
  15. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  16. bg = Instance.new("BodyGyro")
  17. bg.Name = "BG"
  18. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  19. morphed = false
  20. morphing = false
  21. EagleStreamer = true
  22. face = nil
  23. mesh = nil
  24.  
  25. ---- Eagle MeshID http://www.roblox.com/asset/?id=51226819
  26. ---- Eagle TextureID http://www.roblox.com/asset/?id=51226825
  27. ---- Eagle Screach http://www.roblox.com/asset/?id=51322486
  28.  
  29. function EagleMorph()
  30. morphing = true
  31. player = bin.Parent.Parent.Character
  32. s = Instance.new("Smoke")
  33. s.Name = "Smokez"
  34. s.Color = Color3.new(0.65,0,0.8)
  35. s.RiseVelocity = 0.5
  36. s.Size = 12
  37. s.Opacity = 1
  38. s.Parent = player.Torso
  39. wait(1.8)
  40. s:remove()
  41. p = Instance.new("Part")
  42. p.Name = "Eagle"
  43. p.formFactor = "Custom"
  44. p.Size = Vector3.new(0.5,0.5,0.5)
  45. p.Position = player.Torso.Position
  46. p.TopSurface = 0
  47. p.BottomSurface = 0
  48. p.Locked = true
  49. p.CanCollide = true
  50. p.Anchored = false
  51. pm = Instance.new("SpecialMesh")
  52. pm.Name = "EagleMesh"
  53. pm.MeshId = "http://www.roblox.com/asset/?id=51226819"
  54. pm.TextureId = "http://www.roblox.com/asset/?id=51226825"
  55. pm.Scale = Vector3.new(eaglesize,eaglesize,eaglesize)
  56. pm.Parent = p
  57. mesh = pm
  58. p.Parent = player
  59. pw = Instance.new("Weld")
  60. pw.Parent = p
  61. pw.Part0 = player.Torso
  62. pw.Part1 = p
  63. pw.C0 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/1.65,0,0)
  64. b = Instance.new("Part")
  65. b.Name = "EagleHoldUp"
  66. b.formFactor = "Custom"
  67. b.Size = Vector3.new(0.5,0.5,0.5)
  68. b.Position = player.Torso.Position
  69. b.TopSurface = 0
  70. b.BottomSurface = 0
  71. b.Locked = true
  72. b.CanCollide = false
  73. b.Anchored = false
  74. bw = Instance.new("Weld")
  75. bw.Parent = b
  76. bw.Part0 = player.Torso
  77. bw.Part1 = b
  78. b.Parent = player
  79. bv.velocity = Vector3.new(0,0,0)
  80. bv.Parent = b
  81. bg.cframe = player.Torso.CFrame * CFrame.Angles(0,0,0)
  82. bg.Parent = b
  83. for i, v in pairs(player:children()) do
  84. if v.className == "Part" and v.Name ~= "Eagle" then
  85. v.Transparency = 1
  86. end
  87. if v.className == "Hat" then
  88. if v:findFirstChild("Handle") ~= nil then
  89. v.Handle.Transparency = 1
  90. end
  91. end
  92. if v.Name == "Head" then
  93. if v:findFirstChild("face") ~= nil then
  94. face = v.face
  95. face.Parent = nil
  96. end
  97. end
  98. end
  99. morphing = false
  100. morphed = true
  101. player.Humanoid.PlatformStand = true
  102. end
  103. function ShrinkMesh()
  104. for i = 1, eaglesize*10 do
  105. mesh.Scale = mesh.Scale + Vector3.new(-0.1,-0.1,-0.1)
  106. wait(0.065)
  107. end
  108. end
  109. function NormalMorph()
  110. morphing = true
  111. player = bin.Parent.Parent.Character
  112. s2 = Instance.new("Smoke")
  113. s2.Name = "Smokez"
  114. s2.Color = Color3.new(0,0.8,0.65)
  115. s2.RiseVelocity = 0.5
  116. s2.Size = 12
  117. s2.Opacity = 1
  118. s2.Parent = player.Torso
  119. coroutine.resume(coroutine.create(ShrinkMesh))
  120. wait(1.8)
  121. s2:remove()
  122. for i, v in pairs(player:children()) do
  123. if v.className == "Part" then
  124. v.Transparency = 0
  125. end
  126. if v.Name == "Eagle" or v.Name == "EagleHoldUp" and v.className == "Part" then
  127. v:remove()
  128. end
  129. if v.className == "Hat" then
  130. if v:findFirstChild("Handle") ~= nil then
  131. v.Handle.Transparency = 0
  132. end
  133. end
  134. if v.Name == "Head" then
  135. face.Parent = v
  136. end
  137. end
  138. morphing = false
  139. morphed = false
  140. player.Humanoid.PlatformStand = false
  141. end
  142.  
  143. function Del(E, T)
  144. wait(T)
  145. E:remove()
  146. end
  147.  
  148. function Streamer(ob)
  149. for i = 1, 12 do
  150. ob.Transparency = ob.Transparency + 0.05
  151. wait(0.01)
  152. end
  153. coroutine.resume(coroutine.create(Del), ob, 0)
  154. end
  155.  
  156. down = false
  157. function onButton1Down(mouse)
  158. down = true
  159. player = bin.Parent.Parent.Character
  160. while down == true do
  161. if morphed == true then
  162. player.Humanoid.PlatformStand = true
  163. bv.velocity = CFrame.new(player.Torso.Position, mouse.Hit.p).lookVector * speed
  164. bg.cframe = CFrame.new(player.Torso.Position, mouse.Hit.p) * CFrame.Angles(0,0,0)
  165. if EagleStreamer == true then
  166. if player:findFirstChild("Eagle") ~= nil then
  167. ea = player.Eagle:Clone()
  168. ea.Anchored = true
  169. ea.Name = "EagleEcho"
  170. ea.CanCollide = false
  171. ea.Locked = true
  172. ea.Parent = player
  173. ea.CFrame = player.Eagle.CFrame
  174. ea.Transparency = 0.4
  175. coroutine.resume(coroutine.create(Streamer), ea)
  176. end
  177. end
  178. end
  179. wait()
  180. end
  181. end
  182.  
  183. function onButton1Up(mouse)
  184. bv.velocity = CFrame.new(player.Torso.Position, mouse.Hit.p).lookVector * 4
  185. player = bin.Parent.Parent.Character
  186. down = false
  187. end
  188.  
  189. function KillRadius(ob, mag, helth)
  190. for i, v in pairs(workspace:children()) do
  191. if v.className == "Model" and v:findFirstChild("Humanoid") ~= nil and v:findFirstChild("Torso") ~= nil then
  192. if v.Name ~= bin.Parent.Parent.Character.Name then
  193. if (ob.Position - v.Torso.Position).magnitude < mag then
  194. v.Humanoid.Health = v.Humanoid.Health - helth
  195. end
  196. end
  197. end
  198. end
  199. end
  200. function Splat(ob, rad, dmg)
  201. ob.Touched:connect(function(hit)
  202. if hit.Parent.Name ~= bin.Parent.Parent.Character.Name then
  203. ob.CFrame = CFrame.new(ob.Position.x,ob.Position.y+hit.Size.y/2,ob.Position.z)
  204. ob.Anchored = true
  205. ob.Meshz.Scale = Vector3.new(1,0.15,1)
  206. coroutine.resume(coroutine.create(KillRadius), ob, rad, dmg)
  207. for i = 1, 12 do
  208. ob.Meshz.Scale = ob.Meshz.Scale + Vector3.new(0.42,0,0.42)
  209. ob.Transparency = ob.Transparency + 0.05
  210. wait()
  211. end
  212. ob:remove()
  213. end
  214. end)
  215. end
  216. function Poop()
  217. player = bin.Parent.Parent.Character
  218. if morphed == true then
  219. poo = Instance.new("Part")
  220. poo.Name = "Eagle Poop"
  221. poo.formFactor = "Symmetric"
  222. poo.Size = Vector3.new(2,2,2)
  223. poo.BrickColor = BrickColor.new("White")
  224. poo.Locked = true
  225. poo.CanCollide = true
  226. poo.Anchored = false
  227. poo.TopSurface = 0
  228. poo.BottomSurface = 0
  229. poo.Position = player.Eagle.Position + Vector3.new(0,-3.4,0)
  230. poom = Instance.new("CylinderMesh")
  231. poom.Name = "Meshz"
  232. poom.Parent = poo
  233. poom.Scale = Vector3.new(0.25,0.65,0.25)
  234. poov = Instance.new("BodyVelocity")
  235. poov.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  236. poov.velocity = Vector3.new(0,-75,0)
  237. poov.Parent = poo
  238. poo.Parent = player
  239. coroutine.resume(coroutine.create(Splat), poo, 4.4, 40)
  240. end
  241. end
  242.  
  243.  
  244. function Tranz(ob)
  245. for i = 1, 10 do
  246. ob.Scale = ob.Scale - Vector3.new(0.1,0,0.1)
  247. ob.Parent.Transparency = ob.Parent.Transparency + 0.05
  248. wait(0.025)
  249. end
  250. ob.Parent:remove()
  251. end
  252.  
  253. function Partz(col, sta, en)
  254. r = Instance.new("Part")
  255. r.Parent = bin.Parent.Parent.Character
  256. r.Name = "Ray Line"
  257. r.formFactor = "Custom"
  258. r.Size = Vector3.new(0.4,1,0.4)
  259. r.BrickColor = BrickColor.new(col)
  260. r.CanCollide = false
  261. r.Locked = false
  262. r.Anchored = true
  263. r.CFrame = CFrame.new((sta + en)/2, sta) * CFrame.Angles(math.pi/2,0,0)
  264. r.TopSurface = 0
  265. r.Reflectance = 0.1
  266. r.BottomSurface = 0
  267. rm = Instance.new("CylinderMesh")
  268. rm.Parent = r
  269. rm.Name = "LineMesh"
  270. rm.Scale = Vector3.new(1,((sta - en).magnitude)+0.2,1)
  271. coroutine.resume(coroutine.create(Tranz), rm)
  272. end
  273.  
  274. function Grow(ob, ob2, ob3)
  275. coroutine.resume(coroutine.create(KillRadius), ob.Parent, 6, 20)
  276. for i = 1, 10 do
  277. ob.Scale = ob.Scale + Vector3.new(3.5,3.5,3.5)
  278. ob.Parent.Transparency = ob.Parent.Transparency + 0.1
  279. ob2.Scale = ob2.Scale + Vector3.new(2.25,2.25,2.25)
  280. ob2.Parent.Transparency = ob2.Parent.Transparency + 0.07
  281. ob3.Scale = ob3.Scale + Vector3.new(1.5,1.5,1.5)
  282. ob3.Parent.Transparency = ob3.Parent.Transparency + 0.04
  283. wait(0.028)
  284. end
  285. ob.Parent:remove()
  286. ob2.Parent:remove()
  287. ob3.Parent:remove()
  288. end
  289. function Grow2(ob, ob2, ob3)
  290. coroutine.resume(coroutine.create(KillRadius), ob.Parent, 6, 70)
  291. for i = 1, 10 do
  292. ob.Scale = ob.Scale + Vector3.new(3.5,0,3.5)
  293. ob.Parent.Transparency = ob.Parent.Transparency + 0.1
  294. ob2.Scale = ob2.Scale + Vector3.new(2.25,0,2.25)
  295. ob2.Parent.Transparency = ob2.Parent.Transparency + 0.07
  296. ob3.Scale = ob3.Scale + Vector3.new(1.5,0,1.5)
  297. ob3.Parent.Transparency = ob3.Parent.Transparency + 0.04
  298. wait(0.028)
  299. end
  300. ob.Parent:remove()
  301. ob2.Parent:remove()
  302. ob3.Parent:remove()
  303. end
  304.  
  305. function EndShot(pos)
  306. se = Instance.new("Part")
  307. se.formFactor = "Symmetric"
  308. se.Size = Vector3.new(1,1,1)
  309. se.Locked = true
  310. se.Anchored = true
  311. se.CanCollide = false
  312. se.BrickColor = BrickColor.new("Really black")
  313. se.Reflectance = 0
  314. se.TopSurface = 0
  315. se.BottomSurface = 0
  316. se.CFrame = CFrame.new(pos)
  317. se.Parent = bin.Parent.Parent.Character
  318. se.Name = "Bewm1"
  319. sem = Instance.new("SpecialMesh")
  320. sem.Parent = se
  321. sem.MeshType = "Sphere"
  322. se2 = Instance.new("Part")
  323. se2.formFactor = "Symmetric"
  324. se2.Size = Vector3.new(1,1,1)
  325. se2.Locked = true
  326. se2.Anchored = true
  327. se2.CanCollide = false
  328. se2.BrickColor = BrickColor.new("Really black")
  329. se2.Reflectance = 0
  330. se2.TopSurface = 0
  331. se2.BottomSurface = 0
  332. se2.CFrame = CFrame.new(pos)
  333. se2.Parent = bin.Parent.Parent.Character
  334. se2.Name = "Bewm1"
  335. sem2 = Instance.new("SpecialMesh")
  336. sem2.Parent = se2
  337. sem2.MeshType = "Sphere"
  338. se3 = Instance.new("Part")
  339. se3.formFactor = "Symmetric"
  340. se3.Size = Vector3.new(1,1,1)
  341. se3.Locked = true
  342. se3.Anchored = true
  343. se3.CanCollide = false
  344. se3.BrickColor = BrickColor.new("Dark stone grey")
  345. se3.Reflectance = 0
  346. se3.TopSurface = 0
  347. se3.BottomSurface = 0
  348. se3.CFrame = CFrame.new(pos)
  349. se3.Parent = bin.Parent.Parent.Character
  350. se3.Name = "Bewm1"
  351. sem3 = Instance.new("SpecialMesh")
  352. sem3.Parent = se3
  353. sem3.MeshType = "Sphere"
  354. coroutine.resume(coroutine.create(Grow), sem, sem2, sem3)
  355. end
  356. function EndShot2(pos)
  357. se = Instance.new("Part")
  358. se.formFactor = "Symmetric"
  359. se.Size = Vector3.new(1,1,1)
  360. se.Locked = true
  361. se.Anchored = true
  362. se.CanCollide = false
  363. se.BrickColor = BrickColor.new("Really black")
  364. se.Reflectance = 0
  365. se.TopSurface = 0
  366. se.BottomSurface = 0
  367. se.CFrame = CFrame.new(pos)
  368. se.Parent = bin.Parent.Parent.Character
  369. se.Name = "Bewm1"
  370. sem = Instance.new("CylinderMesh")
  371. sem.Parent = se
  372. sem.Scale = Vector3.new(1,0.4,1)
  373. se2 = Instance.new("Part")
  374. se2.formFactor = "Symmetric"
  375. se2.Size = Vector3.new(1,1,1)
  376. se2.Locked = true
  377. se2.Anchored = true
  378. se2.CanCollide = false
  379. se2.BrickColor = BrickColor.new("Really black")
  380. se2.Reflectance = 0
  381. se2.TopSurface = 0
  382. se2.BottomSurface = 0
  383. se2.CFrame = CFrame.new(pos)
  384. se2.Parent = bin.Parent.Parent.Character
  385. se2.Name = "Bewm1"
  386. sem2 = Instance.new("CylinderMesh")
  387. sem2.Parent = se2
  388. sem2.Scale = Vector3.new(1,0.4,1)
  389. se3 = Instance.new("Part")
  390. se3.formFactor = "Symmetric"
  391. se3.Size = Vector3.new(1,1,1)
  392. se3.Locked = true
  393. se3.Anchored = true
  394. se3.CanCollide = false
  395. se3.BrickColor = BrickColor.new("Dark stone grey")
  396. se3.Reflectance = 0
  397. se3.TopSurface = 0
  398. se3.BottomSurface = 0
  399. se3.CFrame = CFrame.new(pos)
  400. se3.Parent = bin.Parent.Parent.Character
  401. se3.Name = "Bewm1"
  402. sem3 = Instance.new("CylinderMesh")
  403. sem3.Parent = se3
  404. sem3.Scale = Vector3.new(1,0.4,1)
  405. coroutine.resume(coroutine.create(Grow2), sem, sem2, sem3)
  406. end
  407.  
  408. function onKeyDown(key, mouse)
  409. if key ~= nil then
  410. key:lower()
  411. if key == "r" then
  412.  
  413. bin.Name = "Deselect = Remove"
  414. bin.Deselected:connect(function() wait() bin:remove() end)
  415. elseif key == "e" then
  416. if morphing == false then
  417. if morphed == false then
  418. coroutine.resume(coroutine.create(EagleMorph))
  419. elseif morphed == true then
  420. coroutine.resume(coroutine.create(NormalMorph))
  421. end
  422. end
  423. elseif key == "q" then
  424. coroutine.resume(coroutine.create(Poop))
  425. elseif key == "f" then
  426. dwn = true
  427. while dwn == true do
  428. if morphed == true then
  429. ray = Ray.new(bin.Parent.Parent.Character.Torso.Position, bin.Parent.Parent.Character.Torso.CFrame.lookVector*999)
  430. hit, enz = workspace:findPartOnRay(ray, bin.Parent.Parent.Character)
  431. Partz("Really red", bin.Parent.Parent.Character.Torso.Position, enz)
  432. coroutine.resume(coroutine.create(EndShot), enz)
  433. end
  434. wait(0.08)
  435. end
  436.  
  437. end
  438. end
  439. end
  440.  
  441. function DiveTuch(ob)
  442. enab = false
  443. ob.Touched:connect(function(hitz)
  444. if enab == false then
  445. enab = true
  446. coroutine.resume(coroutine.create(EndShot2), hitz.Position)
  447. ob:remove()
  448. end
  449. end)
  450. end
  451.  
  452. function DiveBomb()
  453. bo = Instance.new("Part")
  454. bo.formFactor = "Custom"
  455. bo.Size = Vector3.new(3,1.6,1.6)
  456. bo.Name = "DiveBomb"
  457. bo.Transparency = 1
  458. bo.Locked = true
  459. bo.CanCollide = false
  460. bo.BrickColor = BrickColor.new("Black")
  461. bo.Parent = bin.Parent.Parent.Character
  462. bo.TopSurface = 0
  463. bo.BottomSurface = 0
  464. w = Instance.new("Weld")
  465. w.Parent = bo
  466. w.Name = "Weld"
  467. w.Part0 = bin.Parent.Parent.Character.Torso
  468. w.Part1 = bo
  469. w.C0 = CFrame.new(0,0,-2.5)
  470. coroutine.resume(coroutine.create(DiveTuch), bo)
  471. end
  472.  
  473. dwnz = false
  474. function onKeyDownz(key)
  475. if key ~= nil then
  476. key:lower()
  477. if key == "v" then
  478. if morphed == true then
  479. dwnz = true
  480. speed = 120
  481. coroutine.resume(coroutine.create(DiveBomb))
  482. end
  483. elseif key == "c" then
  484. dwnz = true
  485. speed = 100
  486. end
  487. end
  488. end
  489.  
  490. function onKeyUp(key)
  491. if key ~= nil then
  492. key:lower()
  493. if key == "f" then
  494. dwn = false
  495. elseif key == "v" or key == "c" then
  496. dwnz = false
  497. speed = 50
  498. for i, v in pairs(bin.Parent.Parent.Character:children()) do
  499. if v.Name == "DiveBomb" then
  500. v:remove()
  501. end
  502. end
  503. end
  504. end
  505. end
  506.  
  507. bin.Selected:connect(function(mouse)
  508. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  509. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  510. mouse.Button1Up:connect(function() onButton1Up(mouse) end)
  511. mouse.KeyDown:connect(function(key) onKeyDown(key, mouse) end)
  512. mouse.KeyDown:connect(function(key) onKeyDownz(key, mouse) end)
  513. mouse.KeyUp:connect(function(key) onKeyUp(key) end)
  514. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement