Advertisement
jayrock3401

Untitled

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