Advertisement
NYXRBLX

Untitled

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