EmeraldIT

sicret xD

Nov 18th, 2018
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.23 KB | None | 0 0
  1. function fly()
  2. local memedon = {}
  3. activu = true
  4. local emi = true
  5. local mp = Instance.new("Part")
  6. mp.Size = Vector3.new(0.2, 0.2, 0.2)
  7. mp.CanCollide = false
  8. mp.Transparency = 1
  9. mp.Parent = modz
  10. table.insert(memedon, mp)
  11. makeweld(mp, mp, tors, ang(rd(-30), rd(0), rd(0)) * CFrame.new(0, -0.5, -0.5), nil)
  12. local function pr(par, amt)
  13. local s = Instance.new("ParticleEmitter")
  14. s.Enabled = false
  15. s.LockedToPart = true
  16. s.Color = ColorSequence.new(Color3.new(0,255,0))
  17. s.LightEmission = 1
  18. s.Size = NumberSequence.new({
  19. NumberSequenceKeypoint.new(0, 0.3, 0),
  20. NumberSequenceKeypoint.new(0.8, 0.3, 0),
  21. NumberSequenceKeypoint.new(1, 0, 0)
  22. })
  23. s.Texture = "rbxassetid://31270182"
  24. s.Transparency = NumberSequence.new({
  25. NumberSequenceKeypoint.new(0, 0.7, 0),
  26. NumberSequenceKeypoint.new(0.89, 0.7, 0),
  27. NumberSequenceKeypoint.new(1, 1, 0)
  28. })
  29. s.Name = "vid"
  30. s.Lifetime = NumberRange.new(0.75)
  31. s.Rate = 1
  32. s.Speed = NumberRange.new(10, 15)
  33. s.VelocitySpread = 3
  34. s.Parent = par
  35. coroutine.resume(coroutine.create(function()
  36. while emi do
  37. swait()
  38. s:Emit(amt)
  39. end
  40. end))
  41. return s
  42. end
  43. for _, d in ipairs(chr:GetChildren()) do
  44. if d.ClassName == "Accessory" then
  45. glow(hrp, d:FindFirstChildOfClass("Part"):FindFirstChild("Glow"), 1.5)
  46. elseif d.ClassName == "Part" and d ~= hrp then
  47. glow(hrp, d:FindFirstChild("Glow"), 1.5)
  48. end
  49. end
  50. local f1 = makepart("Lime green", "w1", 1, "Neon", modz, hrp.CFrame)
  51. f1.Size = Vector3.new(0.4, 0.4, 0.4)
  52. local p1 = pr(f1, 12)
  53. p1.Acceleration = Vector3.new(-15, 0, 15)
  54. local w1 = makeweld(f1, f1, mp, CFrame.Angles(rd(-5), rd(10), rd(-50)) * CFrame.new(0.25, 0, 0), nil)
  55. local f2 = makepart("Teal", "w2", 1, "Neon", modz, hrp.CFrame)
  56. f2.Size = Vector3.new(0.4, 0.4, 0.4)
  57. local p2 = pr(f2, 12)
  58. p2.Acceleration = Vector3.new(15, 0, 15)
  59. local w2 = makeweld(f2, f2, mp, CFrame.Angles(rd(-5), rd(-10), rd(50)) * CFrame.new(-0.25, 0, 0), nil)
  60. local f3 = makepart("Teal", "w3", 1, "Neon", modz, hrp.CFrame)
  61. f3.Size = Vector3.new(1.3, 0.6, 0.6)
  62. p3 = pr(f3, 4)
  63. p3.Speed = NumberRange.new(10, 12)
  64. local w3 = makeweld(f3, f3, mp, CFrame.Angles(rd(-40), rd(10), rd(-145)) * CFrame.new(2, -1, -0.5), nil)
  65. local f4 = makepart("Teal", "w4", 1, "Neon", modz, hrp.CFrame)
  66. f4.Size = Vector3.new(1.3, 0.6, 0.6)
  67. p4 = pr(f4, 4)
  68. p4.Speed = NumberRange.new(10, 12)
  69. local w4 = makeweld(f4, f4, mp, CFrame.Angles(rd(-40), rd(-10), rd(145)) * CFrame.new(-2, -1, -0.5), nil)
  70. local f5 = makepart("Teal", "w5", 1, "Neon", modz, hrp.CFrame)
  71. f5.Size = Vector3.new(1.3, 0.6, 0.6)
  72. p5 = pr(f5, 4)
  73. p5.Speed = NumberRange.new(10, 12)
  74. local w5 = makeweld(f5, f5, mp, CFrame.Angles(rd(-30), rd(-10), rd(-115)) * CFrame.new(3, -1.75, -1), nil)
  75. local f6 = makepart("Teal", "w6", 1, "Neon", modz, hrp.CFrame)
  76. f6.Size = Vector3.new(1.3, 0.6, 0.6)
  77. p6 = pr(f6, 4)
  78. p6.Speed = NumberRange.new(10, 12)
  79. local w6 = makeweld(f6, f6, mp, CFrame.Angles(rd(-30), rd(10), rd(115)) * CFrame.new(-3, -1.75, -1), nil)
  80. local f7 = makepart("Teal", "w7", 1, "Neon", modz, hrp.CFrame)
  81. f7.Size = Vector3.new(1.9, 0.6, 0.6)
  82. p7 = pr(f7, 6)
  83. p7.Speed = NumberRange.new(10, 12)
  84. local w7 = makeweld(f7, f7, mp, CFrame.Angles(rd(-40), rd(-5), rd(-140)) * CFrame.new(2.5, -1.65, -0.65), nil)
  85. local f8 = makepart("Teal", "w8", 1, "Neon", modz, hrp.CFrame)
  86. f8.Size = Vector3.new(1.9, 0.6, 0.6)
  87. p8 = pr(f8, 6)
  88. p8.Speed = NumberRange.new(10, 12)
  89. local w8 = makeweld(f8, f8, mp, CFrame.Angles(rd(-40), rd(5), rd(140)) * CFrame.new(-2.5, -1.65, -0.65), nil)
  90. t1 = pr(f1, 2)
  91. t1.LockedToPart = false
  92. t2 = pr(f2, 2)
  93. t2.LockedToPart = false
  94. t3 = pr(f3, 2)
  95. t3.LockedToPart = false
  96. t4 = pr(f4, 2)
  97. t4.LockedToPart = false
  98. t5 = pr(f5, 2)
  99. t5.LockedToPart = false
  100. t6 = pr(f6, 2)
  101. t6.LockedToPart = false
  102. t7 = pr(f7, 2)
  103. t7.LockedToPart = false
  104. t8 = pr(f8, 2)
  105. t8.LockedToPart = false
  106. table.insert(memedon, f1)
  107. table.insert(memedon, f2)
  108. table.insert(memedon, f3)
  109. table.insert(memedon, f4)
  110. table.insert(memedon, f5)
  111. table.insert(memedon, f6)
  112. table.insert(memedon, f7)
  113. table.insert(memedon, f8)
  114. local sd = Instance.new("Sound")
  115. sd.Volume = 1.5
  116. sd.Pitch = rd2(10, 12) / 10
  117. sd.SoundId = "rbxassetid://201858072"
  118. sd.Parent = hrp
  119. sd:Play()
  120. game.Debris:AddItem(sd, 1)
  121. human.PlatformStand = true
  122. local bg = Instance.new("BodyGyro")
  123. bg.MaxTorque = Vector3.new(15000, 15000, 15000)
  124. bg.P = 2500
  125. bg.D = 100
  126. bg.CFrame = CFrame.new(hrp.Position, mouse.Hit.p)
  127. bg.Parent = hrp
  128. local bf = Instance.new("BodyVelocity")
  129. bf.MaxForce = Vector3.new(15000, 15000, 15000)
  130. bf.P = 2500
  131. bf.Velocity = mouse.Hit.p - hrp.Position.unit * 200
  132. bf.Parent = hrp
  133. for d = 1, 100 do
  134. swait()
  135. bg.CFrame = CFrame.new(hrp.Position, mouse.Hit.p)
  136. bf.Velocity = mouse.Hit.p - hrp.Position.unit * (200 - d * 2)
  137. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(80), rd(0), math.sin(-hrp.RotVelocity.Y / 5)), 0.4)
  138. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-70), rd(0), rd(0)), 0.4)
  139. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  140. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  141. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  142. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  143. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  144. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  145. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  146. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  147. end
  148. bf:Destroy()
  149. bg:Destroy()
  150. human.PlatformStand = false
  151. emi = false
  152. p1.LockedToPart = false
  153. p2.LockedToPart = false
  154. p3.LockedToPart = false
  155. p4.LockedToPart = false
  156. p5.LockedToPart = false
  157. p6.LockedToPart = false
  158. p7.LockedToPart = false
  159. p8.LockedToPart = false
  160. for _ = 1, 10 do
  161. swait()
  162. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  163. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  164. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  165. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  166. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  167. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  168. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  169. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  170. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  171. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  172. end
  173. delay(0.5, function()
  174. for _, l in ipairs(memedon) do
  175. l:Destroy()
  176. end
  177. end)
  178. resetlerp()
  179. activu = false
  180. end
Add Comment
Please, Sign In to add comment