Advertisement
mememasterYT

galaxy glitcher FE edit

Aug 29th, 2018
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 207.93 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do print("FE Compatibility code by Tcgc")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
  5.  
  6. warn([[Galaxy Glitcher Loaded.
  7. The third glitcher, once as the core is now new.
  8.  
  9. Created by N00byGamezI2
  10. ]])
  11.  
  12. ---------Wielder list as of OCs:---------
  13. -- ??? (Nothing such as this yet, but wields all the Glitchers. What you're asking it's the creator.)
  14. -- Void Emily (OC of mine, can lead to any modes and mainly leading to LOVE and HARMONY, she's obviously shy sometimes.)
  15. -- Lunaria Floodio (Second OC, can lead to any modes.)
  16. -- Gacharix (Third OC, can lead to any modes and mainly leading to AZURE X, very corrupted person.)
  17. -----------------------------------------
  18.  
  19. print([[Icons:
  20. ! = New
  21. ? = Spoilers
  22. * = Exclusivity
  23. C = Changes
  24.  
  25. ]])
  26. warn([[V 3.2 Update Log:
  27. C - Huge revamp of wings.
  28. C - Walk and running are now tiltable on where you go on a side.
  29. C - Huge slight changes on all of the mode's idles.
  30. C - Even more effect changes.
  31. !C* - Love mode has been added.
  32. !C* - Love mode's transformation added..
  33. !* - Love mode's taunt added... (why.. ;~;)
  34. C - Death effect has been improved.
  35. C - Binary's Z is imporvably changed
  36. ? - Nothing seems to be new yet..
  37. ? - Some modes will have moves sooner.
  38.  
  39. Commands for visualiser mode: play/, vol/, pitch/, skipto/, telltime/]])
  40. ---- IMPORTANT READING:
  41. ---- Sources and functions might be taken from others
  42. plr = owner
  43.  
  44. script.Parent = workspace.CurrentCamera
  45. plr.CharacterAdded:connect(function()
  46. script.Disabled = true
  47. script:destroy()
  48. end)
  49.  
  50. char = plr.Character
  51. hum = char.Humanoid
  52. local cam = game.Workspace.CurrentCamera
  53.  
  54. Camera = cam
  55. local CamInterrupt = false
  56. local TwoD = false
  57. local TargetInfo = {nil, nil}
  58. cam.CameraType = "Custom"
  59. t = char.Torso
  60. h = char.Head
  61. ra = char["Right Arm"]
  62. la = char["Left Arm"]
  63. rl = char["Right Leg"]
  64. ll = char["Left Leg"]
  65. tors = char.Torso
  66. lleg = char["Left Leg"]
  67. root = char.HumanoidRootPart
  68. hed = char.Head
  69. rleg = char["Right Leg"]
  70. rarm = char["Right Arm"]
  71. larm = char["Left Arm"]
  72. radian = math.rad
  73. random = math.random
  74. Vec3 = Vector3.new
  75. Inst = Instance.new
  76. cFrame = CFrame.new
  77. Euler = CFrame.fromEulerAnglesXYZ
  78. vt = Vector3.new
  79. bc = BrickColor.new
  80. br = BrickColor.random
  81. it = Instance.new
  82. cf = CFrame.new
  83.  
  84.  
  85. local Booleans = {
  86. CamFollow = true,
  87. GyroUse = true
  88. }
  89.  
  90. function lerp(object, newCFrame, alpha)
  91. return object:lerp(newCFrame, alpha)
  92. end
  93.  
  94. local Directer = Inst("BodyGyro", root)
  95. Directer.MaxTorque = Vec3(0, 0, 0)
  96. Directer.P = 600000
  97. local CPart = Inst("Part")
  98. CPart.Anchored = true
  99. CPart.CanCollide = false
  100. CPart.Locked = true
  101. CPart.Transparency = 1
  102.  
  103. local rainbowmode = false
  104. local chaosmode = false
  105. local duringend = false
  106. local ModeOfGlitch = 1
  107.  
  108. local kan = Instance.new("Sound",char)
  109. kan.Volume = 1.25
  110. kan.TimePosition = 0
  111. kan.PlaybackSpeed = 1
  112. kan.Pitch = 1.01
  113. kan.SoundId = "rbxassetid://435773595"
  114. kan.Name = "wreckeda"
  115. kan.Looped = true
  116. kan:Play()
  117.  
  118. local currentThemePlaying = kan.SoundId
  119. local currentPitch = kan.Pitch
  120. local currentVol = kan.Volume
  121. function newTheme(ID,timepos,pitch,vol)
  122. local kanz = kan
  123. --kanz:Stop()
  124. kanz.Volume = vol
  125. --kanz.TimePosition = timepos
  126. kanz.PlaybackSpeed = pitch
  127. kanz.Pitch = pitch
  128. kanz.SoundId = ID
  129. kanz.Name = "wrecked"
  130. kanz.Looped = true
  131. currentThemePlaying = kanz.SoundId
  132. currentVol = kanz.Volume
  133. currentPitch = kanz.Pitch
  134. --kanz:Play()
  135. --coroutine.resume(coroutine.create(function()
  136. --wait(0.05)
  137. --end))
  138. end
  139.  
  140.  
  141. function newThemeCust(ID,timepos,pitch,vol)
  142. local kanz = kan
  143. kanz:Stop()
  144. kanz.Volume = vol
  145. kanz.TimePosition = timepos
  146. kanz.PlaybackSpeed = pitch
  147. kanz.Pitch = pitch
  148. kanz.SoundId = ID
  149. kanz.Name = "wrecked"
  150. kanz.Looped = true
  151. currentThemePlaying = kanz.SoundId
  152. currentVol = kanz.Volume
  153. currentPitch = kanz.Pitch
  154. kanz:Play()
  155. coroutine.resume(coroutine.create(function()
  156. wait(0.05)
  157. end))
  158. end
  159.  
  160. local mutedtog = false
  161.  
  162. function CameraEnshaking(Length,Intensity)
  163. coroutine.resume(coroutine.create(function()
  164. local intensity = 1*Intensity
  165. local rotM = 0.01*Intensity
  166. for i = 0, Length, 0.1 do
  167. swait()
  168. intensity = intensity - 0.05*Intensity/Length
  169. rotM = rotM - 0.0005*Intensity/Length
  170. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  171. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  172. end
  173. Humanoid.CameraOffset = Vec3(0, 0, 0)
  174. end))
  175. end
  176. CamShake=function(Part,Distan,Power,Times)
  177. local de=Part.Position
  178. for i,v in pairs(workspace:children()) do
  179. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  180. for _,c in pairs(v:children()) do
  181. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  182. local Noob=v.Humanoid
  183. if Noob~=nil then
  184. coroutine.resume(coroutine.create(function()
  185. FV = Instance.new("BoolValue", Noob)
  186. FV.Name = "CameraShake"
  187. for ShakeNum=1,Times do
  188. swait()
  189. local ef=Power
  190. if ef>=1 then
  191. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  192. else
  193. ef=Power*10
  194. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  195. end
  196. end
  197. Humanoid.CameraOffset = Vector3.new(0,0,0)
  198. FV:Destroy()
  199. end))
  200. CameraShake(Times, Power, Noob)
  201. end
  202. end
  203. end
  204. end
  205. end
  206. end
  207.  
  208. local toggleTag = true
  209. local bilguit = Instance.new("BillboardGui", hed)
  210. bilguit.Adornee = nil
  211. bilguit.Name = "ModeName"
  212. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  213. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  214. local modet = Instance.new("TextLabel", bilguit)
  215. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  216. modet.FontSize = "Size8"
  217. modet.TextScaled = true
  218. modet.TextTransparency = 0
  219. modet.BackgroundTransparency = 1
  220. modet.TextTransparency = 0
  221. modet.TextStrokeTransparency = 0
  222. modet.Font = "Code"
  223. modet.TextStrokeColor3 = Color3.new(0,0,0)
  224. modet.TextColor3 = Color3.new(1,1,1)
  225. modet.Text = "Enlightened"
  226.  
  227.  
  228. function chatfunc(text,color,typet,font,timeex)
  229. local chat = coroutine.wrap(function()
  230. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  231. Character:FindFirstChild("TalkingBillBoard"):destroy()
  232. end
  233. local naeeym2 = Instance.new("BillboardGui",Character)
  234. naeeym2.Size = UDim2.new(0,100,0,40)
  235. naeeym2.StudsOffset = Vector3.new(0,3,0)
  236. naeeym2.Adornee = Character.Head
  237. naeeym2.Name = "TalkingBillBoard"
  238. local tecks2 = Instance.new("TextLabel",naeeym2)
  239. tecks2.BackgroundTransparency = 1
  240. tecks2.BorderSizePixel = 0
  241. tecks2.Text = ""
  242. tecks2.Font = font
  243. tecks2.TextSize = 30
  244. tecks2.TextStrokeTransparency = 0
  245. tecks2.TextColor3 = color
  246. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  247. tecks2.Size = UDim2.new(1,0,0.5,0)
  248. local tecks3 = Instance.new("TextLabel",naeeym2)
  249. tecks3.BackgroundTransparency = 1
  250. tecks3.BorderSizePixel = 0
  251. tecks3.Text = ""
  252. tecks3.Font = font
  253. tecks3.TextSize = 30
  254. tecks3.TextStrokeTransparency = 0
  255. if typet == "Inverted" then
  256. tecks3.TextColor3 = Color3.new(0,0,0)
  257. tecks3.TextStrokeColor3 = color
  258. elseif typet == "Normal" then
  259. tecks3.TextColor3 = color
  260. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  261. end
  262. tecks3.Size = UDim2.new(1,0,0.5,0)
  263. coroutine.resume(coroutine.create(function()
  264. while true do
  265. swait(1)
  266. if chaosmode == true then
  267. tecks2.TextColor3 = BrickColor.random().Color
  268. tecks3.TextStrokeColor3 = BrickColor.random().Color
  269. end
  270. end
  271. end))
  272. modet.TextTransparency = modet.TextTransparency + 1
  273. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  274. for i = 0, 74*timeex do
  275. swait()
  276. modet.TextTransparency = 1
  277. modet.TextStrokeTransparency = 1
  278. tecks2.Text = text
  279. tecks3.Text = text
  280. end
  281. local randomrot = math.random(1,2)
  282. if randomrot == 1 then
  283. for i = 1, 50 do
  284. swait()
  285. tecks2.Text = text
  286. tecks3.Text = text
  287. modet.TextTransparency = modet.TextTransparency - .02
  288. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  289. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  290. tecks2.TextTransparency = tecks2.TextTransparency + .04
  291. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  292. tecks3.TextTransparency = tecks2.TextTransparency + .04
  293. end
  294. elseif randomrot == 2 then
  295. for i = 1, 50 do
  296. swait()
  297. tecks2.Text = text
  298. tecks3.Text = text
  299. modet.TextTransparency = modet.TextTransparency - .02
  300. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  301. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  302. tecks2.TextTransparency = tecks2.TextTransparency + .04
  303. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  304. tecks3.TextTransparency = tecks2.TextTransparency + .04
  305. end
  306. end
  307. modet.TextTransparency = 0
  308. modet.TextStrokeTransparency = 0
  309. if toggleTag == false then
  310. modet.TextTransparency = 1
  311. modet.TextStrokeTransparency = 1
  312. end
  313. naeeym2:Destroy()
  314. end)
  315. chat()
  316. end
  317.  
  318.  
  319. local Create = LoadLibrary("RbxUtility").Create
  320.  
  321. CFuncs = {
  322. ["Part"] = {
  323. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  324. local Part = Create("Part"){
  325. Parent = Parent,
  326. Reflectance = Reflectance,
  327. Transparency = Transparency,
  328. CanCollide = false,
  329. Locked = true,
  330. BrickColor = BrickColor.new(tostring(BColor)),
  331. Name = Name,
  332. Size = Size,
  333. Material = Material,
  334. }
  335. RemoveOutlines(Part)
  336. return Part
  337. end;
  338. };
  339.  
  340. ["Mesh"] = {
  341. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  342. local Msh = Create(Mesh){
  343. Parent = Part,
  344. Offset = OffSet,
  345. Scale = Scale,
  346. }
  347. if Mesh == "SpecialMesh" then
  348. Msh.MeshType = MeshType
  349. Msh.MeshId = MeshId
  350. end
  351. return Msh
  352. end;
  353. };
  354.  
  355. ["Mesh"] = {
  356. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  357. local Msh = Create(Mesh){
  358. Parent = Part,
  359. Offset = OffSet,
  360. Scale = Scale,
  361. }
  362. if Mesh == "SpecialMesh" then
  363. Msh.MeshType = MeshType
  364. Msh.MeshId = MeshId
  365. end
  366. return Msh
  367. end;
  368. };
  369.  
  370. ["Weld"] = {
  371. Create = function(Parent, Part0, Part1, C0, C1)
  372. local Weld = Create("Weld"){
  373. Parent = Parent,
  374. Part0 = Part0,
  375. Part1 = Part1,
  376. C0 = C0,
  377. C1 = C1,
  378. }
  379. return Weld
  380. end;
  381. };
  382.  
  383. ["Sound"] = {
  384. Create = function(id, par, vol, pit)
  385. coroutine.resume(coroutine.create(function()
  386. local S = Create("Sound"){
  387. Volume = vol,
  388. Name = "EffectSoundo",
  389. Pitch = pit or 1,
  390. SoundId = id,
  391. Parent = par or workspace,
  392. }
  393. wait()
  394. S:play()
  395. game:GetService("Debris"):AddItem(S, 10)
  396. end))
  397. end;
  398. };
  399.  
  400. ["LongSound"] = {
  401. Create = function(id, par, vol, pit)
  402. coroutine.resume(coroutine.create(function()
  403. local S = Create("Sound"){
  404. Volume = vol,
  405. Pitch = pit or 1,
  406. SoundId = id,
  407. Parent = par or workspace,
  408. }
  409. wait()
  410. S:play()
  411. game:GetService("Debris"):AddItem(S, 60)
  412. end))
  413. end;
  414. };
  415.  
  416. ["ParticleEmitter"] = {
  417. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  418. local fp = Create("ParticleEmitter"){
  419. Parent = Parent,
  420. Color = ColorSequence.new(Color1, Color2),
  421. LightEmission = LightEmission,
  422. Size = Size,
  423. Texture = Texture,
  424. Transparency = Transparency,
  425. ZOffset = ZOffset,
  426. Acceleration = Accel,
  427. Drag = Drag,
  428. LockedToPart = LockedToPart,
  429. VelocityInheritance = VelocityInheritance,
  430. EmissionDirection = EmissionDirection,
  431. Enabled = Enabled,
  432. Lifetime = LifeTime,
  433. Rate = Rate,
  434. Rotation = Rotation,
  435. RotSpeed = RotSpeed,
  436. Speed = Speed,
  437. VelocitySpread = VelocitySpread,
  438. }
  439. return fp
  440. end;
  441. };
  442.  
  443. CreateTemplate = {
  444.  
  445. };
  446. }
  447.  
  448.  
  449.  
  450. New = function(Object, Parent, Name, Data)
  451. local Object = Instance.new(Object)
  452. for Index, Value in pairs(Data or {}) do
  453. Object[Index] = Value
  454. end
  455. Object.Parent = Parent
  456. Object.Name = Name
  457. return Object
  458. end
  459. local halocolor = BrickColor.new("Pastel light blue")
  460. local halocolor2 = BrickColor.new("Cool yellow")
  461. local starcolor = BrickColor.new("Bright yellow")
  462. local lunacolor = BrickColor.new("Navy blue")
  463. local lunacolor2 = BrickColor.new("Bright blue")
  464. local wepcolor = BrickColor.new("Really black")
  465. local maincolor = BrickColor.new("Really black")
  466. local m = Instance.new("Model",char)
  467. local m2 = Instance.new("Model",char)
  468. local m3 = Instance.new("Model",char)
  469. local mw1 = Instance.new("Model",char)
  470. local mw2 = Instance.new("Model",char)
  471.  
  472.  
  473. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  474. local gui = it(GuiType)
  475. gui.Parent = parent
  476. gui.Text = text
  477. gui.BackgroundTransparency = backtrans
  478. gui.BackgroundColor3 = backcol
  479. gui.SizeConstraint = "RelativeXY"
  480. gui.TextXAlignment = "Center"
  481. gui.TextYAlignment = "Center"
  482. gui.Position = pos
  483. gui.Size = size
  484. gui.Font = "SourceSans"
  485. gui.FontSize = "Size14"
  486. gui.TextWrapped = false
  487. gui.TextStrokeTransparency = 0
  488. gui.TextColor = BrickColor.new("White")
  489. return gui
  490. end
  491. ---- GUI set
  492. local basgui = it("GuiMain")
  493. basgui.Parent = plr.PlayerGui
  494. basgui.Name = "Killcounter GUI"
  495. local basframe = it("Frame")
  496. basframe.Parent = basgui
  497. basframe.BackgroundColor3 = Color3.new(255, 255, 255)
  498. basframe.BackgroundTransparency = 1
  499. basframe.BorderColor3 = Color3.new(17, 17, 17)
  500. basframe.Size = UDim2.new(0.2, 0, 0.2, 0)
  501. basframe.Position = UDim2.new(0.8, 0, 0.8, 0)
  502. local uhh = gui("TextLabel", basframe, "Basic", 0.5, BrickColor.new("Really black").Color, UDim2.new(-0.5, 0, 0.45, 0), UDim2.new(1.5, 0, 0.55, 0))
  503. uhh.ZIndex = 2
  504.  
  505.  
  506. uhh.Font = "Bodoni"
  507. uhh.TextStrokeColor3 = Color3.new(0.05,0.05,0.05)
  508. uhh.TextColor3 = Color3.new(1,1,1)
  509. uhh.BackgroundTransparency = 0.25
  510. uhh.BorderSizePixel = 2
  511. uhh.BorderColor3 = Color3.new(0,0,0)
  512. uhh.TextScaled = true
  513. uhh.TextXAlignment = "Left"
  514. uhh.Text = "SWITCH MODE: Q-P, J-L"
  515. uhh.TextSize = 64
  516. local modeteller = gui("TextLabel", basframe, "Basic", 0.5, BrickColor.new("Really black").Color, UDim2.new(-0, 0, -0.01, 0), UDim2.new(1, 0, 0.45, 0))
  517. modeteller.ZIndex = 2
  518. modeteller.Font = "Bodoni"
  519. modeteller.TextStrokeColor3 = Color3.new(0.05,0.05,0.05)
  520. modeteller.TextColor3 = Color3.new(1,1,1)
  521. modeteller.BackgroundTransparency = 0.25
  522. modeteller.BorderSizePixel = 2
  523. modeteller.BorderColor3 = Color3.new(0,0,0)
  524. modeteller.TextScaled = true
  525. modeteller.TextXAlignment = "Right"
  526. modeteller.Text = "MAYHEM"
  527. modeteller.TextSize = 64
  528.  
  529. local extrawingmod1 = Instance.new("Model",char)
  530. local extrawingmod2 = Instance.new("Model",char)
  531.  
  532. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  533. local p = Instance.new("Part")
  534. p.TopSurface = 0
  535. p.BottomSurface = 0
  536. p.Parent = parent
  537. p.Size = Vector3.new(0.1,0.1,0.1)
  538. p.Transparency = transparency
  539. p.Reflectance = reflectance
  540. p.CanCollide = false
  541. p.Locked = true
  542. p.BrickColor = brickcolor
  543. p.Material = material
  544. return p
  545. end
  546.  
  547. function CreateMesh(parent,meshtype,x1,y1,z1)
  548. local mesh = Instance.new("SpecialMesh",parent)
  549. mesh.MeshType = meshtype
  550. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  551. return mesh
  552. end
  553.  
  554. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  555. local mesh = Instance.new("SpecialMesh",parent)
  556. mesh.MeshType = "FileMesh"
  557. mesh.MeshId = meshid
  558. mesh.Scale = Vector3.new(x1,y1,z1)
  559. return mesh
  560. end
  561.  
  562.  
  563. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  564. local mesh = Instance.new("SpecialMesh",parent)
  565. mesh.MeshType = "FileMesh"
  566. mesh.MeshId = meshid
  567. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  568. mesh.Scale = Vector3.new(x1,y1,z1)
  569. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  570. return mesh
  571. end
  572.  
  573. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  574. local weld = Instance.new("Weld")
  575. weld.Parent = parent
  576. weld.Part0 = part0
  577. weld.Part1 = part1
  578. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  579. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  580. return weld
  581. end
  582.  
  583.  
  584. --------------
  585. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  586. CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  587. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  588. CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  589.  
  590. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  591. CreateMesh(handle,"Brick",0,0,0)
  592. local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  593. local valuaring = 10
  594.  
  595. local refec = Instance.new("ParticleEmitter",handlex)
  596. refec.Texture = "rbxassetid://284205403"
  597. refec.LightEmission = 0.95
  598. refec.Color = ColorSequence.new(BrickColor.new("White").Color)
  599. refec.Rate = 50
  600. refec.Lifetime = NumberRange.new(0.5)
  601. refec.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.5,0.75,0),NumberSequenceKeypoint.new(1,0.1,0)})
  602. refec.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.25,0),NumberSequenceKeypoint.new(1,1,0)})
  603. refec.Speed = NumberRange.new(0,2)
  604. refec.Drag = 5
  605. refec.LockedToPart = true
  606. refec.Rotation = NumberRange.new(-500,500)
  607. refec.VelocitySpread = 9000
  608. refec.RotSpeed = NumberRange.new(-500,500)
  609. local refec2 = refec:Clone()
  610. refec2.LightEmission = 0.75
  611. refec2.Texture = "rbxassetid://254287058"
  612. refec2.Parent = handlex
  613. refec2.Rate = 25
  614. refec2.Lifetime = NumberRange.new(0.75)
  615. refec2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.5,0),NumberSequenceKeypoint.new(0.15,1,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,0.1,0)})
  616. refec2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.65,0),NumberSequenceKeypoint.new(1,1,0)})
  617. refec2.Speed = NumberRange.new(0)
  618. local refec3 = refec:Clone()
  619. refec3.LightEmission = 0.75
  620. refec3.Texture = "rbxassetid://363275192"
  621. refec3.Parent = handlex
  622. refec3.Rate = 25
  623. refec3.Lifetime = NumberRange.new(1)
  624. refec3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0.1,0)})
  625. refec3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.65,0),NumberSequenceKeypoint.new(1,1,0)})
  626. refec3.Speed = NumberRange.new(0)
  627. refec3.RotSpeed = NumberRange.new(-50,50)
  628.  
  629. for i = 0, 35 do
  630. valuaring = valuaring + 10
  631. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  632. CreateMesh(rn,"Wedge",0.1,0.5,0.1)
  633. CreateWeld(rn,handlex,rn,0,0.75,0,math.rad(0),math.rad(-90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  634. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  635. CreateMesh(rn,"Wedge",0.1,0.5,0.1)
  636. CreateWeld(rn,handlex,rn,0,0.75,0,math.rad(0),math.rad(90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  637. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  638. CreateMesh(rn,"Wedge",0.1,0.2,0.05)
  639. CreateWeld(rn,handlex,rn,0,-1.1,0.025,math.rad(0),math.rad(-90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  640. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  641. CreateMesh(rn,"Wedge",0.1,0.2,0.05)
  642. CreateWeld(rn,handlex,rn,0,-1.1,0.025,math.rad(0),math.rad(90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  643. end
  644.  
  645.  
  646. local handle = CreateParta(m,1,1,"Neon",maincolor)
  647. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  648. local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  649.  
  650. --- Left wing.
  651.  
  652. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  653. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  654. local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  655.  
  656. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  657. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  658. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  659. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  660. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  661. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  662. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  663. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  664. CreateWeld(wed,lwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  665. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  666. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  667. CreateWeld(wed,lwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  668. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  669. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  670. CreateWeld(wed,lwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  671. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  672. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  673. CreateWeld(wed,lwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  674. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  675. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  676. CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  677. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  678. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  679. CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  680. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  681. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  682. CreateWeld(wed,lwing1,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  683. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  684. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  685. CreateWeld(wed,lwing1,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  686.  
  687.  
  688. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  689. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  690. local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  691.  
  692. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  693. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  694. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  695. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  696. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  697. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  698. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  699. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  700. CreateWeld(wed,lwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  701. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  702. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  703. CreateWeld(wed,lwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  704. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  705. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  706. CreateWeld(wed,lwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  707. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  708. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  709. CreateWeld(wed,lwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  710. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  711. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  712. CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  713. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  714. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  715. CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  716. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  717. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  718. CreateWeld(wed,lwing2,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  719. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  720. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  721. CreateWeld(wed,lwing2,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  722.  
  723. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  724. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  725. local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  726.  
  727. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  728. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  729. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  730. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  731. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  732. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  733. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  734. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  735. CreateWeld(wed,lwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  736. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  737. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  738. CreateWeld(wed,lwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  739. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  740. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  741. CreateWeld(wed,lwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  742. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  743. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  744. CreateWeld(wed,lwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  745. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  746. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  747. CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  748. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  749. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  750. CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  751. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  752. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  753. CreateWeld(wed,lwing3,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  754. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  755. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  756. CreateWeld(wed,lwing3,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  757.  
  758. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  759. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  760. local lwing4weld = CreateWeld(lwing4,handle,lwing4,5.75,3,0,math.rad(20),math.rad(0),math.rad(50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  761.  
  762. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  763. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  764. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  765. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  766. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  767. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  768. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  769. CreateMesh(wed,"Wedge",0.05,0.5,3)
  770. CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  771. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  772. CreateMesh(wed,"Wedge",0.05,3,0.5)
  773. CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  774.  
  775. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  776. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  777. local lwing5weld = CreateWeld(lwing5,handle,lwing5,6.75,4,0,math.rad(25),math.rad(0),math.rad(62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  778.  
  779. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  780. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  781. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  782. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  783. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  784. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  785. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  786. CreateMesh(wed,"Wedge",0.05,0.5,3)
  787. CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  788. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  789. CreateMesh(wed,"Wedge",0.05,3,0.5)
  790. CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  791.  
  792. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  793. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  794. local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  795.  
  796. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  797. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  798. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  799. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  800. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  801. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  802. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  803. CreateMesh(wed,"Wedge",0.05,0.5,3)
  804. CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  805. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  806. CreateMesh(wed,"Wedge",0.05,3,0.5)
  807. CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  808.  
  809. -- Right wing.
  810.  
  811. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  812. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  813. local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  814.  
  815. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  816. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  817. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  818. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  819. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  820. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  821. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  822. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  823. CreateWeld(wed,rwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  824. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  825. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  826. CreateWeld(wed,rwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  827. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  828. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  829. CreateWeld(wed,rwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  830. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  831. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  832. CreateWeld(wed,rwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  833. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  834. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  835. CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  836. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  837. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  838. CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  839. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  840. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  841. CreateWeld(wed,rwing1,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  842. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  843. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  844. CreateWeld(wed,rwing1,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  845.  
  846. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  847. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  848. local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  849.  
  850. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  851. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  852. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  853. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  854. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  855. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  856. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  857. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  858. CreateWeld(wed,rwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  859. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  860. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  861. CreateWeld(wed,rwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  862. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  863. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  864. CreateWeld(wed,rwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  865. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  866. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  867. CreateWeld(wed,rwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  868. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  869. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  870. CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  871. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  872. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  873. CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  874. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  875. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  876. CreateWeld(wed,rwing2,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  877. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  878. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  879. CreateWeld(wed,rwing2,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  880.  
  881. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  882. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  883. local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  884.  
  885.  
  886. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  887. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  888. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  889. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  890. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  891. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  892. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  893. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  894. CreateWeld(wed,rwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  895. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  896. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  897. CreateWeld(wed,rwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  898. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  899. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  900. CreateWeld(wed,rwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  901. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  902. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  903. CreateWeld(wed,rwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  904. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  905. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  906. CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  907. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  908. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  909. CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  910. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  911. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  912. CreateWeld(wed,rwing3,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  913. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  914. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  915. CreateWeld(wed,rwing3,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  916.  
  917.  
  918. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  919. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  920. local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  921.  
  922. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  923. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  924. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  925. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  926. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  927. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  928. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  929. CreateMesh(wed,"Wedge",0.05,0.5,3)
  930. CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  931. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  932. CreateMesh(wed,"Wedge",0.05,3,0.5)
  933. CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  934.  
  935. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  936. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  937. local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  938.  
  939. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  940. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  941. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  942. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  943. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  944. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  945. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  946. CreateMesh(wed,"Wedge",0.05,0.5,3)
  947. CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  948. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  949. CreateMesh(wed,"Wedge",0.05,3,0.5)
  950. CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  951.  
  952. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  953. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  954. local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  955.  
  956. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  957. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  958. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  959. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  960. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  961. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  962. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  963. CreateMesh(wed,"Wedge",0.05,0.5,3)
  964. CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  965. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  966. CreateMesh(wed,"Wedge",0.05,3,0.5)
  967. CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  968.  
  969.  
  970. ---- HERES THE RING
  971.  
  972.  
  973. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  974. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  975. CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  976. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  977. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  978. CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  979. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  980. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  981. CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  982.  
  983.  
  984. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  985. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  986. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  987.  
  988. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  989. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  990. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  991.  
  992.  
  993.  
  994. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  995. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  996. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  997.  
  998. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  999. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1000. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1001.  
  1002. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1003. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1004. CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1005.  
  1006. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1007. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1008. CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1009. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1010. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1011. CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1012.  
  1013. --- second ring
  1014.  
  1015. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1016. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1017. CreateWeld(ran,rarm,ran,0,0.15,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1018. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1019. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1020. CreateWeld(ran,rarm,ran,0,0.155,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1021. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1022. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1023. CreateWeld(ran,rarm,ran,0,0.155,-0.025,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1024.  
  1025. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1026. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1027. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1028.  
  1029. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1030. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1031. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1032.  
  1033.  
  1034.  
  1035. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1036. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1037. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1038.  
  1039. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1040. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1041. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1042.  
  1043. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1044. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1045. CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1046.  
  1047. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1048. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1049. CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1050. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1051. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1052. CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]--
  1053.  
  1054. ------------- Trails
  1055. local A0 = Instance.new("Attachment",lwing1)
  1056. A0.Position = Vector3.new(0,-0.7,0)
  1057. local A1 = Instance.new("Attachment",lwing1)
  1058. A1.Position = Vector3.new(0,-3.5,0)
  1059. tl1 = Instance.new('Trail',lwing1)
  1060. tl1.Attachment0 = A0
  1061. tl1.Attachment1 = A1
  1062. tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1063. tl1.LightEmission = 1
  1064. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1065. tl1.Color = ColorSequence.new(BrickColor.new('White').Color)
  1066. tl1.Lifetime = 0.6
  1067.  
  1068. local A0 = Instance.new("Attachment",lwing2)
  1069. A0.Position = Vector3.new(0,-0.7,0)
  1070. local A1 = Instance.new("Attachment",lwing2)
  1071. A1.Position = Vector3.new(0,-3.5,0)
  1072. tl2 = Instance.new('Trail',lwing2)
  1073. tl2.Attachment0 = A0
  1074. tl2.Attachment1 = A1
  1075. tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1076. tl2.LightEmission = 1
  1077. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1078. tl2.Color = ColorSequence.new(BrickColor.new('White').Color)
  1079. tl2.Lifetime = 0.6
  1080.  
  1081. local A0 = Instance.new("Attachment",lwing3)
  1082. A0.Position = Vector3.new(0,-0.7,0)
  1083. local A1 = Instance.new("Attachment",lwing3)
  1084. A1.Position = Vector3.new(0,-3.5,0)
  1085. tl3 = Instance.new('Trail',lwing3)
  1086. tl3.Attachment0 = A0
  1087. tl3.Attachment1 = A1
  1088. tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1089. tl3.LightEmission = 1
  1090. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1091. tl3.Color = ColorSequence.new(BrickColor.new('White').Color)
  1092. tl3.Lifetime = 0.6
  1093.  
  1094. local A0 = Instance.new("Attachment",rwing1)
  1095. A0.Position = Vector3.new(0,-0.7,0)
  1096. local A1 = Instance.new("Attachment",rwing1)
  1097. A1.Position = Vector3.new(0,-3.5,0)
  1098. tr1 = Instance.new('Trail',rwing1)
  1099. tr1.Attachment0 = A0
  1100. tr1.Attachment1 = A1
  1101. tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1102. tr1.LightEmission = 1
  1103. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1104. tr1.Color = ColorSequence.new(BrickColor.new('White').Color)
  1105. tr1.Lifetime = 0.6
  1106.  
  1107. local A0 = Instance.new("Attachment",rwing2)
  1108. A0.Position = Vector3.new(0,-0.7,0)
  1109. local A1 = Instance.new("Attachment",rwing2)
  1110. A1.Position = Vector3.new(0,-3.5,0)
  1111. tr2 = Instance.new('Trail',rwing2)
  1112. tr2.Attachment0 = A0
  1113. tr2.Attachment1 = A1
  1114. tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1115. tr2.LightEmission = 1
  1116. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1117. tr2.Color = ColorSequence.new(BrickColor.new('White').Color)
  1118. tr2.Lifetime = 0.6
  1119.  
  1120. local A0 = Instance.new("Attachment",rwing3)
  1121. A0.Position = Vector3.new(0,-0.7,0)
  1122. local A1 = Instance.new("Attachment",rwing3)
  1123. A1.Position = Vector3.new(0,-3.5,0)
  1124. tr3 = Instance.new('Trail',rwing3)
  1125. tr3.Attachment0 = A0
  1126. tr3.Attachment1 = A1
  1127. tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1128. tr3.LightEmission = 1
  1129. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1130. tr3.Color = ColorSequence.new(BrickColor.new('White').Color)
  1131. tr3.Lifetime = 0.6
  1132. --------------
  1133.  
  1134. for i, v in pairs(mw2:GetChildren()) do
  1135. if v:IsA("Part") then
  1136. v.BrickColor = BrickColor.new("White")
  1137. v.Material = "Neon"
  1138. end
  1139. end
  1140. for i, v in pairs(mw1:GetChildren()) do
  1141. if v:IsA("Part") then
  1142. v.Transparency = 0
  1143. v.BrickColor = BrickColor.new("White")
  1144. v.Material = "Neon"
  1145. end
  1146. end
  1147. for i, v in pairs(extrawingmod1:GetChildren()) do
  1148. if v:IsA("Part") then
  1149. v.Transparency = 1
  1150. v.BrickColor = BrickColor.new("White")
  1151. v.Material = "Neon"
  1152. end
  1153. end
  1154. for i, v in pairs(extrawingmod2:GetChildren()) do
  1155. if v:IsA("Part") then
  1156. v.Transparency = 1
  1157. v.BrickColor = BrickColor.new("White")
  1158. v.Material = "Neon"
  1159. end
  1160. end
  1161. local MAINRUINCOLOR = BrickColor.new("White")
  1162. ------
  1163.  
  1164.  
  1165. function RemoveOutlines(part)
  1166. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1167. end
  1168. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1169. local Part = Create("Part")({
  1170. Parent = Parent,
  1171. Reflectance = Reflectance,
  1172. Transparency = Transparency,
  1173. CanCollide = false,
  1174. Locked = true,
  1175. BrickColor = BrickColor.new(tostring(BColor)),
  1176. Name = Name,
  1177. Size = Size,
  1178. Material = Material
  1179. })
  1180. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1181. RemoveOutlines(Part)
  1182. return Part
  1183. end
  1184. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1185. local Msh = Create(Mesh)({
  1186. Parent = Part,
  1187. Offset = OffSet,
  1188. Scale = Scale
  1189. })
  1190. if Mesh == "SpecialMesh" then
  1191. Msh.MeshType = MeshType
  1192. Msh.MeshId = MeshId
  1193. end
  1194. return Msh
  1195. end
  1196. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1197. local Weld = Create("Weld")({
  1198. Parent = Parent,
  1199. Part0 = Part0,
  1200. Part1 = Part1,
  1201. C0 = C0,
  1202. C1 = C1
  1203. })
  1204. return Weld
  1205. end
  1206.  
  1207. Player=game:GetService("Players").LocalPlayer
  1208. Character=Player.Character
  1209. PlayerGui=Player.PlayerGui
  1210. Backpack=Player.Backpack
  1211. Torso=Character.Torso
  1212. Head=Character.Head
  1213. Humanoid=Character.Humanoid
  1214. m=Instance.new('Model',Character)
  1215. LeftArm=Character["Left Arm"]
  1216. LeftLeg=Character["Left Leg"]
  1217. RightArm=Character["Right Arm"]
  1218. RightLeg=Character["Right Leg"]
  1219. LS=Torso["Left Shoulder"]
  1220. LH=Torso["Left Hip"]
  1221. RS=Torso["Right Shoulder"]
  1222. RH=Torso["Right Hip"]
  1223. Face = Head.face
  1224. Neck=Torso.Neck
  1225. it=Instance.new
  1226. attacktype=1
  1227. vt=Vector3.new
  1228. cf=CFrame.new
  1229. euler=CFrame.fromEulerAnglesXYZ
  1230. angles=CFrame.Angles
  1231. cloaked=false
  1232. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1233. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1234. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1235. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1236. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1237. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1238. RootPart=Character.HumanoidRootPart
  1239. RootJoint=RootPart.RootJoint
  1240. RootCF=euler(-1.57,0,3.14)
  1241. attack = false
  1242. attackdebounce = false
  1243. deb=false
  1244. equipped=true
  1245. hand=false
  1246. MMouse=nil
  1247. combo=0
  1248. mana=0
  1249. trispeed=.2
  1250. attackmode='none'
  1251. local idle=0
  1252. local Anim="Idle"
  1253. local Effects={}
  1254. local gun=false
  1255. local shoot=false
  1256. local sine = 0
  1257. local change = 1
  1258. player=nil
  1259.  
  1260. function RecolorTextAndRename(name,col1,col2,font)
  1261. modet.TextStrokeColor3 = col2
  1262. modet.TextColor3 = col1
  1263. modet.Font = font
  1264. modet.Text = name
  1265. end
  1266. mouse=Player:GetMouse()
  1267. --save shoulders
  1268. RSH, LSH=nil, nil
  1269. --welds
  1270. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1271. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1272. LH=Torso["Left Hip"]
  1273. RH=Torso["Right Hip"]
  1274. TorsoColor=Torso.BrickColor
  1275. function NoOutline(Part)
  1276. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1277. end
  1278. player=Player
  1279. ch=Character
  1280. RSH=ch.Torso["Right Shoulder"]
  1281. LSH=ch.Torso["Left Shoulder"]
  1282. --
  1283. RSH.Parent=nil
  1284. LSH.Parent=nil
  1285. --
  1286. RW.Name="Right Shoulder"
  1287. RW.Part0=ch.Torso
  1288. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1289. RW.C1=cf(0, 0.5, 0)
  1290. RW.Part1=ch["Right Arm"]
  1291. RW.Parent=ch.Torso
  1292. --
  1293. LW.Name="Left Shoulder"
  1294. LW.Part0=ch.Torso
  1295. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1296. LW.C1=cf(0, 0.5, 0)
  1297. LW.Part1=ch["Left Arm"]
  1298. LW.Parent=ch.Torso
  1299.  
  1300. local Stats=Instance.new("BoolValue")
  1301. Stats.Name="Stats"
  1302. Stats.Parent=Character
  1303. local Atk=Instance.new("NumberValue")
  1304. Atk.Name="Damage"
  1305. Atk.Parent=Stats
  1306. Atk.Value=1
  1307. local Def=Instance.new("NumberValue")
  1308. Def.Name="Defense"
  1309. Def.Parent=Stats
  1310. Def.Value=1
  1311. local Speed=Instance.new("NumberValue")
  1312. Speed.Name="Speed"
  1313. Speed.Parent=Stats
  1314. Speed.Value=1
  1315. local Mvmt=Instance.new("NumberValue")
  1316. Mvmt.Name="Movement"
  1317. Mvmt.Parent=Stats
  1318. Mvmt.Value=1
  1319.  
  1320. local donum=0
  1321.  
  1322.  
  1323. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1324. local fp=it("Part")
  1325. fp.formFactor=formfactor
  1326. fp.Parent=parent
  1327. fp.Reflectance=reflectance
  1328. fp.Transparency=transparency
  1329. fp.CanCollide=false
  1330. fp.Locked=true
  1331. fp.BrickColor=brickcolor
  1332. fp.Name=name
  1333. fp.Size=size
  1334. fp.Position=Torso.Position
  1335. NoOutline(fp)
  1336. fp.Material="SmoothPlastic"
  1337. fp:BreakJoints()
  1338. return fp
  1339. end
  1340.  
  1341. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1342. local mesh=it(Mesh)
  1343. mesh.Parent=part
  1344. if Mesh=="SpecialMesh" then
  1345. mesh.MeshType=meshtype
  1346. if meshid~="nil" then
  1347. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1348. end
  1349. end
  1350. mesh.Offset=offset
  1351. mesh.Scale=scale
  1352. return mesh
  1353. end
  1354.  
  1355. function weld(parent,part0,part1,c0)
  1356. local weld=it("Weld")
  1357. weld.Parent=parent
  1358. weld.Part0=part0
  1359. weld.Part1=part1
  1360. weld.C0=c0
  1361. return weld
  1362. end
  1363.  
  1364. local Color1=Torso.BrickColor
  1365.  
  1366. local bodvel=Instance.new("BodyVelocity")
  1367. local bg=Instance.new("BodyGyro")
  1368.  
  1369. function swait(num)
  1370. if num==0 or num==nil then
  1371. game:service'RunService'.Stepped:wait(0)
  1372. else
  1373. for i=0,num do
  1374. game:service'RunService'.Stepped:wait(0)
  1375. end
  1376. end
  1377. end
  1378.  
  1379. -------- RAINBOW LEAVE IT TO ME
  1380. local r = 255
  1381. local g = 0
  1382. local b = 0
  1383. coroutine.resume(coroutine.create(function()
  1384. while wait() do
  1385. for i = 0, 254/5 do
  1386. swait()
  1387. g = g + 5
  1388. end
  1389. for i = 0, 254/5 do
  1390. swait()
  1391. r = r - 5
  1392. end
  1393. for i = 0, 254/5 do
  1394. swait()
  1395. b = b + 5
  1396. end
  1397. for i = 0, 254/5 do
  1398. swait()
  1399. g = g - 5
  1400. end
  1401. for i = 0, 254/5 do
  1402. swait()
  1403. r = r + 5
  1404. end
  1405. for i = 0, 254/5 do
  1406. swait()
  1407. b = b - 5
  1408. end
  1409. end
  1410. end))
  1411.  
  1412.  
  1413. so = function(id,par,vol,pit)
  1414. coroutine.resume(coroutine.create(function()
  1415. local sou = Instance.new("Sound",par or workspace)
  1416. sou.Volume=vol
  1417. sou.Pitch=pit or 1
  1418. sou.SoundId=id
  1419. swait()
  1420. sou:play()
  1421. game:GetService("Debris"):AddItem(sou,6)
  1422. end))
  1423. end
  1424.  
  1425. function clerp(a,b,t)
  1426. local qa = {QuaternionFromCFrame(a)}
  1427. local qb = {QuaternionFromCFrame(b)}
  1428. local ax, ay, az = a.x, a.y, a.z
  1429. local bx, by, bz = b.x, b.y, b.z
  1430. local _t = 1-t
  1431. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1432. end
  1433.  
  1434. function QuaternionFromCFrame(cf)
  1435. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1436. local trace = m00 + m11 + m22
  1437. if trace > 0 then
  1438. local s = math.sqrt(1 + trace)
  1439. local recip = 0.5/s
  1440. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1441. else
  1442. local i = 0
  1443. if m11 > m00 then
  1444. i = 1
  1445. end
  1446. if m22 > (i == 0 and m00 or m11) then
  1447. i = 2
  1448. end
  1449. if i == 0 then
  1450. local s = math.sqrt(m00-m11-m22+1)
  1451. local recip = 0.5/s
  1452. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1453. elseif i == 1 then
  1454. local s = math.sqrt(m11-m22-m00+1)
  1455. local recip = 0.5/s
  1456. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1457. elseif i == 2 then
  1458. local s = math.sqrt(m22-m00-m11+1)
  1459. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1460. end
  1461. end
  1462. end
  1463.  
  1464. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1465. local xs, ys, zs = x + x, y + y, z + z
  1466. local wx, wy, wz = w*xs, w*ys, w*zs
  1467. local xx = x*xs
  1468. local xy = x*ys
  1469. local xz = x*zs
  1470. local yy = y*ys
  1471. local yz = y*zs
  1472. local zz = z*zs
  1473. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  1474. end
  1475.  
  1476. function QuaternionSlerp(a, b, t)
  1477. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1478. local startInterp, finishInterp;
  1479. if cosTheta >= 0.0001 then
  1480. if (1 - cosTheta) > 0.0001 then
  1481. local theta = math.acos(cosTheta)
  1482. local invSinTheta = 1/math.sin(theta)
  1483. startInterp = math.sin((1-t)*theta)*invSinTheta
  1484. finishInterp = math.sin(t*theta)*invSinTheta
  1485. else
  1486. startInterp = 1-t
  1487. finishInterp = t
  1488. end
  1489. else
  1490. if (1+cosTheta) > 0.0001 then
  1491. local theta = math.acos(-cosTheta)
  1492. local invSinTheta = 1/math.sin(theta)
  1493. startInterp = math.sin((t-1)*theta)*invSinTheta
  1494. finishInterp = math.sin(t*theta)*invSinTheta
  1495. else
  1496. startInterp = t-1
  1497. finishInterp = t
  1498. end
  1499. end
  1500. 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
  1501. end
  1502.  
  1503. local function CFrameFromTopBack(at, top, back)
  1504. local right = top:Cross(back)
  1505. return CFrame.new(at.x, at.y, at.z,
  1506. right.x, top.x, back.x,
  1507. right.y, top.y, back.y,
  1508. right.z, top.z, back.z)
  1509. end
  1510.  
  1511. function Triangle(a, b, c)
  1512. local edg1 = (c-a):Dot((b-a).unit)
  1513. local edg2 = (a-b):Dot((c-b).unit)
  1514. local edg3 = (b-c):Dot((a-c).unit)
  1515. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1516. a, b, c = a, b, c
  1517. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1518. a, b, c = b, c, a
  1519. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1520. a, b, c = c, a, b
  1521. else
  1522. assert(false, "unreachable")
  1523. end
  1524.  
  1525. local len1 = (c-a):Dot((b-a).unit)
  1526. local len2 = (b-a).magnitude - len1
  1527. local width = (a + (b-a).unit*len1 - c).magnitude
  1528.  
  1529. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1530.  
  1531. local list = {}
  1532.  
  1533. if len1 > 0.01 then
  1534. local w1 = Instance.new('WedgePart', m)
  1535. game:GetService("Debris"):AddItem(w1,5)
  1536. w1.Material = "SmoothPlastic"
  1537. w1.FormFactor = 'Custom'
  1538. w1.BrickColor = BrickColor.new("Really red")
  1539. w1.Transparency = 0
  1540. w1.Reflectance = 0
  1541. w1.Material = "SmoothPlastic"
  1542. w1.CanCollide = false
  1543. local l1 = Instance.new("PointLight",w1)
  1544. l1.Color = Color3.new(170,0,0)
  1545. NoOutline(w1)
  1546. local sz = Vector3.new(0.2, width, len1)
  1547. w1.Size = sz
  1548. local sp = Instance.new("SpecialMesh",w1)
  1549. sp.MeshType = "Wedge"
  1550. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1551. w1:BreakJoints()
  1552. w1.Anchored = true
  1553. w1.Parent = workspace
  1554. w1.Transparency = 0.7
  1555. table.insert(Effects,{w1,"Disappear",.01})
  1556. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1557. table.insert(list,w1)
  1558. end
  1559.  
  1560. if len2 > 0.01 then
  1561. local w2 = Instance.new('WedgePart', m)
  1562. game:GetService("Debris"):AddItem(w2,5)
  1563. w2.Material = "SmoothPlastic"
  1564. w2.FormFactor = 'Custom'
  1565. w2.BrickColor = BrickColor.new("Really red")
  1566. w2.Transparency = 0
  1567. w2.Reflectance = 0
  1568. w2.Material = "SmoothPlastic"
  1569. w2.CanCollide = false
  1570. local l2 = Instance.new("PointLight",w2)
  1571. l2.Color = Color3.new(170,0,0)
  1572. NoOutline(w2)
  1573. local sz = Vector3.new(0.2, width, len2)
  1574. w2.Size = sz
  1575. local sp = Instance.new("SpecialMesh",w2)
  1576. sp.MeshType = "Wedge"
  1577. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1578. w2:BreakJoints()
  1579. w2.Anchored = true
  1580. w2.Parent = workspace
  1581. w2.Transparency = 0.7
  1582. table.insert(Effects,{w2,"Disappear",.01})
  1583. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1584. table.insert(list,w2)
  1585. end
  1586. return unpack(list)
  1587. end
  1588.  
  1589.  
  1590. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1591. if hit.Parent == nil then
  1592. return
  1593. end
  1594. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1595. for _, v in pairs(hit.Parent:children()) do
  1596. if v:IsA("Humanoid") then
  1597. h = v
  1598. end
  1599. end
  1600. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1601. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1602. return
  1603. end
  1604. local c = Create("ObjectValue")({
  1605. Name = "creator",
  1606. Value = game:service("Players").LocalPlayer,
  1607. Parent = h
  1608. })
  1609. game:GetService("Debris"):AddItem(c, 0.5)
  1610. if HitSound ~= nil and HitPitch ~= nil then
  1611. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1612. end
  1613. local Damage = math.random(minim, maxim)
  1614. local blocked = false
  1615. local block = hit.Parent:findFirstChild("Block")
  1616. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1617. blocked = true
  1618. block.Value = block.Value - 1
  1619. print(block.Value)
  1620. end
  1621. if blocked == false then
  1622. HitHealth = h.Health
  1623. h.Health = h.Health - Damage
  1624. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1625. print("gained kill")
  1626. end
  1627. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1628. else
  1629. h.Health = h.Health - Damage / 2
  1630. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1631. end
  1632. if Type == "Knockdown" then
  1633. local hum = hit.Parent.Humanoid
  1634. hum.PlatformStand = true
  1635. coroutine.resume(coroutine.create(function(HHumanoid)
  1636. swait(1)
  1637. HHumanoid.PlatformStand = false
  1638. end), hum)
  1639. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1640. local bodvol = Create("BodyVelocity")({
  1641. velocity = angle * knockback,
  1642. P = 5000,
  1643. maxForce = Vector3.new(8000, 8000, 8000),
  1644. Parent = hit
  1645. })
  1646. local rl = Create("BodyAngularVelocity")({
  1647. P = 3000,
  1648. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1649. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1650. Parent = hit
  1651. })
  1652. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1653. game:GetService("Debris"):AddItem(rl, 0.5)
  1654. elseif Type == "Normal" then
  1655. local vp = Create("BodyVelocity")({
  1656. P = 500,
  1657. maxForce = Vector3.new(math.huge, 0, math.huge),
  1658. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1659. })
  1660. if knockback > 0 then
  1661. vp.Parent = hit.Parent.Head
  1662. end
  1663. game:GetService("Debris"):AddItem(vp, 0.5)
  1664. elseif Type == "Up" then
  1665. local bodyVelocity = Create("BodyVelocity")({
  1666. velocity = Vector3.new(0, 20, 0),
  1667. P = 5000,
  1668. maxForce = Vector3.new(8000, 8000, 8000),
  1669. Parent = hit
  1670. })
  1671. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1672. local bodyVelocity = Create("BodyVelocity")({
  1673. velocity = Vector3.new(0, 20, 0),
  1674. P = 5000,
  1675. maxForce = Vector3.new(8000, 8000, 8000),
  1676. Parent = hit
  1677. })
  1678. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1679. elseif Type == "Leech" then
  1680. local hum = hit.Parent.Humanoid
  1681. if hum ~= nil then
  1682. for i = 0, 2 do
  1683. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1684. end
  1685. Humanoid.Health = Humanoid.Health + 10
  1686. end
  1687. elseif Type == "UpKnock" then
  1688. local hum = hit.Parent.Humanoid
  1689. hum.PlatformStand = true
  1690. if hum ~= nil then
  1691. hitr = true
  1692. end
  1693. coroutine.resume(coroutine.create(function(HHumanoid)
  1694. swait(5)
  1695. HHumanoid.PlatformStand = false
  1696. hitr = false
  1697. end), hum)
  1698. local bodyVelocity = Create("BodyVelocity")({
  1699. velocity = Vector3.new(0, 20, 0),
  1700. P = 5000,
  1701. maxForce = Vector3.new(8000, 8000, 8000),
  1702. Parent = hit
  1703. })
  1704. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1705. local bodyVelocity = Create("BodyVelocity")({
  1706. velocity = Vector3.new(0, 20, 0),
  1707. P = 5000,
  1708. maxForce = Vector3.new(8000, 8000, 8000),
  1709. Parent = hit
  1710. })
  1711. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1712. elseif Type == "Snare" then
  1713. local bp = Create("BodyPosition")({
  1714. P = 2000,
  1715. D = 100,
  1716. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1717. position = hit.Parent.Torso.Position,
  1718. Parent = hit.Parent.Torso
  1719. })
  1720. game:GetService("Debris"):AddItem(bp, 1)
  1721. elseif Type == "Slashnare" then
  1722. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  1723. for i = 1, math.random(4, 5) do
  1724. Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1725. end
  1726. local bp = Create("BodyPosition")({
  1727. P = 2000,
  1728. D = 100,
  1729. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1730. position = hit.Parent.Torso.Position,
  1731. Parent = hit.Parent.Torso
  1732. })
  1733. game:GetService("Debris"):AddItem(bp, 1)
  1734. elseif Type == "Spike" then
  1735. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1736. local bp = Create("BodyPosition")({
  1737. P = 2000,
  1738. D = 100,
  1739. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1740. position = hit.Parent.Torso.Position,
  1741. Parent = hit.Parent.Torso
  1742. })
  1743. game:GetService("Debris"):AddItem(bp, 1)
  1744. elseif Type == "Freeze" then
  1745. local BodPos = Create("BodyPosition")({
  1746. P = 50000,
  1747. D = 1000,
  1748. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1749. position = hit.Parent.Torso.Position,
  1750. Parent = hit.Parent.Torso
  1751. })
  1752. local BodGy = Create("BodyGyro")({
  1753. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1754. P = 20000,
  1755. Parent = hit.Parent.Torso,
  1756. cframe = hit.Parent.Torso.CFrame
  1757. })
  1758. hit.Parent.Torso.Anchored = true
  1759. coroutine.resume(coroutine.create(function(Part)
  1760. swait(1.5)
  1761. Part.Anchored = false
  1762. end), hit.Parent.Torso)
  1763. game:GetService("Debris"):AddItem(BodPos, 3)
  1764. game:GetService("Debris"):AddItem(BodGy, 3)
  1765. end
  1766. local debounce = Create("BoolValue")({
  1767. Name = "DebounceHit",
  1768. Parent = hit.Parent,
  1769. Value = true
  1770. })
  1771. game:GetService("Debris"):AddItem(debounce, Delay)
  1772. c = Instance.new("ObjectValue")
  1773. c.Name = "creator"
  1774. c.Value = Player
  1775. c.Parent = h
  1776. game:GetService("Debris"):AddItem(c, 0.5)
  1777. end
  1778. end
  1779. function ShowDamage(Pos, Text, Time, Color)
  1780. local Rate = 0.03333333333333333
  1781. local Pos = Pos or Vector3.new(0, 0, 0)
  1782. local Text = Text or ""
  1783. local Time = Time or 2
  1784. local Color = Color or Color3.new(1, 0, 1)
  1785. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1786. EffectPart.Anchored = true
  1787. local BillboardGui = Create("BillboardGui")({
  1788. Size = UDim2.new(3, 0, 3, 0),
  1789. Adornee = EffectPart,
  1790. Parent = EffectPart
  1791. })
  1792. local TextLabel = Create("TextLabel")({
  1793. BackgroundTransparency = 1,
  1794. Size = UDim2.new(1, 0, 1, 0),
  1795. Text = Text,
  1796. TextColor3 = Color,
  1797. TextScaled = true,
  1798. Font = Enum.Font.ArialBold,
  1799. Parent = BillboardGui
  1800. })
  1801. game.Debris:AddItem(EffectPart, Time + 0.1)
  1802. EffectPart.Parent = game:GetService("Workspace")
  1803. delay(0, function()
  1804. local Frames = Time / Rate
  1805. for Frame = 1, Frames do
  1806. wait(Rate)
  1807. local Percent = Frame / Frames
  1808. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1809. TextLabel.TextTransparency = Percent
  1810. end
  1811. if EffectPart and EffectPart.Parent then
  1812. EffectPart:Destroy()
  1813. end
  1814. end)
  1815. end
  1816. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1817. for _, c in pairs(workspace:children()) do
  1818. local hum = c:findFirstChildOfClass("Humanoid")
  1819. if hum ~= nil then
  1820. local head = c:findFirstChild("Head")
  1821. if head ~= nil then
  1822. local targ = head.Position - Part.Position
  1823. local mag = targ.magnitude
  1824. if magni >= mag and c.Name ~= Player.Name then
  1825. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1826. end
  1827. end
  1828. end
  1829. end
  1830. end
  1831.  
  1832. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1833. for _, c in pairs(workspace:children()) do
  1834. local hum = c:findFirstChild("Humanoid")
  1835. if hum ~= nil then
  1836. local head = c:findFirstChild("Torso")
  1837. if head ~= nil then
  1838. local targ = head.Position - Part.Position
  1839. local mag = targ.magnitude
  1840. if magni >= mag and c.Name ~= Player.Name then
  1841. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1842. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1843. end
  1844. end
  1845. end
  1846. end
  1847. end
  1848.  
  1849. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1850. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1851. end
  1852.  
  1853. local origcolor = BrickColor.new("Pastel light blue")
  1854. ---- This section of explosions.
  1855.  
  1856. ----
  1857.  
  1858.  
  1859. function ring(type,pos,scale,value)
  1860. local type = type
  1861. local rng = Instance.new("Part", char)
  1862. rng.Anchored = true
  1863. rng.BrickColor = origcolor
  1864. rng.CanCollide = false
  1865. rng.FormFactor = 3
  1866. rng.Name = "Ring"
  1867. rng.Size = Vector3.new(1, 1, 1)
  1868. rng.Transparency = 0
  1869. rng.TopSurface = 0
  1870. rng.BottomSurface = 0
  1871. rng.CFrame = pos
  1872. local rngm = Instance.new("SpecialMesh", rng)
  1873. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1874. rngm.Scale = scale
  1875. local scaler2 = 1
  1876. if type == "Add" then
  1877. scaler2 = 1*value
  1878. elseif type == "Divide" then
  1879. scaler2 = 1/value
  1880. end
  1881. coroutine.resume(coroutine.create(function()
  1882. for i = 0,10,0.1 do
  1883. swait()
  1884. if type == "Add" then
  1885. scaler2 = scaler2 - 0.01*value
  1886. elseif type == "Divide" then
  1887. scaler2 = scaler2 - 0.01/value
  1888. end
  1889. rng.Transparency = rng.Transparency + 0.01
  1890. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1891. end
  1892. rng:Destroy()
  1893. end))
  1894. end
  1895.  
  1896.  
  1897. function wave(type,pos,scale,value)
  1898. local type = type
  1899. local rng = Instance.new("Part", char)
  1900. rng.Anchored = true
  1901. rng.BrickColor = origcolor
  1902. rng.CanCollide = false
  1903. rng.FormFactor = 3
  1904. rng.Name = "Ring"
  1905. rng.Size = Vector3.new(1, 1, 1)
  1906. rng.Transparency = 0
  1907. rng.TopSurface = 0
  1908. rng.BottomSurface = 0
  1909. rng.CFrame = pos
  1910. local rngm = Instance.new("SpecialMesh", rng)
  1911. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1912. rngm.Scale = scale
  1913. local scaler2 = 1
  1914. if type == "Add" then
  1915. scaler2 = 1*value
  1916. elseif type == "Divide" then
  1917. scaler2 = 1/value
  1918. end
  1919. coroutine.resume(coroutine.create(function()
  1920. for i = 0,10,0.1 do
  1921. swait()
  1922. if type == "Add" then
  1923. scaler2 = scaler2 - 0.01*value
  1924. elseif type == "Divide" then
  1925. scaler2 = scaler2 - 0.01/value
  1926. end
  1927. rng.Transparency = rng.Transparency + 0.01
  1928. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  1929. end
  1930. rng:Destroy()
  1931. end))
  1932. end
  1933.  
  1934. function sphere(bonuspeed,type,pos,scale,value,color)
  1935. local type = type
  1936. local rng = Instance.new("Part", char)
  1937. rng.Anchored = true
  1938. if ModeOfGlitch ~= 9 then
  1939. rng.BrickColor = color
  1940. elseif ModeOfGlitch == 9 then
  1941. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  1942. end
  1943. rng.CanCollide = false
  1944. rng.FormFactor = 3
  1945. rng.Name = "Ring"
  1946. rng.Material = "Neon"
  1947. rng.Size = Vector3.new(1, 1, 1)
  1948. rng.Transparency = 0
  1949. rng.TopSurface = 0
  1950. rng.BottomSurface = 0
  1951. rng.CFrame = pos
  1952. local rngm = Instance.new("SpecialMesh", rng)
  1953. rngm.MeshType = "Sphere"
  1954. rngm.Scale = scale
  1955. if rainbowmode == true then
  1956. rng.Color = Color3.new(r/255,g/255,b/255)
  1957. end
  1958. if ModeOfGlitch == 9 then
  1959. coroutine.resume(coroutine.create(function()
  1960. while true do
  1961. swait()
  1962. if rng.Parent ~= nil then
  1963. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  1964. else
  1965. break
  1966. end
  1967. end
  1968. end))
  1969. end
  1970. local scaler2 = 1
  1971. if type == "Add" then
  1972. scaler2 = 1*value
  1973. elseif type == "Divide" then
  1974. scaler2 = 1/value
  1975. end
  1976. coroutine.resume(coroutine.create(function()
  1977. for i = 0,10/bonuspeed,0.1 do
  1978. swait()
  1979. if rainbowmode == true then
  1980. rng.Color = Color3.new(r/255,g/255,b/255)
  1981. end
  1982. if type == "Add" then
  1983. scaler2 = scaler2 - 0.01*value/bonuspeed
  1984. elseif type == "Divide" then
  1985. scaler2 = scaler2 - 0.01/value*bonuspeed
  1986. end
  1987. if chaosmode == true then
  1988. rng.BrickColor = BrickColor.random()
  1989. end
  1990. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  1991. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  1992. end
  1993. rng:Destroy()
  1994. end))
  1995. end
  1996.  
  1997. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  1998. local type = type
  1999. local rng = Instance.new("Part", char)
  2000. rng.Anchored = true
  2001. if ModeOfGlitch ~= 9 then
  2002. rng.BrickColor = color
  2003. elseif ModeOfGlitch == 9 then
  2004. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2005. end
  2006. rng.CanCollide = false
  2007. rng.FormFactor = 3
  2008. rng.Name = "Ring"
  2009. rng.Material = "Neon"
  2010. rng.Size = Vector3.new(1, 1, 1)
  2011. rng.Transparency = 0
  2012. rng.TopSurface = 0
  2013. rng.BottomSurface = 0
  2014. rng.CFrame = pos
  2015. local rngm = Instance.new("SpecialMesh", rng)
  2016. rngm.MeshType = "Sphere"
  2017. rngm.Scale = scale
  2018. local scaler2 = 1
  2019. local scaler2b = 1
  2020. local scaler2c = 1
  2021. if type == "Add" then
  2022. scaler2 = 1*value
  2023. scaler2b = 1*value2
  2024. scaler2c = 1*value3
  2025. elseif type == "Divide" then
  2026. scaler2 = 1/value
  2027. scaler2b = 1/value2
  2028. scaler2c = 1/value3
  2029. end
  2030. if ModeOfGlitch == 9 then
  2031. coroutine.resume(coroutine.create(function()
  2032. while true do
  2033. swait()
  2034. if rng.Parent ~= nil then
  2035. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2036. else
  2037. break
  2038. end
  2039. end
  2040. end))
  2041. end
  2042. coroutine.resume(coroutine.create(function()
  2043. for i = 0,10/bonuspeed,0.1 do
  2044. swait()
  2045. if type == "Add" then
  2046. scaler2 = scaler2 - 0.01*value/bonuspeed
  2047. scaler2b = scaler2b - 0.01*value/bonuspeed
  2048. scaler2c = scaler2c - 0.01*value/bonuspeed
  2049. elseif type == "Divide" then
  2050. scaler2 = scaler2 - 0.01/value*bonuspeed
  2051. scaler2b = scaler2b - 0.01/value*bonuspeed
  2052. scaler2c = scaler2c - 0.01/value*bonuspeed
  2053. end
  2054. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2055. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2056. end
  2057. rng:Destroy()
  2058. end))
  2059. end
  2060.  
  2061. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2062. local type = type
  2063. local rng = Instance.new("Part", char)
  2064. rng.Anchored = true
  2065. rng.BrickColor = color
  2066. rng.CanCollide = false
  2067. rng.FormFactor = 3
  2068. rng.Name = "Ring"
  2069. rng.Material = "Neon"
  2070. rng.Size = Vector3.new(1, 1, 1)
  2071. rng.Transparency = 0
  2072. rng.TopSurface = 0
  2073. rng.BottomSurface = 0
  2074. rng.CFrame = pos
  2075. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2076. local rngm = Instance.new("SpecialMesh", rng)
  2077. rngm.MeshType = "Brick"
  2078. rngm.Scale = vt(x1,y1,z1)
  2079. if rainbowmode == true then
  2080. rng.Color = Color3.new(r/255,g/255,b/255)
  2081. end
  2082. local scaler2 = 1
  2083. local speeder = FastSpeed/10
  2084. if type == "Add" then
  2085. scaler2 = 1*value
  2086. elseif type == "Divide" then
  2087. scaler2 = 1/value
  2088. end
  2089. coroutine.resume(coroutine.create(function()
  2090. for i = 0,10/bonuspeed,0.1 do
  2091. swait()
  2092. if rainbowmode == true then
  2093. rng.Color = Color3.new(r/255,g/255,b/255)
  2094. end
  2095. if type == "Add" then
  2096. scaler2 = scaler2 - 0.01*value/bonuspeed
  2097. elseif type == "Divide" then
  2098. scaler2 = scaler2 - 0.01/value*bonuspeed
  2099. end
  2100. if chaosmode == true then
  2101. rng.BrickColor = BrickColor.random()
  2102. end
  2103. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2104. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2105. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2106. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2107. end
  2108. rng:Destroy()
  2109. end))
  2110. end
  2111.  
  2112. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2113. local type = type
  2114. local rng = Instance.new("Part", char)
  2115. rng.Anchored = true
  2116. rng.BrickColor = color
  2117. rng.CanCollide = false
  2118. rng.FormFactor = 3
  2119. rng.Name = "Ring"
  2120. rng.Material = "Neon"
  2121. rng.Size = Vector3.new(1, 1, 1)
  2122. rng.Transparency = 0
  2123. rng.TopSurface = 0
  2124. rng.BottomSurface = 0
  2125. rng.CFrame = pos
  2126. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2127. local rngm = Instance.new("SpecialMesh", rng)
  2128. rngm.MeshType = "Brick"
  2129. rngm.Scale = vt(x1,y1,z1)
  2130. if rainbowmode == true then
  2131. rng.Color = Color3.new(r/255,g/255,b/255)
  2132. end
  2133. local scaler2 = 1
  2134. local speeder = FastSpeed/10
  2135. if type == "Add" then
  2136. scaler2 = 1*value
  2137. elseif type == "Divide" then
  2138. scaler2 = 1/value
  2139. end
  2140. coroutine.resume(coroutine.create(function()
  2141. for i = 0,10/bonuspeed,0.1 do
  2142. swait()
  2143. if rainbowmode == true then
  2144. rng.Color = Color3.new(r/255,g/255,b/255)
  2145. end
  2146. if type == "Add" then
  2147. scaler2 = scaler2 - 0.01*value/bonuspeed
  2148. elseif type == "Divide" then
  2149. scaler2 = scaler2 - 0.01/value*bonuspeed
  2150. end
  2151. if chaosmode == true then
  2152. rng.BrickColor = BrickColor.random()
  2153. end
  2154. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2155. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2156. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2157. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2158. end
  2159. rng:Destroy()
  2160. end))
  2161. end
  2162.  
  2163. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2164. local type = type
  2165. local rng = Instance.new("Part", char)
  2166. rng.Anchored = true
  2167. rng.BrickColor = color
  2168. rng.CanCollide = false
  2169. rng.FormFactor = 3
  2170. rng.Name = "Ring"
  2171. rng.Material = "Neon"
  2172. rng.Size = Vector3.new(1, 1, 1)
  2173. rng.Transparency = 0
  2174. rng.TopSurface = 0
  2175. rng.BottomSurface = 0
  2176. rng.CFrame = pos
  2177. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2178. local rngm = Instance.new("SpecialMesh", rng)
  2179. rngm.MeshType = "Brick"
  2180. rngm.Scale = vt(x1,y1,z1)
  2181. if rainbowmode == true then
  2182. rng.Color = Color3.new(r/255,g/255,b/255)
  2183. end
  2184. local scaler2 = 0
  2185. local speeder = FastSpeed/10
  2186. if type == "Add" then
  2187. scaler2 = 1*value
  2188. elseif type == "Divide" then
  2189. scaler2 = 1/value
  2190. end
  2191. coroutine.resume(coroutine.create(function()
  2192. for i = 0,10/bonuspeed,0.1 do
  2193. swait()
  2194. if rainbowmode == true then
  2195. rng.Color = Color3.new(r/255,g/255,b/255)
  2196. end
  2197. if type == "Add" then
  2198. scaler2 = scaler2 - 0.01*value/bonuspeed
  2199. elseif type == "Divide" then
  2200. scaler2 = scaler2 - 0.01/value*bonuspeed
  2201. end
  2202. if chaosmode == true then
  2203. rng.BrickColor = BrickColor.random()
  2204. end
  2205. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2206. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2207. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2208. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2209. end
  2210. rng:Destroy()
  2211. end))
  2212. end
  2213.  
  2214. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2215. local type = type
  2216. local rng = Instance.new("Part", char)
  2217. rng.Anchored = true
  2218. if ModeOfGlitch ~= 9 then
  2219. rng.BrickColor = color
  2220. elseif ModeOfGlitch == 9 then
  2221. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2222. end
  2223. rng.CanCollide = false
  2224. rng.FormFactor = 3
  2225. rng.Name = "Ring"
  2226. rng.Material = "Neon"
  2227. rng.Size = Vector3.new(1, 1, 1)
  2228. rng.Transparency = 0
  2229. rng.TopSurface = 0
  2230. rng.BottomSurface = 0
  2231. rng.CFrame = pos
  2232. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2233. local rngm = Instance.new("SpecialMesh", rng)
  2234. rngm.MeshType = "Sphere"
  2235. rngm.Scale = vt(x1,y1,z1)
  2236. if rainbowmode == true then
  2237. rng.Color = Color3.new(r/255,g/255,b/255)
  2238. end
  2239. if ModeOfGlitch == 9 then
  2240. coroutine.resume(coroutine.create(function()
  2241. while true do
  2242. swait()
  2243. if rng.Parent ~= nil then
  2244. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2245. else
  2246. break
  2247. end
  2248. end
  2249. end))
  2250. end
  2251. local scaler2 = 1
  2252. local speeder = FastSpeed
  2253. if type == "Add" then
  2254. scaler2 = 1*value
  2255. elseif type == "Divide" then
  2256. scaler2 = 1/value
  2257. end
  2258. coroutine.resume(coroutine.create(function()
  2259. for i = 0,10/bonuspeed,0.1 do
  2260. swait()
  2261. if rainbowmode == true then
  2262. rng.Color = Color3.new(r/255,g/255,b/255)
  2263. end
  2264. if type == "Add" then
  2265. scaler2 = scaler2 - 0.01*value/bonuspeed
  2266. elseif type == "Divide" then
  2267. scaler2 = scaler2 - 0.01/value*bonuspeed
  2268. end
  2269. if chaosmode == true then
  2270. rng.BrickColor = BrickColor.random()
  2271. end
  2272. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2273. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2274. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2275. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2276. end
  2277. rng:Destroy()
  2278. end))
  2279. end
  2280.  
  2281.  
  2282. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2283. local type = type
  2284. local rng = Instance.new("Part", char)
  2285. rng.Anchored = true
  2286. if ModeOfGlitch ~= 9 then
  2287. rng.BrickColor = color
  2288. elseif ModeOfGlitch == 9 then
  2289. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2290. end
  2291. rng.CanCollide = false
  2292. rng.FormFactor = 3
  2293. rng.Name = "Ring"
  2294. rng.Material = "Neon"
  2295. rng.Size = Vector3.new(1, 1, 1)
  2296. rng.Transparency = 1
  2297. rng.TopSurface = 0
  2298. rng.BottomSurface = 0
  2299. rng.CFrame = pos
  2300. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2301. local rngm = Instance.new("SpecialMesh", rng)
  2302. rngm.MeshType = "Sphere"
  2303. rngm.Scale = vt(x1,y1,z1)
  2304. if rainbowmode == true then
  2305. rng.Color = Color3.new(r/255,g/255,b/255)
  2306. end
  2307. if ModeOfGlitch == 9 then
  2308. coroutine.resume(coroutine.create(function()
  2309. while true do
  2310. swait()
  2311. if rng.Parent ~= nil then
  2312. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2313. else
  2314. break
  2315. end
  2316. end
  2317. end))
  2318. end
  2319. local scaler2 = 1
  2320. local speeder = FastSpeed
  2321. if type == "Add" then
  2322. scaler2 = 1*value
  2323. elseif type == "Divide" then
  2324. scaler2 = 1/value
  2325. end
  2326. coroutine.resume(coroutine.create(function()
  2327. for i = 0,10/bonuspeed,0.1 do
  2328. swait()
  2329. if rainbowmode == true then
  2330. rng.Color = Color3.new(r/255,g/255,b/255)
  2331. end
  2332. if type == "Add" then
  2333. scaler2 = scaler2 - 0.01*value/bonuspeed
  2334. elseif type == "Divide" then
  2335. scaler2 = scaler2 - 0.01/value*bonuspeed
  2336. end
  2337. if chaosmode == true then
  2338. rng.BrickColor = BrickColor.random()
  2339. end
  2340. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2341. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2342. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2343. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2344. end
  2345. rng:Destroy()
  2346. end))
  2347. end
  2348.  
  2349. function dmg(dude)
  2350. if dude.Name ~= Character then
  2351. local keptcolor = MAINRUINCOLOR
  2352. local bgf = Instance.new("BodyGyro",dude.Head)
  2353. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  2354. --[[local val = Instance.new("BoolValue",dude)
  2355. val.Name = "IsHit"]]--
  2356. local ds = coroutine.wrap(function()
  2357. dude:WaitForChild("Head"):BreakJoints()
  2358. for i, v in pairs(dude:GetChildren()) do
  2359. if v:IsA("Part") or v:IsA("MeshPart") then
  2360. v.Name = "DEMINISHED"
  2361. end
  2362. end
  2363. wait(0.5)
  2364. targetted = nil
  2365. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  2366. coroutine.resume(coroutine.create(function()
  2367. for i, v in pairs(dude:GetChildren()) do
  2368. if v:IsA("Accessory") then
  2369. v:Destroy()
  2370. end
  2371. if v:IsA("Humanoid") then
  2372. v:Destroy()
  2373. end
  2374. if v:IsA("CharacterMesh") then
  2375. v:Destroy()
  2376. end
  2377. if v:IsA("Model") then
  2378. v:Destroy()
  2379. end
  2380. if v:IsA("Part") or v:IsA("MeshPart") then
  2381. for x, o in pairs(v:GetChildren()) do
  2382. if o:IsA("Decal") then
  2383. o:Destroy()
  2384. end
  2385. end
  2386. coroutine.resume(coroutine.create(function()
  2387. v.Material = "Neon"
  2388. v.CanCollide = false
  2389. v.Anchored = false
  2390. local bld = Instance.new("ParticleEmitter",v)
  2391. bld.LightEmission = 0.75
  2392. bld.Texture = "rbxassetid://363275192" ---284205403
  2393. bld.Color = ColorSequence.new(keptcolor.Color)
  2394. bld.Rate = 500
  2395. bld.Lifetime = NumberRange.new(1)
  2396. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  2397. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  2398. bld.Speed = NumberRange.new(2,5)
  2399. bld.VelocitySpread = 50000
  2400. bld.Rotation = NumberRange.new(-500,500)
  2401. bld.RotSpeed = NumberRange.new(-500,500)
  2402. local sbs = Instance.new("BodyPosition", v)
  2403. sbs.P = 3000
  2404. sbs.D = 1000
  2405. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2406. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  2407. v.Color = keptcolor.Color
  2408. coroutine.resume(coroutine.create(function()
  2409. for i = 0, 49 do
  2410. swait(1)
  2411. v:BreakJoints()
  2412. v.Transparency = v.Transparency + 0.02
  2413. end
  2414. v:BreakJoints()
  2415. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  2416. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  2417. bld.Speed = NumberRange.new(10,25)
  2418. bld.Drag = 5
  2419. bld.Acceleration = vt(0,2,0)
  2420. wait(0.5)
  2421. bld.Enabled = false
  2422. wait(8)
  2423. v:Destroy()
  2424. dude:Destroy()
  2425. end))
  2426. end))
  2427. end
  2428. end
  2429. end))
  2430. end)
  2431. ds()
  2432. end
  2433. end
  2434.  
  2435.  
  2436. function FindNearestHead(Position, Distance, SinglePlayer)
  2437. if SinglePlayer then
  2438. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  2439. end
  2440. local List = {}
  2441. for i, v in pairs(workspace:GetChildren()) do
  2442. if v:IsA("Model") then
  2443. if v:findFirstChild("Head") then
  2444. if v ~= Character then
  2445. if (v.Head.Position - Position).magnitude <= Distance then
  2446. table.insert(List, v)
  2447. end
  2448. end
  2449. end
  2450. end
  2451. end
  2452. return List
  2453. end
  2454.  
  2455. function FaceMouse()
  2456. Cam = workspace.CurrentCamera
  2457. return {
  2458. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  2459. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2460. }
  2461. end
  2462.  
  2463. function FaceMouse2()
  2464. Cam = workspace.CurrentCamera
  2465. return {
  2466. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  2467. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2468. }
  2469. end
  2470.  
  2471. -- Functions are ready.
  2472. local storehumanoidWS = 16
  2473.  
  2474. function resetmode()
  2475. ModeOfGlitch = 1
  2476. storehumanoidWS = 16
  2477. hum.WalkSpeed = 16
  2478. rainbowmode = false
  2479. chaosmode = false
  2480. RecolorTextAndRename("Enlightened",Color3.new(1,1,1),Color3.new(0,0,0),"Code")
  2481. newTheme("rbxassetid://435773595",0,1.01,1.25)
  2482. MAINRUINCOLOR = BrickColor.new("White")
  2483. for i, v in pairs(mw2:GetChildren()) do
  2484. if v:IsA("Part") then
  2485. v.BrickColor = MAINRUINCOLOR
  2486. v.Material = "Neon"
  2487. end
  2488. end
  2489. refec.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2490. refec2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2491. refec3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2492. tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2493. tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2494. tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2495. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2496. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2497. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2498. for i, v in pairs(mw1:GetChildren()) do
  2499. if v:IsA("Part") then
  2500. v.Transparency = 0
  2501. v.BrickColor = MAINRUINCOLOR
  2502. v.Material = "Neon"
  2503. end
  2504. end
  2505. for i, v in pairs(m:GetChildren()) do
  2506. if v:IsA("Part") then
  2507. v.BrickColor = BrickColor.new("White")
  2508. v.Material = "Ice"
  2509. end
  2510. end
  2511. for i, v in pairs(m2:GetChildren()) do
  2512. if v:IsA("Part") then
  2513. v.BrickColor = BrickColor.new("White")
  2514. v.Material = "Ice"
  2515. end
  2516. end
  2517. for i, v in pairs(m3:GetChildren()) do
  2518. if v:IsA("Part") then
  2519. v.BrickColor = BrickColor.new("White")
  2520. v.Material = "Neon"
  2521. end
  2522. end
  2523. for i, v in pairs(extrawingmod1:GetChildren()) do
  2524. if v:IsA("Part") then
  2525. v.Transparency = 1
  2526. v.BrickColor = BrickColor.new("White")
  2527. v.Material = "Neon"
  2528. end
  2529. end
  2530. for i, v in pairs(extrawingmod2:GetChildren()) do
  2531. if v:IsA("Part") then
  2532. v.Transparency = 1
  2533. v.BrickColor = BrickColor.new("White")
  2534. v.Material = "Neon"
  2535. end
  2536. end
  2537. end
  2538.  
  2539. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo)
  2540. for i, v in pairs(mw2:GetChildren()) do
  2541. if v:IsA("Part") then
  2542. v.BrickColor = one
  2543. v.Material = "Neon"
  2544. end
  2545. end
  2546. refec.Color = ColorSequence.new(one.Color)
  2547. refec2.Color = ColorSequence.new(one.Color)
  2548. refec3.Color = ColorSequence.new(one.Color)
  2549. tr1.Color = ColorSequence.new(one.Color)
  2550. tr2.Color = ColorSequence.new(one.Color)
  2551. tr3.Color = ColorSequence.new(one.Color)
  2552. for i, v in pairs(mw1:GetChildren()) do
  2553. if v:IsA("Part") then
  2554. v.Transparency = 0
  2555. v.BrickColor = two
  2556. v.Material = "Neon"
  2557. end
  2558. end
  2559. tl1.Color = ColorSequence.new(two.Color)
  2560. tl2.Color = ColorSequence.new(two.Color)
  2561. tl3.Color = ColorSequence.new(two.Color)
  2562. for i, v in pairs(m:GetChildren()) do
  2563. if v:IsA("Part") then
  2564. v.BrickColor = three
  2565. v.Material = "Ice"
  2566. end
  2567. end
  2568. for i, v in pairs(m2:GetChildren()) do
  2569. if v:IsA("Part") then
  2570. v.BrickColor = four
  2571. v.Material = "Ice"
  2572. end
  2573. end
  2574. for i, v in pairs(m3:GetChildren()) do
  2575. if v:IsA("Part") then
  2576. v.BrickColor = five
  2577. v.Material = "Neon"
  2578. end
  2579. end
  2580. for i, v in pairs(extrawingmod1:GetChildren()) do
  2581. if v:IsA("Part") then
  2582. v.Transparency = exonetran
  2583. v.BrickColor = exone
  2584. v.Material = "Neon"
  2585. end
  2586. end
  2587. for i, v in pairs(extrawingmod2:GetChildren()) do
  2588. if v:IsA("Part") then
  2589. v.Transparency = extwotran
  2590. v.BrickColor = extwo
  2591. v.Material = "Neon"
  2592. end
  2593. end
  2594. end
  2595.  
  2596. function attackone()
  2597. attack = true
  2598. local keptcolor = MAINRUINCOLOR
  2599. for i = 0,1,0.1 do
  2600. swait()
  2601. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  2602. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  2603. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  2604. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  2605. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
  2606. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(2.5),math.rad(0),math.rad(0)),.3)
  2607. end
  2608. local distlook = 5
  2609. coroutine.resume(coroutine.create(function()
  2610. for i = 0, 4 do
  2611. swait(2)
  2612. CameraEnshaking(2,3)
  2613. local hite = Instance.new("Part", char)
  2614. hite.Anchored = true
  2615. hite.CanCollide = false
  2616. hite.FormFactor = 3
  2617. hite.Name = "Ring"
  2618. hite.Material = "Neon"
  2619. hite.Size = Vector3.new(1, 1, 1)
  2620. hite.Transparency = 1
  2621. hite.TopSurface = 0
  2622. hite.BottomSurface = 0
  2623. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  2624. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0,1,0),0.2,0.001,0.2,keptcolor)
  2625. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(8,1,8),-0.045,0.15,-0.045,keptcolor)
  2626. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(4,1,4),-0.025,0.25,-0.025,keptcolor)
  2627. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(2,1,2),-0.015,0.35,-0.015,keptcolor)
  2628. MagniDamage(hite, 9, 10,25, 0, "Normal")
  2629. for i = 0, 14 do
  2630. local rsiz = math.random(5,20)
  2631. sphereMK(math.random(1,3),0.25,"Add",hite.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  2632. end
  2633. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  2634. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  2635. game:GetService("Debris"):AddItem(hite, 5)
  2636. distlook = distlook + 10
  2637. end
  2638. end))
  2639. for i = 0,1,0.1 do
  2640. swait()
  2641. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  2642. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  2643. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  2644. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  2645. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-10)),.5)
  2646. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.5)
  2647. end
  2648. attack = false
  2649. end
  2650.  
  2651. function attacktwo()
  2652. attack = true
  2653. for i = 0,1,0.1 do
  2654. swait()
  2655. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  2656. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  2657. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3)
  2658. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3)
  2659. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(10)),.3)
  2660. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.3)
  2661. end
  2662. CameraEnshaking(3,4)
  2663. MagniDamage(root, 12, 15,30, 0, "Normal")
  2664. sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR)
  2665. sphere2(7.5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR)
  2666. sphere2(10,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR)
  2667. coroutine.resume(coroutine.create(function()
  2668. local eff = Instance.new("ParticleEmitter",root)
  2669. eff.Texture = "rbxassetid://363275192"
  2670. eff.LightEmission = 0.95
  2671. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2672. eff.Rate = 10000
  2673. eff.Lifetime = NumberRange.new(1)
  2674. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  2675. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  2676. eff.Speed = NumberRange.new(10,125)
  2677. eff.Drag = 5
  2678. eff.Rotation = NumberRange.new(-500,500)
  2679. eff.VelocitySpread = 9000
  2680. eff.RotSpeed = NumberRange.new(-50,50)
  2681. local eff2 = eff:Clone()
  2682. eff2.Parent = root
  2683. eff2.Texture = "rbxassetid://284205403"
  2684. eff2.Rate = 10000
  2685. eff2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  2686. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  2687. eff2.Drag = 5
  2688. eff2.Speed = NumberRange.new(10,50)
  2689. eff2.Rotation = NumberRange.new(-500,500)
  2690. eff2.VelocitySpread = 9000
  2691. wait(0.25)
  2692. eff2.Enabled = false
  2693. eff.Enabled = false
  2694. wait(3)
  2695. eff2:Destroy()
  2696. eff:Destroy()
  2697. end))
  2698. for i = 0, 9 do
  2699. sphere2(7.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.0025,1,-0.0025,MAINRUINCOLOR)
  2700. end
  2701. for i = 0, 24 do
  2702. local rsiz = math.random(5,20)
  2703. sphereMK(math.random(1,5),0.75,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/8,rsiz/8,rsiz/8,0,MAINRUINCOLOR,0)
  2704. end
  2705. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  2706. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  2707. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  2708. for i = 0,2,0.1 do
  2709. swait()
  2710. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  2711. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  2712. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  2713. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  2714. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-10)),.3)
  2715. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.3)
  2716. end
  2717. attack = false
  2718. end
  2719.  
  2720. function attackthree()
  2721. attack = true
  2722. local keptcolor = MAINRUINCOLOR
  2723. CFuncs["Sound"].Create("rbxassetid://1042700914", root, 2, 1.75)
  2724. for i = 0,1,0.1 do
  2725. swait()
  2726. sphere2(6,"Add",root.CFrame + root.CFrame.lookVector*2.5,vt(3,3,3),0.01,0.01,0.01,MAINRUINCOLOR)
  2727. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.5)
  2728. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.5)
  2729. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(-40)), 0.5)
  2730. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(40)), 0.5)
  2731. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.5)
  2732. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.5)
  2733. end
  2734. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 1.5, 0.9)
  2735. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 0.9)
  2736. local angle = -25
  2737. coroutine.resume(coroutine.create(function()
  2738. for i = 0, 2 do
  2739. local orb = Instance.new("Part", char)
  2740. orb.BrickColor = MAINRUINCOLOR
  2741. orb.CanCollide = false
  2742. orb.FormFactor = 3
  2743. orb.Name = "Ring"
  2744. orb.Material = "Neon"
  2745. orb.Size = Vector3.new(1, 1, 1)
  2746. orb.Transparency = 0.5
  2747. orb.TopSurface = 0
  2748. orb.BottomSurface = 0
  2749. local orbm = Instance.new("SpecialMesh", orb)
  2750. orbm.MeshType = "Sphere"
  2751. orbm.Name = "SizeMesh"
  2752. orbm.Scale = vt(3,3,3)
  2753. orb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(angle),0) + root.CFrame.lookVector*2.5
  2754. local bv = Instance.new("BodyVelocity")
  2755. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2756. bv.velocity = orb.CFrame.lookVector*100
  2757. bv.Parent = orb
  2758. game:GetService("Debris"):AddItem(orb, 10)
  2759. sphere2(6,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.15,0.15,0.15,keptcolor)
  2760. sphere2(9,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.15,0.15,0.15,keptcolor)
  2761. coroutine.resume(coroutine.create(function()
  2762. MagniDamage(orb, 6, 8,15, 0, "Normal")
  2763. for i = 0, 7 do
  2764. swait(2.5)
  2765. CameraEnshaking(1,2)
  2766. MagniDamage(orb, 6, 8,15, 0, "Normal")
  2767. CFuncs["Sound"].Create("rbxassetid://1042693018", orb, 1.5, 1.5)
  2768. for i = 0, 4 do
  2769. local rsiz = math.random(5,10)
  2770. sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,1,0.5),-0.0025,0.25,-0.0025,keptcolor)
  2771. sphereMK(math.random(2,6),0.15,"Add",orb.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  2772. end
  2773. sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.1,0.1,0.1,keptcolor)
  2774. sphere2(8,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.1,0.1,0.1,keptcolor)
  2775. end
  2776. orb.Transparency = 1
  2777. orb.Anchored = false
  2778. wait(10)
  2779. orb:Destroy()
  2780. end))
  2781. angle = angle + 25
  2782. end
  2783. end))
  2784. for i = 0,1,0.1 do
  2785. swait()
  2786. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  2787. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  2788. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.3)
  2789. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-60)), 0.3)
  2790. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-10)),.3)
  2791. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.3)
  2792. end
  2793. attack = false
  2794. end
  2795.  
  2796. ------------------------------------- Abilities ---------------------------------------------------------
  2797. function Fireball()
  2798. attack = true
  2799. hum.WalkSpeed = 0
  2800. local keptcolor = MAINRUINCOLOR
  2801. for i = 0,2,0.1 do
  2802. swait()
  2803. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),0.3)
  2804. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-40)),.3)
  2805. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(6), math.rad(-20), math.rad(12)), 0.3)
  2806. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(40), math.rad(-40)), 0.3)
  2807. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.3)
  2808. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.3)
  2809. end
  2810. local orb = Instance.new("Part", char)
  2811. orb.BrickColor = keptcolor
  2812. orb.CanCollide = false
  2813. orb.FormFactor = 3
  2814. orb.Name = "Ring"
  2815. orb.Material = "Neon"
  2816. orb.Size = Vector3.new(1, 1, 1)
  2817. orb.Transparency = 0
  2818. orb.TopSurface = 0
  2819. orb.BottomSurface = 0
  2820. local orbm = Instance.new("SpecialMesh", orb)
  2821. orbm.MeshType = "Sphere"
  2822. orbm.Name = "SizeMesh"
  2823. orbm.Scale = vt(4,4,4)
  2824. orb.CFrame = root.CFrame + root.CFrame.lookVector*3
  2825. local eff = Instance.new("ParticleEmitter",orb)
  2826. eff.Texture = "rbxassetid://296874871"
  2827. eff.LightEmission = 0.95
  2828. eff.Color = ColorSequence.new(orb.BrickColor.Color)
  2829. eff.Rate = 10000
  2830. eff.Lifetime = NumberRange.new(1.5)
  2831. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,7,0),NumberSequenceKeypoint.new(0.1,5,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  2832. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  2833. eff.Speed = NumberRange.new(25)
  2834. eff.Drag = 5
  2835. eff.Rotation = NumberRange.new(-500,500)
  2836. eff.VelocitySpread = 9000
  2837. eff.RotSpeed = NumberRange.new(-500,500)
  2838. local a = Instance.new("Part",workspace)
  2839. a.Name = "Direction"
  2840. a.Anchored = true
  2841. a.BrickColor = bc("Bright red")
  2842. a.Material = "Neon"
  2843. a.Transparency = 1
  2844. a.CanCollide = false
  2845. local ray = Ray.new(
  2846. orb.CFrame.p, -- origin
  2847. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  2848. )
  2849. local ignore = orb
  2850. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2851. a.BottomSurface = 10
  2852. a.TopSurface = 10
  2853. local distance = (orb.CFrame.p - position).magnitude
  2854. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2855. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  2856. orb.CFrame = a.CFrame
  2857. a:Destroy()
  2858. CFuncs["Sound"].Create("rbxassetid://304448425", orb, 1.5, 0.9)
  2859. local bv = Instance.new("BodyVelocity")
  2860. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2861. bv.velocity = orb.CFrame.lookVector*75
  2862. bv.Parent = orb
  2863. game:GetService("Debris"):AddItem(orb, 10)
  2864. local hitted = false
  2865. coroutine.resume(coroutine.create(function()
  2866. while true do
  2867. swait()
  2868. if orb.Parent ~= nil and hitted == false then
  2869. sphere2(4,"Add",orb.CFrame*CFrame.new(math.random(-1,1),math.random(-1,1),0) - orb.CFrame.lookVector*1.5,vt(3,3,3),-0.03,-0.03,-0.03,keptcolor)
  2870. elseif orb.Parent == nil and hitted == true then
  2871. break
  2872. end
  2873. end
  2874. end))
  2875. local hit =orb.Touched:connect(function(hit)
  2876. if hitted == false and hit.Parent ~= char then
  2877. hitted = true
  2878. eff.Enabled = false
  2879. CameraEnshaking(4,4)
  2880. CFuncs["Sound"].Create("rbxassetid://1226980789", orb, 4.5, 0.7)
  2881. CFuncs["Sound"].Create("rbxassetid://178452221", orb, 2.5, 0.4)
  2882. MagniDamage(orb, 25, 20,30, 0, "Normal")
  2883. sphere2(4,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor)
  2884. sphere2(3,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor)
  2885. sphere2(2,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor)
  2886. for i = 0, 9 do
  2887. sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1.5,1,1.5),-0.005,4,-0.005,keptcolor)
  2888. end
  2889. for i = 0, 49 do
  2890. local rsiz = math.random(10,30)
  2891. sphereMK(math.random(1,3),1,"Add",orb.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  2892. end
  2893. local eff = Instance.new("ParticleEmitter",orb)
  2894. eff.Texture = "rbxassetid://296874871"
  2895. eff.LightEmission = 0.95
  2896. eff.Color = ColorSequence.new(orb.BrickColor.Color)
  2897. eff.Rate = 10000
  2898. eff.Lifetime = NumberRange.new(1.5)
  2899. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  2900. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  2901. eff.Speed = NumberRange.new(150)
  2902. eff.Drag = 5
  2903. eff.Rotation = NumberRange.new(-500,500)
  2904. eff.VelocitySpread = 9000
  2905. eff.RotSpeed = NumberRange.new(-500,500)
  2906. coroutine.resume(coroutine.create(function()
  2907. wait(0.25)
  2908. eff.Enabled = false
  2909. end))
  2910. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  2911. orb.Anchored = true
  2912. orb.Transparency = 1
  2913. coroutine.resume(coroutine.create(function()
  2914. if hfr ~= nil then
  2915. orb.Size = vt(50,1,50)
  2916. orb.Orientation = vt(0,0,0)
  2917. orb.CFrame = orb.CFrame*CFrame.new(0,-5,0)
  2918. orbm:Destroy()
  2919. local firef = eff:Clone()
  2920. firef.Parent = orb
  2921. firef.VelocitySpread = 50
  2922. firef.Rate = 500
  2923. firef.Drag = 3
  2924. firef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.2,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  2925. firef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,3,0),NumberSequenceKeypoint.new(0.1,5,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  2926. firef.Speed = NumberRange.new(10,30)
  2927. for i = 0, 24 do
  2928. wait(0.25)
  2929. MagniDamage(orb, 25, 3,6, 0, "Normal")
  2930. end
  2931. firef.Enabled = false
  2932. end
  2933. end))
  2934. wait(10)
  2935. orb:Destroy()
  2936. end
  2937. end)
  2938. for i = 0,1,0.1 do
  2939. swait()
  2940. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.5)
  2941. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  2942. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(6), math.rad(-20), math.rad(12)), 0.5)
  2943. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.5)
  2944. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.5)
  2945. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.5)
  2946. end
  2947. hum.WalkSpeed = storehumanoidWS
  2948. attack = false
  2949. end
  2950.  
  2951. function BeamOfDeath()
  2952. attack = true
  2953. hum.WalkSpeed = 0
  2954. local keptcolor = MAINRUINCOLOR
  2955. local orb = Instance.new("Part", char)
  2956. orb.BrickColor = keptcolor
  2957. orb.CanCollide = false
  2958. orb.FormFactor = 3
  2959. orb.Name = "Ring"
  2960. orb.Material = "Neon"
  2961. orb.Size = Vector3.new(1, 1, 1)
  2962. orb.Transparency = 1
  2963. orb.TopSurface = 0
  2964. orb.BottomSurface = 0
  2965. local orbm = Instance.new("SpecialMesh", orb)
  2966. orbm.MeshType = "Sphere"
  2967. orbm.Name = "SizeMesh"
  2968. orbm.Scale = vt(22.5,10000,22.5)
  2969. orb.CFrame = mouse.Hit
  2970. orb.Anchored = true
  2971. orb.Orientation = vt(0,0,0)
  2972. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  2973. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 1.5, 1)
  2974. coroutine.resume(coroutine.create(function()
  2975. coroutine.resume(coroutine.create(function()
  2976. for i = 0, 399 do
  2977. swait()
  2978. orbm.Scale = orbm.Scale - vt(0.05,0,0.05)
  2979. orb.Transparency = orb.Transparency - 0.0025
  2980. end
  2981. end))
  2982. wait(9)
  2983. coroutine.resume(coroutine.create(function()
  2984. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  2985. if hfr ~= nil then
  2986. for i = 0, 49 do
  2987. local deb = Instance.new("Part", char)
  2988. deb.Anchored = true
  2989. deb.CanCollide = false
  2990. deb.FormFactor = 3
  2991. deb.Name = "Ring"
  2992. deb.Material = hitfloor.Material
  2993. deb.Color = hitfloor.Color
  2994. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  2995. deb.Transparency = 0
  2996. deb.TopSurface = 0
  2997. deb.BottomSurface = 0
  2998. deb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),-5,math.random(-150,150))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2999. local deb2 = Instance.new("Part", char)
  3000. deb2.CanCollide = false
  3001. deb2.FormFactor = 3
  3002. deb2.Name = "Ring"
  3003. deb2.Material = hitfloor.Material
  3004. deb2.Color = hitfloor.Color
  3005. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  3006. deb2.Transparency = 0
  3007. deb2.TopSurface = 0
  3008. deb2.BottomSurface = 0
  3009. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  3010. deb2.CFrame = orb.CFrame*CFrame.new(math.random(-60,60),-5,math.random(-60,60))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3011. local eff = Instance.new("ParticleEmitter",deb)
  3012. eff.Texture = "rbxassetid://363275192"
  3013. eff.LightEmission = 0.95
  3014. eff.Color = ColorSequence.new(keptcolor.Color)
  3015. eff.Rate = 100
  3016. eff.Lifetime = NumberRange.new(1)
  3017. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  3018. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3019. eff.Speed = NumberRange.new(0,5)
  3020. eff.Rotation = NumberRange.new(-500,500)
  3021. eff.VelocitySpread = 9000
  3022. eff.RotSpeed = NumberRange.new(-10,10)
  3023. local at1 = Instance.new('Attachment',deb2)
  3024. at1.Position = vt(0,15,0)
  3025. local at2 = Instance.new('Attachment',deb2)
  3026. at2.Position = vt(0,-15,0)
  3027. local tl = Instance.new('Trail',deb2)
  3028. tl.Attachment0 = at1
  3029. tl.Attachment1 = at2
  3030. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  3031. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  3032. tl.Lifetime = 1
  3033. game:GetService("Debris"):AddItem(deb,30)
  3034. game:GetService("Debris"):AddItem(deb2,30)
  3035. coroutine.resume(coroutine.create(function()
  3036. wait(15)
  3037. eff.Enabled = false
  3038. for i = 0, 49 do
  3039. swait()
  3040. deb.Transparency = deb.Transparency + 0.02
  3041. end
  3042. wait(1)
  3043. deb:Destroy()
  3044. end))
  3045. end
  3046. end
  3047. end))
  3048. for i = 0, 199 do
  3049. swait(1.5)
  3050. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  3051. if v:FindFirstChild('Head') then
  3052. dmg(v)
  3053. end
  3054. end
  3055. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),5,5,5,keptcolor)
  3056. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),1,35,1,keptcolor)
  3057. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),0,50,0,keptcolor)
  3058. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  3059. end
  3060. orb:Destroy()
  3061. end))
  3062. hum.WalkSpeed = storehumanoidWS
  3063. attack = false
  3064. end
  3065.  
  3066.  
  3067. function Beams()
  3068. attack = true
  3069. hum.WalkSpeed = 0
  3070. local keptcolor = MAINRUINCOLOR
  3071. coroutine.resume(coroutine.create(function()
  3072. for i = 0, 24 do
  3073. swait(5)
  3074. local orb = Instance.new("Part", char)
  3075. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  3076. orb.BrickColor = keptcolor
  3077. orb.CanCollide = false
  3078. orb.FormFactor = 3
  3079. orb.Name = "Ring"
  3080. orb.Material = "Neon"
  3081. orb.Size = Vector3.new(1, 1, 1)
  3082. orb.Transparency = 0
  3083. orb.TopSurface = 0
  3084. orb.BottomSurface = 0
  3085. orb.Anchored = true
  3086. local orbm = Instance.new("SpecialMesh", orb)
  3087. orbm.MeshType = "Sphere"
  3088. orbm.Name = "SizeMesh"
  3089. orbm.Scale = vt(1.25,1.25,1.25)
  3090. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  3091. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  3092. coroutine.resume(coroutine.create(function()
  3093. wait(0.5)
  3094. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  3095. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  3096. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  3097. orb.Transparency = 1
  3098. local a = Instance.new("Part",char)
  3099. a.Name = "Direction"
  3100. a.Anchored = true
  3101. a.BrickColor = keptcolor
  3102. a.Material = "Neon"
  3103. a.Transparency = 0.25
  3104. a.Shape = "Cylinder"
  3105. local ht = Instance.new("Part",char)
  3106. ht.Name = "DirectionHit"
  3107. ht.Anchored = true
  3108. ht.BrickColor = keptcolor
  3109. ht.CanCollide = false
  3110. ht.Transparency = 1
  3111. ht.Size = vt(0.1,0.1,0.1)
  3112. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.2)
  3113. a.CanCollide = false
  3114. local ray = Ray.new(
  3115. orb.CFrame.p, -- origin
  3116. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3117. )
  3118. local ignore = char
  3119. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3120. a.BottomSurface = 10
  3121. a.TopSurface = 10
  3122. local distance = (orb.CFrame.p - position).magnitude
  3123. a.Size = Vector3.new(distance,1,1)
  3124. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3125. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3126. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  3127. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  3128. MagniDamage(ht, 9, 10,15, 0, "Normal")
  3129. coroutine.resume(coroutine.create(function()
  3130. local eff = Instance.new("ParticleEmitter",ht)
  3131. eff.Texture = "rbxassetid://284205403"
  3132. eff.LightEmission = 0.95
  3133. eff.Color = ColorSequence.new(keptcolor.Color)
  3134. eff.Rate = 500
  3135. eff.Lifetime = NumberRange.new(0.5)
  3136. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  3137. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3138. eff.Speed = NumberRange.new(10,50)
  3139. eff.Drag = 5
  3140. eff.Rotation = NumberRange.new(-500,500)
  3141. eff.VelocitySpread = 9000
  3142. eff.RotSpeed = NumberRange.new(-500,500)
  3143. wait(0.25)
  3144. eff.Enabled = false
  3145. end))
  3146. for i = 0, 4 do
  3147. sphere2(8,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.005,0.125,-0.005,keptcolor)
  3148. sphere2(4,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.01,0.5,-0.01,keptcolor)
  3149. local rsiz = math.random(10,30)
  3150. sphereMK(math.random(2,4),0.25,"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  3151. end
  3152. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  3153. local msh = Instance.new("SpecialMesh",a)
  3154. msh.MeshType = "Cylinder"
  3155. msh.Scale = vt(1,1,1)
  3156. for i = 0, 49 do
  3157. swait()
  3158. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  3159. a.Transparency = a.Transparency + 0.02
  3160. end
  3161. orb:Destroy()
  3162. a:Destroy()
  3163. ht:Destroy()
  3164. end))
  3165. game:GetService("Debris"):AddItem(orb, 10)
  3166. end
  3167. end))
  3168. for i = 0,12,0.1 do
  3169. swait()
  3170. sphere2(7,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,keptcolor)
  3171. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),0.3)
  3172. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  3173. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  3174. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  3175. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(0)),.3)
  3176. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.3)
  3177. end
  3178. hum.WalkSpeed = storehumanoidWS
  3179. attack = false
  3180. end
  3181.  
  3182. function smiter()
  3183. local targetted = nil
  3184. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3185. targetted = mouse.Target.Parent
  3186. end
  3187. if targetted ~= nil then
  3188. RootPart.CFrame = FaceMouse()[1]
  3189. attack = true
  3190. hum.WalkSpeed = 0
  3191. coroutine.resume(coroutine.create(function()
  3192. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  3193. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  3194. local vel = Instance.new("BodyPosition", targetted.Head)
  3195. vel.P = 12500
  3196. vel.D = 1000
  3197. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  3198. vel.position = targetted.Head.CFrame.p
  3199. end))
  3200. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  3201. for i = 0,4,0.1 do
  3202. swait()
  3203. sphere2(4,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.125,-0.01,MAINRUINCOLOR)
  3204. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3205. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3206. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3207. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3208. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.2)
  3209. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(20),math.rad(5)),.2)
  3210. end
  3211. coroutine.resume(coroutine.create(function()
  3212. CameraEnshaking(6,5)
  3213. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  3214. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  3215. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  3216. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  3217. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  3218. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  3219. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  3220. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  3221. coroutine.resume(coroutine.create(function()
  3222. local eff = Instance.new("ParticleEmitter",targetted.Head)
  3223. eff.Texture = "rbxassetid://363275192"
  3224. eff.LightEmission = 0.95
  3225. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3226. eff.Rate = 10000
  3227. eff.Lifetime = NumberRange.new(1.5)
  3228. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  3229. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3230. eff.Speed = NumberRange.new(25,150)
  3231. eff.Drag = 5
  3232. eff.Rotation = NumberRange.new(-500,500)
  3233. eff.VelocitySpread = 9000
  3234. eff.RotSpeed = NumberRange.new(-50,50)
  3235. local eff2 = eff:Clone()
  3236. eff2.Parent = targetted.Head
  3237. eff2.Texture = "rbxassetid://284205403"
  3238. eff2.Rate = 10000
  3239. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3240. eff2.Drag = 5
  3241. eff2.Rotation = NumberRange.new(-500,500)
  3242. eff2.VelocitySpread = 9000
  3243. wait(0.5)
  3244. eff2.Enabled = false
  3245. eff.Enabled = false
  3246. end))
  3247. for i = 0, 9 do
  3248. sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,3,-0.02,MAINRUINCOLOR)
  3249. end
  3250. for i = 0, 49 do
  3251. local rsiz = math.random(10,50)
  3252. sphereMK(math.random(1,4),1,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  3253. end
  3254. game:GetService("Debris"):AddItem(vel,1)
  3255. dmg(targetted)
  3256. end))
  3257. for i = 0,1,0.1 do
  3258. swait()
  3259. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  3260. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  3261. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.5)
  3262. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(-50)), 0.5)
  3263. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.5)
  3264. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(20),math.rad(5)),.5)
  3265. end
  3266. attack = false
  3267. hum.WalkSpeed = storehumanoidWS
  3268. end
  3269. end
  3270.  
  3271. function supsmiter()
  3272. local targetted = nil
  3273. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3274. targetted = mouse.Target.Parent
  3275. end
  3276. if targetted ~= nil then
  3277. RootPart.CFrame = FaceMouse()[1]
  3278. attack = true
  3279. hum.WalkSpeed = 0
  3280. coroutine.resume(coroutine.create(function()
  3281. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  3282. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  3283. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.2,0.2,0.2,MAINRUINCOLOR)
  3284. local vel = Instance.new("BodyPosition", targetted.Head)
  3285. vel.P = 12500
  3286. vel.D = 1000
  3287. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  3288. vel.position = targetted.Head.CFrame.p
  3289. end))
  3290. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb2, 2.5, 0.25)
  3291. for i = 0,14,0.1 do
  3292. swait()
  3293. rsiz = math.random(5,15)
  3294. sphereMK(math.random(3,9),0.25,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,-15)
  3295. sphere2(4,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1.5,1.5,1.5),-0.01,0.15,-0.01,MAINRUINCOLOR)
  3296. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3297. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3298. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3299. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3300. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  3301. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  3302. end
  3303. coroutine.resume(coroutine.create(function()
  3304. CameraEnshaking(6,5)
  3305. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  3306. MagniDamage(targetted.Head, 9, 18000,30000, 0, "Normal")
  3307. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 5.5, 0.8)
  3308. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 5.25, 0.8)
  3309. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 4, 0.8)
  3310. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  3311. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  3312. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  3313. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  3314. coroutine.resume(coroutine.create(function()
  3315. local eff = Instance.new("ParticleEmitter",targetted.Head)
  3316. eff.Texture = "rbxassetid://363275192"
  3317. eff.LightEmission = 0.95
  3318. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3319. eff.Rate = 10000
  3320. eff.Lifetime = NumberRange.new(1.5)
  3321. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  3322. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3323. eff.Speed = NumberRange.new(25,150)
  3324. eff.Drag = 5
  3325. eff.Rotation = NumberRange.new(-500,500)
  3326. eff.VelocitySpread = 9000
  3327. eff.RotSpeed = NumberRange.new(-50,50)
  3328. local eff2 = eff:Clone()
  3329. eff2.Parent = targetted.Head
  3330. eff2.Texture = "rbxassetid://284205403"
  3331. eff2.Rate = 10000
  3332. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3333. eff2.Drag = 5
  3334. eff2.Rotation = NumberRange.new(-500,500)
  3335. eff2.VelocitySpread = 9000
  3336. wait(0.5)
  3337. eff2.Enabled = false
  3338. eff.Enabled = false
  3339. end))
  3340. for i = 0, 9 do
  3341. sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,3,-0.02,MAINRUINCOLOR)
  3342. end
  3343. for i = 0, 49 do
  3344. local rsiz = math.random(10,50)
  3345. sphereMK(math.random(1,4),1,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  3346. end
  3347. wait(0.75)
  3348. CameraEnshaking(6,6)
  3349. MagniDamage(targetted.Head, 20, 25,40, 0, "Normal")
  3350. MagniDamage(targetted.Head, 12, 18000,30000, 0, "Normal")
  3351. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.7)
  3352. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.7)
  3353. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.7)
  3354. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.5,0,0.5,MAINRUINCOLOR)
  3355. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.5,0,0.5,MAINRUINCOLOR)
  3356. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.75,0.75,0.75,MAINRUINCOLOR)
  3357. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.75,0.75,0.75,MAINRUINCOLOR)
  3358. coroutine.resume(coroutine.create(function()
  3359. local eff = Instance.new("ParticleEmitter",targetted.Head)
  3360. eff.Texture = "rbxassetid://363275192"
  3361. eff.LightEmission = 0.95
  3362. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3363. eff.Rate = 10000
  3364. eff.Lifetime = NumberRange.new(1.5)
  3365. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,35,0),NumberSequenceKeypoint.new(1,0,0)})
  3366. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3367. eff.Speed = NumberRange.new(25,250)
  3368. eff.Drag = 5
  3369. eff.Rotation = NumberRange.new(-500,500)
  3370. eff.VelocitySpread = 9000
  3371. eff.RotSpeed = NumberRange.new(-50,50)
  3372. local eff2 = eff:Clone()
  3373. eff2.Parent = targetted.Head
  3374. eff2.Texture = "rbxassetid://284205403"
  3375. eff2.Rate = 10000
  3376. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3377. eff2.Drag = 5
  3378. eff2.Rotation = NumberRange.new(-500,500)
  3379. eff2.VelocitySpread = 9000
  3380. wait(0.5)
  3381. eff2.Enabled = false
  3382. eff.Enabled = false
  3383. end))
  3384. for i = 0, 9 do
  3385. sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,4.5,-0.02,MAINRUINCOLOR)
  3386. end
  3387. for i = 0, 49 do
  3388. local rsiz = math.random(15,55)
  3389. sphereMK(math.random(1,4),1.5,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  3390. end
  3391. wait(0.75)
  3392. CameraEnshaking(6,7)
  3393. MagniDamage(targetted.Head, 23, 40,80, 0, "Normal")
  3394. MagniDamage(targetted.Head, 15, 18000,30000, 0, "Normal")
  3395. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 7.5, 0.6)
  3396. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 7.25, 0.6)
  3397. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 6, 0.6)
  3398. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.75,0,0.75,MAINRUINCOLOR)
  3399. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.75,0,0.75,MAINRUINCOLOR)
  3400. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),1,1,1,MAINRUINCOLOR)
  3401. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),1,1,1,MAINRUINCOLOR)
  3402. coroutine.resume(coroutine.create(function()
  3403. local eff = Instance.new("ParticleEmitter",targetted.Head)
  3404. eff.Texture = "rbxassetid://363275192"
  3405. eff.LightEmission = 0.95
  3406. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3407. eff.Rate = 10000
  3408. eff.Lifetime = NumberRange.new(1.5)
  3409. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  3410. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3411. eff.Speed = NumberRange.new(50,450)
  3412. eff.Drag = 5
  3413. eff.Rotation = NumberRange.new(-500,500)
  3414. eff.VelocitySpread = 9000
  3415. eff.RotSpeed = NumberRange.new(-50,50)
  3416. local eff2 = eff:Clone()
  3417. eff2.Parent = targetted.Head
  3418. eff2.Texture = "rbxassetid://284205403"
  3419. eff2.Rate = 10000
  3420. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3421. eff2.Drag = 5
  3422. eff2.Rotation = NumberRange.new(-500,500)
  3423. eff2.VelocitySpread = 9000
  3424. wait(0.5)
  3425. eff2.Enabled = false
  3426. eff.Enabled = false
  3427. end))
  3428. for i = 0, 9 do
  3429. sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,6,-0.02,MAINRUINCOLOR)
  3430. end
  3431. for i = 0, 49 do
  3432. local rsiz = math.random(20,60)
  3433. sphereMK(math.random(1,4),2,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  3434. end
  3435. dmg(targetted)
  3436. game:GetService("Debris"):AddItem(vel,1)
  3437. end))
  3438. for i = 0,7,0.1 do
  3439. swait()
  3440. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  3441. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.5)
  3442. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.5)
  3443. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(-60)), 0.5)
  3444. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.5)
  3445. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.5)
  3446. end
  3447. attack = false
  3448. hum.WalkSpeed = storehumanoidWS
  3449. end
  3450. end
  3451.  
  3452. function BinaryBLINK()
  3453. for i = 0, 9 do
  3454. sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR)
  3455. end
  3456. sphere(20,"Add",root.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3457. coroutine.resume(coroutine.create(function()
  3458. local eff = Instance.new("ParticleEmitter",root)
  3459. eff.Texture = "rbxassetid://1175838406"
  3460. eff.LightEmission = 0.95
  3461. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3462. eff.Rate = 10000
  3463. eff.Lifetime = NumberRange.new(1)
  3464. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,4,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
  3465. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3466. eff.Speed = NumberRange.new(30,160)
  3467. eff.Drag = 5
  3468. eff.Rotation = NumberRange.new(-500,500)
  3469. eff.VelocitySpread = 100000
  3470. wait(0.25)
  3471. eff.Enabled = false
  3472. wait(4)
  3473. eff:Destroy()
  3474. end))
  3475. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3476. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3477. CameraEnshaking(2,10)
  3478. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 10)) do
  3479. if v:FindFirstChild('Head') then
  3480. dmg(v)
  3481. end
  3482. end
  3483. for i = 0, 9 do
  3484. sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR)
  3485. end
  3486. sphere(20,"Add",root.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3487. end
  3488.  
  3489. function BinaryE()
  3490. local posit = -2
  3491. attack = true
  3492. hum.WalkSpeed = 5
  3493. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  3494. for i = 0,2,0.1 do
  3495. swait()
  3496. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  3497. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  3498. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  3499. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  3500. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  3501. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(0)),.5)
  3502. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.5)
  3503. end
  3504. for i = 0, 2 do
  3505. CameraEnshaking(1,2)
  3506. local hite = Instance.new("Part", char)
  3507. hite.Anchored = true
  3508. hite.CanCollide = false
  3509. hite.FormFactor = 3
  3510. hite.Name = "Ring"
  3511. hite.Material = "Neon"
  3512. hite.Size = Vector3.new(1, 1, 1)
  3513. hite.Transparency = 1
  3514. hite.TopSurface = 0
  3515. hite.BottomSurface = 0
  3516. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  3517. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  3518. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  3519. coroutine.resume(coroutine.create(function()
  3520. local eff = Instance.new("ParticleEmitter",hite)
  3521. eff.Texture = "rbxassetid://1175838406"
  3522. eff.LightEmission = 0.95
  3523. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3524. eff.Rate = 1000
  3525. eff.Lifetime = NumberRange.new(1)
  3526. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,1,0),NumberSequenceKeypoint.new(1,0,0)})
  3527. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3528. eff.Speed = NumberRange.new(10,50)
  3529. eff.Drag = 5
  3530. eff.Rotation = NumberRange.new(-500,500)
  3531. eff.VelocitySpread = 100000
  3532. wait(0.25)
  3533. eff.Enabled = false
  3534. end))
  3535. coroutine.resume(coroutine.create(function()
  3536. for i = 0, 1 do
  3537. swait()
  3538. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  3539. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  3540. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  3541. end
  3542. end))
  3543. sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(2,2,2),0.5,-0.01,-0.01,MAINRUINCOLOR)
  3544. MagniDamage(hite, 3, 30,40, 0, "Normal")
  3545. game:GetService("Debris"):AddItem(hite, 5)
  3546. posit = posit + 2
  3547. end
  3548. for i = 0,1,0.1 do
  3549. swait()
  3550. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  3551. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  3552. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  3553. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  3554. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  3555. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(0)),.5)
  3556. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.5)
  3557. end
  3558. for i = 0,1,0.1 do
  3559. swait()
  3560. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  3561. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,0)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  3562. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  3563. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  3564. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  3565. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(30)),.5)
  3566. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(40)),.5)
  3567. end
  3568. posit = -6
  3569. for i = 0, 6 do
  3570. CameraEnshaking(1,3)
  3571. local hite = Instance.new("Part", char)
  3572. hite.Anchored = true
  3573. hite.CanCollide = false
  3574. hite.FormFactor = 3
  3575. hite.Name = "Ring"
  3576. hite.Material = "Neon"
  3577. hite.Size = Vector3.new(1, 1, 1)
  3578. hite.Transparency = 1
  3579. hite.TopSurface = 0
  3580. hite.BottomSurface = 0
  3581. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  3582. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  3583. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  3584. sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),-0.01,1,-0.01,MAINRUINCOLOR)
  3585. coroutine.resume(coroutine.create(function()
  3586. local eff = Instance.new("ParticleEmitter",hite)
  3587. eff.Texture = "rbxassetid://1175838406"
  3588. eff.LightEmission = 0.95
  3589. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3590. eff.Rate = 1000
  3591. eff.Lifetime = NumberRange.new(1)
  3592. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,1,0),NumberSequenceKeypoint.new(1,0,0)})
  3593. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3594. eff.Speed = NumberRange.new(20,70)
  3595. eff.Drag = 5
  3596. eff.Rotation = NumberRange.new(-500,500)
  3597. eff.VelocitySpread = 100000
  3598. wait(0.25)
  3599. eff.Enabled = false
  3600. end))
  3601. coroutine.resume(coroutine.create(function()
  3602. for i = 0, 2 do
  3603. swait()
  3604. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  3605. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  3606. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  3607. end
  3608. end))
  3609. MagniDamage(hite, 5, 40,70, 0, "Normal")
  3610. game:GetService("Debris"):AddItem(hite, 5)
  3611. posit = posit + 2
  3612. end
  3613. for i = 0,1,0.1 do
  3614. swait()
  3615. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  3616. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  3617. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  3618. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  3619. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  3620. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(10),math.rad(-10)),.5)
  3621. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(60)),.5)
  3622. end
  3623. hum.WalkSpeed = storehumanoidWS
  3624. attack = false
  3625. end
  3626.  
  3627. function AZUREFINALE()
  3628. attack = true
  3629. duringend = true
  3630. hum.WalkSpeed = 0
  3631. CFuncs["Sound"].Create("rbxassetid://1117054464", char, 7.5, 0.75)
  3632. CFuncs["LongSound"].Create("rbxassetid://1042700914", char, 3.5, 0.05)
  3633. local hite = Instance.new("Part", char)
  3634. hite.Anchored = true
  3635. hite.CanCollide = false
  3636. hite.FormFactor = 3
  3637. hite.Name = "Ring"
  3638. hite.Material = "Neon"
  3639. hite.Size = Vector3.new(1, 1, 1)
  3640. hite.Transparency = 0
  3641. hite.TopSurface = 0
  3642. hite.BottomSurface = 0
  3643. hite.BrickColor = MAINRUINCOLOR
  3644. local orbm = Instance.new("SpecialMesh", hite)
  3645. orbm.MeshType = "Sphere"
  3646. orbm.Name = "SizeMesh"
  3647. orbm.Scale = vt(0,0,0)
  3648. hite.CFrame = root.CFrame*CFrame.new(0,200,0)
  3649. for i = 0,70,0.1 do
  3650. swait()
  3651. orbm.Scale = orbm.Scale + vt(0.5,0.5,0.5)
  3652. rsiz = math.random(10,45)
  3653. kan.Volume = kan.Volume + 0.01
  3654. kan.Pitch = kan.Pitch - 0.00135
  3655. sphereMK(math.random(1,4),2.5,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/2,rsiz/2,rsiz/2,0,MAINRUINCOLOR,-300)
  3656. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,1.5,10),-0.01,10,-0.01,MAINRUINCOLOR)
  3657. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3658. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3659. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3660. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3661. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  3662. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  3663. end
  3664. kan.Pitch = 0.1
  3665. hite.Transparency = 1
  3666. for i = 0,2 do
  3667. CFuncs["LongSound"].Create("rbxassetid://324849898", char, 10,0.9)
  3668. end
  3669. CFuncs["LongSound"].Create("rbxassetid://1117054464", char, 5, 0.75)
  3670. sphere2(1,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(orbm.Scale.X,orbm.Scale.Y,orbm.Scale.Z),-5,-5,-5,MAINRUINCOLOR)
  3671. sphere2(1,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(orbm.Scale.X,orbm.Scale.Y,orbm.Scale.Z),2,2,2,MAINRUINCOLOR)
  3672. sphere2(2,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(orbm.Scale.X,orbm.Scale.Y,orbm.Scale.Z),3,3,3,MAINRUINCOLOR)
  3673. coroutine.resume(coroutine.create(function()
  3674. local eff = Instance.new("ParticleEmitter",hite)
  3675. eff.Texture = "rbxassetid://284205403"
  3676. eff.LightEmission = 0.95
  3677. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3678. eff.Rate = 10000
  3679. eff.Lifetime = NumberRange.new(5)
  3680. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,100,0),NumberSequenceKeypoint.new(1,0,0)})
  3681. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3682. eff.Speed = NumberRange.new(600,1250)
  3683. eff.Drag = 5
  3684. eff.Rotation = NumberRange.new(-500,500)
  3685. eff.VelocitySpread = 9000
  3686. eff.RotSpeed = NumberRange.new(-500,500)
  3687. wait(1)
  3688. eff.Enabled = false
  3689. end))
  3690. for i = 0,5,0.1 do
  3691. swait()
  3692. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3693. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3694. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3695. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3696. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  3697. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  3698. end
  3699. local adsc = 0
  3700. local radiatezone = 0
  3701. for i = 0,20,0.1 do
  3702. swait()
  3703. adsc = adsc + 0.025
  3704. radiatezone = radiatezone + 1.25
  3705. sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR)
  3706. for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
  3707. if v:FindFirstChild('Head') then
  3708. dmg(v)
  3709. end
  3710. end
  3711. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3712. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3713. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3714. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3715. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  3716. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  3717. end
  3718. for i = 0,2 do
  3719. CFuncs["LongSound"].Create("rbxassetid://665426491", char, 10,0.9)
  3720. end
  3721. for i = 0,40,0.1 do
  3722. swait()
  3723. adsc = adsc + 0.05
  3724. radiatezone = radiatezone + 2.5
  3725. sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR)
  3726. for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
  3727. if v:FindFirstChild('Head') then
  3728. dmg(v)
  3729. end
  3730. end
  3731. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3732. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3733. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3734. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3735. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  3736. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  3737. end
  3738. for i = 0,4 do
  3739. CFuncs["LongSound"].Create("rbxassetid://665426491", char, 10,0.75)
  3740. CFuncs["LongSound"].Create("rbxassetid://923073285", char, 1.25,0.75)
  3741. end
  3742. for i = 0,80,0.1 do
  3743. swait()
  3744. adsc = adsc + 0.075
  3745. radiatezone = radiatezone + 3.75
  3746. sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR)
  3747. for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
  3748. if v:FindFirstChild('Head') then
  3749. dmg(v)
  3750. end
  3751. end
  3752. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3753. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3754. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3755. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3756. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  3757. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  3758. end
  3759. hite:Destroy()
  3760. duringend = false
  3761. hum.WalkSpeed = storehumanoidWS
  3762. attack = false
  3763. end
  3764.  
  3765. function GalacticalBeams()
  3766. attack = true
  3767. local keptcolor = MAINRUINCOLOR
  3768. coroutine.resume(coroutine.create(function()
  3769. for i = 0, 0 do
  3770. swait(10)
  3771. local orb = Instance.new("Part", char)
  3772. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  3773. orb.BrickColor = keptcolor
  3774. orb.CanCollide = false
  3775. orb.FormFactor = 3
  3776. orb.Name = "Ring"
  3777. orb.Material = "Neon"
  3778. orb.Size = Vector3.new(1, 1, 1)
  3779. orb.Transparency = 1
  3780. orb.TopSurface = 0
  3781. orb.BottomSurface = 0
  3782. orb.Anchored = true
  3783. local orbm = Instance.new("SpecialMesh", orb)
  3784. orbm.MeshType = "Sphere"
  3785. orbm.Name = "SizeMesh"
  3786. orbm.Scale = vt(1.25,1.25,1.25)
  3787. orb.CFrame = root.CFrame*CFrame.new(math.random(-25,25),math.random(75,150),math.random(-25,25))
  3788. coroutine.resume(coroutine.create(function()
  3789. orb.Transparency = 1
  3790. local a = Instance.new("Part",char)
  3791. a.Name = "Direction"
  3792. a.Anchored = true
  3793. a.BrickColor = keptcolor
  3794. a.Material = "Neon"
  3795. a.Transparency = 1
  3796. a.Shape = "Cylinder"
  3797. local x = Instance.new("Part",char)
  3798. x.Name = "Direction"
  3799. x.Anchored = true
  3800. x.BrickColor = keptcolor
  3801. x.Material = "Neon"
  3802. x.Transparency = 1
  3803. x.Shape = "Cylinder"
  3804. local ht = Instance.new("Part",char)
  3805. ht.Name = "DirectionHit"
  3806. ht.Anchored = true
  3807. ht.BrickColor = keptcolor
  3808. ht.CanCollide = false
  3809. ht.Transparency = 1
  3810. ht.Size = vt(0.1,0.1,0.1)
  3811. a.CanCollide = false
  3812. local ray = Ray.new(
  3813. orb.CFrame.p, -- origin
  3814. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  3815. )
  3816. local ignore = char
  3817. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3818. a.BottomSurface = 10
  3819. a.TopSurface = 10
  3820. local distance = (orb.CFrame.p - position).magnitude
  3821. a.Size = Vector3.new(distance,1,1)
  3822. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3823. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3824. x.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3825. local poste = 0
  3826. local rotation = 0
  3827. CFuncs["Sound"].Create("rbxassetid://153092315", char, 1.5, 1)
  3828. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(5,5,5),2.5,2.5,0,keptcolor)
  3829. CameraEnshaking(2,2)
  3830. for i = 0, 49 do
  3831. swait()
  3832. rotation = rotation + 5
  3833. poste = poste + 1
  3834. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3835. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3836. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3837. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3838. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3839. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3840. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3841. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3842. end
  3843. local A1 = Instance.new("Attachment",x)
  3844. local A2 = Instance.new("Attachment",ht)
  3845. local Beem = Instance.new("Beam",ht)
  3846. Beem.Attachment0 = A1
  3847. Beem.Attachment1 = A2
  3848. Beem.LightEmission = 1
  3849. Beem.FaceCamera = true
  3850. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, 0),NumberSequenceKeypoint.new(0.975, 0),NumberSequenceKeypoint.new(1, 1)})
  3851. Beem.Width0 = 125
  3852. Beem.Width1 = 125
  3853. Beem.Texture = "rbxassetid://1134824633"
  3854. Beem.TextureMode = "Wrap"
  3855. Beem.TextureLength = 200
  3856. Beem.TextureSpeed = 1.5
  3857. Beem.Color = ColorSequence.new(keptcolor.Color)
  3858. CameraEnshaking(3,6)
  3859. CFuncs["Sound"].Create("rbxassetid://294188875", char, 2, 1.5)
  3860. a.Transparency = 0.25
  3861. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor)
  3862. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor)
  3863. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  3864. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  3865. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),1.5,1.5,1.5,keptcolor)
  3866. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1.5,1.5,1.5,keptcolor)
  3867. MagniDamage(ht, 70, 1000,1500, 0, "Normal")
  3868. local eff = Instance.new("ParticleEmitter",ht)
  3869. eff.Texture = "rbxassetid://284205403"
  3870. eff.LightEmission = 0.95
  3871. eff.Color = ColorSequence.new(keptcolor.Color)
  3872. eff.Rate = 500
  3873. eff.Lifetime = NumberRange.new(1)
  3874. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.2,35,0),NumberSequenceKeypoint.new(1,0.1,0)})
  3875. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3876. eff.Speed = NumberRange.new(80,500)
  3877. eff.Drag = 5
  3878. eff.Rotation = NumberRange.new(-500,500)
  3879. eff.VelocitySpread = 9000
  3880. eff.RotSpeed = NumberRange.new(-500,500)
  3881. for i = 0, 24 do
  3882. sphere2(6,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(1,5),-0.05,keptcolor)
  3883. local rsiz = math.random(10,50)
  3884. sphereMK(math.random(3,6),1.25,"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  3885. end
  3886. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  3887. local msh = Instance.new("SpecialMesh",a)
  3888. msh.MeshType = "Cylinder"
  3889. msh.Scale = vt(1,15,15)
  3890. for i = 0, 49 do
  3891. swait()
  3892. CameraEnshaking(1,4)
  3893. MagniDamage(ht, 70, 1000,1500, 0, "Normal")
  3894. rotation = rotation + 5
  3895. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  3896. sphere2(6,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(1,5),-0.05,keptcolor)
  3897. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(25,25,5),1,1,0,keptcolor)
  3898. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3899. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3900. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3901. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3902. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3903. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3904. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3905. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3906. for i = 0, 2 do
  3907. local rsiz = math.random(50,250)
  3908. sphereMK(math.random(3,6),math.random(2,4),"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  3909. end
  3910. msh.Scale = msh.Scale + vt(0,0.25,0.25)
  3911. end
  3912. eff.Enabled = false
  3913. local visibility = 0
  3914. for i = 0, 49 do
  3915. swait()
  3916. visibility = visibility + 0.02
  3917. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, visibility),NumberSequenceKeypoint.new(0.975, visibility),NumberSequenceKeypoint.new(1, 1)})
  3918. rotation = rotation + 5
  3919. poste = poste - 1
  3920. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3921. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3922. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3923. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3924. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3925. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3926. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3927. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3928. msh.Scale = msh.Scale + vt(0,-0.5,-0.5)
  3929. a.Transparency = a.Transparency + 0.02
  3930. end
  3931. wait(1)
  3932. orb:Destroy()
  3933. a:Destroy()
  3934. ht:Destroy()
  3935. end))
  3936. game:GetService("Debris"):AddItem(orb, 10)
  3937. end
  3938. end))
  3939. hum.WalkSpeed = storehumanoidWS
  3940. attack = false
  3941. end
  3942.  
  3943.  
  3944. function WarpedDash()
  3945. attack = true
  3946. hum.WalkSpeed = 0
  3947. hum.JumpPower = 0
  3948. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  3949. local poste = 3
  3950. local rotation = 0
  3951. local rate = 0
  3952. for i = 0, 124 do
  3953. swait()
  3954. rotation = rotation + rate
  3955. poste = poste + 0.1
  3956. rate = rate + 0.1
  3957. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  3958. sphere2(8,"Add",root.CFrame*CFrame.new(math.random(-20,20),-3,math.random(-20,20)),vt(1,1,1),-0.01,0.5,-0.01,MAINRUINCOLOR)
  3959. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  3960. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(90 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  3961. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(180 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  3962. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(270 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  3963. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(30)),.5)
  3964. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.5)
  3965. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  3966. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  3967. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  3968. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  3969. end
  3970. CameraEnshaking(3,7)
  3971. local loc = Instance.new("Part", char)
  3972. loc.BrickColor = MAINRUINCOLOR
  3973. loc.CanCollide = false
  3974. loc.FormFactor = 3
  3975. loc.Name = "Ring"
  3976. loc.Material = "Neon"
  3977. loc.Size = Vector3.new(1, 1, 1)
  3978. loc.Transparency = 1
  3979. loc.TopSurface = 0
  3980. loc.BottomSurface = 0
  3981. loc.Anchored = true
  3982. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  3983. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  3984. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  3985. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  3986. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  3987. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  3988. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  3989. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  3990. coroutine.resume(coroutine.create(function()
  3991. local eff = Instance.new("ParticleEmitter",loc)
  3992. eff.Texture = "rbxassetid://363275192"
  3993. eff.LightEmission = 0.95
  3994. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3995. eff.Rate = 10000
  3996. eff.Lifetime = NumberRange.new(1)
  3997. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  3998. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3999. eff.Speed = NumberRange.new(100,500)
  4000. eff.Drag = 5
  4001. eff.Rotation = NumberRange.new(-500,500)
  4002. eff.VelocitySpread = 9000
  4003. eff.RotSpeed = NumberRange.new(-50,50)
  4004. wait(0.5)
  4005. eff.Enabled = false
  4006. end))
  4007. for i = 0, 49 do
  4008. sphere2(math.random(100,300)/100,"Add",loc.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR)
  4009. end
  4010. for i = 0, 9 do
  4011. sphere2(3,"Add",loc.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),0),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR)
  4012. end
  4013. game:GetService("Debris"):AddItem(loc, 5)
  4014. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  4015. hum.WalkSpeed = storehumanoidWS
  4016. hum.JumpPower = 50
  4017. attack = false
  4018. end
  4019.  
  4020. ------------------------------------
  4021. function harmonytaunty()
  4022. attack = true
  4023. hum.WalkSpeed = 0
  4024. CFuncs["Sound"].Create("rbxassetid://430312221", tors, 1.25, 1.15)
  4025. for i = 0,7,0.1 do
  4026. swait()
  4027. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2),math.rad(0),math.rad(-20 + 6 * math.cos(sine / 34))),.2)
  4028. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(10 - 4 * math.cos(sine / 47))),.2)
  4029. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(-2 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(-2 + 4 * math.cos(sine / 62))),.2)
  4030. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(12 - 3 * math.cos(sine / 28)),math.rad(12 - 3 * math.cos(sine / 79)),math.rad(2 - 4 * math.cos(sine / 62))),.2)
  4031. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.01 * math.cos(sine / 28),-0.1)*angles(math.rad(34 + 2 * math.cos(sine / 33)),math.rad(0),math.rad(-13 - 3 * math.cos(sine / 28))),.2)
  4032. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(80 - 3 * math.cos(sine / 37)),math.rad(0),math.rad(10 + 5 * math.cos(sine / 30))),.2)
  4033. end
  4034. hum.WalkSpeed = storehumanoidWS
  4035. attack = false
  4036. end
  4037.  
  4038. function vistaunty()
  4039. attack = true
  4040. hum.WalkSpeed = 0
  4041. local rd = math.random(1,5)
  4042. if rd == 1 then
  4043. chatfunc("You're familiar with this, arent you?",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4044. elseif rd == 2 then
  4045. chatfunc("Dance to the beat. If you want to.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4046. elseif rd == 3 then
  4047. chatfunc("I'm just bored. Don't mess with me.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4048. elseif rd == 4 then
  4049. chatfunc("Ready to dance? If not, come back if you want to.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4050. elseif rd == 5 then
  4051. chatfunc("Ehh, not really into something right now.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4052. end
  4053. for i = 0, 8, 0.1 do
  4054. swait()
  4055. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/5000,-0.1)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(0 - 2 * math.cos(sine / 56) + kan.PlaybackLoudness/450)),.4)
  4056. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - kan.PlaybackLoudness/6500,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(5),math.rad(0 + 2 * math.cos(sine / 56) + kan.PlaybackLoudness/500)),.4)
  4057. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 56) ,0 + 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/7000)*angles(math.rad(0 - 2 * math.cos(sine / 56)),math.rad(0),math.rad(60)),.4)
  4058. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2 * math.cos(sine / 28) - kan.PlaybackLoudness/60),math.rad(0 + 2 * math.cos(sine / 73)),math.rad(-60)),.4)
  4059. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(90 + 5 * math.cos(sine / 34) + kan.PlaybackLoudness/7.5),math.rad(0),math.rad(60 - 2 * math.cos(sine / 38))),.4)
  4060. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(10),math.rad(5),math.rad(7.5)),.4)
  4061. end
  4062. hum.WalkSpeed = storehumanoidWS
  4063. attack = false
  4064. end
  4065.  
  4066. function shytaunty()
  4067. attack = true
  4068. hum.WalkSpeed = 0
  4069. CFuncs["Sound"].Create("rbxassetid://543623779", tors, 0.35, 1)
  4070. local blush = Instance.new("Decal",hed)
  4071. blush.Texture = "rbxassetid://898404027"
  4072. blush.Face = "Front"
  4073. for i = 0, 13, 0.1 do
  4074. swait()
  4075. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7 - 5 * math.cos(sine / 44)),math.rad(0),math.rad(-6 - 3 * math.cos(sine / 34))),.1)
  4076. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 + 5 * math.cos(sine / 44)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 34))),.1)
  4077. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.05 * math.cos(sine / 44),0 + 0.03 * math.cos(sine / 34),-0.05 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 - 5 * math.cos(sine / 44)),math.rad(-5)),.1)
  4078. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2 - 2.5 * math.cos(sine / 28)),math.rad(20 + 5 * math.cos(sine / 62)),math.rad(35 + 5 * math.cos(sine / 59))),.1)
  4079. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(22 - 1 * math.cos(sine / 53)),math.rad(0),math.rad(-60 + 2 * math.cos(sine / 37))),.1)
  4080. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(26 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(59 - 3 * math.cos(sine / 57) )),.1)
  4081. end
  4082. coroutine.resume(coroutine.create(function()
  4083. for i = 0, 49 do
  4084. swait()
  4085. blush.Transparency = blush.Transparency + 0.02
  4086. end
  4087. blush:Destroy()
  4088. end))
  4089. hum.WalkSpeed = storehumanoidWS
  4090. attack = false
  4091. end
  4092. ------------------------------------ Mode Ascendances
  4093. function UnknownA()
  4094. ModeOfGlitch = 6000000000
  4095. storehumanoidWS = 300
  4096. hum.WalkSpeed = 300
  4097. rainbowmode = false
  4098. chaosmode = false
  4099. RecolorTextAndRename("JUSTICE",BrickColor.new("Toothpaste").Color,BrickColor.new("Cool yellow").Color,"Highway")
  4100. newThemeCust("rbxassetid://170020261",0,1.005,1.5)
  4101. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  4102. end
  4103.  
  4104. function loveydovey()
  4105. attack = true
  4106. local keptcolor = MAINRUINCOLOR
  4107. hum.WalkSpeed = 0
  4108. ModeOfGlitch = 9600000000
  4109. MAINRUINCOLOR = BrickColor.new("Hot pink")
  4110. storehumanoidWS = 20
  4111. rainbowmode = false
  4112. chaosmode = false
  4113. newTheme("rbxassetid://736003449",0,1,2)
  4114. RecolorTextAndRename("EMBARRESED",BrickColor.new("Pink").Color,BrickColor.new("Hot pink").Color,"Cartoon")
  4115. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4116. hum.WalkSpeed = 20
  4117. attack = false
  4118. end
  4119. -------------------------------------
  4120.  
  4121. Humanoid.Animator.Parent = nil
  4122.  
  4123. -------------------------------------
  4124.  
  4125. local attacktype = 1
  4126. mouse.Button1Down:connect(function()
  4127. if attack == false and attacktype == 1 then
  4128. attacktype = 2
  4129. attackone()
  4130. elseif attack == false and attacktype == 2 then
  4131. attacktype = 3
  4132. attacktwo()
  4133. elseif attack == false and attacktype == 3 then
  4134. attacktype = 1
  4135. attackthree()
  4136. elseif attack == false and attacktype == 4 then
  4137. attacktype = 1
  4138. --attackfour()
  4139. end
  4140. end)
  4141.  
  4142. local OVMID = 1702473314
  4143. local OVMPIT = 1
  4144. local OVMVOL = 1
  4145. function ModeTwo2()
  4146. ModeOfGlitch = 2
  4147. storehumanoidWS = 16
  4148. hum.WalkSpeed = 16
  4149. rainbowmode = false
  4150. chaosmode = false
  4151. RecolorTextAndRename("Azure",Color3.new(0,0,0),BrickColor.new("Bright violet").Color,"Code")
  4152. newTheme("rbxassetid://1003121377",0,1.02,1.25)
  4153. MAINRUINCOLOR = BrickColor.new("Bright violet")
  4154. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4155. function ModeThree3()
  4156. print("fuck")
  4157. end
  4158. end
  4159. function ModeFour4()
  4160. ModeOfGlitch = 4
  4161. storehumanoidWS = 16
  4162. hum.WalkSpeed = 16
  4163. rainbowmode = false
  4164. chaosmode = false
  4165. RecolorTextAndRename("Luna",Color3.new(0,0,0.25),BrickColor.new("Bright yellow").Color,"SourceSansBold")
  4166. newTheme("rbxassetid://1449911189",0,1.02,1.25)
  4167. MAINRUINCOLOR = BrickColor.new("Navy blue")
  4168. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4169. end
  4170. function ModeFive5()
  4171. ModeOfGlitch = 5
  4172. storehumanoidWS = 16
  4173. hum.WalkSpeed = 16
  4174. rainbowmode = false
  4175. chaosmode = false
  4176. RecolorTextAndRename("Sol.",Color3.new(1,0.5,0),Color3.new(1,1,0),"Fantasy")
  4177. newTheme("rbxassetid://933674871",0,1.01,1.25)
  4178. MAINRUINCOLOR = BrickColor.new("Deep orange")
  4179. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4180. end
  4181. function ModeSix6()
  4182. ModeOfGlitch = 6
  4183. storehumanoidWS = 100
  4184. hum.WalkSpeed = 100
  4185. rainbowmode = false
  4186. chaosmode = false
  4187. RecolorTextAndRename("GALACTIC",Color3.new(0,0,0.5),Color3.new(0.75,1,1),"Fantasy")
  4188. newTheme("rbxassetid://258688195",0,1,1.25)
  4189. MAINRUINCOLOR = BrickColor.new("Pastel light blue")
  4190. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4191. end
  4192. function ModeSeven7()
  4193. ModeOfGlitch = 7
  4194. storehumanoidWS = 175
  4195. hum.WalkSpeed = 175
  4196. rainbowmode = false
  4197. chaosmode = false
  4198. RecolorTextAndRename("Hyper loop",BrickColor.new("Cyan").Color,BrickColor.new("Toothpaste").Color,"Arcade")
  4199. newTheme("rbxassetid://265293315",0,1.01,1.25)
  4200. MAINRUINCOLOR = BrickColor.new("Cyan")
  4201. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4202. end
  4203. function ModeEught8()
  4204. ModeOfGlitch = 8
  4205. storehumanoidWS = 100
  4206. hum.WalkSpeed = 100
  4207. rainbowmode = false
  4208. chaosmode = false
  4209. RecolorTextAndRename("STRANGE",BrickColor.new("Really red").Color,BrickColor.new("Bright red").Color,"Antique")
  4210. newTheme("rbxassetid://1230880483",0,1.01,1.65)
  4211. MAINRUINCOLOR = BrickColor.new("Really red")
  4212. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4213. end
  4214. function ModeNine9()
  4215. ModeOfGlitch = 9
  4216. storehumanoidWS = 135
  4217. hum.WalkSpeed = 135
  4218. rainbowmode = false
  4219. chaosmode = false
  4220. RecolorTextAndRename("Music Man",BrickColor.new("Medium stone grey").Color,BrickColor.new("Black").Color,"Arcade")
  4221. newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
  4222. MAINRUINCOLOR = BrickColor.new("Medium stone grey")
  4223. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4224. end
  4225. function ModeZero0()
  4226. ModeOfGlitch = 10
  4227. storehumanoidWS = 12
  4228. hum.WalkSpeed = 12
  4229. rainbowmode = false
  4230. chaosmode = false
  4231. RecolorTextAndRename("Lucid Dream",BrickColor.new("Navy blue").Color,BrickColor.new("Black").Color,"Garamond")
  4232. newTheme("rbxassetid://892260150",0,1.01,1.65)
  4233. MAINRUINCOLOR = BrickColor.new("Black")
  4234. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4235. end
  4236. function ModeAzurioz()
  4237. ModeOfGlitch = 2000000000
  4238. storehumanoidWS = 200
  4239. hum.WalkSpeed = 200
  4240. rainbowmode = false
  4241. chaosmode = false
  4242. RecolorTextAndRename("AZURE Z",BrickColor.new("Dark indigo").Color,BrickColor.new("Magenta").Color,"Antique")
  4243. newThemeCust("rbxassetid://949706199",2.9,1.02,1.5)
  4244. MAINRUINCOLOR = BrickColor.new("Magenta")
  4245. RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark indigo"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4246. end
  4247. mouse.KeyDown:connect(function(k)
  4248. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  4249. resetmode()
  4250. end
  4251. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  4252. ModeTwo2()
  4253. end
  4254. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  4255. ModeOfGlitch = 3
  4256. storehumanoidWS = 16
  4257. hum.WalkSpeed = 16
  4258. rainbowmode = false
  4259. chaosmode = false
  4260. RecolorTextAndRename("CODE",Color3.new(0,0,0),Color3.new(0,1,0),"SciFi")
  4261. newTheme("rbxassetid://949709585",0,1.01,1.25)
  4262. MAINRUINCOLOR = BrickColor.new("Lime green")
  4263. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4264. end
  4265. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  4266. ModeFour4()
  4267. end
  4268. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  4269. ModeFive5()
  4270. end
  4271. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  4272. ModeSix6()
  4273. end
  4274. if k == "p" and attack == false and ModeOfGlitch ~= 7 then
  4275. ModeSeven7()
  4276. end
  4277. if k == "l" and attack == false and ModeOfGlitch ~= 8 then
  4278. ModeEught8()
  4279. end
  4280. if k == "k" and attack == false and ModeOfGlitch ~= 9 then
  4281. ModeNine9()
  4282. end
  4283. if k == "j" and attack == false and ModeOfGlitch ~= 10 then
  4284. ModeZero0()
  4285. end
  4286. if k == "m" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 2000000000 then
  4287. ModeAzurioz()
  4288. end
  4289. if k == "h" and attack == false and ModeOfGlitch ~= 9600000000 then
  4290. loveydovey()
  4291. end
  4292. if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 6000000000 then
  4293. UnknownA()
  4294. end
  4295. if k == "g" and ModeOfGlitch == 6000000000 and attack == false then
  4296. harmonytaunty()
  4297. elseif k == "g" and ModeOfGlitch == 9 and attack == false then
  4298. vistaunty()
  4299. elseif k == "g" and ModeOfGlitch == 9600000000 and attack == false then
  4300. shytaunty()
  4301. end
  4302. if k == "z" and ModeOfGlitch == 1 and attack == false then
  4303. Beams()
  4304. elseif k == "z" and ModeOfGlitch == 2 and attack == false then
  4305. smiter()
  4306. elseif k == "z" and ModeOfGlitch == 2000000000 and attack == false then
  4307. supsmiter()
  4308. elseif k == "z" and ModeOfGlitch == 3 and attack == false then
  4309. BinaryE()
  4310. elseif k == "z" and ModeOfGlitch == 4 and attack == false then
  4311. elseif k == "z" and ModeOfGlitch == 5 and attack == false then
  4312. Fireball()
  4313. elseif k == "z" and ModeOfGlitch == 6 and attack == false then
  4314. GalacticalBeams()
  4315. elseif k == "z" and ModeOfGlitch == 7 and attack == false then
  4316. WarpedDash()
  4317. elseif k == "z" and ModeOfGlitch == 8 and attack == false then
  4318. BeamOfDeath()
  4319. elseif k == "z" and ModeOfGlitch == 9 and attack == false then
  4320. end
  4321. if k == "x" and ModeOfGlitch == 3 and attack == false then
  4322. BinaryBLINK()
  4323. end
  4324. if k == "v" and ModeOfGlitch == 2000000000 and attack == false then
  4325. AZUREFINALE()
  4326. end
  4327. if k == "l" and mutedtog == false then
  4328. mutedtog = true
  4329. kan.Volume = 0
  4330. elseif k == "l" and mutedtog == true then
  4331. mutedtog = false
  4332. kan.Volume = 1.25
  4333. end
  4334. if k == "p" and toggleTag == false then
  4335. toggleTag = true
  4336. modet.TextTransparency = 0
  4337. modet.TextStrokeTransparency = 0
  4338. elseif k == "p" and toggleTag == true then
  4339. toggleTag = false
  4340. modet.TextTransparency = 1
  4341. modet.TextStrokeTransparency = 1
  4342. end
  4343. if k == "z" and attack == false and ModeOfGlitch == 1 then
  4344. end
  4345. end)
  4346.  
  4347. plr.Chatted:connect(function(message)
  4348. if ModeOfGlitch == 9 then
  4349. if message:sub(1,5) == "play/" then
  4350. OVMID = message:sub(6)
  4351. newThemeCust("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
  4352. elseif message:sub(1,6) == "pitch/" then
  4353. OVMPIT = message:sub(7)
  4354. newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
  4355. elseif message:sub(1,4) == "vol/" then
  4356. OVMVOL = message:sub(5)
  4357. newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
  4358. elseif message:sub(1,7) == "skipto/" then
  4359. chatfunc("Skipped to "..message:sub(8).." out of "..math.floor(kan.TimeLength).." seconds.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4360. newThemeCust("rbxassetid://"..OVMID,message:sub(8),OVMPIT,OVMVOL)
  4361. elseif message:sub(1,9) == "telltime/" then
  4362. chatfunc("Current time pos: "..math.floor(kan.TimePosition).." out of "..math.floor(kan.TimeLength).." seconds.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4363. end
  4364. end
  4365. end)
  4366. local rotperm = 0
  4367. coroutine.resume(coroutine.create(function()
  4368. while true do
  4369. swait()
  4370. if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 2000000000 then
  4371. swait(0.5)
  4372. sphereMK(5,math.random(8,14)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-10,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.75,0.75,20,-0.0075,MAINRUINCOLOR,0)
  4373. elseif ModeOfGlitch == 5 then
  4374. swait(0.5)
  4375. local rsiz = math.random(1,3)
  4376. sphereMK(math.random(3,6),math.random(-25,25)/750,"Add",sorb2.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  4377. sphereMK(math.random(6,9),math.random(-10,10)/750,"Add",sorb2.CFrame*CFrame.new(math.random(-5,5)/50,math.random(-5,5)/50,math.random(-5,5)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/3,rsiz/3,rsiz/3,0,MAINRUINCOLOR,0)
  4378. elseif ModeOfGlitch == 9600000000 then
  4379. swait(0.25)
  4380. sphereMK(5,math.random(-14,-8)/45,"Add",root.CFrame*CFrame.new(math.random(-25,25),10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.25,0.25,7.5,-0.0025,MAINRUINCOLOR,0)
  4381. elseif ModeOfGlitch == 6000000000 then
  4382. coroutine.resume(coroutine.create(function()
  4383. swait(5)
  4384. sphereMK(10,math.random(15,45)/45,"Add",root.CFrame*CFrame.new(math.random(-50,50),-40,math.random(-50,50))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,60,-0.01,MAINRUINCOLOR,0)
  4385. end))
  4386. swait(1)
  4387. rotperm = rotperm + 12
  4388. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(rotperm),0)*CFrame.new(0,0,10),vt(3,3,3),-0.03,-0.03,-0.03,MAINRUINCOLOR)
  4389. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(180 + rotperm),0)*CFrame.new(0,0,10),vt(3,3,3),-0.03,-0.03,-0.03,BrickColor.new("Cool yellow"))
  4390. elseif ModeOfGlitch == 9 and kan.PlaybackLoudness >= 50 then
  4391. swait(25 - kan.PlaybackLoudness/80)
  4392. sphere2(4,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,1,1),0.25,0,0.25,MAINRUINCOLOR)
  4393. if kan.PlaybackLoudness >= 300 then
  4394. CameraEnshaking(1,3)
  4395. for i = 0, 4 do
  4396. sphereMK(5,math.random(15,35)/150,"Add",root.CFrame*CFrame.new(math.random(-15,15),-10,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,20,-0.01,MAINRUINCOLOR,0)
  4397. end
  4398. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,1,1),0.5,0,0.5,MAINRUINCOLOR)
  4399. end
  4400. local notsp = Instance.new("Part", char)
  4401. notsp.CanCollide = false
  4402. notsp.FormFactor = 3
  4403. notsp.Name = "Ring"
  4404. notsp.Material = "Neon"
  4405. notsp.Size = Vector3.new(10, 1, 10)
  4406. if kan.PlaybackLoudness >= 300 then
  4407. notsp.Size = Vector3.new(25, 1, 25)
  4408. end
  4409. notsp.Transparency = 1
  4410. notsp.TopSurface = 0
  4411. notsp.BottomSurface = 0
  4412. notsp.Anchored = true
  4413. notsp.CFrame = root.CFrame*CFrame.new(0,-3,0)
  4414. coroutine.resume(coroutine.create(function()
  4415. local eff = Instance.new("ParticleEmitter",notsp)
  4416. eff.Texture = "rbxassetid://288898235"
  4417. eff.LightEmission = 0.5
  4418. eff.Color = ColorSequence.new(Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000))
  4419. eff.Rate = 300
  4420. eff.Lifetime = NumberRange.new(1)
  4421. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,0,0)})
  4422. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4423. eff.Speed = NumberRange.new(20,40)
  4424. eff.Acceleration = vt(0,-75,0)
  4425. eff.Drag = 1
  4426. eff.Rotation = NumberRange.new(-10,10)
  4427. eff.VelocitySpread = 20
  4428. eff.RotSpeed = NumberRange.new(-1,1)
  4429. coroutine.resume(coroutine.create(function()
  4430. while true do
  4431. swait()
  4432. if eff.Parent ~= nil then
  4433. if ModeOfGlitch == 9 then
  4434. eff.Color = ColorSequence.new(Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000))
  4435. elseif ModeOfGlitch ~= 9 then
  4436. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  4437. end
  4438. else
  4439. break
  4440. end
  4441. end
  4442. end))
  4443. wait(0.1)
  4444. eff.Enabled = false
  4445. end))
  4446. game:GetService("Debris"):AddItem(notsp, 5)
  4447. end
  4448. end
  4449. end))
  4450.  
  4451.  
  4452. Humanoid.Name = "GGLITCHER"
  4453. Humanoid.MaxHealth = math.huge
  4454. Humanoid.Health = math.huge
  4455. Instance.new("ForceField",char).Visible = false
  4456.  
  4457. idleanim=.4
  4458. while true do
  4459. Humanoid.MaxHealth = math.huge
  4460. Humanoid.Health = math.huge
  4461. if mutedtog == false and duringend == false then
  4462. kan.Volume = currentVol
  4463. elseif mutedtog == true and duringend == false then
  4464. kan.Volume = 0
  4465. end
  4466. if duringend == false then
  4467. kan.PlaybackSpeed = currentPitch
  4468. kan.Pitch = currentPitch
  4469. end
  4470. kan.SoundId = currentThemePlaying
  4471. kan.Looped = true
  4472. kan.Parent = char
  4473. kan:Resume()
  4474.  
  4475. modeteller.Text = string.upper(modet.Text)
  4476. modeteller.TextColor3 = MAINRUINCOLOR.Color
  4477.  
  4478. swait()
  4479. handlexweld.C0=clerp(handlexweld.C0,cf(0 + 0.25 * math.cos(sine / 63),0 + 0.25 * math.cos(sine / 70),0 + 0.05 * math.cos(sine / 57))*angles(math.rad(0 + 2 * math.cos(sine / 55)),math.rad(0 + 2 * math.cos(sine / 46)),math.rad(0 + 2 * math.cos(sine / 32))),.3)
  4480.  
  4481. lwing1weld.C1=clerp(lwing1weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 36),0)*angles(math.rad(0 + 3 * math.cos(sine / 42)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(90 + 5 * math.cos(sine / 56))),.3)
  4482. lwing2weld.C1=clerp(lwing2weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 38),0)*angles(math.rad(0 + 3 * math.cos(sine / 45)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(130 + 5 * math.cos(sine / 56))),.3)
  4483. lwing3weld.C1=clerp(lwing3weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 41),0)*angles(math.rad(0 + 3 * math.cos(sine / 48)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(50 + 5 * math.cos(sine / 56))),.3)
  4484. rwing1weld.C1=clerp(rwing1weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 36),0)*angles(math.rad(0 + 3 * math.cos(sine / 46)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(-90 - 5 * math.cos(sine / 56))),.3)
  4485. rwing2weld.C1=clerp(rwing2weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 38),0)*angles(math.rad(0 + 3 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(-130 - 5 * math.cos(sine / 56))),.3)
  4486. rwing3weld.C1=clerp(rwing3weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 41),0)*angles(math.rad(0 + 3 * math.cos(sine / 40)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(-50 - 5 * math.cos(sine / 56))),.3)
  4487. --------------- Visualiser Zone
  4488. if ModeOfGlitch == 9 then
  4489. modet.TextColor3 = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  4490. for i, v in pairs(mw2:GetChildren()) do
  4491. if v:IsA("Part") then
  4492. v.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  4493. v.Material = "Neon"
  4494. end
  4495. end
  4496. for i, v in pairs(mw1:GetChildren()) do
  4497. if v:IsA("Part") then
  4498. v.Transparency = 0
  4499. v.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  4500. v.Material = "Neon"
  4501. end
  4502. end
  4503. end
  4504. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  4505. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  4506. ---------------
  4507. sine = sine + change
  4508. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  4509. local velderp=RootPart.Velocity.y
  4510. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  4511. if equipped==true or equipped==false then
  4512. if attack==false then
  4513. idle=idle+1
  4514. else
  4515. idle=0
  4516. end
  4517. if idle>=500 then
  4518. if attack==false then
  4519. --Sheath()
  4520. end
  4521. end
  4522. if RootPart.Velocity.y > 1 and hitfloor==nil then
  4523. Anim="Jump"
  4524. if attack==false then
  4525. RH.C0=clerp(RH.C0,cf(1,-0.35 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  4526. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  4527. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-tors.Velocity.Y/6),math.rad(0),math.rad(0)),.1)
  4528. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  4529. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
  4530. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
  4531. end
  4532. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  4533. Anim="Fall"
  4534. if attack==false then
  4535. RH.C0=clerp(RH.C0,cf(1,-0.35 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  4536. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  4537. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-tors.Velocity.Y/6),math.rad(0),math.rad(0)),.1)
  4538. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  4539. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(55)),.1)
  4540. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(-55)),.1)
  4541. end
  4542. elseif torvel<1 and hitfloor~=nil then
  4543. Anim="Idle"
  4544. if attack==false then
  4545. if ModeOfGlitch == 1 then
  4546. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-10 + 2 * math.cos(sine / 43)),math.rad(0 - 2 * math.cos(sine / 34))),.1)
  4547. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  4548. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(10 - 2 * math.cos(sine / 43))),.1)
  4549. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0 - 2 * math.cos(sine / 47)),math.rad(-10 + 2 * math.cos(sine / 43))),.1)
  4550. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 + 3 * math.cos(sine / 48)),math.rad(-20 - 4 * math.cos(sine / 53)),math.rad(15 - 3 * math.cos(sine / 38))),.1)
  4551. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-10 + 2 * math.cos(sine / 45)),math.rad(0),math.rad(-20 + 2 * math.cos(sine / 39))),.1)
  4552. elseif ModeOfGlitch == 2 then
  4553. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) - 0.03 * math.cos(sine / 45),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5 + 3 * math.cos(sine / 45)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1)
  4554. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) + 0.03 * math.cos(sine / 45),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 3 * math.cos(sine / 45)),math.rad(5),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  4555. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.03 * math.cos(sine / 45),0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0 + 3 * math.cos(sine / 45)),math.rad(0)),.1)
  4556. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 2.5 * math.cos(sine / 28)),math.rad(0 + 5 * math.cos(sine / 99)),math.rad(0 + 10 * math.cos(sine / 78))),.1)
  4557. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15 + 5 * math.cos(sine / 33)),math.rad(15 + 6 * math.cos(sine / 38)),math.rad(-10 - 3 * math.cos(sine / 42))),.1)
  4558. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.05 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 5 * math.cos(sine / 28))),.1)
  4559. elseif ModeOfGlitch == 10 then
  4560. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, -0.1 + 0.1 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  4561. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5 * math.sin(sine / 20)), math.rad(0), math.rad(0)), 0.3)
  4562. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.9 - 0.1 * math.cos(sine / 20), 0.025 * math.cos(sine / 20)) * RHCF * angles(math.rad(-4.5), math.rad(0), math.rad(0)), 0.15)
  4563. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.9 - 0.1 * math.cos(sine / 20), 0.025 * math.cos(sine / 20)) * LHCF * angles(math.rad(-6.5), math.rad(0), math.rad(0)), 0.15)
  4564. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.4 + 0.05 * math.sin(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(-0), math.rad(-30)), 0.1)
  4565. LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.4 + 0.05 * math.cos(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.1)
  4566. elseif ModeOfGlitch == 3 then
  4567. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5 - 2 * math.cos(sine / 34))),.1)
  4568. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(20 - 2 * math.cos(sine / 72)),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  4569. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-20 + 2 * math.cos(sine / 72))),.1)
  4570. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0 + 4 * math.cos(sine / 55)),math.rad(20 - 2 * math.cos(sine / 72))),.1)
  4571. RW.C0=clerp(RW.C0,cf(1.15,0.5 + 0.1 * math.cos(sine / 28),0.25)*angles(math.rad(-22 + 2 * math.cos(sine / 38)),math.rad(0),math.rad(-15 - 2 * math.cos(sine / 41))),.1)
  4572. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 - 6 * math.cos(sine / 28)),math.rad(0 + 5 * math.cos(sine / 46)),math.rad(-20 + 5 * math.cos(sine / 34))),.1)
  4573. elseif ModeOfGlitch == 4 then
  4574. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-5),math.rad(0 - 3 * math.cos(sine / 34))),.1)
  4575. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(10 + 3 * math.cos(sine / 34))),.1)
  4576. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.03 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(25)),.1)
  4577. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0 + 2 * math.cos(sine / 57)),math.rad(-25)),.1)
  4578. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 + 5 * math.cos(sine / 34)),math.rad(0),math.rad(21 + 6 * math.cos(sine / 28))),.1)
  4579. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-5 + 5 * math.cos(sine / 43)),math.rad(10 - 5 * math.cos(sine / 27)),math.rad(-5 - 3 * math.cos(sine / 36))),.1)
  4580. elseif ModeOfGlitch == 5 then
  4581. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) - 0.04 * math.cos(sine / 50),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1 + 4 * math.cos(sine / 50)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1)
  4582. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) + 0.04 * math.cos(sine / 50),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5 - 4 * math.cos(sine / 50)),math.rad(18),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  4583. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.04 * math.cos(sine / 50),0 + 0.03 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 + 4 * math.cos(sine / 50)),math.rad(-18)),.1)
  4584. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 1 * math.cos(sine / 28)),math.rad(-5 - 2.5 * math.cos(sine / 57)),math.rad(18)),.1)
  4585. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.05 * math.cos(sine / 28),-0.65)*angles(math.rad(36 - 3 * math.cos(sine / 34)),math.rad(0 - 2 * math.cos(sine / 45)),math.rad(-80 + 5 * math.cos(sine / 28))),.1)
  4586. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(7 + 3 * math.cos(sine / 49)),math.rad(12 + 2 * math.cos(sine / 52)),math.rad(-16 - 6 * math.cos(sine / 39))),.1)
  4587. elseif ModeOfGlitch == 6 then
  4588. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2),math.rad(0),math.rad(-10 + 4 * math.cos(sine / 34))),.1)
  4589. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(5 + 2 * math.cos(sine / 34))),.1)
  4590. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-5 - 2 * math.cos(sine / 53))),.1)
  4591. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 1 * math.cos(sine / 28)),math.rad(2 + 3 * math.cos(sine / 41)),math.rad(5 + 2 * math.cos(sine / 53))),.1)
  4592. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-2 - 4 * math.cos(sine / 28)),math.rad(0),math.rad(14 + 8 * math.cos(sine / 28))),.1)
  4593. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(5 + 3 * math.cos(sine / 46)),math.rad(10 + 5 * math.cos(sine / 52)),math.rad(-15 - 6 * math.cos(sine / 28))),.1)
  4594. elseif ModeOfGlitch == 7 then
  4595. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(1),math.rad(0 - 1 * math.cos(sine / 34))),.1)
  4596. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(5),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4597. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.01 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4598. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0 + 1 * math.cos(sine / 71)),math.rad(0)),.1)
  4599. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(4 - 4 * math.cos(sine / 28)),math.rad(-8),math.rad(10 - 5 * math.cos(sine / 34))),.1)
  4600. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(5),math.rad(5),math.rad(5)),.1)
  4601. elseif ModeOfGlitch == 8 then
  4602. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  4603. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1)
  4604. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1)
  4605. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1)
  4606. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-2 - 3 * math.cos(sine / 30)),math.rad(25 - 3 * math.cos(sine / 38)),math.rad(28 - 6 * math.cos(sine / 34))),.1)
  4607. LW.C0=clerp(LW.C0,cf(-0.95,0.65 + 0.075 * math.cos(sine / 28),-0.65)*angles(math.rad(90 + 2 * math.cos(sine / 73)),math.rad(25 + 5 * math.cos(sine / 24)),math.rad(73 - 3 * math.cos(sine / 65))),.1)
  4608. elseif ModeOfGlitch == 9 then
  4609. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/5000,-0.1)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(0 - 2 * math.cos(sine / 56) + kan.PlaybackLoudness/450)),.4)
  4610. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - kan.PlaybackLoudness/6500,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(5),math.rad(0 + 2 * math.cos(sine / 56) + kan.PlaybackLoudness/500)),.4)
  4611. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 56) ,0 + 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/7000)*angles(math.rad(0 - 2 * math.cos(sine / 56)),math.rad(0),math.rad(30)),.4)
  4612. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2 * math.cos(sine / 28) - kan.PlaybackLoudness/60),math.rad(0 + 2 * math.cos(sine / 73)),math.rad(-30)),.4)
  4613. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(40 + 5 * math.cos(sine / 34) + kan.PlaybackLoudness/7.5),math.rad(0),math.rad(28 - 2 * math.cos(sine / 38))),.4)
  4614. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(10),math.rad(5),math.rad(7.5)),.4)
  4615. elseif ModeOfGlitch == 2000000000 then
  4616. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  4617. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 3 * math.cos(sine / 34))),.1)
  4618. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(2 + 3 * math.cos(sine / 34)),math.rad(0),math.rad(34 - 3 * math.cos(sine / 54))),.1)
  4619. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 4 * math.cos(sine / 28)),math.rad(0 - 1 * math.cos(sine / 44)),math.rad(-34 + 3 * math.cos(sine / 54))),.1)
  4620. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(12 + 5 * math.cos(sine / 62)),math.rad(30 + 5 * math.cos(sine / 48)),math.rad(19 + 6 * math.cos(sine / 36))),.1)
  4621. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 + 3 * math.cos(sine / 65)),math.rad(6 + 3 * math.cos(sine / 57)),math.rad(-20 - 7 * math.cos(sine / 36))),.1)
  4622. elseif ModeOfGlitch == 6000000000 then
  4623. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2),math.rad(0),math.rad(-15 + 6 * math.cos(sine / 34))),.1)
  4624. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(7.5 - 4 * math.cos(sine / 47))),.1)
  4625. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(-1 + 4 * math.cos(sine / 62))),.1)
  4626. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 28)),math.rad(5 - 6 * math.cos(sine / 79)),math.rad(1 - 4 * math.cos(sine / 62))),.1)
  4627. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.01 * math.cos(sine / 28),-0.65)*angles(math.rad(38 + 2 * math.cos(sine / 33)),math.rad(0),math.rad(-95 - 3 * math.cos(sine / 28))),.1)
  4628. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.01 * math.cos(sine / 28),-0.65)*angles(math.rad(45 - 3 * math.cos(sine / 37)),math.rad(0),math.rad(80 + 5 * math.cos(sine / 30))),.1)
  4629. elseif ModeOfGlitch == 9600000000 then
  4630. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7 - 5 * math.cos(sine / 44)),math.rad(0),math.rad(-6 - 3 * math.cos(sine / 34))),.1)
  4631. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 + 5 * math.cos(sine / 44)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 34))),.1)
  4632. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.05 * math.cos(sine / 44),0 + 0.03 * math.cos(sine / 34),-0.05 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 - 5 * math.cos(sine / 44)),math.rad(-5)),.1)
  4633. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5 - 2.5 * math.cos(sine / 28)),math.rad(10 + 5 * math.cos(sine / 62)),math.rad(17 + 5 * math.cos(sine / 59))),.1)
  4634. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(22 - 3 * math.cos(sine / 53)),math.rad(0),math.rad(-37 + 2 * math.cos(sine / 37))),.1)
  4635. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(23 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(38 - 3 * math.cos(sine / 57) )),.1)
  4636. end
  4637. end
  4638. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  4639. Anim="Walk"
  4640. if attack==false then
  4641. if ModeOfGlitch == 10 then
  4642. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.175 + 0.025 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7) * angles(math.rad(4-2.5 * math.cos(sine / 3.5)), math.rad(0) - root.RotVelocity.Y / 75, math.rad(5 * math.cos(sine / 7))), 0.15)
  4643. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5 * math.sin(sine / 20)), math.rad(0), math.rad(0) - hed.RotVelocity.Y / 15), 0.3)
  4644. RH.C0 = clerp(RH.C0, cf(1, -0.925 - 0.5 * math.cos(sine / 7) / 2, 0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 - 5 * math.cos(sine / 7)) - rl.RotVelocity.Y / 75 + -math.sin(sine / 7) / 2.5, math.rad(90 - 0.1 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 0.1 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  4645. LH.C0 = clerp(LH.C0, cf(-1, -0.925 + 0.5 * math.cos(sine / 7) / 2, -0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 + 5 * math.cos(sine / 7)) + ll.RotVelocity.Y / 75 + math.sin(sine / 7) / 2.5, math.rad(-90 - 0.1 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 0.1 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  4646. RW.C0 = clerp(RW.C0, cf(1.1, 0.4 + 0.05 * math.sin(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(-0), math.rad(-30)), 0.1)
  4647. LW.C0 = clerp(LW.C0, cf(-1.1, 0.4 + 0.05 * math.sin(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.1)
  4648. elseif ModeOfGlitch ~= 9600000000 then
  4649. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
  4650. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
  4651. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
  4652. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 5 * math.cos(sine / 8))),.1)
  4653. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1)
  4654. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1)
  4655. elseif ModeOfGlitch == 9600000000 then
  4656. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 10 * math.cos(sine / 8)),math.rad(0 + 65 * math.cos(sine / 8))),.1)
  4657. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 10 * math.cos(sine / 8)),math.rad(0 + 65 * math.cos(sine / 8))),.1)
  4658. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.1,-0.05 + 0.05 * math.cos(sine / 4))*angles(math.rad(15 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 10 * math.cos(sine / 8))),.1)
  4659. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-15 + 3 * math.cos(sine / 4)),math.rad(0 - 10 * math.cos(sine / 8)),math.rad(0 - hed.RotVelocity.Y*2.5 + 10 * math.cos(sine / 8))),.1)
  4660. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 80 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1)
  4661. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 80 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1)
  4662. end
  4663. end
  4664. elseif torvel>=22 and hitfloor~=nil then
  4665. Anim="Run"
  4666. if attack==false then
  4667. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 2000000000 and ModeOfGlitch ~= 6000000000 then
  4668. RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 85 * math.cos(sine / 6))),.1)
  4669. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 85 * math.cos(sine / 6))),.1)
  4670. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(15 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 10 * math.cos(sine / 6))),.1)
  4671. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5 + 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 10 * math.cos(sine / 6))),.1)
  4672. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.5 * math.cos(sine / 6))*angles(math.rad(0 - 140 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 20 * math.cos(sine / 3))),.1)
  4673. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.5 * math.cos(sine / 6))*angles(math.rad(0 + 140 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 20 * math.cos(sine / 3))),.1)
  4674. if ModeOfGlitch == 7 then
  4675. sphereMK(2,-0.5,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),8)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,0.5,20,-0.0075,MAINRUINCOLOR,0)
  4676. sphereMK(3,0,"Add",root.CFrame*CFrame.new(0,0,8)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,5,20,-0.0075,MAINRUINCOLOR,0)
  4677. end
  4678. elseif ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 2000000000 or ModeOfGlitch == 6000000000 then
  4679. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2)
  4680. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2)
  4681. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(70),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
  4682. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2)
  4683. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-8 - 4 * math.cos(sine / 59)),math.rad(-20 + 7 * math.cos(sine / 62)),math.rad(20 + 5 * math.cos(sine / 50))),.2)
  4684. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-8 - 3 * math.cos(sine / 55)),math.rad(20 + 8 * math.cos(sine / 67)),math.rad(-20 - 4 * math.cos(sine / 29))),.2)
  4685. end
  4686. end
  4687. end
  4688. end
  4689. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement