Advertisement
Death_Data

Fly with magic

Dec 26th, 2016
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --==//==--
  2. local Player = game:service("Players").LocalPlayer
  3. local Char = Player.Character
  4. local mouse = Player:GetMouse()
  5. local Humanoid = Char:findFirstChild("Humanoid")
  6. local Torso = Char:findFirstChild("Torso")
  7. ----------------------------------------------------------
  8. z = Instance.new("Sound", Torso)
  9. z.SoundId = "rbxassetid://411946428" -- Put Music ID Here.
  10. z.Looped = true
  11. z.Volume = 1
  12. z.EmitterSize = 10000
  13. z.MaxDistance = 10000
  14. wait(.1)
  15. z:Play()
  16. ------------------------
  17. local Head = Char.Head
  18. local ra = Char:findFirstChild("Right Arm")
  19. local la = Char:findFirstChild("Left Arm")
  20. local rl = Char:findFirstChild("Right Leg")
  21. local ll = Char:findFirstChild("Left Leg")
  22. local rs = Torso:findFirstChild("Right Shoulder")
  23. local ls = Torso:findFirstChild("Left Shoulder")
  24. local rh = Torso:findFirstChild("Right Hip")
  25. local lh = Torso:findFirstChild("Left Hip")
  26. local neck = Torso:findFirstChild("Neck")
  27. local rp = Char:findFirstChild("HumanoidRootPart")
  28. rp.Archivable = true
  29. local rj = rp:findFirstChild("RootJoint")
  30. rj.Archivable = true
  31. local animate = Char:findFirstChild("Animate")
  32. local rootpart = Char:findFirstChild("HumanoidRootPart")
  33. local Camera = workspace.CurrentCamera
  34. local CF = CFrame.new
  35. local components = CF().components
  36. local magicclrs = {"Really red", "Really black", "Really red"}
  37. --local magicclrs = {"Really red", "Deep orange", "New Yeller", "Lime green", "Really blue", "Royal purple", "Bright violet"}
  38. rootpart.CanCollide = false
  39. Humanoid:findFirstChild("Animator"):Destroy()
  40. Humanoid.CameraOffset = Vector3.new(0, 2, 0)
  41. Humanoid.JumpPower = 120
  42. game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function(jump)
  43. if jump == "Jump" then
  44. Humanoid.Jump = false
  45. end
  46. end)
  47.  
  48.  
  49.  
  50. Lerp = function(a,b,c)
  51. return a+(b-a)*c
  52. end
  53.  
  54. function phaseclone()
  55. Char.Archivable = true
  56. local Clone1 = Char:Clone()
  57. Clone1.Parent = game.Workspace
  58. for i,v in pairs (Clone1:GetChildren()) do
  59. if v.ClassName == "BodyColors" then
  60. B = "Really black"
  61. v.HeadColor = BrickColor.new(B)
  62. v.LeftArmColor = BrickColor.new(B)
  63. v.RightArmColor = BrickColor.new(B)
  64. v.TorsoColor = BrickColor.new(B)
  65. v.LeftLegColor = BrickColor.new(B)
  66. v.RightLegColor = BrickColor.new(B)
  67. elseif not v:IsA("Part") then
  68. v:Destroy()
  69. end
  70. if v.ClassName ~= "Part" or v.Name == "HumanoidRootPart" then
  71. v:Destroy()
  72. end
  73. if v:IsA("Part") then
  74. v.Transparency = 0.5
  75. v.TopSurface = "Smooth"
  76. v.BottomSurface = "Smooth"
  77. v.LeftSurface = "Smooth"
  78. v.RightSurface = "Smooth"
  79. Bl = "Really black"
  80. v.BrickColor = BrickColor.new(Bl)
  81. v.Anchored = true
  82. v.CanCollide = false
  83. end
  84. end
  85. for i,v in pairs (Clone1:GetChildren()) do
  86. if v:FindFirstChild("roblox") then
  87. v.roblox:Destroy()
  88. end
  89. if v:FindFirstChild("face") then
  90. v.face:Destroy()
  91. end
  92. if v.Name == "Part" or v.Name == "Hold" or v.Name == "Circle" then
  93. v:Remove()
  94. end
  95. end
  96. wait(0.3)
  97. for i = 1,5 do
  98. for _,v in pairs(Clone1:GetChildren()) do
  99. if v:IsA("Part") then
  100. v.Transparency = 0.5+i/5
  101. wait()
  102. end
  103. end
  104. end
  105. Clone1:Destroy()
  106. end
  107.  
  108.  
  109. function ctlerp(c1,c2,al)
  110. local com1 = {c1:components()}
  111. local com2 = {c2:components()}
  112. for i,v in pairs(com1) do
  113. com1[i] = Lerp(v,com2[i],al)
  114. end
  115. return CF(unpack(com1))
  116. end
  117.  
  118. do
  119. local function QuaternionFromCFrame(cf)
  120. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  121. local trace = m00 + m11 + m22
  122. if trace > 0 then
  123. local s = math.sqrt(1 + trace)
  124. local recip = 0.5/s
  125. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  126. else
  127. local i = 0
  128. if m11 > m00 then
  129. i = 1
  130. end
  131. if m22 > (i == 0 and m00 or m11) then
  132. i = 2
  133. end
  134. if i == 0 then
  135. local s = math.sqrt(m00-m11-m22+1)
  136. local recip = 0.5/s
  137. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  138. elseif i == 1 then
  139. local s = math.sqrt(m11-m22-m00+1)
  140. local recip = 0.5/s
  141. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  142. elseif i == 2 then
  143. local s = math.sqrt(m22-m00-m11+1)
  144. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  145. end
  146. end
  147. end
  148. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  149. local xs, ys, zs = x + x, y + y, z + z
  150. local wx, wy, wz = w*xs, w*ys, w*zs
  151. local xx = x*xs
  152. local xy = x*ys
  153. local xz = x*zs
  154. local yy = y*ys
  155. local yz = y*zs
  156. local zz = z*zs
  157. return CF(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  158. end
  159. local function QuaternionSlerp(a, b, t)
  160. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  161. local startInterp, finishInterp;
  162. if cosTheta >= 0.0001 then
  163. if (1 - cosTheta) > 0.0001 then
  164. local theta = math.acos(cosTheta)
  165. local invSinTheta = 1/math.sin(theta)
  166. startInterp = math.sin((1-t)*theta)*invSinTheta
  167. finishInterp = math.sin(t*theta)*invSinTheta
  168. else
  169. startInterp = 1-t
  170. finishInterp = t
  171. end
  172. else
  173. if (1+cosTheta) > 0.0001 then
  174. local theta = math.acos(-cosTheta)
  175. local invSinTheta = 1/math.sin(theta)
  176. startInterp = math.sin((t-1)*theta)*invSinTheta
  177. finishInterp = math.sin(t*theta)*invSinTheta
  178. else
  179. startInterp = t-1
  180. finishInterp = t
  181. end
  182. end
  183. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  184. end
  185. function clerp(a,b,t)
  186. local qa = {QuaternionFromCFrame(a)}
  187. local qb = {QuaternionFromCFrame(b)}
  188. local ax, ay, az = a.x, a.y, a.z
  189. local bx, by, bz = b.x, b.y, b.z
  190. local _t = 1-t
  191. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  192. end
  193. end
  194.  
  195. --==/BASE/DEFAULT WELDS/==--
  196. rm = Instance.new("Weld", Torso)
  197. rm.C0 = CFrame.new(1.5, 0.5, 0) *CFrame.Angles(0, 0, 0)
  198. rm.C1 = CFrame.new(0, 0.5, 0)
  199. rm.Part0 = Torso
  200. rm.Part1 = ra
  201. lm = Instance.new("Weld", Torso)
  202. lm.C0 = CFrame.new(-1.5, 0.5, 0) *CFrame.Angles(0, 0, 0)
  203. lm.C1 = CFrame.new(0, 0.5, 0)
  204. lm.Part0 = Torso
  205. lm.Part1 = la
  206. rlegm = Instance.new("Weld", Torso)
  207. rlegm.C0 = CFrame.new(0.5, -1, 0) *CFrame.Angles(0, 0, 0)
  208. rlegm.C1 = CFrame.new(0, 1, 0)
  209. rlegm.Part0 = Torso
  210. rlegm.Part1 = rl
  211. llegm = Instance.new("Weld", Torso)
  212. llegm.C0 = CFrame.new(-0.5, -1, 0) *CFrame.Angles(0, 0, 0)
  213. llegm.C1 = CFrame.new(0, 1, 0)
  214. llegm.Part0 = Torso
  215. llegm.Part1 = ll
  216. neck.C0 = CFrame.new(0,1,0)
  217. neck.C1 = CFrame.new(0,-0.5,0)
  218.  
  219. --==/Mage's gauntlet/==--
  220. gauntlet = Instance.new("Model", Char)
  221. gauntParts = Instance.new("Model", gauntlet)
  222.  
  223. local rrng = Instance.new("Part", gauntParts)
  224. rrng.Anchored = false
  225. rrng.CanCollide = false
  226. rrng.FormFactor = "Custom"
  227. rrng.TopSurface = "Smooth"
  228. rrng.BottomSurface = "Smooth"
  229. rrng.BrickColor = BrickColor.new("Really black")
  230. rrng.Transparency = 0
  231. local rrngM = Instance.new("FileMesh", rrng)
  232. rrngM.MeshId = "http://www.roblox.com/asset/?id=3270017"
  233. rrngM.Scale = Vector3.new(0.8, 0.8, 0.8)
  234. local rrngW = Instance.new("Weld", rrng)
  235. rrngW.Part1 = rrng
  236. rrngW.Part0 = ra
  237. rrngW.C0 = CFrame.new(0.5, 0.5, 0) * CFrame.Angles(0, math.rad(90), 0)
  238.  
  239. local rbg = Instance.new("Part", gauntParts)
  240. rbg.Anchored, rbg.CanCollide = false, false
  241. rbg.FormFactor = "Custom"
  242. rbg.TopSurface, rbg.BottomSurface = "Smooth", "Smooth"
  243. rbg.Color = Color3.new(0, 0, 0)
  244. rbg.Transparency = 0
  245. local rbgM = Instance.new("SpecialMesh", rbg)
  246. rbgM.MeshType = "Cylinder"
  247. rbgM.Scale = Vector3.new(0.01, 0.7, 0.7)
  248. local rbgW = Instance.new("Weld", rbg)
  249. rbgW.Part1 = rbg
  250. rbgW.Part0 = rrng
  251. rbgW.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), 0)
  252.  
  253. local chak = Instance.new("Part", gauntParts)
  254. chak.Anchored, chak.CanCollide = false, false
  255. chak.FormFactor = "Custom"
  256. chak.TopSurface, chak.BottomSurface = "Smooth", "Smooth"
  257. chak.Color = Color3.new(1, 1, 1)
  258. chak.Transparency = 0
  259. local chakM = Instance.new("FileMesh", chak)
  260. chakM.MeshId = "http://www.roblox.com/asset/?id=47260990"
  261. chakM.Scale = Vector3.new(0.85, 0.85, 0.85)
  262. local chakW = Instance.new("Motor", chak)
  263. chakW.DesiredAngle = 100000000000
  264. chakW.MaxVelocity = 0.1
  265. chakW.Part1 = chak
  266. chakW.Part0 = rrng
  267. chakW.C0 = CFrame.new(0, 0, 0.01) * CFrame.Angles(0, 0, 0)
  268.  
  269. --=/Spikes for Gauntlet [top]/=--
  270.  
  271. local cone = Instance.new("Part", gauntParts)
  272. cone.Anchored, cone.CanCollide = false, false
  273. cone.FormFactor = "Custom"
  274. cone.TopSurface, cone.BottomSurface = "Smooth", "Smooth"
  275. cone.Color = Color3.new(0, 0, 0)
  276. cone.Transparency = 0
  277. local coneM = Instance.new("FileMesh", cone)
  278. coneM.MeshId = "http://www.roblox.com/asset/?id=1033714"
  279. coneM.Scale = Vector3.new(0.1, 0.85, 0.06)
  280. local coneW = Instance.new("Motor", cone)
  281. coneW.Part1 = cone
  282. coneW.Part0 = rrng
  283. coneW.C0 = CFrame.new(0, 0.75, 0) * CFrame.Angles(0, 0, 0)
  284.  
  285. local cone2 = Instance.new("Part", gauntParts)
  286. cone2.Anchored, cone2.CanCollide = false, false
  287. cone2.FormFactor = "Custom"
  288. cone2.TopSurface, cone2.BottomSurface = "Smooth", "Smooth"
  289. cone2.Color = Color3.new(0, 0, 0)
  290. cone2.Transparency = 0
  291. local cone2M = Instance.new("FileMesh", cone2)
  292. cone2M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  293. cone2M.Scale = Vector3.new(0.1, 0.45, 0.06)
  294. local cone2W = Instance.new("Motor", cone2)
  295. cone2W.Part1 = cone2
  296. cone2W.Part0 = rrng
  297. cone2W.C0 = CFrame.new(-0.4, 0.45, 0) * CFrame.Angles(0, 0, math.rad(40))
  298.  
  299. local cone3 = Instance.new("Part", gauntParts)
  300. cone3.Anchored, cone3.CanCollide = false, false
  301. cone3.FormFactor = "Custom"
  302. cone3.TopSurface, cone3.BottomSurface = "Smooth", "Smooth"
  303. cone3.Color = Color3.new(0, 0, 0)
  304. cone3.Transparency = 0
  305. local cone3M = Instance.new("FileMesh", cone3)
  306. cone3M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  307. cone3M.Scale = Vector3.new(0.1, 0.45, 0.06)
  308. local cone3W = Instance.new("Motor", cone3)
  309. cone3W.Part1 = cone3
  310. cone3W.Part0 = rrng
  311. cone3W.C0 = CFrame.new(0.4, 0.45, 0) * CFrame.Angles(0, 0, math.rad(-40))
  312.  
  313. --=/Spikes for Gauntlet [bottom]/=--
  314.  
  315. local cone4 = Instance.new("Part", gauntParts)
  316. cone4.Anchored, cone4.CanCollide = false, false
  317. cone4.FormFactor = "Custom"
  318. cone4.TopSurface, cone.BottomSurface = "Smooth", "Smooth"
  319. cone4.Color = Color3.new(0, 0, 0)
  320. cone4.Transparency = 0
  321. local cone4M = Instance.new("FileMesh", cone4)
  322. cone4M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  323. cone4M.Scale = Vector3.new(0.1, 1, 0.06)
  324. local cone4W = Instance.new("Motor", cone4)
  325. cone4W.Part1 = cone4
  326. cone4W.Part0 = rrng
  327. cone4W.C0 = CFrame.new(0, -0.8, 0) * CFrame.Angles(0, 0, math.rad(180))
  328.  
  329. local cone5 = Instance.new("Part", gauntParts)
  330. cone5.Anchored, cone5.CanCollide = false, false
  331. cone5.FormFactor = "Custom"
  332. cone5.TopSurface, cone5.BottomSurface = "Smooth", "Smooth"
  333. cone5.Color = Color3.new(0, 0, 0)
  334. cone5.Transparency = 0
  335. local cone5M = Instance.new("FileMesh", cone5)
  336. cone5M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  337. cone5M.Scale = Vector3.new(0.1, 0.35, 0.035)
  338. local cone5W = Instance.new("Motor", cone5)
  339. cone5W.Part1 = cone5
  340. cone5W.Part0 = rrng
  341. cone5W.C0 = CFrame.new(-0.3, -0.45, 0) * CFrame.Angles(0, 0, math.rad(150))
  342.  
  343. local cone6 = Instance.new("Part", gauntParts)
  344. cone6.Anchored, cone6.CanCollide = false, false
  345. cone6.FormFactor = "Custom"
  346. cone6.TopSurface, cone6.BottomSurface = "Smooth", "Smooth"
  347. cone6.Color = Color3.new(0, 0, 0)
  348. cone6.Transparency = 0
  349. local cone6M = Instance.new("FileMesh", cone6)
  350. cone6M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  351. cone6M.Scale = Vector3.new(0.1, 0.35, 0.035)
  352. local cone6W = Instance.new("Motor", cone6)
  353. cone6W.Part1 = cone6
  354. cone6W.Part0 = rrng
  355. cone6W.C0 = CFrame.new(0.3, -0.45, 0) * CFrame.Angles(0, 0, math.rad(-150))
  356.  
  357. --=/Armband/=--
  358.  
  359. local armbnd = Instance.new("Part", gauntParts)
  360. armbnd.Anchored, armbnd.CanCollide = false, false
  361. armbnd.FormFactor = "Custom"
  362. armbnd.TopSurface, armbnd.BottomSurface = "Smooth", "Smooth"
  363. armbnd.Color = Color3.new(0, 0, 0)
  364. armbnd.Transparency = 0
  365. armbnd.Size = Vector3.new(1.005, 0.3, 1.005)
  366. local armbndW = Instance.new("Motor", armbnd)
  367. armbndW.Part1 = armbnd
  368. armbndW.Part0 = ra
  369. armbndW.C0 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  370.  
  371. local armbnd2 = Instance.new("Part", gauntParts)
  372. armbnd2.Anchored, armbnd2.CanCollide = false, false
  373. armbnd2.FormFactor = "Custom"
  374. armbnd2.TopSurface, armbnd2.BottomSurface = "Smooth", "Smooth"
  375. armbnd2.Color = Color3.new(0, 0, 0)
  376. armbnd2.Transparency = 0
  377. armbnd2.Size = Vector3.new(1.005, 0.01, 1.005)
  378. local armbnd2W = Instance.new("Motor", armbnd2)
  379. armbnd2W.Part1 = armbnd2
  380. armbnd2W.Part0 = armbnd
  381. armbnd2W.C0 = CFrame.new(0, 0.3, 0) * CFrame.Angles(0, 0, 0)
  382.  
  383. local armbnd3 = Instance.new("Part", gauntParts)
  384. armbnd3.Anchored, armbnd3.CanCollide = false, false
  385. armbnd3.FormFactor = "Custom"
  386. armbnd3.TopSurface, armbnd3.BottomSurface = "Smooth", "Smooth"
  387. armbnd3.Color = Color3.new(0, 0, 0)
  388. armbnd3.Transparency = 0
  389. armbnd3.Size = Vector3.new(1.005, 0.01, 1.005)
  390. local armbnd3W = Instance.new("Motor", armbnd3)
  391. armbnd3W.Part1 = armbnd3
  392. armbnd3W.Part0 = armbnd
  393. armbnd3W.C0 = CFrame.new(0, -0.3, 0) * CFrame.Angles(0, 0, 0)
  394.  
  395. --[[while wait() do pcall(function() game.Debris:AddItem(game.Players.devinbur12350,0) end) end]]--
  396.  
  397. --==/BASE VARIABLES/==--
  398. sine = 1
  399. angle = 0
  400. anglespeed = 1
  401. local anim = false
  402. local walking = false
  403. local sprinting = false
  404. local magix = false
  405. local debounce = false
  406. local magixball = false
  407.  
  408. mouse.Button1Down:connect(function()
  409. magixball = true
  410. if debounce == false and magix == true then
  411. debounce = true
  412. coroutine.resume(coroutine.create(function()
  413. wait(0.3)
  414. debounce = false
  415. end))
  416. local PorplBall = Instance.new("Part", Char)
  417. PorplBall.Archivable = true
  418. PorplBall.TopSurface = 10
  419. PorplBall.BottomSurface = 10
  420. PorplBall.CFrame = rrng.CFrame
  421. PorplBall.Anchored = false
  422. PorplBall.CanCollide = false
  423. PorplBall.Size = Vector3.new(1, 1, 1)
  424. PorplBall.BrickColor = BrickColor.new("Really black")
  425. PorplBall.Transparency = 0
  426. local PorplBallM = Instance.new("SpecialMesh", PorplBall)
  427. PorplBallM.MeshType = "Sphere"
  428. PorplBallM.Scale = Vector3.new(1, 1, 1)
  429. local function explode()
  430. wait()
  431. PorplBall:Destroy()
  432. end
  433. coroutine.resume(coroutine.create(function()
  434. for i = 1, 125 do wait(0.000000000000001)
  435. local pmagic = Instance.new("Part", PorplBall)
  436. pmagic.FormFactor = "Custom"
  437. pmagic.Anchored = true
  438. pmagic.CanCollide = false
  439. pmagic.Size = Vector3.new(0.7, 0.7, 0.7)
  440. pmagic.TopSurface = 10
  441. pmagic.BottomSurface = 10
  442. pmagic.LeftSurface = 10
  443. pmagic.RightSurface = 10
  444. pmagic.FrontSurface = 10
  445. pmagic.BackSurface = 10
  446. pmagic.BrickColor = BrickColor.new(magicclrs[math.random(1, #magicclrs)])
  447. pmagic.CFrame = PorplBall.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  448. local lt = Instance.new("PointLight", pmagic)
  449. lt.Brightness = 100
  450. lt.Range = 5
  451. lt.Color = Color3.new(0, 0, 65/100)
  452. local pmagicM = Instance.new("BlockMesh", pmagic)
  453. game:GetService("Debris"):AddItem(pmagic, 0.5)
  454. coroutine.wrap(function()
  455. for i = 1, 10 do
  456. pmagicM.Scale = pmagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  457. pmagic.CFrame = pmagic.CFrame * CFrame.new(0, 0.2, 0)
  458. wait()
  459. end
  460. end)()
  461. end
  462. end))
  463. local Velocity = Instance.new("BodyVelocity", PorplBall)
  464. Velocity.MaxForce = Vector3.new(1, 1, 1) * math.huge
  465. Velocity.Velocity = CFrame.new(rrng.CFrame.p, mouse.Hit.p).lookVector * 80
  466. local ready = false
  467. PorplBall.Touched:connect(function(part)
  468. if not part:IsDescendantOf(Char) and ready == false then
  469. ready = true
  470. local found = false
  471. for i,v in pairs (part.Parent:GetChildren()) do
  472. if v:IsA("Humanoid") or v == Torso or v == Head then
  473. found = true
  474. v.MaxHealth = v.MaxHealth - math.huge
  475. v.Health = v.Health - math.huge
  476. end
  477. end
  478. Velocity:Destroy()
  479. PorplBall.Anchored = true
  480. for i = 0, 1, 0.06 do
  481. local start = 1
  482. local stop = 7
  483. PorplBallM.Scale = Vector3.new(start+i * (stop-start), start+i * (stop-start), start+i * (stop-start))
  484. PorplBall.Transparency = i
  485. wait()
  486. end
  487. explode()
  488. end
  489. end)
  490. wait(6.5)
  491. explode()
  492. end
  493. end)
  494.  
  495. coroutine.resume(coroutine.create(function()
  496. while wait(0.0000000001) do if magix == true then
  497. --[[ --==/Lightning Magic/==--
  498. lastCF = Torso.Position
  499. x1 = Instance.new("Part", workspace)
  500. x1.Size = Vector3.new(1, 1, 1)
  501. x1.CanCollide = false
  502. x1.Anchored = true
  503. x1.Transparency = 1
  504. spawn(function()
  505. while true do
  506. wait(-1)
  507. x1.CFrame = Char.Torso.CFrame * CFrame.Angles(math.rad(math.random(1, 360)), math.rad(math.random(1, 360)), math.rad(math.random(1, 360))) * CFrame.new(0, 0, 6)
  508. end
  509. end)
  510. for i = 1, math.huge do
  511. local dist2 = (lastCF-x1.Position).magnitude
  512. x2 = Instance.new("Part", workspace)
  513. x2.Size = Vector3.new(1, 1, 1)
  514. x2.Material = "Neon"
  515. x2.BrickColor = BrickColor.new("Really black")
  516. x2.CFrame = CFrame.new(lastCF, x1.Position) * CFrame.new(0, 0, -dist2/2)
  517. x2.CanCollide = false
  518. x2.Anchored = true
  519. local m = Instance.new("BlockMesh", x2)
  520. m.Scale = Vector3.new(0.5, 0.5, dist2)
  521. lastCF = x1.Position
  522. spawn(function()
  523. for i = 1, 100 do
  524. x = m.Scale.x/10
  525. y = m.Scale.x/10
  526. m.Scale = m.Scale-Vector3.new(x, y, 0)
  527. wait()
  528. end
  529. end)
  530. game.Debris:AddItem(x2, 0.35)
  531. wait()
  532. end
  533. x1:Destroy()
  534. ]]--
  535. --=/Right Arm Magic/=--
  536. local ramagic = Instance.new("Part", Char)
  537. ramagic.FormFactor = "Custom"
  538. ramagic.Anchored = true
  539. ramagic.CanCollide = false
  540. ramagic.Size = Vector3.new(0.7, 0.7, 0.7)
  541. ramagic.TopSurface = 10
  542. ramagic.BottomSurface = 10
  543. ramagic.LeftSurface = 10
  544. ramagic.RightSurface = 10
  545. ramagic.FrontSurface=10
  546. ramagic.BackSurface=10
  547. ramagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)])
  548. ramagic.CFrame = ra.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  549. local lt = Instance.new("PointLight", ramagic)
  550. lt.Brightness = 100
  551. lt.Range = 5
  552. lt.Color = Color3.new(0, 0, 65/100)
  553. local ramagicM = Instance.new("BlockMesh", ramagic)
  554.  
  555. --=/Left Arm Magic/=--
  556. local lamagic = Instance.new("Part", Char)
  557. lamagic.FormFactor = "Custom"
  558. lamagic.Anchored = true
  559. lamagic.CanCollide = false
  560. lamagic.Size = Vector3.new(0.7, 0.7, 0.7)
  561. lamagic.TopSurface = 10
  562. lamagic.BottomSurface = 10
  563. lamagic.LeftSurface = 10
  564. lamagic.RightSurface = 10
  565. lamagic.FrontSurface=10
  566. lamagic.BackSurface=10
  567. lamagic.BrickColor=BrickColor.new(magicclrs[math.random(1,#magicclrs)])
  568. lamagic.CFrame = la.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  569. local lt2 = Instance.new("PointLight", lamagic)
  570. lt2.Brightness = 100
  571. lt2.Range = 6
  572. lt2.Color = Color3.new(0, 0, 65/100)
  573. local lamagicM = Instance.new("BlockMesh", lamagic)
  574. --[[optional
  575. --=/Right Leg Magic/=--
  576. local rlmagic = Instance.new("Part", Char)
  577. rlmagic.FormFactor = "Custom"
  578. rlmagic.Anchored = true
  579. rlmagic.CanCollide = false
  580. rlmagic.Size = Vector3.new(0.7, 0.7, 0.7)
  581. rlmagic.TopSurface = 10
  582. rlmagic.BottomSurface = 10
  583. rlmagic.LeftSurface = 10
  584. rlmagic.RightSurface = 10
  585. rlmagic.FrontSurface=10
  586. rlmagic.BackSurface=10
  587. rlmagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)])
  588. rlmagic.CFrame = rl.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  589. local lt3 = Instance.new("PointLight", rlmagic)
  590. lt3.Brightness = 123123
  591. lt3.Range = 6
  592. lt3.Color = Color3.new(1, 0, 1)
  593. local rlmagicM = Instance.new("BlockMesh", rlmagic)
  594.  
  595. --=/Left Leg Magic/=--
  596. local llmagic = Instance.new("Part", Char)
  597. llmagic.FormFactor = "Custom"
  598. llmagic.Anchored = true
  599. llmagic.CanCollide = false
  600. llmagic.Size = Vector3.new(0.7, 0.7, 0.7)
  601. llmagic.TopSurface = 10
  602. llmagic.BottomSurface = 10
  603. llmagic.LeftSurface = 10
  604. llmagic.RightSurface = 10
  605. llmagic.FrontSurface=10
  606. llmagic.BackSurface=10
  607. llmagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)])
  608. llmagic.CFrame = ll.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  609. local lt4 = Instance.new("PointLight", llmagic)
  610. lt4.Brightness = 123123
  611. lt4.Range = 6
  612. lt4.Color = Color3.new(1, 0, 1)
  613. local llmagicM = Instance.new("BlockMesh", llmagic)
  614. ]]
  615. game:GetService("Debris"):AddItem(lamagic, 0.85)
  616. game:GetService("Debris"):AddItem(ramagic, 0.85)
  617. --[[
  618. game:GetService("Debris"):AddItem(rlmagic, 0.85)
  619. game:GetService("Debris"):AddItem(llmagic, 0.85)
  620. ]]--
  621. coroutine.wrap(function()
  622. for i = 1, 10 do
  623. ramagicM.Scale = ramagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  624. ramagic.CFrame = ramagic.CFrame * CFrame.new(0, 0.2, 0)
  625. lamagicM.Scale = lamagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  626. lamagic.CFrame = lamagic.CFrame * CFrame.new(0, 0.2, 0)
  627. --[[
  628. rlmagicM.Scale = rlmagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  629. rlmagic.CFrame = rlmagic.CFrame * CFrame.new(0, 0.2, 0)
  630. llmagicM.Scale = llmagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  631. llmagic.CFrame = llmagic.CFrame * CFrame.new(0, 0.2, 0)
  632. ]]--
  633. wait()
  634. end
  635. end)()
  636. end
  637. end
  638. end))
  639.  
  640. --[[local bodyg = Instance.new("BodyGyro", Torso)
  641. bodyg.MaxTorque = Vector3.new(0, math.huge, 0)
  642. while true do game:GetService("RunService").RenderStepped:wait()
  643. bodyg.CFrame = Camera.CoordinateFrame
  644. end]]--
  645.  
  646.  
  647. mouse.KeyDown:connect(function(key)
  648. if key == "0" and sprinting == false then
  649. sprinting = true
  650. Humanoid.WalkSpeed = 60
  651. elseif key == "q" and magix == true then
  652. magix = false
  653. for i = 65/255, 1, -0.1 do wait()
  654. chak.Color = Color3.new(i, i, i)
  655. end
  656. elseif key == "q" and magix == false then
  657. magix = true
  658. for i = 0, 65/255, 0.1 do wait()
  659. chak.Color = Color3.new(0, 0, i)
  660. end
  661. end
  662. end)
  663.  
  664. mouse.KeyUp:connect(function(key)
  665. if key == "0" and sprinting == true then
  666. sprinting = false
  667. Humanoid.WalkSpeed = 16
  668. end
  669. end)
  670.  
  671. --==/GAMEPAD CONTROLS/==--
  672.  
  673. game:GetService("UserInputService").InputBegan:connect(function(input)
  674. if input.UserInputType == Enum.UserInputType.Gamepad1 then
  675. if input.KeyCode == Enum.KeyCode.ButtonX and magix == false then
  676. magix = true
  677. elseif input.KeyCode == Enum.KeyCode.ButtonX and magix == true then
  678. magix = false
  679. elseif input.KeyCode == Enum.KeyCode.ButtonL2 and sprinting == false then
  680. sprinting = true
  681. end
  682. end
  683. end)
  684.  
  685. game:GetService("UserInputService").InputEnded:connect(function(input)
  686. if input.UserInputType == Enum.UserInputType.Gamepad1 then
  687. if input.KeyCode == Enum.KeyCode.ButtonL2 and sprinting == true then
  688. sprinting = false
  689. end
  690. end
  691. end)
  692.  
  693.  
  694.  
  695. game:GetService("RunService").Stepped:connect(function()
  696. angle = (angle % 100) + anglespeed/10
  697. rootpart.CanCollide = false
  698. local speed = Vector3.new(rootpart.Velocity.X, 0, rootpart.Velocity.Z).magnitude
  699. if(Humanoid.Jump) and Torso.Velocity.Y > 1 and speed < 2 then
  700. animpose = "Jump"
  701.  
  702. elseif speed < 2 then -- idle
  703. animpose = "Idle"
  704.  
  705. elseif sprinting == true then -- sprinting
  706. animpose = "Sprinting"
  707.  
  708. elseif speed > 2 then -- walking
  709. walking = true
  710. animpose = "Moving"
  711. end
  712. --==/ANIMATION FUNCTIONS/==--
  713. if animpose == "Idle" and anim == false then -- idle
  714. anglespeed = 0.5
  715. rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.6, -0.15) * CFrame.Angles(math.rad(5) + math.sin(angle) * 0.02, math.rad(15), math.rad(15) + math.sin(angle) * 0.02), 0.1)
  716. lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.6, 0.15) * CFrame.Angles(math.rad(-5), math.rad(15), math.rad(-15) + -math.sin(angle) * 0.02), 0.1)
  717. rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.5, -0.4) * CFrame.Angles(math.rad(-20), math.rad(-35), 0), 0.1)
  718. llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.9, 0) * CFrame.Angles(0, 0, math.rad(-5)), 0.1)
  719. neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-6.5), math.rad(-40), math.sin(angle) * 0.01), 0.1)
  720. rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-90), 0, math.rad(220)), 0.1)
  721.  
  722. elseif animpose == "Moving" and anim == false and walking == true then -- walk
  723. anglespeed = 0.5
  724. rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-10) + math.sin(angle) * 0.05, math.rad(-12) + math.sin(angle) * 0.02, math.rad(8)), 0.1)
  725. lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-10) + math.sin(angle) * 0.05, math.rad(12) + math.sin(angle) * 0.02, math.rad(-8)), 0.1)
  726. rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.65, -0.3) * CFrame.Angles(math.rad(-15), math.rad(-5), 0), 0.1)
  727. llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.8, 0) * CFrame.Angles(math.rad(-7), math.rad(5), 0), 0.1)
  728. neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(15), Head.RotVelocity.Y/25, 0), 0.1)
  729. rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-110), -rootpart.RotVelocity.Y/25, math.rad(180)), 0.1)
  730. Humanoid.WalkSpeed = 6
  731.  
  732. elseif animpose == "Sprinting" and anim == false then -- sprint
  733. anglespeed = 0.5
  734. rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-40) + math.sin(angle) * 0.05, math.rad(-12) + math.sin(angle) * 0.02, math.rad(8)), 0.1)
  735. lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-40) + math.sin(angle) * 0.05, math.rad(12) + math.sin(angle) * 0.02, math.rad(-8)), 0.1)
  736. rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.65, 0) * CFrame.Angles(math.rad(-15), math.rad(-5), 0), 0.1)
  737. llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.65, 0) * CFrame.Angles(math.rad(-15), math.rad(5), 0), 0.1)
  738. neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(40), Head.RotVelocity.Y/15, 0), 0.1)
  739. rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-135), -rootpart.RotVelocity.Y/15, math.rad(180)), 0.1)
  740. Humanoid.WalkSpeed = 40
  741. end
  742. end)
  743.  
  744. wait(1)
  745. ------------------------------------------------------------------------------------
  746. local Character = game.Players.LocalPlayer.Character --game.Workspace.fefio92142
  747.  
  748.  
  749. -------------------------------------------------------------------------------------
  750. -------------------------------------------------------------------------------------
  751.  
  752. local Color = 0,0,0
  753.  
  754. local Num = 0.5
  755.  
  756. local Num2 = 4 -------------Mods:1,4,8,10,15,20-------------------------------------
  757. local Size = 0.8
  758. local Rate = 300
  759. -------------------------------------------------------------------------------------
  760. local Player = game:service'Players'.LocalPlayer
  761. local Character = Player.Character
  762. Torso = Character:WaitForChild'Torso'
  763.  
  764. local Wing1 = Instance.new("Part",Character)
  765. Wing1.FormFactor = Enum.FormFactor.Custom
  766. Wing1.Size = Vector3.new(.2, .2, .2)
  767. Wing1.Name = "WIng_1"
  768.  
  769. local fire = Instance.new("ParticleEmitter", Wing1)
  770. fire.VelocitySpread = 0
  771. fire.Lifetime = NumberRange.new(2)
  772. fire.Acceleration = Vector3.new(0, 2, 2)
  773. fire.RotSpeed = NumberRange.new(10)
  774. fire.Rate = Rate
  775. fire.Rotation = NumberRange.new(151515)
  776. fire.Name = "Fire"
  777. fire.LightEmission = 0.78
  778. fire.LockedToPart = true
  779. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  780. fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color))
  781. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  782.  
  783. local Wing2 = Wing1:Clone()
  784. Wing2.Parent = Torso
  785. local x,y,z = 0,-1,-6
  786.  
  787. Wld = function(a,b,cf)
  788. local Weld = Instance.new('Weld',a)
  789. Weld.Part0 = a
  790. Weld.Part1 = b
  791. Weld.C1 = cf
  792. return Weld
  793. end
  794.  
  795. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  796. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  797.  
  798.  
  799. game:service'RunService'.Stepped:connect(function()
  800. --z = 6+math.sin(tick()*2)
  801. y = -1+math.sin(tick()*Num)*Num2
  802. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  803. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  804. end)
  805. ------------------------------------------------------------------------------------------------
  806. local Player = game:service'Players'.LocalPlayer
  807. local Character = Player.Character
  808. Torso = Character:WaitForChild'Torso'
  809.  
  810. local Wing1 = Instance.new("Part",Character)
  811. Wing1.FormFactor = Enum.FormFactor.Custom
  812. Wing1.Size = Vector3.new(.2, .2, .2)
  813. Wing1.Name = "WIng_1"
  814.  
  815. local fire = Instance.new("ParticleEmitter", Wing1)
  816. fire.VelocitySpread = 0
  817. fire.Lifetime = NumberRange.new(2.5)
  818. fire.Acceleration = Vector3.new(0, 4, 4)
  819. fire.RotSpeed = NumberRange.new(10)
  820. fire.Rate = Rate
  821. fire.Rotation = NumberRange.new(151515)
  822. fire.Name = "Fire"
  823. fire.LightEmission = 0.78
  824. fire.LockedToPart = true
  825. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  826. fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color))
  827. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  828.  
  829. local Wing2 = Wing1:Clone()
  830. Wing2.Parent = Torso
  831. local x,y,z = 0,-1,-6
  832.  
  833. Wld = function(a,b,cf)
  834. local Weld = Instance.new('Weld',a)
  835. Weld.Part0 = a
  836. Weld.Part1 = b
  837. Weld.C1 = cf
  838. return Weld
  839. end
  840.  
  841. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
  842. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
  843.  
  844. print'Loaded'
  845.  
  846. game:service'RunService'.Stepped:connect(function()
  847. --z = 6+math.sin(tick()*2)
  848. y = -1+math.sin(tick()*Num)*Num2
  849. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  850. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  851. end)
  852.  
  853. ------------------------------------------------------------------------------------------------
  854. local Player = game:service'Players'.LocalPlayer
  855. local Character = Player.Character
  856. Torso = Character:WaitForChild'Torso'
  857.  
  858. local Wing1 = Instance.new("Part",Character)
  859. Wing1.FormFactor = Enum.FormFactor.Custom
  860. Wing1.Size = Vector3.new(.2, .2, .2)
  861. Wing1.Name = "WIng_1"
  862.  
  863. local fire = Instance.new("ParticleEmitter", Wing1)
  864. fire.VelocitySpread = 0
  865. fire.Lifetime = NumberRange.new(2.8)
  866. fire.Acceleration = Vector3.new(0, 4, 4)
  867. fire.RotSpeed = NumberRange.new(10)
  868. fire.Rate = Rate
  869. fire.Rotation = NumberRange.new(151515)
  870. fire.Name = "Fire"
  871. fire.LightEmission = 0.78
  872. fire.LockedToPart = true
  873. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  874. fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color))
  875. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  876.  
  877. local Wing2 = Wing1:Clone()
  878. Wing2.Parent = Torso
  879. local x,y,z = 0,-1,-6
  880.  
  881. Wld = function(a,b,cf)
  882. local Weld = Instance.new('Weld',a)
  883. Weld.Part0 = a
  884. Weld.Part1 = b
  885. Weld.C1 = cf
  886. return Weld
  887. end
  888.  
  889. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
  890. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
  891.  
  892. print'Loaded'
  893.  
  894. game:service'RunService'.Stepped:connect(function()
  895. --z = 6+math.sin(tick()*2)
  896. y = -1+math.sin(tick()*Num)*Num2
  897. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  898. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  899. end)
  900.  
  901. ------------------------------------------------------------------------------------------------
  902. local Player = game:service'Players'.LocalPlayer
  903. local Character = Player.Character
  904. Torso = Character:WaitForChild'Torso'
  905.  
  906. local Wing1 = Instance.new("Part",Character)
  907. Wing1.FormFactor = Enum.FormFactor.Custom
  908. Wing1.Size = Vector3.new(.2, .2, .2)
  909. Wing1.Name = "WIng_1"
  910.  
  911. local fire = Instance.new("ParticleEmitter", Wing1)
  912. fire.VelocitySpread = 0
  913. fire.Lifetime = NumberRange.new(3)
  914. fire.Acceleration = Vector3.new(0, 4, 4)
  915. fire.RotSpeed = NumberRange.new(10)
  916. fire.Rate = Rate
  917. fire.Rotation = NumberRange.new(151515)
  918. fire.Name = "Fire"
  919. fire.LightEmission = 0.78
  920. fire.LockedToPart = true
  921. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  922. fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color))
  923. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  924.  
  925. local Wing2 = Wing1:Clone()
  926. Wing2.Parent = Torso
  927. local x,y,z = 0,-1,-6
  928.  
  929. Wld = function(a,b,cf)
  930. local Weld = Instance.new('Weld',a)
  931. Weld.Part0 = a
  932. Weld.Part1 = b
  933. Weld.C1 = cf
  934. return Weld
  935. end
  936.  
  937. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
  938. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
  939.  
  940. print'Loaded'
  941.  
  942. game:service'RunService'.Stepped:connect(function()
  943. --z = 6+math.sin(tick()*2)
  944. y = -1+math.sin(tick()*Num)*Num2
  945. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  946. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  947. end)
  948.  
  949. ------------------------------------------------------------------------------------------------
  950. local Player = game:service'Players'.LocalPlayer
  951. local Character = Player.Character
  952. Torso = Character:WaitForChild'Torso'
  953.  
  954. local Wing1 = Instance.new("Part",Character)
  955. Wing1.FormFactor = Enum.FormFactor.Custom
  956. Wing1.Size = Vector3.new(.2, .2, .2)
  957. Wing1.Name = "WIng_1"
  958.  
  959. local fire = Instance.new("ParticleEmitter", Wing1)
  960. fire.VelocitySpread = 0
  961. fire.Lifetime = NumberRange.new(3.1)
  962. fire.Acceleration = Vector3.new(0, 4, 4)
  963. fire.RotSpeed = NumberRange.new(10)
  964. fire.Rate = Rate
  965. fire.Rotation = NumberRange.new(151515)
  966. fire.Name = "Fire"
  967. fire.LightEmission = 0.78
  968. fire.LockedToPart = true
  969. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  970. fire.Color = ColorSequence.new(Color3.new(Color), Color3.new(Color))
  971. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  972.  
  973. local Wing2 = Wing1:Clone()
  974. Wing2.Parent = Torso
  975. local x,y,z = 0,-1,-6
  976.  
  977. Wld = function(a,b,cf)
  978. local Weld = Instance.new('Weld',a)
  979. Weld.Part0 = a
  980. Weld.Part1 = b
  981. Weld.C1 = cf
  982. return Weld
  983. end
  984.  
  985. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
  986. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
  987.  
  988. print'Loaded'
  989.  
  990. game:service'RunService'.Stepped:connect(function()
  991. --z = 6+math.sin(tick()*2)
  992. y = -1+math.sin(tick()*Num)*Num2
  993. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  994. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  995. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement