Advertisement
zXzGamePROzXz

Dark Mage

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