Advertisement
Sonickool

Untitled

Dec 16th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 419.84 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local TextBox = Instance.new("TextBox")
  6. local TextButton = Instance.new("TextButton")
  7. local TextButton_2 = Instance.new("TextButton")
  8. --Properties:
  9. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  10.  
  11. TextBox.Parent = ScreenGui
  12. TextBox.BackgroundColor3 = Color3.new(0.333333, 0.333333, 0.498039)
  13. TextBox.Position = UDim2.new(0.0693430677, 0, 0.622176647, 0)
  14. TextBox.Size = UDim2.new(0, 211, 0, 49)
  15. TextBox.Font = Enum.Font.SourceSans
  16. TextBox.Text = "Gui made by CrookedFreeze :D"
  17. TextBox.TextColor3 = Color3.new(0, 0, 0)
  18. TextBox.TextSize = 14
  19.  
  20. TextButton.Parent = TextBox
  21. TextButton.BackgroundColor3 = Color3.new(0.666667, 1, 0)
  22. TextButton.Position = UDim2.new(0, 0, 1, 0)
  23. TextButton.Size = UDim2.new(0, 113, 0, 50)
  24. TextButton.Font = Enum.Font.SourceSans
  25. TextButton.Text = "StarGlitch"
  26. TextButton.TextColor3 = Color3.new(0, 0, 0)
  27. TextButton.TextSize = 14
  28.  
  29. (StarGlitch).MouseButton1Down:connect(function()
  30. --TODO: add comments or something idk
  31. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  32. local Player = owner
  33. local Mouse,mouse,UserInputService,ContextActionService
  34. do
  35. script.Parent = Player.Character
  36. local CAS = {Actions={}}
  37. local Event = Instance.new("RemoteEvent")
  38. Event.Name = "UserInput_Event"
  39. Event.Parent = Player.Character
  40. local fakeEvent = function()
  41. local t = {_fakeEvent=true}
  42. t.Connect = function(self,f)self.Function=f end
  43. t.connect = t.Connect
  44. return t
  45. end
  46. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  47. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  48. function CAS:BindAction(name,fun,touch,...)
  49. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  50. end
  51. function CAS:UnbindAction(name)
  52. CAS.Actions[name] = nil
  53. end
  54. local function te(self,ev,...)
  55. local t = m[ev]
  56. if t and t._fakeEvent and t.Function then
  57. t.Function(...)
  58. end
  59. end
  60. m.TrigEvent = te
  61. UIS.TrigEvent = te
  62. Event.OnServerEvent:Connect(function(plr,io)
  63. if plr~=Player then return end
  64. if io.isMouse then
  65. m.Target = io.Target
  66. m.Hit = io.Hit
  67. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  68. if io.UserInputState == Enum.UserInputState.Begin then
  69. m:TrigEvent("Button1Down")
  70. else
  71. m:TrigEvent("Button1Up")
  72. end
  73. else
  74. for n,t in pairs(CAS.Actions) do
  75. for _,k in pairs(t.Keys) do
  76. if k==io.KeyCode then
  77. t.Function(t.Name,io.UserInputState,io)
  78. end
  79. end
  80. end
  81. if io.UserInputState == Enum.UserInputState.Begin then
  82. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  83. UIS:TrigEvent("InputBegan",io,false)
  84. else
  85. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  86. UIS:TrigEvent("InputEnded",io,false)
  87. end
  88. end
  89. end)
  90. NLS([==[
  91. local Player = game:GetService("Players").LocalPlayer
  92.  
  93. local Char = Player.Character
  94. local Event = Char:WaitForChild("UserInput_Event")
  95.  
  96. local UIS = game:GetService("UserInputService")
  97.  
  98. local input = function(io,a)
  99. if a then return end
  100. local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  101. Event:FireServer(io)
  102. end
  103. UIS.InputBegan:Connect(input)
  104. UIS.InputEnded:Connect(input)
  105. local Changed = false
  106. local Mouse = Player:GetMouse()
  107. local h,t = Mouse.Hit,Mouse.Target
  108. while wait(1/30) do
  109. if h~=Mouse.Hit or t~=Mouse.Target then
  110. Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  111. h,t=Mouse.Hit,Mouse.Target
  112. end
  113. end
  114. ]==],Player.Character)
  115. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  116. end
  117.  
  118.  
  119. wait(0.5)
  120.  
  121. warn([[SG AWAKEN Loaded.
  122. The super switcher.
  123. Velnorum is one of the first wielders.
  124.  
  125. Created, Reworked by NoobyGames12 and converted by Helkern
  126. ]])
  127.  
  128.  
  129. ------------- ORIGINAL WIELDER OC: Velnorum
  130. print([[Icons:
  131. ! = New
  132. ? = Spoilers
  133. * = Exclusivity
  134. C = Changes
  135.  
  136. ]])
  137. warn([[V 4.1 Update Log:
  138. !C? - Mostly about 7-9 main modes added.
  139. ! - Non-canon [N] modes are added from few modes:
  140. > Mayhem: NANO
  141. > Purity: BRIGHTNESS
  142. > Chaos: CRAZED
  143. > Divinity: BROKEN
  144. > Destiny: OMEGA
  145. ! - Added back CALAMITY and INFESTATION.
  146. C - Two main click attacks changed.
  147. !C - Moves are added back, with severe change and difference.
  148. C - Some modes got renamed because fat filter
  149. C - Toned down the effects to be compatible with fe without strong lag.]])
  150. --- its obs smooth af do not touch
  151. ---- Sources and functions might be taken from others
  152. plr = owner
  153. char = plr.Character
  154. hum = char.Humanoid
  155. local cam = game.Workspace.CurrentCamera
  156. Camera = cam
  157. local CamInterrupt = false
  158. local TwoD = false
  159. local TargetInfo = {nil, nil}
  160. cam.CameraType = "Custom"
  161. t = char.Torso
  162. h = char.Head
  163. ra = char["Right Arm"]
  164. la = char["Left Arm"]
  165. rl = char["Right Leg"]
  166. ll = char["Left Leg"]
  167. tors = char.Torso
  168. lleg = char["Left Leg"]
  169. root = char.HumanoidRootPart
  170. hed = char.Head
  171. rleg = char["Right Leg"]
  172. rarm = char["Right Arm"]
  173. larm = char["Left Arm"]
  174. radian = math.rad
  175. random = math.random
  176. Vec3 = Vector3.new
  177. Inst = Instance.new
  178. cFrame = CFrame.new
  179. Euler = CFrame.fromEulerAnglesXYZ
  180. vt = Vector3.new
  181. bc = BrickColor.new
  182. br = BrickColor.random
  183. it = Instance.new
  184. cf = CFrame.new
  185.  
  186. local Booleans = {
  187. CamFollow = true,
  188. GyroUse = true
  189. }
  190.  
  191. function lerp(object, newCFrame, alpha)
  192. return object:lerp(newCFrame, alpha)
  193. end
  194.  
  195. local Directer = Inst("BodyGyro", root)
  196. Directer.MaxTorque = Vec3(0, 0, 0)
  197. Directer.P = 600000
  198. local CPart = Inst("Part")
  199. CPart.Anchored = true
  200. CPart.CanCollide = false
  201. CPart.Locked = true
  202. CPart.Transparency = 1
  203.  
  204. local rainbowmode = false
  205. local chaosmode = false
  206.  
  207. local kan = Instance.new("Sound",char)
  208. kan.Volume = 1.25
  209. kan.TimePosition = 0
  210. kan.PlaybackSpeed = 1
  211. kan.Pitch = 1
  212. kan.SoundId = "rbxassetid://614032233"
  213. kan.Name = "wrecked"
  214. kan.Looped = true
  215. kan:Play()
  216.  
  217. local currentThemePlaying = kan.SoundId
  218. local currentPitch = kan.Pitch
  219. local currentVol = kan.Volume
  220. function newTheme(ID,timepos,pitch,vol)
  221. local kanz = kan
  222. --kanz:Stop()
  223. kanz.Volume = vol
  224. --kanz.TimePosition = timepos
  225. kanz.PlaybackSpeed = pitch
  226. kanz.Pitch = pitch
  227. kanz.SoundId = ID
  228. kanz.Name = "wrecked"
  229. kanz.Looped = true
  230. currentThemePlaying = kanz.SoundId
  231. currentVol = kanz.Volume
  232. currentPitch = kanz.Pitch
  233. --kanz:Play()
  234. --coroutine.resume(coroutine.create(function()
  235. --wait(0.05)
  236. --end))
  237. end
  238.  
  239.  
  240. function newThemeCust(ID,timepos,pitch,vol)
  241. local kanz = kan
  242. kanz:Stop()
  243. kanz.Volume = vol
  244. kanz.TimePosition = timepos
  245. kanz.PlaybackSpeed = pitch
  246. kanz.Pitch = pitch
  247. kanz.SoundId = ID
  248. kanz.Name = "wrecked"
  249. kanz.Looped = true
  250. currentThemePlaying = kanz.SoundId
  251. currentVol = kanz.Volume
  252. currentPitch = kanz.Pitch
  253. kanz:Play()
  254. coroutine.resume(coroutine.create(function()
  255. wait(0.05)
  256. end))
  257. end
  258.  
  259. local mutedtog = false
  260.  
  261. function CameraEnshaking(Length,Intensity)
  262. coroutine.resume(coroutine.create(function()
  263. local intensity = 1*Intensity
  264. local rotM = 0.01*Intensity
  265. for i = 0, Length, 0.1 do
  266. swait()
  267. intensity = intensity - 0.05*Intensity/Length
  268. rotM = rotM - 0.0005*Intensity/Length
  269. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  270. 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)
  271. end
  272. Humanoid.CameraOffset = Vec3(0, 0, 0)
  273. end))
  274. end
  275. CamShake=function(Part,Distan,Power,Times)
  276. local de=Part.Position
  277. for i,v in pairs(workspace:children()) do
  278. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  279. for _,c in pairs(v:children()) do
  280. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  281. local Noob=v.Humanoid
  282. if Noob~=nil then
  283. coroutine.resume(coroutine.create(function()
  284. FV = Instance.new("BoolValue", Noob)
  285. FV.Name = "CameraShake"
  286. for ShakeNum=1,Times do
  287. swait()
  288. local ef=Power
  289. if ef>=1 then
  290. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  291. else
  292. ef=Power*10
  293. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  294. end
  295. end
  296. Humanoid.CameraOffset = Vector3.new(0,0,0)
  297. FV:Destroy()
  298. end))
  299. CameraShake(Times, Power, Noob)
  300. end
  301. end
  302. end
  303. end
  304. end
  305. end
  306.  
  307. local toggleTag = true
  308. local bilguit = Instance.new("BillboardGui", hed)
  309. bilguit.Adornee = nil
  310. bilguit.Name = "ModeName"
  311. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  312. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  313. local modet = Instance.new("TextLabel", bilguit)
  314. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  315. modet.FontSize = "Size8"
  316. modet.TextScaled = true
  317. modet.TextTransparency = 0
  318. modet.BackgroundTransparency = 1
  319. modet.TextTransparency = 0
  320. modet.TextStrokeTransparency = 0
  321. modet.Font = "Antique"
  322. modet.TextStrokeColor3 = Color3.new(1,0,0)
  323. modet.TextColor3 = Color3.new(0.25,0,0)
  324. modet.Text = "NIGHTMARE"
  325.  
  326.  
  327. function chatfunc(text,color,typet,font,timeex)
  328. local chat = coroutine.wrap(function()
  329. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  330. Character:FindFirstChild("TalkingBillBoard"):destroy()
  331. end
  332. local naeeym2 = Instance.new("BillboardGui",Character)
  333. naeeym2.Size = UDim2.new(0,100,0,40)
  334. naeeym2.StudsOffset = Vector3.new(0,3,0)
  335. naeeym2.Adornee = Character.Head
  336. naeeym2.Name = "TalkingBillBoard"
  337. local tecks2 = Instance.new("TextLabel",naeeym2)
  338. tecks2.BackgroundTransparency = 1
  339. tecks2.BorderSizePixel = 0
  340. tecks2.Text = ""
  341. tecks2.Font = font
  342. tecks2.TextSize = 30
  343. tecks2.TextStrokeTransparency = 0
  344. tecks2.TextColor3 = color
  345. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  346. tecks2.Size = UDim2.new(1,0,0.5,0)
  347. local tecks3 = Instance.new("TextLabel",naeeym2)
  348. tecks3.BackgroundTransparency = 1
  349. tecks3.BorderSizePixel = 0
  350. tecks3.Text = ""
  351. tecks3.Font = font
  352. tecks3.TextSize = 30
  353. tecks3.TextStrokeTransparency = 0
  354. if typet == "Inverted" then
  355. tecks3.TextColor3 = Color3.new(0,0,0)
  356. tecks3.TextStrokeColor3 = color
  357. elseif typet == "Normal" then
  358. tecks3.TextColor3 = color
  359. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  360. end
  361. tecks3.Size = UDim2.new(1,0,0.5,0)
  362. coroutine.resume(coroutine.create(function()
  363. while true do
  364. swait(1)
  365. if chaosmode == true then
  366. tecks2.TextColor3 = BrickColor.random().Color
  367. tecks3.TextStrokeColor3 = BrickColor.random().Color
  368. end
  369. end
  370. end))
  371. modet.TextTransparency = modet.TextTransparency + 1
  372. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  373. for i = 0, 74*timeex do
  374. swait()
  375. modet.TextTransparency = 1
  376. modet.TextStrokeTransparency = 1
  377. tecks2.Text = text
  378. tecks3.Text = text
  379. end
  380. local randomrot = math.random(1,2)
  381. if randomrot == 1 then
  382. for i = 1, 50 do
  383. swait()
  384. tecks2.Text = text
  385. tecks3.Text = text
  386. modet.TextTransparency = modet.TextTransparency - .02
  387. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  388. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  389. tecks2.TextTransparency = tecks2.TextTransparency + .04
  390. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  391. tecks3.TextTransparency = tecks2.TextTransparency + .04
  392. end
  393. elseif randomrot == 2 then
  394. for i = 1, 50 do
  395. swait()
  396. tecks2.Text = text
  397. tecks3.Text = text
  398. modet.TextTransparency = modet.TextTransparency - .02
  399. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  400. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  401. tecks2.TextTransparency = tecks2.TextTransparency + .04
  402. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  403. tecks3.TextTransparency = tecks2.TextTransparency + .04
  404. end
  405. end
  406. modet.TextTransparency = 0
  407. modet.TextStrokeTransparency = 0
  408. if toggleTag == false then
  409. modet.TextTransparency = 1
  410. modet.TextStrokeTransparency = 1
  411. end
  412. naeeym2:Destroy()
  413. end)
  414. chat()
  415. end
  416.  
  417. function bosschatfunc(text,color,watval)
  418. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  419. coroutine.resume(coroutine.create(function()
  420. if v.PlayerGui:FindFirstChild("Dialog")~= nil then
  421. v.PlayerGui:FindFirstChild("Dialog"):destroy()
  422. end
  423. local scrg = Instance.new("ScreenGui",v.PlayerGui)
  424. CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
  425. scrg.Name = "Dialog"
  426. local txtlb = Instance.new("TextLabel",scrg)
  427. txtlb.Text = ""
  428. txtlb.Font = "Bodoni"
  429. txtlb.TextColor3 = Color3.new(0,0,0)
  430. txtlb.TextStrokeTransparency = 0
  431. txtlb.BackgroundTransparency = 0.75
  432. txtlb.BackgroundColor3 = Color3.new(0,0,0)
  433. txtlb.TextStrokeColor3 = color
  434. txtlb.TextScaled = true
  435. txtlb.Size = UDim2.new(1,0,0.25,0)
  436. txtlb.TextXAlignment = "Left"
  437. txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
  438. local txtlb2 = Instance.new("TextLabel",scrg)
  439. txtlb2.Text = "?:"
  440. txtlb2.Font = "Arcade"
  441. txtlb2.TextColor3 = Color3.new(0,0,0)
  442. txtlb2.TextStrokeTransparency = 0
  443. txtlb2.BackgroundTransparency = 1
  444. txtlb2.TextStrokeColor3 = color
  445. txtlb2.TextSize = 40
  446. txtlb2.Size = UDim2.new(1,0,0.25,0)
  447. txtlb2.TextXAlignment = "Left"
  448. txtlb2.Position = UDim2.new(0,0,1,0)
  449. local fvalen = 0.55
  450. local fval = -0.49
  451. coroutine.resume(coroutine.create(function()
  452. while true do
  453. swait()
  454. if chaosmode == true then
  455. txtlb.Rotation = math.random(-1,1)
  456. txtlb2.Rotation = math.random(-1,1)
  457. txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  458. txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
  459. txtlb.TextStrokeColor3 = BrickColor.random().Color
  460. txtlb2.TextStrokeColor3 = BrickColor.random().Color
  461. end
  462. end
  463. end))
  464. coroutine.resume(coroutine.create(function()
  465. while true do
  466. swait()
  467. if scrg.Parent ~= nil then
  468. fvalen = fvalen - 0.0001
  469. elseif scrg.Parent == nil then
  470. break
  471. end
  472. end
  473. end))
  474. local flol = 1.75
  475. local flil = 1.6
  476. coroutine.resume(coroutine.create(function()
  477. for i = 0, 9 do
  478. swait()
  479. fval = fval + 0.05
  480. flol = flol - 0.1
  481. flil = flil - 0.1
  482. txtlb.Text = ""
  483. txtlb.Position = UDim2.new(0,0,flol,0)
  484. txtlb2.Position = UDim2.new(0,0,flil,0)
  485. end
  486. txtlb.Text = text
  487. wait(watval)
  488. local valinc = 0
  489. for i = 0, 99 do
  490. swait()
  491. valinc = valinc + 0.0001
  492. flol = flol + valinc
  493. flil = flil + valinc
  494. txtlb.Rotation = txtlb.Rotation + valinc*20
  495. txtlb2.Rotation = txtlb2.Rotation - valinc*50
  496. txtlb.Position = UDim2.new(0,0,flol,0)
  497. txtlb2.Position = UDim2.new(0,0,flil,0)
  498. txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
  499. txtlb.TextTransparency = txtlb.TextTransparency + 0.01
  500. txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
  501. txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
  502. txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
  503. end
  504. scrg:Destroy()
  505. end))
  506. end))
  507. end
  508. end
  509.  
  510.  
  511. local Create = LoadLibrary("RbxUtility").Create
  512.  
  513. CFuncs = {
  514. ["Part"] = {
  515. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  516. local Part = Create("Part"){
  517. Parent = Parent,
  518. Reflectance = Reflectance,
  519. Transparency = Transparency,
  520. CanCollide = false,
  521. Locked = true,
  522. BrickColor = BrickColor.new(tostring(BColor)),
  523. Name = Name,
  524. Size = Size,
  525. Material = Material,
  526. }
  527. RemoveOutlines(Part)
  528. return Part
  529. end;
  530. };
  531.  
  532. ["Mesh"] = {
  533. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  534. local Msh = Create(Mesh){
  535. Parent = Part,
  536. Offset = OffSet,
  537. Scale = Scale,
  538. }
  539. if Mesh == "SpecialMesh" then
  540. Msh.MeshType = MeshType
  541. Msh.MeshId = MeshId
  542. end
  543. return Msh
  544. end;
  545. };
  546.  
  547. ["Mesh"] = {
  548. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  549. local Msh = Create(Mesh){
  550. Parent = Part,
  551. Offset = OffSet,
  552. Scale = Scale,
  553. }
  554. if Mesh == "SpecialMesh" then
  555. Msh.MeshType = MeshType
  556. Msh.MeshId = MeshId
  557. end
  558. return Msh
  559. end;
  560. };
  561.  
  562. ["Weld"] = {
  563. Create = function(Parent, Part0, Part1, C0, C1)
  564. local Weld = Create("Weld"){
  565. Parent = Parent,
  566. Part0 = Part0,
  567. Part1 = Part1,
  568. C0 = C0,
  569. C1 = C1,
  570. }
  571. return Weld
  572. end;
  573. };
  574.  
  575. ["Sound"] = {
  576. Create = function(id, par, vol, pit)
  577. coroutine.resume(coroutine.create(function()
  578. local S = Create("Sound"){
  579. Volume = vol,
  580. Name = "EffectSoundo",
  581. Pitch = pit or 1,
  582. SoundId = id,
  583. Parent = par or workspace,
  584. }
  585. wait()
  586. S:play()
  587. game:GetService("Debris"):AddItem(S, 10)
  588. end))
  589. end;
  590. };
  591.  
  592. ["TimeSound"] = {
  593. Create = function(id, par, vol, pit, timepos)
  594. coroutine.resume(coroutine.create(function()
  595. local S = Create("Sound"){
  596. Volume = vol,
  597. Name = "EffectSoundo",
  598. Pitch = pit or 1,
  599. SoundId = id,
  600. TimePosition = timepos,
  601. Parent = par or workspace,
  602. }
  603. wait()
  604. S:play()
  605. game:GetService("Debris"):AddItem(S, 10)
  606. end))
  607. end;
  608. };
  609. ["EchoSound"] = {
  610. Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
  611. coroutine.resume(coroutine.create(function()
  612. local Sas = Create("Sound"){
  613. Volume = vol,
  614. Name = "EffectSoundo",
  615. Pitch = pit or 1,
  616. SoundId = id,
  617. TimePosition = timepos,
  618. Parent = par or workspace,
  619. }
  620. local E = Create("EchoSoundEffect"){
  621. Delay = echodelay,
  622. Name = "Echo",
  623. Feedback = fedb,
  624. DryLevel = dryl,
  625. Parent = Sas,
  626. }
  627. wait()
  628. Sas:play()
  629. game:GetService("Debris"):AddItem(Sas, delays)
  630. end))
  631. end;
  632. };
  633.  
  634. ["LongSound"] = {
  635. Create = function(id, par, vol, pit)
  636. coroutine.resume(coroutine.create(function()
  637. local S = Create("Sound"){
  638. Volume = vol,
  639. Pitch = pit or 1,
  640. SoundId = id,
  641. Parent = par or workspace,
  642. }
  643. wait()
  644. S:play()
  645. game:GetService("Debris"):AddItem(S, 60)
  646. end))
  647. end;
  648. };
  649.  
  650. ["ParticleEmitter"] = {
  651. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  652. local fp = Create("ParticleEmitter"){
  653. Parent = Parent,
  654. Color = ColorSequence.new(Color1, Color2),
  655. LightEmission = LightEmission,
  656. Size = Size,
  657. Texture = Texture,
  658. Transparency = Transparency,
  659. ZOffset = ZOffset,
  660. Acceleration = Accel,
  661. Drag = Drag,
  662. LockedToPart = LockedToPart,
  663. VelocityInheritance = VelocityInheritance,
  664. EmissionDirection = EmissionDirection,
  665. Enabled = Enabled,
  666. Lifetime = LifeTime,
  667. Rate = Rate,
  668. Rotation = Rotation,
  669. RotSpeed = RotSpeed,
  670. Speed = Speed,
  671. VelocitySpread = VelocitySpread,
  672. }
  673. return fp
  674. end;
  675. };
  676.  
  677. CreateTemplate = {
  678.  
  679. };
  680. }
  681.  
  682.  
  683.  
  684. New = function(Object, Parent, Name, Data)
  685. local Object = Instance.new(Object)
  686. for Index, Value in pairs(Data or {}) do
  687. Object[Index] = Value
  688. end
  689. Object.Parent = Parent
  690. Object.Name = Name
  691. return Object
  692. end
  693. local halocolor = BrickColor.new("Pastel light blue")
  694. local halocolor2 = BrickColor.new("Cool yellow")
  695. local starcolor = BrickColor.new("Bright yellow")
  696. local lunacolor = BrickColor.new("Navy blue")
  697. local lunacolor2 = BrickColor.new("Bright blue")
  698. local wepcolor = BrickColor.new("Really black")
  699. local maincolor = BrickColor.new("Really black")
  700. local m = Instance.new("Model",char)
  701. local m2 = Instance.new("Model",char)
  702. local m3 = Instance.new("Model",char)
  703. local mw1 = Instance.new("Model",char)
  704. local mw2 = Instance.new("Model",char)
  705.  
  706.  
  707. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  708. local gui = it(GuiType)
  709. gui.Parent = parent
  710. gui.Text = text
  711. gui.BackgroundTransparency = backtrans
  712. gui.BackgroundColor3 = backcol
  713. gui.SizeConstraint = "RelativeXY"
  714. gui.TextXAlignment = "Center"
  715. gui.TextYAlignment = "Center"
  716. gui.Position = pos
  717. gui.Size = size
  718. gui.Font = "SourceSans"
  719. gui.FontSize = "Size14"
  720. gui.TextWrapped = false
  721. gui.TextStrokeTransparency = 0
  722. gui.TextColor = BrickColor.new("White")
  723. return gui
  724. end
  725. --------------------------- GUI STUFF
  726. local basgui = it("GuiMain")
  727. basgui.Parent = plr.PlayerGui
  728. basgui.Name = "VISgui"
  729. local fullscreenz = it("Frame")
  730. fullscreenz.Parent = basgui
  731. fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
  732. fullscreenz.BackgroundTransparency = 1
  733. fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
  734. fullscreenz.Size = UDim2.new(1, 0, 1, 0)
  735. fullscreenz.Position = UDim2.new(0, 0, 0, 0)
  736. local imgl2 = Instance.new("ImageLabel",fullscreenz)
  737. imgl2.BackgroundTransparency = 1
  738. imgl2.BorderSizePixel = 0
  739. imgl2.ImageTransparency = 0.5
  740. imgl2.ImageColor3 = Color3.new(1,0,0)
  741. imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
  742. imgl2.Size = UDim2.new(0,1000,0,1000)
  743. imgl2.Image = "rbxassetid://2325939897"
  744. local techc = imgl2:Clone()
  745. techc.Parent = fullscreenz
  746. techc.ImageTransparency = 0
  747. techc.Size = UDim2.new(0,900,0,900)
  748. techc.Position = UDim2.new(0.75,-150,0.55,-150)
  749. techc.ImageColor3 = Color3.new(1,0,0)
  750. techc.Image = "rbxassetid://2273224484"
  751. local circl = imgl2:Clone()
  752. circl.Parent = fullscreenz
  753. circl.ImageTransparency = 0
  754. circl.Size = UDim2.new(0,550,0,550)
  755. circl.Position = UDim2.new(0.75,25,0.55,25)
  756. circl.ImageColor3 = Color3.new(0,0,0)
  757. circl.Image = "rbxassetid://2312119891"
  758. local circl2 = imgl2:Clone()
  759. circl2.Parent = fullscreenz
  760. circl2.ImageTransparency = 0
  761. circl2.Size = UDim2.new(0,700,0,700)
  762. circl2.Position = UDim2.new(0.75,-50,0.55,-50)
  763. circl2.ImageColor3 = Color3.new(1,0,0)
  764. circl2.Image = "rbxassetid://2312119891"
  765. local imgl2b = imgl2:Clone()
  766. imgl2b.Parent = fullscreenz
  767. imgl2b.ImageTransparency = 0
  768. imgl2b.Size = UDim2.new(0,800,0,800)
  769. imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
  770. imgl2b.ImageColor3 = Color3.new(0,0,0)
  771. local ned = Instance.new("TextLabel",fullscreenz)
  772. ned.ZIndex = 2
  773. ned.Font = "Arcade"
  774. ned.BackgroundTransparency = 1
  775. ned.BorderSizePixel = 0.65
  776. ned.Size = UDim2.new(0.3,0,0.2,0)
  777. ned.Position = UDim2.new(0.7,0,0.8,0)
  778. ned.TextColor3 = BrickColor.new("Bright reddish violet").Color
  779. ned.TextStrokeColor3 = BrickColor.new("Really black").Color
  780. ned.TextScaled = true
  781. ned.TextStrokeTransparency = 0
  782. ned.Text = "NIGHTMARE"
  783. ned.TextSize = 24
  784. ned.Rotation = 1
  785. ned.TextXAlignment = "Right"
  786. ned.TextYAlignment = "Bottom"
  787.  
  788. local extrawingmod1 = Instance.new("Model",char)
  789. local extrawingmod2 = Instance.new("Model",char)
  790.  
  791. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  792. local p = Instance.new("Part")
  793. p.TopSurface = 0
  794. p.BottomSurface = 0
  795. p.Parent = parent
  796. p.Size = Vector3.new(0.1,0.1,0.1)
  797. p.Transparency = transparency
  798. p.Reflectance = reflectance
  799. p.CanCollide = false
  800. p.Locked = true
  801. p.BrickColor = brickcolor
  802. p.Material = material
  803. return p
  804. end
  805.  
  806. function CreateMesh(parent,meshtype,x1,y1,z1)
  807. local mesh = Instance.new("SpecialMesh",parent)
  808. mesh.MeshType = meshtype
  809. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  810. return mesh
  811. end
  812.  
  813. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  814. local mesh = Instance.new("SpecialMesh",parent)
  815. mesh.MeshType = "FileMesh"
  816. mesh.MeshId = meshid
  817. mesh.Scale = Vector3.new(x1,y1,z1)
  818. return mesh
  819. end
  820.  
  821.  
  822. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  823. local mesh = Instance.new("SpecialMesh",parent)
  824. mesh.MeshType = "FileMesh"
  825. mesh.MeshId = meshid
  826. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  827. mesh.Scale = Vector3.new(x1,y1,z1)
  828. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  829. return mesh
  830. end
  831.  
  832. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  833. local weld = Instance.new("Weld")
  834. weld.Parent = parent
  835. weld.Part0 = part0
  836. weld.Part1 = part1
  837. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  838. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  839. return weld
  840. end
  841.  
  842.  
  843. --------------
  844. --------------
  845. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  846. 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))
  847. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  848. 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))
  849.  
  850. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  851. CreateMesh(handle,"Brick",0,0,0)
  852. 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))
  853. local valuaring = 10
  854. for i = 0, 49 do
  855. valuaring = valuaring + 10
  856. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  857. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  858. CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  859. end
  860.  
  861. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  862. CreateMesh(handle,"Brick",0,0,0)
  863. CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  864. local valuaring = 10
  865. for i = 0, 49 do
  866. valuaring = valuaring + 10
  867. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  868. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  869. CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  870. end
  871.  
  872.  
  873. local handle = CreateParta(m,1,1,"Neon",maincolor)
  874. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  875. 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))
  876.  
  877. --- Left wing.
  878.  
  879. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  880. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  881. 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))
  882.  
  883. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  884. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  885. 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))
  886. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  887. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  888. 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))
  889. A0 = Instance.new('Attachment',wed)
  890. A0.Position = vt(0,0.25,0.25)
  891. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  892. CreateMesh(wed,"Wedge",0.05,0.5,3)
  893. 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))
  894. A1 = Instance.new('Attachment',wed)
  895. A1.Position = vt(0,-0.25,-2)
  896. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  897. CreateMesh(wed,"Wedge",0.05,3,0.5)
  898. 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))
  899.  
  900. tl1 = Instance.new('Trail',wed)
  901. tl1.Attachment0 = A1
  902. tl1.Attachment1 = A0
  903. tl1.Texture = "rbxassetid://2108945559"
  904. tl1.LightEmission = 1
  905. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  906. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  907. tl1.Lifetime = 0.6
  908.  
  909.  
  910. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  911. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  912. 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))
  913.  
  914. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  915. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  916. 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))
  917. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  918. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  919. 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))
  920. A0 = Instance.new('Attachment',wed)
  921. A0.Position = vt(0,0.25,0.25)
  922. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  923. CreateMesh(wed,"Wedge",0.05,0.5,3)
  924. 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))
  925. A1 = Instance.new('Attachment',wed)
  926. A1.Position = vt(0,-0.25,-2)
  927. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  928. CreateMesh(wed,"Wedge",0.05,3,0.5)
  929. 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))
  930.  
  931. tl2 = Instance.new('Trail',wed)
  932. tl2.Attachment0 = A1
  933. tl2.Attachment1 = A0
  934. tl2.Texture = "rbxassetid://2108945559"
  935. tl2.LightEmission = 1
  936. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  937. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  938. tl2.Lifetime = 0.6
  939.  
  940. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  941. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  942. 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))
  943.  
  944. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  945. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  946. 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))
  947. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  948. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  949. 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))
  950. A0 = Instance.new('Attachment',wed)
  951. A0.Position = vt(0,0.25,0.25)
  952. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  953. CreateMesh(wed,"Wedge",0.05,0.5,3)
  954. 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))
  955. A1 = Instance.new('Attachment',wed)
  956. A1.Position = vt(0,-0.25,-2)
  957. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  958. CreateMesh(wed,"Wedge",0.05,3,0.5)
  959. 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))
  960.  
  961. tl3 = Instance.new('Trail',wed)
  962. tl3.Attachment0 = A1
  963. tl3.Attachment1 = A0
  964. tl3.Texture = "rbxassetid://2108945559"
  965. tl3.LightEmission = 1
  966. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  967. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  968. tl3.Lifetime = 0.6
  969.  
  970. tl1.Enabled = false
  971. tl2.Enabled = false
  972. tl3.Enabled = false
  973. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  974. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  975. 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))
  976.  
  977. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  978. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  979. 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))
  980. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  981. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  982. 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))
  983. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  984. CreateMesh(wed,"Wedge",0.05,0.5,3)
  985. 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))
  986. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  987. CreateMesh(wed,"Wedge",0.05,3,0.5)
  988. 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))
  989.  
  990. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  991. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  992. 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))
  993.  
  994. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  995. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  996. 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))
  997. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  998. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  999. 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))
  1000. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1001. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1002. 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))
  1003. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1004. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1005. 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))
  1006.  
  1007. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1008. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1009. 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))
  1010.  
  1011. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1012. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1013. 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))
  1014. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1015. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1016. 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))
  1017. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1018. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1019. 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))
  1020. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  1021. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1022. 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))
  1023.  
  1024. -- Right wing.
  1025.  
  1026. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  1027. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1028. 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))
  1029.  
  1030. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1031. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1032. 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))
  1033. A0 = Instance.new('Attachment',wed)
  1034. A0.Position = vt(0,0.25,0.25)
  1035. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1036. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1037. 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))
  1038. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1039. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1040. 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))
  1041. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1042. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1043. 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))
  1044. A1 = Instance.new('Attachment',wed)
  1045. A1.Position = vt(0,2,0.25)
  1046.  
  1047. tr1 = Instance.new('Trail',wed)
  1048. tr1.Attachment0 = A1
  1049. tr1.Attachment1 = A0
  1050. tr1.Texture = "rbxassetid://2108945559"
  1051. tr1.LightEmission = 1
  1052. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1053. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1054. tr1.Lifetime = 0.6
  1055.  
  1056. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  1057. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1058. 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))
  1059.  
  1060. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1061. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1062. 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))
  1063. A0 = Instance.new('Attachment',wed)
  1064. A0.Position = vt(0,0.25,0.25)
  1065. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1066. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1067. 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))
  1068. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1069. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1070. 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))
  1071. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1072. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1073. 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))
  1074. A1 = Instance.new('Attachment',wed)
  1075. A1.Position = vt(0,2,0.25)
  1076.  
  1077. tr2 = Instance.new('Trail',wed)
  1078. tr2.Attachment0 = A1
  1079. tr2.Attachment1 = A0
  1080. tr2.Texture = "rbxassetid://2108945559"
  1081. tr2.LightEmission = 1
  1082. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1083. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1084. tr2.Lifetime = 0.6
  1085.  
  1086. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  1087. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1088. 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))
  1089.  
  1090. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1091. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1092. 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))
  1093. A0 = Instance.new('Attachment',wed)
  1094. A0.Position = vt(0,0.25,0.25)
  1095. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1096. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1097. 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))
  1098. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1099. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1100. 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))
  1101. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  1102. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1103. 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))
  1104. A1 = Instance.new('Attachment',wed)
  1105. A1.Position = vt(0,2,0.25)
  1106.  
  1107. tr3 = Instance.new('Trail',wed)
  1108. tr3.Attachment0 = A1
  1109. tr3.Attachment1 = A0
  1110. tr3.Texture = "rbxassetid://2108945559"
  1111. tr3.LightEmission = 1
  1112. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1113. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  1114. tr3.Lifetime = 0.6
  1115.  
  1116.  
  1117. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  1118. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1119. 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))
  1120.  
  1121. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1122. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1123. 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))
  1124. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1125. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1126. 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))
  1127. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1128. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1129. 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))
  1130. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1131. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1132. 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))
  1133.  
  1134. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  1135. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1136. 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))
  1137.  
  1138. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1139. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1140. 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))
  1141. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1142. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1143. 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))
  1144. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1145. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1146. 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))
  1147. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1148. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1149. 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))
  1150.  
  1151. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1152. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1153. 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))
  1154.  
  1155. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1156. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1157. 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))
  1158. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1159. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1160. 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))
  1161. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1162. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1163. 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))
  1164. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1165. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1166. 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))
  1167.  
  1168. ---- HERES THE RING
  1169.  
  1170.  
  1171. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1172. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1173. 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))
  1174. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1175. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1176. 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))
  1177. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1178. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1179. 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))
  1180.  
  1181.  
  1182. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1183. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1184. 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))
  1185.  
  1186. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1187. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1188. 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))
  1189.  
  1190.  
  1191.  
  1192. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1193. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1194. 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))
  1195.  
  1196. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1197. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1198. 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))
  1199.  
  1200. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1201. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1202. 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))
  1203.  
  1204. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1205. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1206. 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))
  1207. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1208. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1209. 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))
  1210.  
  1211. --- second ring
  1212.  
  1213. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1214. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1215. 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))
  1216. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1217. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1218. 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))
  1219. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1220. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1221. 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))
  1222.  
  1223. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1224. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1225. 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))
  1226.  
  1227. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1228. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1229. 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))
  1230.  
  1231.  
  1232.  
  1233. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1234. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1235. 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))
  1236.  
  1237. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1238. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1239. 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))
  1240.  
  1241. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1242. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1243. 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))
  1244.  
  1245. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1246. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1247. 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))
  1248. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1249. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1250. 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))]]--
  1251.  
  1252.  
  1253.  
  1254. for i, v in pairs(m:GetChildren()) do
  1255. if v:IsA("Part") then
  1256. v.BrickColor = BrickColor.new("Really black")
  1257. v.Material = "Glass"
  1258. end
  1259. end
  1260. for i, v in pairs(m2:GetChildren()) do
  1261. if v:IsA("Part") then
  1262. v.BrickColor = BrickColor.new("Crimson")
  1263. v.Material = "Granite"
  1264. end
  1265. end
  1266. for i, v in pairs(m3:GetChildren()) do
  1267. if v:IsA("Part") then
  1268. v.BrickColor = BrickColor.new("Really red")
  1269. v.Material = "Neon"
  1270. end
  1271. end
  1272. for i, v in pairs(mw2:GetChildren()) do
  1273. if v:IsA("Part") then
  1274. v.BrickColor = BrickColor.new("Really red")
  1275. v.Material = "Neon"
  1276. end
  1277. end
  1278. for i, v in pairs(mw1:GetChildren()) do
  1279. if v:IsA("Part") then
  1280. v.Transparency = 1
  1281. v.BrickColor = BrickColor.new("Really red")
  1282. v.Material = "Neon"
  1283. end
  1284. end
  1285. for i, v in pairs(extrawingmod1:GetChildren()) do
  1286. if v:IsA("Part") then
  1287. v.Transparency = 1
  1288. v.BrickColor = BrickColor.new("White")
  1289. v.Material = "Neon"
  1290. end
  1291. end
  1292. for i, v in pairs(extrawingmod2:GetChildren()) do
  1293. if v:IsA("Part") then
  1294. v.Transparency = 1
  1295. v.BrickColor = BrickColor.new("White")
  1296. v.Material = "Neon"
  1297. end
  1298. end
  1299. local MAINRUINCOLOR = BrickColor.new("Really red")
  1300. ------
  1301.  
  1302.  
  1303. function RemoveOutlines(part)
  1304. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1305. end
  1306. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1307. local Part = Create("Part")({
  1308. Parent = Parent,
  1309. Reflectance = Reflectance,
  1310. Transparency = Transparency,
  1311. CanCollide = false,
  1312. Locked = true,
  1313. BrickColor = BrickColor.new(tostring(BColor)),
  1314. Name = Name,
  1315. Size = Size,
  1316. Material = Material
  1317. })
  1318. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1319. RemoveOutlines(Part)
  1320. return Part
  1321. end
  1322. function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1323. local Msh = Create(Mesh)({
  1324. Parent = Part,
  1325. Offset = OffSet,
  1326. Scale = Scale
  1327. })
  1328. if Mesh == "SpecialMesh" then
  1329. Msh.MeshType = MeshType
  1330. Msh.MeshId = MeshId
  1331. end
  1332. return Msh
  1333. end
  1334. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1335. local Weld = Create("Weld")({
  1336. Parent = Parent,
  1337. Part0 = Part0,
  1338. Part1 = Part1,
  1339. C0 = C0,
  1340. C1 = C1
  1341. })
  1342. return Weld
  1343. end
  1344.  
  1345. Character=Player.Character
  1346. PlayerGui=Player.PlayerGui
  1347. Backpack=Player.Backpack
  1348. Torso=Character.Torso
  1349. Head=Character.Head
  1350. Humanoid=Character.Humanoid
  1351. m=Instance.new('Model',Character)
  1352. LeftArm=Character["Left Arm"]
  1353. LeftLeg=Character["Left Leg"]
  1354. RightArm=Character["Right Arm"]
  1355. RightLeg=Character["Right Leg"]
  1356. LS=Torso["Left Shoulder"]
  1357. LH=Torso["Left Hip"]
  1358. RS=Torso["Right Shoulder"]
  1359. RH=Torso["Right Hip"]
  1360. Face = Head.face
  1361. Neck=Torso.Neck
  1362. it=Instance.new
  1363. attacktype=1
  1364. vt=Vector3.new
  1365. cf=CFrame.new
  1366. euler=CFrame.fromEulerAnglesXYZ
  1367. angles=CFrame.Angles
  1368. cloaked=false
  1369. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1370. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1371. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1372. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1373. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1374. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1375. RootPart=Character.HumanoidRootPart
  1376. RootJoint=RootPart.RootJoint
  1377. RootCF=euler(-1.57,0,3.14)
  1378. attack = false
  1379. attackdebounce = false
  1380. deb=false
  1381. equipped=true
  1382. hand=false
  1383. combo=0
  1384. mana=0
  1385. trispeed=.2
  1386. attackmode='none'
  1387. local idle=0
  1388. local Anim="Idle"
  1389. local Effects={}
  1390. local gun=false
  1391. local shoot=false
  1392. local sine = 0
  1393. local change = 1
  1394.  
  1395. function RecolorTextAndRename(name,col1,col2,font)
  1396. modet.TextStrokeColor3 = col2
  1397. modet.TextColor3 = col1
  1398. modet.Font = font
  1399. modet.Text = name
  1400. techc.ImageColor3 = col2
  1401. circl.ImageColor3 = col2
  1402. circl2.ImageColor3 = col1
  1403. imgl2.ImageColor3 = col1
  1404. imgl2b.ImageColor3 = col2
  1405. ned.Text = name
  1406. ned.TextColor3 = col1
  1407. ned.TextStrokeColor3 = col2
  1408. end
  1409. --save shoulders
  1410. RSH, LSH=nil, nil
  1411. --welds
  1412. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1413. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1414. LH=Torso["Left Hip"]
  1415. RH=Torso["Right Hip"]
  1416. TorsoColor=Torso.BrickColor
  1417. function NoOutline(Part)
  1418. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1419. end
  1420. ch=Character
  1421. RSH=ch.Torso["Right Shoulder"]
  1422. LSH=ch.Torso["Left Shoulder"]
  1423. --
  1424. RSH.Parent=nil
  1425. LSH.Parent=nil
  1426. --
  1427. RW.Name="Right Shoulder"
  1428. RW.Part0=ch.Torso
  1429. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1430. RW.C1=cf(0, 0.5, 0)
  1431. RW.Part1=ch["Right Arm"]
  1432. RW.Parent=ch.Torso
  1433. --
  1434. LW.Name="Left Shoulder"
  1435. LW.Part0=ch.Torso
  1436. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1437. LW.C1=cf(0, 0.5, 0)
  1438. LW.Part1=ch["Left Arm"]
  1439. LW.Parent=ch.Torso
  1440.  
  1441. local Stats=Instance.new("BoolValue")
  1442. Stats.Name="Stats"
  1443. Stats.Parent=Character
  1444. local Atk=Instance.new("NumberValue")
  1445. Atk.Name="Damage"
  1446. Atk.Parent=Stats
  1447. Atk.Value=1
  1448. local Def=Instance.new("NumberValue")
  1449. Def.Name="Defense"
  1450. Def.Parent=Stats
  1451. Def.Value=1
  1452. local Speed=Instance.new("NumberValue")
  1453. Speed.Name="Speed"
  1454. Speed.Parent=Stats
  1455. Speed.Value=1
  1456. local Mvmt=Instance.new("NumberValue")
  1457. Mvmt.Name="Movement"
  1458. Mvmt.Parent=Stats
  1459. Mvmt.Value=1
  1460.  
  1461. local donum=0
  1462.  
  1463.  
  1464. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1465. local fp=it("Part")
  1466. fp.formFactor=formfactor
  1467. fp.Parent=parent
  1468. fp.Reflectance=reflectance
  1469. fp.Transparency=transparency
  1470. fp.CanCollide=false
  1471. fp.Locked=true
  1472. fp.BrickColor=brickcolor
  1473. fp.Name=name
  1474. fp.Size=size
  1475. fp.Position=Torso.Position
  1476. NoOutline(fp)
  1477. fp.Material="SmoothPlastic"
  1478. fp:BreakJoints()
  1479. return fp
  1480. end
  1481.  
  1482. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1483. local mesh=it(Mesh)
  1484. mesh.Parent=part
  1485. if Mesh=="SpecialMesh" then
  1486. mesh.MeshType=meshtype
  1487. if meshid~="nil" then
  1488. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1489. end
  1490. end
  1491. mesh.Offset=offset
  1492. mesh.Scale=scale
  1493. return mesh
  1494. end
  1495.  
  1496. function weld(parent,part0,part1,c0)
  1497. local weld=it("Weld")
  1498. weld.Parent=parent
  1499. weld.Part0=part0
  1500. weld.Part1=part1
  1501. weld.C0=c0
  1502. return weld
  1503. end
  1504.  
  1505. local Color1=Torso.BrickColor
  1506.  
  1507. local bodvel=Instance.new("BodyVelocity")
  1508. local bg=Instance.new("BodyGyro")
  1509.  
  1510. --------- SazEreno's Artificial HB --------------
  1511. ArtificialHB = Instance.new("BindableEvent", script)
  1512. ArtificialHB.Name = "ArtificialHB"
  1513.  
  1514. script:WaitForChild("ArtificialHB")
  1515. Frame_Speed = 1 / 60
  1516. frame = Frame_Speed
  1517. tf = 0
  1518. allowframeloss = false
  1519. tossremainder = false
  1520. lastframe = tick()
  1521. script.ArtificialHB:Fire()
  1522.  
  1523. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1524. tf = tf + s
  1525. if tf >= frame then
  1526. if allowframeloss then
  1527. script.ArtificialHB:Fire()
  1528. lastframe = tick()
  1529. else
  1530. for i = 1, math.floor(tf / frame) do
  1531. script.ArtificialHB:Fire()
  1532. end
  1533. lastframe = tick()
  1534. end
  1535. if tossremainder then
  1536. tf = 0
  1537. else
  1538. tf = tf - frame * math.floor(tf / frame)
  1539. end
  1540. end
  1541. end)
  1542.  
  1543. ------------------
  1544. function swait(num)
  1545. function swait(num)
  1546. if num==0 or num==nil then
  1547. game:service'RunService'.Stepped:wait(0)
  1548. else
  1549. for i=0,num do
  1550. game:service'RunService'.Stepped:wait(0)
  1551. end
  1552. end
  1553. end
  1554. end
  1555.  
  1556. -------- RAINBOW LEAVE IT TO ME
  1557. local r = 255
  1558. local g = 0
  1559. local b = 0
  1560. coroutine.resume(coroutine.create(function()
  1561. while wait() do
  1562. for i = 0, 254/5 do
  1563. swait()
  1564. g = g + 5
  1565. end
  1566. for i = 0, 254/5 do
  1567. swait()
  1568. r = r - 5
  1569. end
  1570. for i = 0, 254/5 do
  1571. swait()
  1572. b = b + 5
  1573. end
  1574. for i = 0, 254/5 do
  1575. swait()
  1576. g = g - 5
  1577. end
  1578. for i = 0, 254/5 do
  1579. swait()
  1580. r = r + 5
  1581. end
  1582. for i = 0, 254/5 do
  1583. swait()
  1584. b = b - 5
  1585. end
  1586. end
  1587. end))
  1588.  
  1589.  
  1590. so = function(id,par,vol,pit)
  1591. coroutine.resume(coroutine.create(function()
  1592. local sou = Instance.new("Sound",par or workspace)
  1593. sou.Volume=vol
  1594. sou.Pitch=pit or 1
  1595. sou.SoundId=id
  1596. swait()
  1597. sou:play()
  1598. game:GetService("Debris"):AddItem(sou,6)
  1599. end))
  1600. end
  1601.  
  1602. function clerp(a,b,t)
  1603. local qa = {QuaternionFromCFrame(a)}
  1604. local qb = {QuaternionFromCFrame(b)}
  1605. local ax, ay, az = a.x, a.y, a.z
  1606. local bx, by, bz = b.x, b.y, b.z
  1607. local _t = 1-t
  1608. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1609. end
  1610.  
  1611. function QuaternionFromCFrame(cf)
  1612. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1613. local trace = m00 + m11 + m22
  1614. if trace > 0 then
  1615. local s = math.sqrt(1 + trace)
  1616. local recip = 0.5/s
  1617. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1618. else
  1619. local i = 0
  1620. if m11 > m00 then
  1621. i = 1
  1622. end
  1623. if m22 > (i == 0 and m00 or m11) then
  1624. i = 2
  1625. end
  1626. if i == 0 then
  1627. local s = math.sqrt(m00-m11-m22+1)
  1628. local recip = 0.5/s
  1629. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1630. elseif i == 1 then
  1631. local s = math.sqrt(m11-m22-m00+1)
  1632. local recip = 0.5/s
  1633. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1634. elseif i == 2 then
  1635. local s = math.sqrt(m22-m00-m11+1)
  1636. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1637. end
  1638. end
  1639. end
  1640.  
  1641. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1642. local xs, ys, zs = x + x, y + y, z + z
  1643. local wx, wy, wz = w*xs, w*ys, w*zs
  1644. local xx = x*xs
  1645. local xy = x*ys
  1646. local xz = x*zs
  1647. local yy = y*ys
  1648. local yz = y*zs
  1649. local zz = z*zs
  1650. 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))
  1651. end
  1652.  
  1653. function QuaternionSlerp(a, b, t)
  1654. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1655. local startInterp, finishInterp;
  1656. if cosTheta >= 0.0001 then
  1657. if (1 - cosTheta) > 0.0001 then
  1658. local theta = math.acos(cosTheta)
  1659. local invSinTheta = 1/math.sin(theta)
  1660. startInterp = math.sin((1-t)*theta)*invSinTheta
  1661. finishInterp = math.sin(t*theta)*invSinTheta
  1662. else
  1663. startInterp = 1-t
  1664. finishInterp = t
  1665. end
  1666. else
  1667. if (1+cosTheta) > 0.0001 then
  1668. local theta = math.acos(-cosTheta)
  1669. local invSinTheta = 1/math.sin(theta)
  1670. startInterp = math.sin((t-1)*theta)*invSinTheta
  1671. finishInterp = math.sin(t*theta)*invSinTheta
  1672. else
  1673. startInterp = t-1
  1674. finishInterp = t
  1675. end
  1676. end
  1677. 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
  1678. end
  1679.  
  1680. local function CFrameFromTopBack(at, top, back)
  1681. local right = top:Cross(back)
  1682. return CFrame.new(at.x, at.y, at.z,
  1683. right.x, top.x, back.x,
  1684. right.y, top.y, back.y,
  1685. right.z, top.z, back.z)
  1686. end
  1687.  
  1688. function Triangle(a, b, c)
  1689. local edg1 = (c-a):Dot((b-a).unit)
  1690. local edg2 = (a-b):Dot((c-b).unit)
  1691. local edg3 = (b-c):Dot((a-c).unit)
  1692. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1693. a, b, c = a, b, c
  1694. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1695. a, b, c = b, c, a
  1696. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1697. a, b, c = c, a, b
  1698. else
  1699. assert(false, "unreachable")
  1700. end
  1701.  
  1702. local len1 = (c-a):Dot((b-a).unit)
  1703. local len2 = (b-a).magnitude - len1
  1704. local width = (a + (b-a).unit*len1 - c).magnitude
  1705.  
  1706. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1707.  
  1708. local list = {}
  1709.  
  1710. if len1 > 0.01 then
  1711. local w1 = Instance.new('WedgePart', m)
  1712. game:GetService("Debris"):AddItem(w1,5)
  1713. w1.Material = "SmoothPlastic"
  1714. w1.FormFactor = 'Custom'
  1715. w1.BrickColor = BrickColor.new("Really red")
  1716. w1.Transparency = 0
  1717. w1.Reflectance = 0
  1718. w1.Material = "SmoothPlastic"
  1719. w1.CanCollide = false
  1720. local l1 = Instance.new("PointLight",w1)
  1721. l1.Color = Color3.new(170,0,0)
  1722. NoOutline(w1)
  1723. local sz = Vector3.new(0.2, width, len1)
  1724. w1.Size = sz
  1725. local sp = Instance.new("SpecialMesh",w1)
  1726. sp.MeshType = "Wedge"
  1727. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1728. w1:BreakJoints()
  1729. w1.Anchored = true
  1730. w1.Parent = workspace
  1731. w1.Transparency = 0.7
  1732. table.insert(Effects,{w1,"Disappear",.01})
  1733. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1734. table.insert(list,w1)
  1735. end
  1736.  
  1737. if len2 > 0.01 then
  1738. local w2 = Instance.new('WedgePart', m)
  1739. game:GetService("Debris"):AddItem(w2,5)
  1740. w2.Material = "SmoothPlastic"
  1741. w2.FormFactor = 'Custom'
  1742. w2.BrickColor = BrickColor.new("Really red")
  1743. w2.Transparency = 0
  1744. w2.Reflectance = 0
  1745. w2.Material = "SmoothPlastic"
  1746. w2.CanCollide = false
  1747. local l2 = Instance.new("PointLight",w2)
  1748. l2.Color = Color3.new(170,0,0)
  1749. NoOutline(w2)
  1750. local sz = Vector3.new(0.2, width, len2)
  1751. w2.Size = sz
  1752. local sp = Instance.new("SpecialMesh",w2)
  1753. sp.MeshType = "Wedge"
  1754. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1755. w2:BreakJoints()
  1756. w2.Anchored = true
  1757. w2.Parent = workspace
  1758. w2.Transparency = 0.7
  1759. table.insert(Effects,{w2,"Disappear",.01})
  1760. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1761. table.insert(list,w2)
  1762. end
  1763. return unpack(list)
  1764. end
  1765.  
  1766.  
  1767. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1768. if hit.Parent == nil then
  1769. return
  1770. end
  1771. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1772. for _, v in pairs(hit.Parent:children()) do
  1773. if v:IsA("Humanoid") then
  1774. h = v
  1775. end
  1776. end
  1777. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1778. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1779. return
  1780. end
  1781. local c = Create("ObjectValue")({
  1782. Name = "creator",
  1783. Value = game:GetService("Players").LocalPlayer,
  1784. Parent = h
  1785. })
  1786. game:GetService("Debris"):AddItem(c, 0.5)
  1787. if HitSound ~= nil and HitPitch ~= nil then
  1788. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1789. end
  1790. local Damage = math.random(minim, maxim)
  1791. local blocked = false
  1792. local block = hit.Parent:findFirstChild("Block")
  1793. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1794. blocked = true
  1795. block.Value = block.Value - 1
  1796. print(block.Value)
  1797. end
  1798. if blocked == false then
  1799. HitHealth = h.Health
  1800. h.MaxHealth = 100
  1801. h.Health = h.Health - Damage
  1802. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1803. print("gained kill")
  1804. dmg(h.Parent)
  1805. end
  1806. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1807. else
  1808. h.Health = h.Health - Damage / 2
  1809. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1810. end
  1811. if Type == "Knockdown" then
  1812. local hum = hit.Parent.Humanoid
  1813. hum.PlatformStand = true
  1814. coroutine.resume(coroutine.create(function(HHumanoid)
  1815. swait(1)
  1816. HHumanoid.PlatformStand = false
  1817. end), hum)
  1818. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1819. local bodvol = Create("BodyVelocity")({
  1820. velocity = angle * knockback,
  1821. P = 5000,
  1822. maxForce = Vector3.new(8000, 8000, 8000),
  1823. Parent = hit
  1824. })
  1825. local rl = Create("BodyAngularVelocity")({
  1826. P = 3000,
  1827. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1828. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1829. Parent = hit
  1830. })
  1831. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1832. game:GetService("Debris"):AddItem(rl, 0.5)
  1833. elseif Type == "Normal" then
  1834. local vp = Create("BodyVelocity")({
  1835. P = 500,
  1836. maxForce = Vector3.new(math.huge, 0, math.huge),
  1837. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1838. })
  1839. if knockback > 0 then
  1840. vp.Parent = hit.Parent.Head
  1841. end
  1842. game:GetService("Debris"):AddItem(vp, 0.5)
  1843. elseif Type == "Up" then
  1844. local bodyVelocity = Create("BodyVelocity")({
  1845. velocity = Vector3.new(0, 20, 0),
  1846. P = 5000,
  1847. maxForce = Vector3.new(8000, 8000, 8000),
  1848. Parent = hit
  1849. })
  1850. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1851. local bodyVelocity = Create("BodyVelocity")({
  1852. velocity = Vector3.new(0, 20, 0),
  1853. P = 5000,
  1854. maxForce = Vector3.new(8000, 8000, 8000),
  1855. Parent = hit
  1856. })
  1857. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1858. elseif Type == "Leech" then
  1859. local hum = hit.Parent.Humanoid
  1860. if hum ~= nil then
  1861. for i = 0, 2 do
  1862. 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)
  1863. end
  1864. Humanoid.Health = Humanoid.Health + 10
  1865. end
  1866. elseif Type == "UpKnock" then
  1867. local hum = hit.Parent.Humanoid
  1868. hum.PlatformStand = true
  1869. if hum ~= nil then
  1870. hitr = true
  1871. end
  1872. coroutine.resume(coroutine.create(function(HHumanoid)
  1873. swait(5)
  1874. HHumanoid.PlatformStand = false
  1875. hitr = false
  1876. end), hum)
  1877. local bodyVelocity = Create("BodyVelocity")({
  1878. velocity = Vector3.new(0, 20, 0),
  1879. P = 5000,
  1880. maxForce = Vector3.new(8000, 8000, 8000),
  1881. Parent = hit
  1882. })
  1883. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1884. local bodyVelocity = Create("BodyVelocity")({
  1885. velocity = Vector3.new(0, 20, 0),
  1886. P = 5000,
  1887. maxForce = Vector3.new(8000, 8000, 8000),
  1888. Parent = hit
  1889. })
  1890. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1891. elseif Type == "Snare" then
  1892. local bp = Create("BodyPosition")({
  1893. P = 2000,
  1894. D = 100,
  1895. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1896. position = hit.Parent.Torso.Position,
  1897. Parent = hit.Parent.Torso
  1898. })
  1899. game:GetService("Debris"):AddItem(bp, 1)
  1900. elseif Type == "Slashnare" then
  1901. 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)
  1902. for i = 1, math.random(4, 5) do
  1903. 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)
  1904. end
  1905. local bp = Create("BodyPosition")({
  1906. P = 2000,
  1907. D = 100,
  1908. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1909. position = hit.Parent.Torso.Position,
  1910. Parent = hit.Parent.Torso
  1911. })
  1912. game:GetService("Debris"):AddItem(bp, 1)
  1913. elseif Type == "Spike" then
  1914. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1915. local bp = Create("BodyPosition")({
  1916. P = 2000,
  1917. D = 100,
  1918. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1919. position = hit.Parent.Torso.Position,
  1920. Parent = hit.Parent.Torso
  1921. })
  1922. game:GetService("Debris"):AddItem(bp, 1)
  1923. elseif Type == "Freeze" then
  1924. local BodPos = Create("BodyPosition")({
  1925. P = 50000,
  1926. D = 1000,
  1927. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1928. position = hit.Parent.Torso.Position,
  1929. Parent = hit.Parent.Torso
  1930. })
  1931. local BodGy = Create("BodyGyro")({
  1932. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1933. P = 20000,
  1934. Parent = hit.Parent.Torso,
  1935. cframe = hit.Parent.Torso.CFrame
  1936. })
  1937. hit.Parent.Torso.Anchored = true
  1938. coroutine.resume(coroutine.create(function(Part)
  1939. swait(1.5)
  1940. Part.Anchored = false
  1941. end), hit.Parent.Torso)
  1942. game:GetService("Debris"):AddItem(BodPos, 3)
  1943. game:GetService("Debris"):AddItem(BodGy, 3)
  1944. end
  1945. local debounce = Create("BoolValue")({
  1946. Name = "DebounceHit",
  1947. Parent = hit.Parent,
  1948. Value = true
  1949. })
  1950. game:GetService("Debris"):AddItem(debounce, Delay)
  1951. c = Instance.new("ObjectValue")
  1952. c.Name = "creator"
  1953. c.Value = Player
  1954. c.Parent = h
  1955. game:GetService("Debris"):AddItem(c, 0.5)
  1956. end
  1957. end
  1958. function ShowDamage(Pos, Text, Time, Color)
  1959. local Rate = 0.03333333333333333
  1960. local Pos = Pos or Vector3.new(0, 0, 0)
  1961. local Text = Text or ""
  1962. local Time = Time or 2
  1963. local Color = Color or Color3.new(1, 0, 1)
  1964. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1965. EffectPart.Anchored = true
  1966. local BillboardGui = Create("BillboardGui")({
  1967. Size = UDim2.new(3, 0, 3, 0),
  1968. Adornee = EffectPart,
  1969. Parent = EffectPart
  1970. })
  1971. local TextLabel = Create("TextLabel")({
  1972. BackgroundTransparency = 1,
  1973. Size = UDim2.new(1, 0, 1, 0),
  1974. Text = Text,
  1975. TextColor3 = Color,
  1976. TextScaled = true,
  1977. Font = Enum.Font.ArialBold,
  1978. Parent = BillboardGui
  1979. })
  1980. game.Debris:AddItem(EffectPart, Time + 0.1)
  1981. EffectPart.Parent = game:GetService("Workspace")
  1982. delay(0, function()
  1983. local Frames = Time / Rate
  1984. for Frame = 1, Frames do
  1985. wait(Rate)
  1986. local Percent = Frame / Frames
  1987. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1988. TextLabel.TextTransparency = Percent
  1989. end
  1990. if EffectPart and EffectPart.Parent then
  1991. EffectPart:Destroy()
  1992. end
  1993. end)
  1994. end
  1995. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1996. for _, c in pairs(workspace:children()) do
  1997. local hum = c:findFirstChildOfClass("Humanoid")
  1998. if hum ~= nil then
  1999. local head = c:findFirstChild("Head")
  2000. if head ~= nil then
  2001. local targ = head.Position - Part.Position
  2002. local mag = targ.magnitude
  2003. if magni >= mag and c.Name ~= Player.Name then
  2004. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2005. end
  2006. end
  2007. end
  2008. end
  2009. end
  2010.  
  2011. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  2012. for _, c in pairs(workspace:children()) do
  2013. local hum = c:findFirstChild("Humanoid")
  2014. if hum ~= nil then
  2015. local head = c:findFirstChild("Torso")
  2016. if head ~= nil then
  2017. local targ = head.Position - Part.Position
  2018. local mag = targ.magnitude
  2019. if magni >= mag and c.Name ~= Player.Name then
  2020. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  2021. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2022. end
  2023. end
  2024. end
  2025. end
  2026. end
  2027.  
  2028. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2029. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2030. end
  2031.  
  2032. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2033. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2034. prt.Anchored=true
  2035. prt.CFrame=cframe
  2036. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2037. --http://www.roblox.com/asset/?id=4770560
  2038. game:GetService("Debris"):AddItem(prt,2)
  2039. CF=prt.CFrame
  2040. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2041. for i=0,1,0.2 do
  2042. wait()
  2043. Part.CFrame=CF*cf(0,0,-0.4)
  2044. end
  2045. for i=0,1,delay do
  2046. wait()
  2047. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  2048. Mesh.Scale=Mesh.Scale
  2049. end
  2050. for i=0,1,0.1 do
  2051. wait()
  2052. Part.Transparency=i
  2053. end
  2054. Part.Parent=nil
  2055. end),prt,msh,CF)
  2056. end
  2057.  
  2058. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2059. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2060. prt.Anchored=true
  2061. prt.Material = "Neon"
  2062. prt.CFrame=cframe
  2063. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2064. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2065. game:GetService("Debris"):AddItem(prt,5)
  2066. coroutine.resume(coroutine.create(function(Part,Mesh)
  2067. for i=0,1,delay do
  2068. swait()
  2069. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2070. Part.Transparency=i
  2071. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2072. end
  2073. Part.Parent=nil
  2074. end),prt,msh)
  2075. end
  2076.  
  2077. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2078. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2079. prt.Anchored=true
  2080. prt.Material = "Neon"
  2081. prt.CFrame=cframe
  2082. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2083. game:GetService("Debris"):AddItem(prt,5)
  2084. coroutine.resume(coroutine.create(function(Part,Mesh)
  2085. local rtype = rottype
  2086. for i=0,1,delay do
  2087. swait()
  2088. if rtype == 1 then
  2089. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2090. elseif rtype == 2 then
  2091. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2092. end
  2093. Part.Transparency=i
  2094. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2095. end
  2096. Part.Parent=nil
  2097. end),prt,msh)
  2098. end
  2099.  
  2100. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2101. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2102. prt.Anchored=true
  2103. prt.CFrame=cframe
  2104. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2105. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2106. game:GetService("Debris"):AddItem(prt,5)
  2107. coroutine.resume(coroutine.create(function(Part,Mesh)
  2108. for i=0,1,delay do
  2109. wait()
  2110. Part.Transparency=i
  2111. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2112. end
  2113. Part.Parent=nil
  2114. end),prt,msh)
  2115. end
  2116.  
  2117. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2118. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2119. prt.Anchored=true
  2120. prt.Material = "Neon"
  2121. prt.CFrame=cframe
  2122. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2123. game:GetService("Debris"):AddItem(prt,5)
  2124. coroutine.resume(coroutine.create(function(Part,Mesh)
  2125. local rtype = rottype
  2126. for i=0,1,delay do
  2127. swait()
  2128. if rtype == 1 then
  2129. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2130. elseif rtype == 2 then
  2131. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2132. end
  2133. Part.Transparency=i
  2134. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2135. end
  2136. Part.Parent=nil
  2137. end),prt,msh)
  2138. end
  2139.  
  2140. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2141. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2142. prt.Anchored=true
  2143. prt.Material = "Neon"
  2144. prt.CFrame=cframe
  2145. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2146. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2147. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2148. game:GetService("Debris"):AddItem(prt,5)
  2149. coroutine.resume(coroutine.create(function(Part,Mesh)
  2150. local rtype = rottype
  2151. for i=0,1,delay do
  2152. swait()
  2153. if rtype == 1 then
  2154. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2155. elseif rtype == 2 then
  2156. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2157. end
  2158. dec.Transparency=i
  2159. dec2.Transparency=i
  2160. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2161. end
  2162. Part.Parent=nil
  2163. end),prt,msh)
  2164. end
  2165.  
  2166. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2167. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2168. prt.Anchored=true
  2169. prt.Material = "Neon"
  2170. prt.CFrame=cframe
  2171. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2172. game:GetService("Debris"):AddItem(prt,5)
  2173. coroutine.resume(coroutine.create(function(Part,Mesh)
  2174. local rtype = rottype
  2175. for i=0,1,delay do
  2176. swait()
  2177. if rtype == 1 then
  2178. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2179. elseif rtype == 2 then
  2180. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2181. end
  2182. prt.Transparency=i
  2183. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2184. end
  2185. Part.Parent=nil
  2186. end),prt,msh)
  2187. end
  2188.  
  2189. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2190. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2191. prt.Anchored=true
  2192. prt.Material = "Neon"
  2193. prt.CFrame=cframe
  2194. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2195. game:GetService("Debris"):AddItem(prt,5)
  2196. coroutine.resume(coroutine.create(function(Part,Mesh)
  2197. local rtype = rottype
  2198. for i=0,1,delay do
  2199. swait()
  2200. if rtype == 1 then
  2201. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2202. elseif rtype == 2 then
  2203. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2204. end
  2205. prt.Transparency=i
  2206. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2207. end
  2208. Part.Parent=nil
  2209. end),prt,msh)
  2210. end
  2211.  
  2212. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2213. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2214. prt.Anchored=true
  2215. prt.Material = "Neon"
  2216. prt.CFrame=cframe
  2217. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2218. game:GetService("Debris"):AddItem(prt,5)
  2219. coroutine.resume(coroutine.create(function(Part,Mesh)
  2220. local rtype = rottype
  2221. for i=0,1,delay do
  2222. swait()
  2223. if rtype == 1 then
  2224. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2225. elseif rtype == 2 then
  2226. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2227. end
  2228. prt.Transparency=i
  2229. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2230. end
  2231. Part.Parent=nil
  2232. end),prt,msh)
  2233. end
  2234.  
  2235. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2236. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2237. prt.Anchored=true
  2238. prt.Material = "Neon"
  2239. prt.CFrame=cframe
  2240. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2241. game:GetService("Debris"):AddItem(prt,5)
  2242. coroutine.resume(coroutine.create(function(Part,Mesh)
  2243. local rtype = rottype
  2244. for i=0,1,delay do
  2245. swait()
  2246. if rtype == 1 then
  2247. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2248. elseif rtype == 2 then
  2249. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2250. end
  2251. prt.Transparency=i
  2252. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2253. end
  2254. Part.Parent=nil
  2255. end),prt,msh)
  2256. end
  2257.  
  2258. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2259. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2260. prt.Anchored=false
  2261. prt.CFrame=cframe
  2262. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2263. local wld=weld(prt,prt,Parent,cframe)
  2264. game:GetService("Debris"):AddItem(prt,5)
  2265. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2266. for i=0,1,delay do
  2267. wait()
  2268. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2269. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2270. Part.Transparency=i
  2271. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2272. end
  2273. Part.Parent=nil
  2274. end),prt,msh,wld)
  2275. end
  2276.  
  2277. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2278. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2279. prt.Anchored=false
  2280. prt.CFrame=cframe
  2281. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2282. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2283. game:GetService("Debris"):AddItem(prt,5)
  2284. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2285. for i=0,1,delay do
  2286. wait()
  2287. Weld.C0=euler(i*20,0,0)
  2288. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2289. Part.Transparency=i
  2290. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2291. end
  2292. Part.Parent=nil
  2293. end),prt,msh,wld)
  2294. end
  2295.  
  2296. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2297. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2298. prt.Anchored=true
  2299. prt.CFrame=cframe
  2300. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2301. game:GetService("Debris"):AddItem(prt,2)
  2302. coroutine.resume(coroutine.create(function(Part,Mesh)
  2303. for i=0,1,delay do
  2304. wait()
  2305. Part.CFrame=Part.CFrame
  2306. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2307. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2308. prt2.Anchored=true
  2309. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2310. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2311. game:GetService("Debris"):AddItem(prt2,2)
  2312. coroutine.resume(coroutine.create(function(Part,Mesh)
  2313. for i=0,1,0.1 do
  2314. wait()
  2315. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2316. end
  2317. Part.Parent=nil
  2318. end),prt2,msh2)
  2319. end
  2320. for i=0,1,delay*2 do
  2321. wait()
  2322. Part.CFrame=Part.CFrame
  2323. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2324. end
  2325. Part.Parent=nil
  2326. end),prt,msh)
  2327. end
  2328.  
  2329. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2330. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2331. prt.Anchored=true
  2332. prt.CFrame=cframe
  2333. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2334. game:GetService("Debris"):AddItem(prt,2)
  2335. coroutine.resume(coroutine.create(function(Part,Mesh)
  2336. for i=0,1,delay do
  2337. wait()
  2338. Part.CFrame=Part.CFrame
  2339. Part.Transparency=i
  2340. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2341. end
  2342. Part.Parent=nil
  2343. end),prt,msh)
  2344. end
  2345.  
  2346. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2347. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2348. prt.Anchored=true
  2349. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2350. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2351. game:GetService("Debris"):AddItem(prt,2)
  2352. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2353. CF=Part.CFrame
  2354. Numbb=0
  2355. randnumb=math.random()/10
  2356. rand1=math.random()/10
  2357. for i=0,1,rand1 do
  2358. wait()
  2359. CF=CF*cf(0,math.random()/2,0)
  2360. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2361. Part.CFrame=CF*euler(Numbb,0,0)
  2362. Part.Transparency=i
  2363. Numbb=Numbb+randnumb
  2364. end
  2365. Part.Parent=nil
  2366. end),prt,CF,Numbb,randnumb)
  2367. end
  2368.  
  2369. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2370. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2371. prt.Anchored=true
  2372. prt.CFrame=cframe
  2373. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2374. game:GetService("Debris"):AddItem(prt,5)
  2375. coroutine.resume(coroutine.create(function(Part,Mesh)
  2376. for i=0,1,delay do
  2377. wait()
  2378. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2379. Part.Transparency=i
  2380. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2381. end
  2382. Part.Parent=nil
  2383. end),prt,msh)
  2384. end
  2385.  
  2386. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2387. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2388. prt.Anchored=true
  2389. prt.CFrame=cframe
  2390. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2391. game:GetService("Debris"):AddItem(prt,2)
  2392. coroutine.resume(coroutine.create(function(Part,Mesh)
  2393. for i=0,1,delay do
  2394. wait()
  2395. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2396. Part.Transparency=i
  2397. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2398. end
  2399. Part.Parent=nil
  2400. end),prt,msh)
  2401. end
  2402.  
  2403. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2404. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2405. prt.Anchored=true
  2406. prt.CFrame=cframe*cf(x,y,z)
  2407. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2408. game:GetService("Debris"):AddItem(prt,5)
  2409. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2410. local num=math.random()
  2411. local num2=math.random(-3,2)+math.random()
  2412. local numm=0
  2413. for i=0,1,delay*2 do
  2414. swait()
  2415. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2416. Part.Transparency=i
  2417. numm=numm+0.01
  2418. end
  2419. Part.Parent=nil
  2420. Mesh.Parent=nil
  2421. end),prt,msh,x,y,z)
  2422. end
  2423.  
  2424. function dmgstart(dmg,what)
  2425. hitcon = what.Touched:connect(function(hit)
  2426. local hum = hit.Parent:FindFirstChild("Humanoid")
  2427. if hum and not hum:IsDescendantOf(Character) then
  2428. hum:TakeDamage(dmg)
  2429. end
  2430. end)
  2431. end
  2432.  
  2433. function dmgstop()
  2434. hitcon:disconnect()
  2435. end
  2436.  
  2437. function Cloak()
  2438. Face.Parent=nil
  2439. cloaked=true
  2440. for _,v in pairs(Torso.Parent:children()) do
  2441. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2442. coroutine.resume(coroutine.create(function()
  2443. for i=0,1,0.2 do
  2444. wait()
  2445. v.Transparency=i
  2446. end
  2447. v.Transparency=1
  2448. end))
  2449. end
  2450. if v.className=="Hat" then
  2451. hatp=v.Handle
  2452. coroutine.resume(coroutine.create(function(derp)
  2453. for i=0,1,0.2 do
  2454. wait()
  2455. derp.Transparency=i
  2456. end
  2457. derp.Transparency=1
  2458. end),hatp)
  2459. end
  2460. end
  2461. for _,v in pairs(m:children()) do
  2462. if v.className=="Part" then
  2463. coroutine.resume(coroutine.create(function()
  2464. for i=0,1,0.2 do
  2465. wait()
  2466. v.Transparency=i
  2467. end
  2468. v.Transparency=1
  2469. end))
  2470. end
  2471. end
  2472. end
  2473.  
  2474. function UnCloak()
  2475. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2476. Face.Parent=Head
  2477. cloaked=false
  2478. for _,v in pairs(Torso.Parent:children()) do
  2479. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2480. coroutine.resume(coroutine.create(function()
  2481. for i=0,1,0.1 do
  2482. wait()
  2483. v.Transparency=v.Transparency-0.1
  2484. end
  2485. v.Transparency=0
  2486. end))
  2487. end
  2488. if v.className=="Hat" then
  2489. hatp=v.Handle
  2490. coroutine.resume(coroutine.create(function(derp)
  2491. for i=0,1,0.1 do
  2492. wait()
  2493. derp.Transparency=derp.Transparency-0.1
  2494. end
  2495. derp.Transparency=0
  2496. end),hatp)
  2497. end
  2498. end
  2499. for _,v in pairs(m:children()) do
  2500. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2501. coroutine.resume(coroutine.create(function()
  2502. for i=0,1,0.1 do
  2503. wait()
  2504. v.Transparency=v.Transparency-0.1
  2505. end
  2506. v.Transparency=0
  2507. end))
  2508. v.Transparency=0
  2509. end
  2510. end
  2511. end
  2512.  
  2513. local origcolor = BrickColor.new("Pastel light blue")
  2514. ---- This section of explosions.
  2515.  
  2516. ----
  2517.  
  2518.  
  2519. function ring(type,pos,scale,value)
  2520. local type = type
  2521. local rng = Instance.new("Part", char)
  2522. rng.Anchored = true
  2523. rng.BrickColor = origcolor
  2524. rng.CanCollide = false
  2525. rng.FormFactor = 3
  2526. rng.Name = "Ring"
  2527. rng.Size = Vector3.new(1, 1, 1)
  2528. rng.Transparency = 0
  2529. rng.TopSurface = 0
  2530. rng.BottomSurface = 0
  2531. rng.CFrame = pos
  2532. local rngm = Instance.new("SpecialMesh", rng)
  2533. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2534. rngm.Scale = scale
  2535. local scaler2 = 1
  2536. if type == "Add" then
  2537. scaler2 = 1*value
  2538. elseif type == "Divide" then
  2539. scaler2 = 1/value
  2540. end
  2541. coroutine.resume(coroutine.create(function()
  2542. for i = 0,10,0.1 do
  2543. swait()
  2544. if type == "Add" then
  2545. scaler2 = scaler2 - 0.01*value
  2546. elseif type == "Divide" then
  2547. scaler2 = scaler2 - 0.01/value
  2548. end
  2549. rng.Transparency = rng.Transparency + 0.01
  2550. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2551. end
  2552. rng:Destroy()
  2553. end))
  2554. end
  2555.  
  2556.  
  2557. function wave(type,pos,scale,value)
  2558. local type = type
  2559. local rng = Instance.new("Part", char)
  2560. rng.Anchored = true
  2561. rng.BrickColor = origcolor
  2562. rng.CanCollide = false
  2563. rng.FormFactor = 3
  2564. rng.Name = "Ring"
  2565. rng.Size = Vector3.new(1, 1, 1)
  2566. rng.Transparency = 0
  2567. rng.TopSurface = 0
  2568. rng.BottomSurface = 0
  2569. rng.CFrame = pos
  2570. local rngm = Instance.new("SpecialMesh", rng)
  2571. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2572. rngm.Scale = scale
  2573. local scaler2 = 1
  2574. if type == "Add" then
  2575. scaler2 = 1*value
  2576. elseif type == "Divide" then
  2577. scaler2 = 1/value
  2578. end
  2579. coroutine.resume(coroutine.create(function()
  2580. for i = 0,10,0.1 do
  2581. swait()
  2582. if type == "Add" then
  2583. scaler2 = scaler2 - 0.01*value
  2584. elseif type == "Divide" then
  2585. scaler2 = scaler2 - 0.01/value
  2586. end
  2587. rng.Transparency = rng.Transparency + 0.01
  2588. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2589. end
  2590. rng:Destroy()
  2591. end))
  2592. end
  2593.  
  2594. function wind(type,pos,scale,value,speed)
  2595. local type = type
  2596. local rng = Instance.new("Part", char)
  2597. rng.Anchored = true
  2598. rng.BrickColor = origcolor
  2599. rng.CanCollide = false
  2600. rng.FormFactor = 3
  2601. rng.Name = "Ring"
  2602. rng.Size = Vector3.new(1, 1, 1)
  2603. rng.Transparency = 0
  2604. rng.TopSurface = 0
  2605. rng.BottomSurface = 0
  2606. rng.CFrame = pos
  2607. local rngm = Instance.new("SpecialMesh", rng)
  2608. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2609. rngm.Scale = scale
  2610. local scaler2 = 1
  2611. if type == "Add" then
  2612. scaler2 = 1*value
  2613. elseif type == "Divide" then
  2614. scaler2 = 1/value
  2615. end
  2616. coroutine.resume(coroutine.create(function()
  2617. for i = 0,10,0.1 do
  2618. swait()
  2619. if type == "Add" then
  2620. scaler2 = scaler2 - 0.01*value
  2621. elseif type == "Divide" then
  2622. scaler2 = scaler2 - 0.01/value
  2623. end
  2624. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2625. rng.Transparency = rng.Transparency + 0.01
  2626. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2627. end
  2628. rng:Destroy()
  2629. end))
  2630. end
  2631.  
  2632. function groundwind(type,pos,scale,value,speed)
  2633. local type = type
  2634. local rng = Instance.new("Part", char)
  2635. rng.Anchored = true
  2636. rng.BrickColor = origcolor
  2637. rng.CanCollide = false
  2638. rng.FormFactor = 3
  2639. rng.Name = "Ring"
  2640. rng.Size = Vector3.new(1, 1, 1)
  2641. rng.Transparency = 0
  2642. rng.TopSurface = 0
  2643. rng.BottomSurface = 0
  2644. rng.CFrame = pos
  2645. local rngm = Instance.new("SpecialMesh", rng)
  2646. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2647. rngm.Scale = scale
  2648. local scaler2 = 1
  2649. if type == "Add" then
  2650. scaler2 = 1*value
  2651. elseif type == "Divide" then
  2652. scaler2 = 1/value
  2653. end
  2654. coroutine.resume(coroutine.create(function()
  2655. for i = 0,10,0.1 do
  2656. swait()
  2657. if type == "Add" then
  2658. scaler2 = scaler2 - 0.01*value
  2659. elseif type == "Divide" then
  2660. scaler2 = scaler2 - 0.01/value
  2661. end
  2662. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2663. rng.Transparency = rng.Transparency + 0.01
  2664. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2665. end
  2666. rng:Destroy()
  2667. end))
  2668. end
  2669.  
  2670. function CameraManager()
  2671. if TwoD and not CamInterrupt then
  2672. if Humanoid.Health > 0 then
  2673. Camera.CameraSubject = Humanoid
  2674. Camera.CameraType = "Scriptable"
  2675. Humanoid.AutoRotate = false
  2676. if Booleans.GyroUse then
  2677. Directer.MaxTorque = Vec3(0, huge, 0)
  2678. else
  2679. Directer.MaxTorque = Vec3(0, 0, 0)
  2680. end
  2681. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2682. if Booleans.CamFollow then
  2683. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2684. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2685. else
  2686. CPart.Position = RootPart.Position
  2687. end
  2688. else
  2689. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2690. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2691. end
  2692. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2693. else
  2694. Camera.CameraSubject = Humanoid
  2695. Camera.CameraType = "Custom"
  2696. Controller.Disabled = false
  2697. end
  2698. end
  2699. end
  2700.  
  2701. function ring(type,pos,scale,value)
  2702. local type = type
  2703. local rng = Instance.new("Part", char)
  2704. rng.Anchored = true
  2705. rng.BrickColor = origcolor
  2706. rng.CanCollide = false
  2707. rng.FormFactor = 3
  2708. rng.Name = "Ring"
  2709. rng.Size = Vector3.new(1, 1, 1)
  2710. rng.Transparency = 0
  2711. rng.TopSurface = 0
  2712. rng.BottomSurface = 0
  2713. rng.CFrame = pos
  2714. local rngm = Instance.new("SpecialMesh", rng)
  2715. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2716. rngm.Scale = scale
  2717. local scaler2 = 1
  2718. if type == "Add" then
  2719. scaler2 = 1*value
  2720. elseif type == "Divide" then
  2721. scaler2 = 1/value
  2722. end
  2723. coroutine.resume(coroutine.create(function()
  2724. for i = 0,10,0.1 do
  2725. swait()
  2726. if type == "Add" then
  2727. scaler2 = scaler2 - 0.01*value
  2728. elseif type == "Divide" then
  2729. scaler2 = scaler2 - 0.01/value
  2730. end
  2731. rng.Transparency = rng.Transparency + 0.01
  2732. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2733. end
  2734. rng:Destroy()
  2735. end))
  2736. end
  2737.  
  2738.  
  2739. function wave(type,pos,scale,value)
  2740. local type = type
  2741. local rng = Instance.new("Part", char)
  2742. rng.Anchored = true
  2743. rng.BrickColor = origcolor
  2744. rng.CanCollide = false
  2745. rng.FormFactor = 3
  2746. rng.Name = "Ring"
  2747. rng.Size = Vector3.new(1, 1, 1)
  2748. rng.Transparency = 0
  2749. rng.TopSurface = 0
  2750. rng.BottomSurface = 0
  2751. rng.CFrame = pos
  2752. local rngm = Instance.new("SpecialMesh", rng)
  2753. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2754. rngm.Scale = scale
  2755. local scaler2 = 1
  2756. if type == "Add" then
  2757. scaler2 = 1*value
  2758. elseif type == "Divide" then
  2759. scaler2 = 1/value
  2760. end
  2761. coroutine.resume(coroutine.create(function()
  2762. for i = 0,10,0.1 do
  2763. swait()
  2764. if type == "Add" then
  2765. scaler2 = scaler2 - 0.01*value
  2766. elseif type == "Divide" then
  2767. scaler2 = scaler2 - 0.01/value
  2768. end
  2769. rng.Transparency = rng.Transparency + 0.01
  2770. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2771. end
  2772. rng:Destroy()
  2773. end))
  2774. end
  2775.  
  2776. function sphere(bonuspeed,type,pos,scale,value,color)
  2777. local type = type
  2778. local rng = Instance.new("Part", char)
  2779. rng.Anchored = true
  2780. if ModeOfGlitch ~= 9 then
  2781. rng.BrickColor = color
  2782. elseif ModeOfGlitch == 9 then
  2783. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2784. end
  2785. rng.CanCollide = false
  2786. rng.FormFactor = 3
  2787. rng.Name = "Ring"
  2788. rng.Material = "Neon"
  2789. rng.Size = Vector3.new(1, 1, 1)
  2790. rng.Transparency = 0
  2791. rng.TopSurface = 0
  2792. rng.BottomSurface = 0
  2793. rng.CFrame = pos
  2794. local rngm = Instance.new("SpecialMesh", rng)
  2795. rngm.MeshType = "Sphere"
  2796. rngm.Scale = scale
  2797. if rainbowmode == true then
  2798. rng.Color = Color3.new(r/255,g/255,b/255)
  2799. end
  2800. if ModeOfGlitch == 9 then
  2801. coroutine.resume(coroutine.create(function()
  2802. while true do
  2803. swait()
  2804. if rng.Parent ~= nil then
  2805. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2806. else
  2807. break
  2808. end
  2809. end
  2810. end))
  2811. end
  2812. local scaler2 = 1
  2813. if type == "Add" then
  2814. scaler2 = 1*value
  2815. elseif type == "Divide" then
  2816. scaler2 = 1/value
  2817. end
  2818. coroutine.resume(coroutine.create(function()
  2819. for i = 0,10/bonuspeed,0.1 do
  2820. swait()
  2821. if rainbowmode == true then
  2822. rng.Color = Color3.new(r/255,g/255,b/255)
  2823. end
  2824. if type == "Add" then
  2825. scaler2 = scaler2 - 0.01*value/bonuspeed
  2826. elseif type == "Divide" then
  2827. scaler2 = scaler2 - 0.01/value*bonuspeed
  2828. end
  2829. if chaosmode == true then
  2830. rng.BrickColor = BrickColor.random()
  2831. end
  2832. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2833. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2834. end
  2835. rng:Destroy()
  2836. end))
  2837. end
  2838.  
  2839. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2840. local type = type
  2841. local rng = Instance.new("Part", char)
  2842. rng.Anchored = true
  2843. if ModeOfGlitch ~= 9 then
  2844. rng.BrickColor = color
  2845. elseif ModeOfGlitch == 9 then
  2846. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2847. end
  2848. rng.CanCollide = false
  2849. rng.FormFactor = 3
  2850. rng.Name = "Ring"
  2851. rng.Material = "Neon"
  2852. rng.Size = Vector3.new(1, 1, 1)
  2853. rng.Transparency = 0
  2854. rng.TopSurface = 0
  2855. rng.BottomSurface = 0
  2856. rng.CFrame = pos
  2857. local rngm = Instance.new("SpecialMesh", rng)
  2858. rngm.MeshType = "Sphere"
  2859. rngm.Scale = scale
  2860. local scaler2 = 1
  2861. local scaler2b = 1
  2862. local scaler2c = 1
  2863. if type == "Add" then
  2864. scaler2 = 1*value
  2865. scaler2b = 1*value2
  2866. scaler2c = 1*value3
  2867. elseif type == "Divide" then
  2868. scaler2 = 1/value
  2869. scaler2b = 1/value2
  2870. scaler2c = 1/value3
  2871. end
  2872. if ModeOfGlitch == 9 then
  2873. coroutine.resume(coroutine.create(function()
  2874. while true do
  2875. swait()
  2876. if rng.Parent ~= nil then
  2877. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2878. else
  2879. break
  2880. end
  2881. end
  2882. end))
  2883. end
  2884. coroutine.resume(coroutine.create(function()
  2885. for i = 0,10/bonuspeed,0.1 do
  2886. swait()
  2887. if type == "Add" then
  2888. scaler2 = scaler2 - 0.01*value/bonuspeed
  2889. scaler2b = scaler2b - 0.01*value/bonuspeed
  2890. scaler2c = scaler2c - 0.01*value/bonuspeed
  2891. elseif type == "Divide" then
  2892. scaler2 = scaler2 - 0.01/value*bonuspeed
  2893. scaler2b = scaler2b - 0.01/value*bonuspeed
  2894. scaler2c = scaler2c - 0.01/value*bonuspeed
  2895. end
  2896. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2897. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2898. end
  2899. rng:Destroy()
  2900. end))
  2901. end
  2902.  
  2903. function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
  2904. local type = type
  2905. local rotenable = rotatingop
  2906. local rng = Instance.new("Part", char)
  2907. rng.Anchored = true
  2908. rng.BrickColor = color
  2909. rng.CanCollide = false
  2910. rng.FormFactor = 3
  2911. rng.Name = "Ring"
  2912. rng.Material = "Neon"
  2913. rng.Size = Vector3.new(1, 1, 1)
  2914. rng.Transparency = 0
  2915. if typeoftrans == "In" then
  2916. rng.Transparency = 1
  2917. end
  2918. rng.TopSurface = 0
  2919. rng.BottomSurface = 0
  2920. rng.CFrame = pos
  2921. local rngm = Instance.new("SpecialMesh", rng)
  2922. rngm.MeshType = "FileMesh"
  2923. if typeofshape == "Normal" then
  2924. rngm.MeshId = "rbxassetid://662586858"
  2925. elseif typeofshape == "Round" then
  2926. rngm.MeshId = "rbxassetid://662585058"
  2927. end
  2928. rngm.Scale = scale
  2929. local scaler2 = 1/10
  2930. if type == "Add" then
  2931. scaler2 = 1*value/10
  2932. elseif type == "Divide" then
  2933. scaler2 = 1/value/10
  2934. end
  2935. local randomrot = math.random(1,2)
  2936. coroutine.resume(coroutine.create(function()
  2937. for i = 0,10/bonuspeed,0.1 do
  2938. swait()
  2939. if type == "Add" then
  2940. scaler2 = scaler2 - 0.01*value/bonuspeed/10
  2941. elseif type == "Divide" then
  2942. scaler2 = scaler2 - 0.01/value*bonuspeed/10
  2943. end
  2944. if rotenable == true then
  2945. if randomrot == 1 then
  2946. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
  2947. elseif randomrot == 2 then
  2948. rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
  2949. end
  2950. end
  2951. if typeoftrans == "Out" then
  2952. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2953. elseif typeoftrans == "In" then
  2954. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2955. end
  2956. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
  2957. end
  2958. rng:Destroy()
  2959. end))
  2960. end
  2961.  
  2962. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2963. local type = type
  2964. local rng = Instance.new("Part", char)
  2965. rng.Anchored = true
  2966. rng.BrickColor = color
  2967. rng.CanCollide = false
  2968. rng.FormFactor = 3
  2969. rng.Name = "Ring"
  2970. rng.Material = "Neon"
  2971. rng.Size = Vector3.new(1, 1, 1)
  2972. rng.Transparency = 0
  2973. rng.TopSurface = 0
  2974. rng.BottomSurface = 0
  2975. rng.CFrame = pos
  2976. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2977. local rngm = Instance.new("SpecialMesh", rng)
  2978. rngm.MeshType = "Brick"
  2979. rngm.Scale = vt(x1,y1,z1)
  2980. if rainbowmode == true then
  2981. rng.Color = Color3.new(r/255,g/255,b/255)
  2982. end
  2983. local scaler2 = 1
  2984. local speeder = FastSpeed/10
  2985. if type == "Add" then
  2986. scaler2 = 1*value
  2987. elseif type == "Divide" then
  2988. scaler2 = 1/value
  2989. end
  2990. coroutine.resume(coroutine.create(function()
  2991. for i = 0,10/bonuspeed,0.1 do
  2992. swait()
  2993. if rainbowmode == true then
  2994. rng.Color = Color3.new(r/255,g/255,b/255)
  2995. end
  2996. if type == "Add" then
  2997. scaler2 = scaler2 - 0.01*value/bonuspeed
  2998. elseif type == "Divide" then
  2999. scaler2 = scaler2 - 0.01/value*bonuspeed
  3000. end
  3001. if chaosmode == true then
  3002. rng.BrickColor = BrickColor.random()
  3003. end
  3004. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3005. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3006. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3007. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3008. end
  3009. rng:Destroy()
  3010. end))
  3011. end
  3012.  
  3013. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3014. local type = type
  3015. local rng = Instance.new("Part", char)
  3016. rng.Anchored = true
  3017. rng.BrickColor = color
  3018. rng.CanCollide = false
  3019. rng.FormFactor = 3
  3020. rng.Name = "Ring"
  3021. rng.Material = "Neon"
  3022. rng.Size = Vector3.new(1, 1, 1)
  3023. rng.Transparency = 0
  3024. rng.TopSurface = 0
  3025. rng.BottomSurface = 0
  3026. rng.CFrame = pos
  3027. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3028. local rngm = Instance.new("SpecialMesh", rng)
  3029. rngm.MeshType = "Brick"
  3030. rngm.Scale = vt(x1,y1,z1)
  3031. if rainbowmode == true then
  3032. rng.Color = Color3.new(r/255,g/255,b/255)
  3033. end
  3034. local scaler2 = 1
  3035. local speeder = FastSpeed/10
  3036. if type == "Add" then
  3037. scaler2 = 1*value
  3038. elseif type == "Divide" then
  3039. scaler2 = 1/value
  3040. end
  3041. coroutine.resume(coroutine.create(function()
  3042. for i = 0,10/bonuspeed,0.1 do
  3043. swait()
  3044. if rainbowmode == true then
  3045. rng.Color = Color3.new(r/255,g/255,b/255)
  3046. end
  3047. if type == "Add" then
  3048. scaler2 = scaler2 - 0.01*value/bonuspeed
  3049. elseif type == "Divide" then
  3050. scaler2 = scaler2 - 0.01/value*bonuspeed
  3051. end
  3052. if chaosmode == true then
  3053. rng.BrickColor = BrickColor.random()
  3054. end
  3055. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  3056. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3057. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3058. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3059. end
  3060. rng:Destroy()
  3061. end))
  3062. end
  3063.  
  3064. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3065. local type = type
  3066. local rng = Instance.new("Part", char)
  3067. rng.Anchored = true
  3068. rng.BrickColor = color
  3069. rng.CanCollide = false
  3070. rng.FormFactor = 3
  3071. rng.Name = "Ring"
  3072. rng.Material = "Neon"
  3073. rng.Size = Vector3.new(1, 1, 1)
  3074. rng.Transparency = 0
  3075. rng.TopSurface = 0
  3076. rng.BottomSurface = 0
  3077. rng.CFrame = pos
  3078. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3079. local rngm = Instance.new("SpecialMesh", rng)
  3080. rngm.MeshType = "Brick"
  3081. rngm.Scale = vt(x1,y1,z1)
  3082. if rainbowmode == true then
  3083. rng.Color = Color3.new(r/255,g/255,b/255)
  3084. end
  3085. local scaler2 = 0
  3086. local speeder = FastSpeed/10
  3087. if type == "Add" then
  3088. scaler2 = 1*value
  3089. elseif type == "Divide" then
  3090. scaler2 = 1/value
  3091. end
  3092. coroutine.resume(coroutine.create(function()
  3093. for i = 0,10/bonuspeed,0.1 do
  3094. swait()
  3095. if rainbowmode == true then
  3096. rng.Color = Color3.new(r/255,g/255,b/255)
  3097. end
  3098. if type == "Add" then
  3099. scaler2 = scaler2 - 0.01*value/bonuspeed
  3100. elseif type == "Divide" then
  3101. scaler2 = scaler2 - 0.01/value*bonuspeed
  3102. end
  3103. if chaosmode == true then
  3104. rng.BrickColor = BrickColor.random()
  3105. end
  3106. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  3107. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3108. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3109. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3110. end
  3111. rng:Destroy()
  3112. end))
  3113. end
  3114.  
  3115. function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
  3116. local type = type
  3117. local rng = Instance.new("Part", char)
  3118. rng.Anchored = true
  3119. rng.BrickColor = color
  3120. rng.Color = color3
  3121. rng.CanCollide = false
  3122. rng.FormFactor = 3
  3123. rng.Name = "Ring"
  3124. rng.Material = "Neon"
  3125. rng.Size = Vector3.new(1, 1, 1)
  3126. rng.Transparency = 0
  3127. rng.TopSurface = 0
  3128. rng.BottomSurface = 0
  3129. rng.CFrame = pos
  3130. local rngm = Instance.new("SpecialMesh", rng)
  3131. rngm.MeshType = "Brick"
  3132. rngm.Scale = scale
  3133. local scaler2 = 1
  3134. local scaler2b = 1
  3135. local scaler2c = 1
  3136. if type == "Add" then
  3137. scaler2 = 1*value
  3138. scaler2b = 1*value2
  3139. scaler2c = 1*value3
  3140. elseif type == "Divide" then
  3141. scaler2 = 1/value
  3142. scaler2b = 1/value2
  3143. scaler2c = 1/value3
  3144. end
  3145. coroutine.resume(coroutine.create(function()
  3146. for i = 0,10/bonuspeed,0.1 do
  3147. swait()
  3148. if type == "Add" then
  3149. scaler2 = scaler2 - 0.01*value/bonuspeed
  3150. scaler2b = scaler2b - 0.01*value/bonuspeed
  3151. scaler2c = scaler2c - 0.01*value/bonuspeed
  3152. elseif type == "Divide" then
  3153. scaler2 = scaler2 - 0.01/value*bonuspeed
  3154. scaler2b = scaler2b - 0.01/value*bonuspeed
  3155. scaler2c = scaler2c - 0.01/value*bonuspeed
  3156. end
  3157. rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3158. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3159. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  3160. end
  3161. rng:Destroy()
  3162. end))
  3163. end
  3164.  
  3165. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3166. local type = type
  3167. local rng = Instance.new("Part", char)
  3168. rng.Anchored = true
  3169. if ModeOfGlitch ~= 9 then
  3170. rng.BrickColor = color
  3171. elseif ModeOfGlitch == 9 then
  3172. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3173. end
  3174. rng.CanCollide = false
  3175. rng.FormFactor = 3
  3176. rng.Name = "Ring"
  3177. rng.Material = "Neon"
  3178. rng.Size = Vector3.new(1, 1, 1)
  3179. rng.Transparency = 0
  3180. rng.TopSurface = 0
  3181. rng.BottomSurface = 0
  3182. rng.CFrame = pos
  3183. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3184. local rngm = Instance.new("SpecialMesh", rng)
  3185. rngm.MeshType = "Sphere"
  3186. rngm.Scale = vt(x1,y1,z1)
  3187. if rainbowmode == true then
  3188. rng.Color = Color3.new(r/255,g/255,b/255)
  3189. end
  3190. if ModeOfGlitch == 9 then
  3191. coroutine.resume(coroutine.create(function()
  3192. while true do
  3193. swait()
  3194. if rng.Parent ~= nil then
  3195. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3196. else
  3197. break
  3198. end
  3199. end
  3200. end))
  3201. end
  3202. local scaler2 = 1
  3203. local speeder = FastSpeed
  3204. if type == "Add" then
  3205. scaler2 = 1*value
  3206. elseif type == "Divide" then
  3207. scaler2 = 1/value
  3208. end
  3209. coroutine.resume(coroutine.create(function()
  3210. for i = 0,10/bonuspeed,0.1 do
  3211. swait()
  3212. if rainbowmode == true then
  3213. rng.Color = Color3.new(r/255,g/255,b/255)
  3214. end
  3215. if type == "Add" then
  3216. scaler2 = scaler2 - 0.01*value/bonuspeed
  3217. elseif type == "Divide" then
  3218. scaler2 = scaler2 - 0.01/value*bonuspeed
  3219. end
  3220. if chaosmode == true then
  3221. rng.BrickColor = BrickColor.random()
  3222. end
  3223. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3224. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3225. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3226. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3227. end
  3228. rng:Destroy()
  3229. end))
  3230. end
  3231.  
  3232.  
  3233. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3234. local type = type
  3235. local rng = Instance.new("Part", char)
  3236. rng.Anchored = true
  3237. if ModeOfGlitch ~= 9 then
  3238. rng.BrickColor = color
  3239. elseif ModeOfGlitch == 9 then
  3240. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3241. end
  3242. rng.CanCollide = false
  3243. rng.FormFactor = 3
  3244. rng.Name = "Ring"
  3245. rng.Material = "Neon"
  3246. rng.Size = Vector3.new(1, 1, 1)
  3247. rng.Transparency = 1
  3248. rng.TopSurface = 0
  3249. rng.BottomSurface = 0
  3250. rng.CFrame = pos
  3251. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3252. local rngm = Instance.new("SpecialMesh", rng)
  3253. rngm.MeshType = "Sphere"
  3254. rngm.Scale = vt(x1,y1,z1)
  3255. if rainbowmode == true then
  3256. rng.Color = Color3.new(r/255,g/255,b/255)
  3257. end
  3258. if ModeOfGlitch == 9 then
  3259. coroutine.resume(coroutine.create(function()
  3260. while true do
  3261. swait()
  3262. if rng.Parent ~= nil then
  3263. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  3264. else
  3265. break
  3266. end
  3267. end
  3268. end))
  3269. end
  3270. local scaler2 = 1
  3271. local speeder = FastSpeed
  3272. if type == "Add" then
  3273. scaler2 = 1*value
  3274. elseif type == "Divide" then
  3275. scaler2 = 1/value
  3276. end
  3277. coroutine.resume(coroutine.create(function()
  3278. for i = 0,10/bonuspeed,0.1 do
  3279. swait()
  3280. if rainbowmode == true then
  3281. rng.Color = Color3.new(r/255,g/255,b/255)
  3282. end
  3283. if type == "Add" then
  3284. scaler2 = scaler2 - 0.01*value/bonuspeed
  3285. elseif type == "Divide" then
  3286. scaler2 = scaler2 - 0.01/value*bonuspeed
  3287. end
  3288. if chaosmode == true then
  3289. rng.BrickColor = BrickColor.random()
  3290. end
  3291. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3292. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3293. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3294. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3295. end
  3296. rng:Destroy()
  3297. end))
  3298. end
  3299.  
  3300. function dmg(dude)
  3301. if dude.Name ~= Character then
  3302. local keptcolor = MAINRUINCOLOR
  3303. local bgf = Instance.new("BodyGyro",dude.Head)
  3304. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3305. --[[local val = Instance.new("BoolValue",dude)
  3306. val.Name = "IsHit"]]--
  3307. local ds = coroutine.wrap(function()
  3308. dude:WaitForChild("Head"):BreakJoints()
  3309. for i, v in pairs(dude:GetChildren()) do
  3310. if v:IsA("Part") or v:IsA("MeshPart") then
  3311. v.Name = "DEMINISHED"
  3312. end
  3313. end
  3314. wait(0.5)
  3315. targetted = nil
  3316. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  3317. coroutine.resume(coroutine.create(function()
  3318. for i, v in pairs(dude:GetChildren()) do
  3319. if v:IsA("Accessory") then
  3320. v:Destroy()
  3321. end
  3322. if v:IsA("Humanoid") then
  3323. v:Destroy()
  3324. end
  3325. if v:IsA("CharacterMesh") then
  3326. v:Destroy()
  3327. end
  3328. if v:IsA("Model") then
  3329. v:Destroy()
  3330. end
  3331. if v:IsA("Part") or v:IsA("MeshPart") then
  3332. for x, o in pairs(v:GetChildren()) do
  3333. if o:IsA("Decal") then
  3334. o:Destroy()
  3335. end
  3336. end
  3337. coroutine.resume(coroutine.create(function()
  3338. v.Material = "Neon"
  3339. v.CanCollide = false
  3340. v.Anchored = false
  3341. local bld = Instance.new("ParticleEmitter",v)
  3342. bld.LightEmission = 0.75
  3343. bld.Texture = "rbxassetid://363275192" ---284205403
  3344. bld.Color = ColorSequence.new(keptcolor.Color)
  3345. bld.Rate = 500
  3346. bld.Lifetime = NumberRange.new(1)
  3347. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  3348. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  3349. bld.Speed = NumberRange.new(2,5)
  3350. bld.VelocitySpread = 50000
  3351. bld.Rotation = NumberRange.new(-500,500)
  3352. bld.RotSpeed = NumberRange.new(-500,500)
  3353. local sbs = Instance.new("BodyPosition", v)
  3354. sbs.P = 3000
  3355. sbs.D = 1000
  3356. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3357. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  3358. v.Color = keptcolor.Color
  3359. coroutine.resume(coroutine.create(function()
  3360. for i = 0, 49 do
  3361. swait(1)
  3362. v:BreakJoints()
  3363. v.Transparency = v.Transparency + 0.02
  3364. end
  3365. v:BreakJoints()
  3366. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  3367. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  3368. bld.Speed = NumberRange.new(10,25)
  3369. bld.Drag = 5
  3370. bld.Acceleration = vt(0,2,0)
  3371. wait(0.5)
  3372. bld.Enabled = false
  3373. wait(8)
  3374. v:Destroy()
  3375. dude:Destroy()
  3376. end))
  3377. end))
  3378. end
  3379. end
  3380. end))
  3381. end)
  3382. ds()
  3383. end
  3384. end
  3385.  
  3386.  
  3387. function FindNearestHead(Position, Distance, SinglePlayer)
  3388. if SinglePlayer then
  3389. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3390. end
  3391. local List = {}
  3392. for i, v in pairs(workspace:GetChildren()) do
  3393. if v:IsA("Model") then
  3394. if v:findFirstChild("Head") then
  3395. if v ~= Character then
  3396. if (v.Head.Position - Position).magnitude <= Distance then
  3397. table.insert(List, v)
  3398. end
  3399. end
  3400. end
  3401. end
  3402. end
  3403. return List
  3404. end
  3405.  
  3406. function FaceMouse()
  3407. Cam = workspace.CurrentCamera
  3408. return {
  3409. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3410. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3411. }
  3412. end
  3413.  
  3414. function FaceMouse2()
  3415. Cam = workspace.CurrentCamera
  3416. return {
  3417. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3418. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3419. }
  3420. end
  3421.  
  3422. local ModeOfGlitch = 1
  3423. -- Functions are ready.
  3424. local storehumanoidWS = 16
  3425.  
  3426. function CorruptBlink()
  3427. for i = 0, 14 do
  3428. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3429. end
  3430. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3431. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3432. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3433. CameraEnshaking(2,10)
  3434. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3435. if v:FindFirstChild('Head') then
  3436. dmg(v)
  3437. end
  3438. end
  3439. for i = 0, 14 do
  3440. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3441. end
  3442. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3443. end
  3444. function PureBomb()
  3445. attack = true
  3446. hum.WalkSpeed = 0
  3447. local orb = Instance.new("Part", char)
  3448. orb.Anchored = true
  3449. orb.BrickColor = BrickColor.new("Toothpaste")
  3450. orb.CanCollide = false
  3451. orb.FormFactor = 3
  3452. orb.Name = "Ring"
  3453. orb.Material = "Neon"
  3454. orb.Size = Vector3.new(1, 1, 1)
  3455. orb.Transparency = 0
  3456. orb.TopSurface = 0
  3457. orb.BottomSurface = 0
  3458. local orbm = Instance.new("SpecialMesh", orb)
  3459. orbm.MeshType = "Sphere"
  3460. orbm.Name = "SizeMesh"
  3461. orbm.Scale = vt(0,0,0)
  3462. local scaled = 0.1
  3463. local posid = 0
  3464. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3465. for i = 0, 5, 0.1 do
  3466. swait()
  3467. scaled = scaled - 0.001
  3468. posid = posid - scaled
  3469. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3470. local scaled = 0.1
  3471. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3472. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Toothpaste"),10)
  3473. PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,BrickColor.new("Toothpaste"),0)
  3474. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  3475. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  3476. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3477. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3478. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3479. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3480. end
  3481. for i = 0, 2, 0.1 do
  3482. swait()
  3483. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3484. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3485. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3486. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3487. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3488. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3489. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3490. end
  3491. coroutine.resume(coroutine.create(function()
  3492. orb.Anchored = false
  3493. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3494. local a = Instance.new("Part",workspace)
  3495. a.Name = "Direction"
  3496. a.Anchored = true
  3497. a.BrickColor = bc("Bright red")
  3498. a.Material = "Neon"
  3499. a.Transparency = 1
  3500. a.CanCollide = false
  3501. local ray = Ray.new(
  3502. orb.CFrame.p, -- origin
  3503. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3504. )
  3505. local ignore = orb
  3506. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3507. a.BottomSurface = 10
  3508. a.TopSurface = 10
  3509. local distance = (orb.CFrame.p - position).magnitude
  3510. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3511. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3512. orb.CFrame = a.CFrame
  3513. a:Destroy()
  3514. local bv = Instance.new("BodyVelocity")
  3515. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3516. bv.velocity = orb.CFrame.lookVector*125
  3517. bv.Parent = orb
  3518. local hitted = false
  3519. game:GetService("Debris"):AddItem(orb, 15)
  3520. wait()
  3521. local hit =orb.Touched:connect(function(hit)
  3522. if hitted == false then
  3523. hitted = true
  3524. CameraEnshaking(10,2.5)
  3525. CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
  3526. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3527. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3528. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3529. for i = 0, 49 do
  3530. PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Toothpaste"),0)
  3531. end
  3532. for i = 0, 9 do
  3533. sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  3534. sphereMK(2,5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  3535. end
  3536. orb.Anchored = true
  3537. orb.Transparency = 1
  3538. wait(8)
  3539. orb:Destroy()
  3540. end
  3541. end)
  3542. end))
  3543. for i = 0, 1, 0.1 do
  3544. swait()
  3545. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3546. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3547. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  3548. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3549. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3550. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3551. end
  3552. hum.WalkSpeed = storehumanoidWS
  3553. attack = false
  3554. end
  3555.  
  3556. function BanishingOrb()
  3557. attack = true
  3558. hum.WalkSpeed = 0
  3559. local orb = Instance.new("Part", char)
  3560. orb.Anchored = true
  3561. orb.BrickColor = BrickColor.new("Black")
  3562. orb.CanCollide = false
  3563. orb.FormFactor = 3
  3564. orb.Name = "Ring"
  3565. orb.Material = "Neon"
  3566. orb.Size = Vector3.new(1, 1, 1)
  3567. orb.Transparency = 0
  3568. orb.TopSurface = 0
  3569. orb.BottomSurface = 0
  3570. local orbm = Instance.new("SpecialMesh", orb)
  3571. orbm.MeshType = "Sphere"
  3572. orbm.Name = "SizeMesh"
  3573. orbm.Scale = vt(0,0,0)
  3574. local scaled = 0.1
  3575. local posid = 0
  3576. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
  3577. for i = 0, 5, 0.1 do
  3578. swait()
  3579. scaled = scaled - 0.001
  3580. posid = posid - scaled
  3581. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3582. local scaled = 0.1
  3583. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3584. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Black"),10)
  3585. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  3586. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  3587. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3588. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3589. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3590. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3591. end
  3592. for i = 0, 2, 0.1 do
  3593. swait()
  3594. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3595. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3596. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3597. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3598. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3599. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3600. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3601. end
  3602. coroutine.resume(coroutine.create(function()
  3603. orb.Anchored = false
  3604. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
  3605. local a = Instance.new("Part",workspace)
  3606. a.Name = "Direction"
  3607. a.Anchored = true
  3608. a.BrickColor = bc("Bright red")
  3609. a.Material = "Neon"
  3610. a.Transparency = 1
  3611. a.CanCollide = false
  3612. local ray = Ray.new(
  3613. orb.CFrame.p, -- origin
  3614. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3615. )
  3616. local ignore = orb
  3617. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3618. a.BottomSurface = 10
  3619. a.TopSurface = 10
  3620. local distance = (orb.CFrame.p - position).magnitude
  3621. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3622. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3623. orb.CFrame = a.CFrame
  3624. a:Destroy()
  3625. local bv = Instance.new("BodyVelocity")
  3626. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3627. bv.velocity = orb.CFrame.lookVector*0
  3628. bv.Parent = orb
  3629. local hitted = false
  3630. local rate = 0
  3631. coroutine.resume(coroutine.create(function()
  3632. for i = 0, 24 do
  3633. wait(0.1)
  3634. rate = rate + 0.25
  3635. bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
  3636. for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
  3637. if v:FindFirstChild('Head') then
  3638. dmg(v)
  3639. end
  3640. end
  3641. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
  3642. sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3643. sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3644. end
  3645. orb.Anchored = true
  3646. orb.Transparency = 1
  3647. for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
  3648. if v:FindFirstChild('Head') then
  3649. dmg(v)
  3650. end
  3651. end
  3652. local eff = Instance.new("ParticleEmitter",orb)
  3653. eff.Texture = "rbxassetid://296874871"
  3654. eff.LightEmission = 0.95
  3655. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3656. eff.Rate = 1000000000
  3657. eff.Lifetime = NumberRange.new(3)
  3658. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,9,0),NumberSequenceKeypoint.new(1,0,0)})
  3659. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3660. eff.Speed = NumberRange.new(30)
  3661. eff.Acceleration = vt(0,-15,0)
  3662. eff.Rotation = NumberRange.new(-500,500)
  3663. eff.VelocitySpread = 100000
  3664. eff.RotSpeed = NumberRange.new(-500,500)
  3665. coroutine.resume(coroutine.create(function()
  3666. wait(0.6)
  3667. eff.Enabled = false
  3668. end))
  3669. CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
  3670. CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
  3671. sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
  3672. sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3673. sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
  3674. game:GetService("Debris"):AddItem(orb, 15)
  3675. end))
  3676. end))
  3677. for i = 0, 1, 0.1 do
  3678. swait()
  3679. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3680. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3681. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  3682. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3683. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3684. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3685. end
  3686. hum.WalkSpeed = storehumanoidWS
  3687. attack = false
  3688. end
  3689.  
  3690.  
  3691. function ChaosGroundStrike()
  3692. attack = true
  3693. for i = 0, 2, 0.1 do
  3694. swait()
  3695. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3696. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3697. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3698. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3699. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3700. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3701. end
  3702. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3703. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3704. CameraEnshaking(4,12)
  3705. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3706. if v:FindFirstChild('Head') then
  3707. dmg(v)
  3708. end
  3709. end
  3710. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3711. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3712. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3713. for i = 0, 2, 0.1 do
  3714. swait()
  3715. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3716. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3717. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3718. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3719. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3720. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3721. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3722. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3723. end
  3724. attack = false
  3725. end
  3726.  
  3727.  
  3728.  
  3729. function Starfall()
  3730. attack = true
  3731. hum.WalkSpeed = 0
  3732. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3733. for i = 0, 5, 0.1 do
  3734. swait()
  3735. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3736. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3737. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  3738. 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)),.1)
  3739. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3740. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3741. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
  3742. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
  3743. end
  3744. local Overed = false
  3745. CameraEnshaking(2,20)
  3746. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3747. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3748. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3749. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3750. local orb = Instance.new("Part", char)
  3751. orb.Anchored = true
  3752. orb.BrickColor = BrickColor.new("Toothpaste")
  3753. orb.CanCollide = false
  3754. orb.FormFactor = 3
  3755. orb.Name = "Remenant"
  3756. orb.Material = "Neon"
  3757. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3758. orb.Size = Vector3.new(1, 1, 1)
  3759. orb.Transparency = 1
  3760. orb.TopSurface = 0
  3761. orb.BottomSurface = 0
  3762. hum.WalkSpeed = storehumanoidWS
  3763. coroutine.resume(coroutine.create(function()
  3764. for i = 0, 9 do
  3765. swait(10)
  3766. local lb = Instance.new("Part")
  3767. lb.Color = MAINRUINCOLOR.Color
  3768. lb.CanCollide = false
  3769. lb.Material = "Neon"
  3770. lb.Anchored = true
  3771. lb.TopSurface = 0
  3772. lb.BottomSurface = 0
  3773. lb.Transparency = 0
  3774. lb.Size = vt(1,1,1)
  3775. lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15)))
  3776. lb.Anchored = false
  3777. lb.Parent = char
  3778. local thingery = Instance.new("SpecialMesh",lb)
  3779. thingery.MeshType = "Sphere"
  3780. thingery.Scale = vt(20,20,20)
  3781. game:GetService("Debris"):AddItem(lb, 10)
  3782. local bv = Instance.new("BodyVelocity")
  3783. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3784. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3785. bv.Parent = lb
  3786. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3787. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3788. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3789. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3790. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3791. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3792. local hitted = false
  3793. coroutine.resume(coroutine.create(function()
  3794. while true do
  3795. swait(1)
  3796. if lb.Parent ~= nil and hitted == false then
  3797. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
  3798. elseif lb.Parent == nil then
  3799. break
  3800. end
  3801. end
  3802. end))
  3803.  
  3804. game:GetService("Debris"):AddItem(a, 0.1)
  3805.  
  3806. coroutine.resume(coroutine.create(function()
  3807. swait(1)
  3808. lb.Touched:connect(function(hit)
  3809. if hitted == false then
  3810. hitted = true
  3811. lb.Transparency = 1
  3812. lb.Anchored = true
  3813. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3814. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3815. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3816. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3817. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3818. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3819. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3820. CameraEnshaking(1,5)
  3821. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3822. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3823. for i = 0, 9 do
  3824. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3825. end
  3826. for i = 0, 49 do
  3827. swait()
  3828. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3829. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  3830. end
  3831. end
  3832. end)
  3833. end))
  3834. end
  3835. Overed = true
  3836. orb:Destroy()
  3837. end))
  3838.  
  3839. attack = false
  3840. end
  3841.  
  3842. function StarfallEX()
  3843. attack = true
  3844. hum.WalkSpeed = 0
  3845. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
  3846. for i = 0, 10, 0.1 do
  3847. swait()
  3848. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3849. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3850. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  3851. 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)),.1)
  3852. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3853. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3854. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
  3855. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
  3856. end
  3857. local Overed = false
  3858. CameraEnshaking(2,20)
  3859. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3860. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3861. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  3862. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
  3863. local orb = Instance.new("Part", char)
  3864. orb.Anchored = true
  3865. orb.BrickColor = BrickColor.new("Toothpaste")
  3866. orb.CanCollide = false
  3867. orb.FormFactor = 3
  3868. orb.Name = "Remenant"
  3869. orb.Material = "Neon"
  3870. orb.CFrame = root.CFrame*CFrame.new(0,250,0)
  3871. orb.Size = Vector3.new(1, 1, 1)
  3872. orb.Transparency = 1
  3873. orb.TopSurface = 0
  3874. orb.BottomSurface = 0
  3875. hum.WalkSpeed = storehumanoidWS
  3876. coroutine.resume(coroutine.create(function()
  3877. for i = 0, 4 do
  3878. swait(15)
  3879. local lb = Instance.new("Part")
  3880. lb.Color = MAINRUINCOLOR.Color
  3881. lb.CanCollide = false
  3882. lb.Material = "Neon"
  3883. lb.Anchored = true
  3884. lb.TopSurface = 0
  3885. lb.BottomSurface = 0
  3886. lb.Transparency = 0
  3887. lb.Size = vt(1,1,1)
  3888. lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15)))
  3889. lb.Anchored = false
  3890. lb.Parent = char
  3891. local thingery = Instance.new("SpecialMesh",lb)
  3892. thingery.MeshType = "Sphere"
  3893. thingery.Scale = vt(50,50,50)
  3894. game:GetService("Debris"):AddItem(lb, 10)
  3895. local bv = Instance.new("BodyVelocity")
  3896. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3897. bv.velocity = lb.CFrame.lookVector*math.random(50,420)
  3898. bv.Parent = lb
  3899. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3900. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3901. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
  3902. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
  3903. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
  3904. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
  3905. local hitted = false
  3906. coroutine.resume(coroutine.create(function()
  3907. while true do
  3908. swait(1)
  3909. if lb.Parent ~= nil and hitted == false then
  3910. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),25,25,25,0.25,MAINRUINCOLOR,-2)
  3911. elseif lb.Parent == nil then
  3912. break
  3913. end
  3914. end
  3915. end))
  3916.  
  3917. game:GetService("Debris"):AddItem(a, 0.1)
  3918.  
  3919. coroutine.resume(coroutine.create(function()
  3920. swait(1)
  3921. lb.Touched:connect(function(hit)
  3922. if hitted == false then
  3923. hitted = true
  3924. lb.Transparency = 1
  3925. lb.Anchored = true
  3926. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
  3927. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
  3928. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
  3929. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
  3930. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
  3931. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
  3932. MagniDamage(lb, 50, 60,99, 0, "Normal")
  3933. CameraEnshaking(1,5)
  3934. sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
  3935. sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
  3936. for i = 0, 9 do
  3937. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,100,-0.1,MAINRUINCOLOR,0)
  3938. end
  3939. for i = 0, 99 do
  3940. swait()
  3941. MagniDamage(lb, 30, 6,18, 0, "Normal")
  3942. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),32,32,32,0.32,MAINRUINCOLOR,0)
  3943. end
  3944. end
  3945. end)
  3946. end))
  3947. end
  3948. Overed = true
  3949. orb:Destroy()
  3950. end))
  3951.  
  3952. attack = false
  3953. end
  3954.  
  3955. function DivineBlast()
  3956. attack = true
  3957. hum.WalkSpeed = 0
  3958. local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
  3959. elocacenter.Anchored = true
  3960. elocacenter.CFrame = sorb.CFrame
  3961. local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3962. eloca1.Anchored = true
  3963. eloca1.CFrame = elocacenter.CFrame
  3964. local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3965. eloca2.Anchored = true
  3966. eloca2.CFrame = elocacenter.CFrame
  3967. local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3968. eloca3.Anchored = true
  3969. eloca3.CFrame = elocacenter.CFrame
  3970. local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
  3971. eloca4.Anchored = true
  3972. eloca4.CFrame = elocacenter.CFrame
  3973. local lookavec = 0
  3974. local speeds = 0
  3975. CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
  3976. for i = 0, 3, 0.1 do
  3977. swait()
  3978. ---
  3979. lookavec = lookavec + 0.1
  3980. speeds = speeds + 10
  3981. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3982. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3983. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3984.  
  3985. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3986. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3987.  
  3988. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3989. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3990.  
  3991. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3992. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  3993. ---
  3994. root.CFrame = FaceMouse()[1]
  3995. 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(0 + 1 * math.cos(sine / 34))),.1)
  3996. 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(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  3997. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3998. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  3999. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4000. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  4001. end
  4002. for i = 0, 3, 0.1 do
  4003. swait()
  4004. ---
  4005. speeds = speeds + 10
  4006. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4007. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4008. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4009.  
  4010. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4011. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4012.  
  4013. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4014. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4015.  
  4016. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4017. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4018. ---
  4019. root.CFrame = FaceMouse()[1]
  4020. 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(0 + 1 * math.cos(sine / 34))),.1)
  4021. 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(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4022. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4023. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  4024. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
  4025. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  4026. end
  4027. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
  4028. for i = 0, 3, 0.1 do
  4029. swait()
  4030. ---
  4031. speeds = speeds + 10
  4032. elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4033. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4034. PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4035.  
  4036. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4037. PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4038.  
  4039. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4040. PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4041.  
  4042. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4043. PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
  4044. ---
  4045. root.CFrame = FaceMouse()[1]
  4046. 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(0 + 1 * math.cos(sine / 34))),.1)
  4047. 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(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4048. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(40)),.1)
  4049. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(-40)),.1)
  4050. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
  4051. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  4052. end
  4053. coroutine.resume(coroutine.create(function()
  4054. local a = Instance.new("Part",Character)
  4055. a.Name = "Direction"
  4056. a.Anchored = true
  4057. a.BrickColor = bc("White")
  4058. a.Material = "Neon"
  4059. a.Transparency = 0
  4060. a.Shape = "Cylinder"
  4061. a.CanCollide = false
  4062. local a2 = Instance.new("Part",Character)
  4063. a2.Name = "Direction"
  4064. a2.Anchored = true
  4065. a2.BrickColor = bc("Bright yellow")
  4066. a2.Material = "Neon"
  4067. a2.Transparency = 0
  4068. a2.Shape = "Cylinder"
  4069. a2.CanCollide = false
  4070. local b = Instance.new("Part",Character)
  4071. b.Name = "HitDirect"
  4072. b.Anchored = true
  4073. b.BrickColor = bc("Cool yellow")
  4074. b.Material = "Neon"
  4075. b.Transparency = 1
  4076. b.CanCollide = false
  4077. local ray = Ray.new(
  4078. elocacenter.CFrame.p, -- origin
  4079. (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
  4080. )
  4081. local ignore = Character
  4082. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4083. a.BottomSurface = 10
  4084. a.TopSurface = 10
  4085. a2.BottomSurface = 10
  4086. a2.TopSurface = 10
  4087. local distance = (elocacenter.CFrame.p - position).magnitude
  4088. a.Size = Vector3.new(distance, 1, 1)
  4089. a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4090. a2.Size = Vector3.new(distance, 1, 1)
  4091. a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4092. b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4093. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4094. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4095. game:GetService("Debris"):AddItem(a, 10)
  4096. game:GetService("Debris"):AddItem(a2, 10)
  4097. game:GetService("Debris"):AddItem(b, 10)
  4098. local msh = Instance.new("SpecialMesh",a)
  4099. msh.MeshType = "Cylinder"
  4100. msh.Scale = vt(1,2,2)
  4101. local msh2 = Instance.new("SpecialMesh",a2)
  4102. msh2.MeshType = "Cylinder"
  4103. msh2.Scale = vt(1,2.5,2.5)
  4104. CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
  4105. coroutine.resume(coroutine.create(function()
  4106. for i = 0,10,0.1 do
  4107. swait()
  4108. msh.Scale = msh.Scale + vt(0,0.05,0.05)
  4109. a.Transparency = a.Transparency + 0.025
  4110. msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
  4111. a2.Transparency = a2.Transparency + 0.05
  4112. end
  4113. a:Destroy()
  4114. a2:Destroy()
  4115. end))
  4116. CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
  4117. CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
  4118. CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
  4119. CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
  4120. CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
  4121. CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
  4122. MagniDamage(b, 25, 40,65, 0, "Normal")
  4123. for i = 0, 49 do
  4124. PixelBlock(2,math.random(10,20),"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.04,BrickColor.new("Bright yellow"),0)
  4125. PixelBlock(1,math.random(1,10),"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Bright yellow"),0)
  4126. end
  4127. sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
  4128. sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
  4129. sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4130. sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4131. sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4132. sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
  4133. end))
  4134. game:GetService("Debris"):AddItem(elocacenter, 5)
  4135. hum.WalkSpeed = storehumanoidWS
  4136. attack = false
  4137. end
  4138.  
  4139. function StarDivision()
  4140. attack = true
  4141. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4142. for i = 0, 2, 0.1 do
  4143. swait()
  4144. 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(0 + 1 * math.cos(sine / 34))),.1)
  4145. 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(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4146. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4147. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  4148. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4149. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  4150. end
  4151. local orb = Instance.new("Part", char)
  4152. orb.BrickColor = MAINRUINCOLOR
  4153. orb.CanCollide = false
  4154. orb.FormFactor = 3
  4155. orb.Name = "Ring"
  4156. orb.Material = "Neon"
  4157. orb.Size = Vector3.new(1, 1, 1)
  4158. orb.Transparency = 0
  4159. orb.TopSurface = 0
  4160. orb.BottomSurface = 0
  4161. local orbm = Instance.new("SpecialMesh", orb)
  4162. orbm.MeshType = "Sphere"
  4163. orbm.Name = "SizeMesh"
  4164. orbm.Scale = vt(2,2,2)
  4165. local a = Instance.new("Part",workspace)
  4166. a.Name = "Direction"
  4167. a.Anchored = true
  4168. a.BrickColor = bc("Bright red")
  4169. a.Material = "Neon"
  4170. a.Transparency = 1
  4171. a.CanCollide = false
  4172. local ray = Ray.new(
  4173. sorb.CFrame.p, -- origin
  4174. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4175. )
  4176. local ignore = sorb
  4177. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4178. a.BottomSurface = 10
  4179. a.TopSurface = 10
  4180. local distance = (sorb.CFrame.p - position).magnitude
  4181. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4182. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4183. orb.CFrame = a.CFrame
  4184. a:Destroy()
  4185. local bv = Instance.new("BodyVelocity")
  4186. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4187. bv.velocity = orb.CFrame.lookVector*100
  4188. bv.Parent = orb
  4189. local hitted = false
  4190. game:GetService("Debris"):AddItem(orb, 10)
  4191. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4192. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4193. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4194. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4195. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4196. coroutine.resume(coroutine.create(function()
  4197. while true do
  4198. swait(1)
  4199. if orb.Parent ~= nil and hitted == false then
  4200. PixelBlockNeg(1,math.random(1,2),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,1,0.02,MAINRUINCOLOR,-2)
  4201. elseif orb.Parent == nil then
  4202. break
  4203. end
  4204. end
  4205. end))
  4206. coroutine.resume(coroutine.create(function()
  4207. swait(1)
  4208. orb.Touched:connect(function(hit)
  4209. if hitted == false then
  4210. hitted = true
  4211. game:GetService("Debris"):AddItem(orb, 5)
  4212. orb.Transparency = 1
  4213. orb.Anchored = true
  4214. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4215. elocacenter.Anchored = true
  4216. elocacenter.CFrame = orb.CFrame
  4217. elocacenter.Orientation = vt(0,0,0)
  4218. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4219. eloca1.Anchored = true
  4220. eloca1.CFrame = elocacenter.CFrame
  4221. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4222. eloca2.Anchored = true
  4223. eloca2.CFrame = elocacenter.CFrame
  4224. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4225. eloca3.Anchored = true
  4226. eloca3.CFrame = elocacenter.CFrame
  4227. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4228. eloca4.Anchored = true
  4229. eloca4.CFrame = elocacenter.CFrame
  4230. local lookavec = 0
  4231. local speeds = 0
  4232. CameraEnshaking(1,1)
  4233. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4234. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4235. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4236. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4237. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4238. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4239. for i = 0, 99 do
  4240. swait()
  4241. lookavec = lookavec + 1
  4242. speeds = speeds + 0.1
  4243. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4244. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4245. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4246.  
  4247. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4248. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4249.  
  4250. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4251. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4252.  
  4253. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4254. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4255. end
  4256.  
  4257. for i = 0, 149 do
  4258. swait()
  4259. speeds = speeds + 0.1
  4260. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4261. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4262. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4263.  
  4264. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4265. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4266.  
  4267. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4268. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4269.  
  4270. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4271. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4272. end
  4273. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4274. if v:FindFirstChild('Head') then
  4275. dmg(v)
  4276. end
  4277. end
  4278. CameraEnshaking(7,30)
  4279. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4280. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4281. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4282. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4283. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4284. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4285. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4286. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4287. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4288. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4289. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4290. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4291. for i = 0, 24 do
  4292. sphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0)
  4293. sphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0)
  4294. sphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0)
  4295. sphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0)
  4296. end
  4297. coroutine.resume(coroutine.create(function()
  4298. for i = 0, 499 do
  4299. swait(1)
  4300. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4301. PixelBlockNeg(2,math.random(1,10),"Add",elocacenter.CFrame*CFrame.new(math.random(-75,75),0,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-30,30)),math.rad(math.random(-30,30)),math.rad(math.random(-30,30))),15,15,15,0.15,MAINRUINCOLOR,-5)
  4302. end
  4303. elocacenter:Destroy()
  4304. eloca1:Destroy()
  4305. eloca2:Destroy()
  4306. eloca3:Destroy()
  4307. eloca4:Destroy()
  4308. end))
  4309. end
  4310. end)
  4311. end))
  4312. attack = false
  4313. end
  4314.  
  4315.  
  4316. function THE_TRUE_POWER_OF_VIOLENCE()
  4317. attack = true
  4318. hum.WalkSpeed = 0
  4319. CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 2.5,0.7)
  4320. for i = 0, 10, 0.1 do
  4321. swait()
  4322. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4323. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  4324. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.4)
  4325. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(40)),.4)
  4326. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  4327. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4328. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  4329. end
  4330. local orb = Instance.new("Part", char)
  4331. orb.BrickColor = MAINRUINCOLOR
  4332. orb.CanCollide = false
  4333. orb.FormFactor = 3
  4334. orb.Name = "Ring"
  4335. orb.Material = "Neon"
  4336. orb.Size = Vector3.new(1, 1, 1)
  4337. orb.Transparency = 0
  4338. orb.TopSurface = 0
  4339. orb.BottomSurface = 0
  4340. orb.CFrame = sorb.CFrame
  4341. local orbm = Instance.new("SpecialMesh", orb)
  4342. orbm.MeshType = "Sphere"
  4343. orbm.Name = "SizeMesh"
  4344. orbm.Scale = vt(0,0,0)
  4345. local sbs = Instance.new("BodyPosition", orb)
  4346. sbs.P = 3000
  4347. sbs.D = 1000
  4348. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4349. sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
  4350. CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
  4351. sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4352. sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4353. sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4354. sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4355. sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4356. for i = 0, 10, 0.1 do
  4357. swait()
  4358. PixelBlockNeg(1,0.01,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),6,6,6,0.12,MAINRUINCOLOR,0)
  4359. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.6)
  4360. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.6)
  4361. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6)
  4362. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4363. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4364. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6)
  4365. end
  4366. orb.Anchored = true
  4367. local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4368. elocacenter.Anchored = true
  4369. elocacenter.CFrame = orb.CFrame
  4370. elocacenter.Orientation = vt(0,0,0)
  4371. local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4372. eloca1.Anchored = true
  4373. eloca1.CFrame = elocacenter.CFrame
  4374. local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4375. eloca2.Anchored = true
  4376. eloca2.CFrame = elocacenter.CFrame
  4377. local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4378. eloca3.Anchored = true
  4379. eloca3.CFrame = elocacenter.CFrame
  4380. local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
  4381. eloca4.Anchored = true
  4382. eloca4.CFrame = elocacenter.CFrame
  4383. local lookavec = 0
  4384. local speeds = 0
  4385. CameraEnshaking(1,1)
  4386. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
  4387. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
  4388. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
  4389. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
  4390. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4391. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4392. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4393. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4394. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4395. for i = 0, 99 do
  4396. swait()
  4397. lookavec = lookavec + 2.5
  4398. speeds = speeds + 0.25
  4399. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4400. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4401. PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4402.  
  4403. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4404. PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4405.  
  4406. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4407. PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4408.  
  4409. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4410. PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4411. end
  4412.  
  4413. for i = 0, 149 do
  4414. swait()
  4415. speeds = speeds + 0.25
  4416. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4417. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4418. PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4419.  
  4420. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4421. PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4422.  
  4423. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4424. PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4425.  
  4426. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4427. PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4428. end
  4429. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
  4430. for i = 0, 99 do
  4431. swait()
  4432. lookavec = lookavec - 2.5
  4433. speeds = speeds + 0.25
  4434. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4435. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4436. PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4437.  
  4438. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4439. PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4440.  
  4441. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4442. PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4443.  
  4444. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4445. PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4446. end
  4447. local scaled = 0.1*75
  4448. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
  4449. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
  4450. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
  4451. CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
  4452. CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
  4453. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4454. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4455. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4456. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4457. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4458. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4459. for i = 0, 10, 0.1 do
  4460. swait()
  4461. scaled = scaled - 0.001*75
  4462. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4463. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4464. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.6)
  4465. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.6)
  4466. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6)
  4467. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
  4468. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
  4469. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6)
  4470. end
  4471. for x = 0, 4 do
  4472. for i = 0, 9 do
  4473. sphereMK(0.5,0,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,100000,0,MAINRUINCOLOR,0)
  4474. end
  4475. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
  4476. CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
  4477. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4478. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4479. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4480. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4481. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4482. for i = 0, 5, 0.1 do
  4483. swait()
  4484. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4485. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4486. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  4487. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  4488. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  4489. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
  4490. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
  4491. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
  4492. end
  4493. end
  4494. local speedearn = 0
  4495. CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
  4496. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
  4497. CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
  4498. for i = 0, 30, 0.1 do
  4499. swait()
  4500. scaled = scaled - 0.001*75/10
  4501. speedearn = speedearn + 0.5
  4502. for i = 0, 4 do
  4503. sphereMK(1+speedearn,speedearn,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4504. end
  4505. PixelBlock(1,speedearn,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1*speedearn/10,1*speedearn/10,1*speedearn/10,0.02*speedearn/10,MAINRUINCOLOR,0)
  4506. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  4507. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4508. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  4509. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.6)
  4510. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.6)
  4511. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  4512. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
  4513. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
  4514. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
  4515. end
  4516. orb.Transparency = 1
  4517. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
  4518. if v:FindFirstChild('Head') then
  4519. dmg(v)
  4520. end
  4521. end
  4522. CameraEnshaking(7,30)
  4523. MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
  4524. CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
  4525. CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
  4526. CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
  4527. CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
  4528. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4529. CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
  4530. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4531. CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
  4532. CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
  4533. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
  4534. CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
  4535. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
  4536. CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
  4537. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4538. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4539. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4540. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4541. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  4542. for i = 0, 99 do
  4543. PixelBlock(1,math.random(50,1000),"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),20,20,20,0.4,MAINRUINCOLOR,0)
  4544. PixelBlock(2,math.random(250,1000),"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,10,0.2,MAINRUINCOLOR,0)
  4545. end
  4546. for i = 0, 24 do
  4547. sphereMK(0.5,0,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,100000,0,MAINRUINCOLOR,0)
  4548. sphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0)
  4549. sphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0)
  4550. sphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0)
  4551. sphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0)
  4552. end
  4553. game:GetService("Debris"):AddItem(orb, 10)
  4554. hum.WalkSpeed = storehumanoidWS
  4555. attack = false
  4556. end
  4557.  
  4558.  
  4559. function ViolentRing()
  4560. attack = true
  4561. CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
  4562. for i = 0, 2, 0.1 do
  4563. swait()
  4564. local snap = math.random(1,10)
  4565. if snap == 1 then
  4566. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(-50 + math.random(-10,10))),1)
  4567. end
  4568. PixelBlockX(5,0.5,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0)
  4569. PixelBlockNeg(5,0.5,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0)
  4570. PixelBlockX(5,0.25,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.65,0.65,0.65,0.0065,MAINRUINCOLOR,0)
  4571. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.6)
  4572. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.6)
  4573. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
  4574. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
  4575. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
  4576. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6)
  4577. RootPart.CFrame = FaceMouse()[1]
  4578. end
  4579. local orb = Instance.new("Part", char)
  4580. orb.BrickColor = MAINRUINCOLOR
  4581. orb.CanCollide = false
  4582. orb.FormFactor = 3
  4583. orb.Name = "Ring"
  4584. orb.Material = "Neon"
  4585. orb.Size = Vector3.new(1, 1, 1)
  4586. orb.Transparency = 0
  4587. orb.TopSurface = 0
  4588. orb.BottomSurface = 0
  4589. local orbm = Instance.new("SpecialMesh", orb)
  4590. orbm.MeshType = "Sphere"
  4591. orbm.Name = "SizeMesh"
  4592. orbm.Scale = vt(2,2,2)
  4593. orb.CFrame = mouse.Hit
  4594. local bv = Instance.new("BodyVelocity")
  4595. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4596. bv.velocity = orb.CFrame.lookVector*100
  4597. bv.Parent = orb
  4598. local hitted = false
  4599. coroutine.resume(coroutine.create(function()
  4600. game:GetService("Debris"):AddItem(orb, 5)
  4601. orb.Transparency = 1
  4602. orb.Anchored = true
  4603. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4604. elocacenter.Anchored = true
  4605. elocacenter.CFrame = orb.CFrame
  4606. elocacenter.Orientation = vt(0,0,0)
  4607. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4608. eloca1.Anchored = true
  4609. eloca1.CFrame = elocacenter.CFrame
  4610. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4611. eloca2.Anchored = true
  4612. eloca2.CFrame = elocacenter.CFrame
  4613. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4614. eloca3.Anchored = true
  4615. eloca3.CFrame = elocacenter.CFrame
  4616. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4617. eloca4.Anchored = true
  4618. eloca4.CFrame = elocacenter.CFrame
  4619. local lookavec = 0
  4620. local speeds = 0
  4621. CameraEnshaking(1,1)
  4622. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4623. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4624. sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4625. sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4626. sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4627. sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4628. for i = 0, 24 do
  4629. swait()
  4630. lookavec = lookavec + 3.5
  4631. speeds = speeds + 1
  4632. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4633. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4634. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4635.  
  4636. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4637. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4638.  
  4639. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4640. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4641.  
  4642. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4643. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4644. end
  4645.  
  4646. local risen = 0
  4647. for i = 0, 49 do
  4648. swait()
  4649. risen = risen + 0.05
  4650. speeds = speeds + 0.1
  4651. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4652. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4653. PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4654.  
  4655. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4656. PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4657.  
  4658. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4659. PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4660.  
  4661. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4662. PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  4663. end
  4664. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
  4665. if v:FindFirstChild('Head') then
  4666. dmg(v)
  4667. end
  4668. end
  4669. CameraEnshaking(4,10)
  4670. MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
  4671. CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
  4672. CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
  4673. CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
  4674. CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
  4675. CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
  4676. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
  4677. sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
  4678. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4679. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4680. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4681. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4682. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4683. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
  4684. for i = 0, 24 do
  4685. sphereMK(2,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.25,MAINRUINCOLOR,0)
  4686. sphereMK(4,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0)
  4687. sphereMK(6,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0)
  4688. sphereMK(8,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0)
  4689. end
  4690. coroutine.resume(coroutine.create(function()
  4691. wait(10)
  4692. elocacenter:Destroy()
  4693. eloca1:Destroy()
  4694. eloca2:Destroy()
  4695. eloca3:Destroy()
  4696. eloca4:Destroy()
  4697. end))
  4698. end))
  4699. attack = false
  4700. end
  4701.  
  4702. function UniversalCollapse()
  4703. attack = true
  4704. local speedearn = 0
  4705. hum.WalkSpeed = 0
  4706. local sbs = Instance.new("BodyPosition", root)
  4707. sbs.P = 3000
  4708. sbs.D = 1000
  4709. sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  4710. sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
  4711. CFuncs["LongSound"].Create("rbxassetid://489657591", char, 10, 1)
  4712. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4713. for i = 0, 110, 0.1 do
  4714. swait()
  4715. speedearn = speedearn + 0.1
  4716. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4717. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4718. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4719. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4720. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4721. sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
  4722. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  4723. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  4724. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4725. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4726. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  4727. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  4728. end
  4729. CameraEnshaking(5,50)
  4730. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4731. for i = 0, 2 do
  4732. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4733. CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
  4734. CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
  4735. CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
  4736. end
  4737. for i = 0, 49 do
  4738. sphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0)
  4739. sphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0)
  4740. sphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0)
  4741. sphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0)
  4742. end
  4743. sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4744. sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4745. sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4746. sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4747. sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4748. sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
  4749. sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4750. sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4751. sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4752. sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4753. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4754. sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4755. for i = 0, 99 do
  4756. PixelBlock(1,math.random(50,1000),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),20,20,20,0.4,MAINRUINCOLOR,0)
  4757. PixelBlock(2,math.random(250,1000),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,10,0.2,MAINRUINCOLOR,0)
  4758. end
  4759. for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
  4760. if v:FindFirstChild('Head') then
  4761. dmg(v)
  4762. end
  4763. end
  4764. MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
  4765. sbs:Destroy()
  4766. hum.WalkSpeed = storehumanoidWS
  4767. attack = false
  4768. end
  4769.  
  4770.  
  4771. function ChaosEND()
  4772. attack = true
  4773. local speedearn = 0
  4774. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.5)
  4775. for i = 0, 15, 0.1 do
  4776. swait()
  4777. speedearn = speedearn + 0.25
  4778. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4779. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4780. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4781. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4782. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
  4783. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  4784. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  4785. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4786. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4787. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4788. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4789. end
  4790. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  4791. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4792. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 0.75)
  4793. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 0.5)
  4794. CameraEnshaking(5,25)
  4795. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4796. if v:FindFirstChild('Head') then
  4797. dmg(v)
  4798. end
  4799. end
  4800. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4801. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4802. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4803. for i = 0, 3, 0.1 do
  4804. swait()
  4805. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4806. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4807. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4808. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0)
  4809. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  4810. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  4811. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4812. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4813. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4814. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4815. end
  4816. attack = false
  4817. end
  4818.  
  4819. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4820. local orb = Instance.new("Part", char)
  4821. orb.Anchored = true
  4822. orb.BrickColor = color
  4823. orb.CanCollide = false
  4824. orb.FormFactor = 3
  4825. orb.Name = "Ring"
  4826. orb.Material = "Neon"
  4827. orb.Size = Vector3.new(1, 1, 1)
  4828. orb.Transparency = 0
  4829. orb.TopSurface = 0
  4830. orb.BottomSurface = 0
  4831. local orbm = Instance.new("SpecialMesh", orb)
  4832. orbm.MeshType = "Sphere"
  4833. orb.CFrame = positted
  4834. orbm.Name = "SizeMesh"
  4835. orbm.Scale = vt(1,1,1)
  4836. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4837. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4838. --[[for i = 0, 2 do
  4839. sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
  4840. end]]--
  4841. coroutine.resume(coroutine.create(function()
  4842. wait(timer)
  4843. CameraEnshaking(3,ShakePower)
  4844. orb.Transparency = 1
  4845. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4846. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4847. --[[for i = 0, 4 do
  4848. sphereMK(5,0.15*MagniBoost,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0)
  4849. end]]--
  4850. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4851. wait(3)
  4852. orb:Destroy()
  4853. end))
  4854. end
  4855.  
  4856. function orb_spawn(positted,timer)
  4857. local randomcol = math.random(1,2)
  4858. local orb = Instance.new("Part", char)
  4859. orb.Anchored = true
  4860. if randomcol == 1 then
  4861. orb.BrickColor = BrickColor.new("White")
  4862. elseif randomcol == 2 then
  4863. orb.BrickColor = BrickColor.new("Really black")
  4864. end
  4865. orb.CanCollide = false
  4866. orb.FormFactor = 3
  4867. orb.Name = "Ring"
  4868. orb.Material = "Neon"
  4869. orb.Size = Vector3.new(1, 1, 1)
  4870. orb.Transparency = 0
  4871. orb.TopSurface = 0
  4872. orb.BottomSurface = 0
  4873. local orbm = Instance.new("SpecialMesh", orb)
  4874. orbm.MeshType = "Sphere"
  4875. orb.CFrame = positted
  4876. orbm.Name = "SizeMesh"
  4877. orbm.Scale = vt(1,1,1)
  4878. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4879. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4880. for i = 0, 2 do
  4881. sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
  4882. end
  4883. coroutine.resume(coroutine.create(function()
  4884. wait(timer)
  4885. CameraEnshaking(3,2)
  4886. orb.Transparency = 1
  4887. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4888. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4889. for i = 0, 4 do
  4890. sphereMK(5,0.65,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0)
  4891. end
  4892. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4893. wait(3)
  4894. orb:Destroy()
  4895. end))
  4896. end
  4897.  
  4898. function scattercorrupt()
  4899. attack = true
  4900. local rot = 0
  4901. local randomrotations = math.random(1,2)
  4902. local lookv = 2.5
  4903. local power = 5
  4904. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4905. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4906. for i = 0, 9 do
  4907. sphereMK(1,1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,45,-0.1,BrickColor.new("Royal purple"),0)
  4908. end
  4909. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  4910. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  4911. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  4912. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  4913. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  4914. local hite = Instance.new("Part", char)
  4915. hite.Anchored = true
  4916. hite.CanCollide = false
  4917. hite.FormFactor = 3
  4918. hite.Name = "Ring"
  4919. hite.Material = "Neon"
  4920. hite.Size = Vector3.new(1, 1, 1)
  4921. hite.Transparency = 1
  4922. hite.TopSurface = 0
  4923. hite.BottomSurface = 0
  4924. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4925. local rem = Instance.new("Part", char)
  4926. rem.Anchored = true
  4927. rem.CanCollide = false
  4928. rem.FormFactor = 3
  4929. rem.Name = "Ring"
  4930. rem.Material = "Neon"
  4931. rem.Size = Vector3.new(1, 1, 1)
  4932. rem.Transparency = 1
  4933. rem.TopSurface = 0
  4934. rem.BottomSurface = 0
  4935. rem.CFrame = hite.CFrame
  4936. local rem2 = rem:Clone()
  4937. rem2.Parent = char
  4938. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4939. local rem3 = rem:Clone()
  4940. rem3.Parent = char
  4941. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4942. local rem4 = rem:Clone()
  4943. rem4.Parent = char
  4944. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4945. hite:Destroy()
  4946. coroutine.resume(coroutine.create(function()
  4947. for i = 0, 24 do
  4948. swait(1)
  4949. if randomrotations == 1 then
  4950. rot = rot + 1
  4951. elseif randomrotations == 2 then
  4952. rot = rot - 1
  4953. end
  4954. power = power + 0.5
  4955. lookv = lookv + 7.5
  4956. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4957. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4958. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4959. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4960. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4961. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4962. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4963. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4964. end
  4965. end))
  4966. attack = false
  4967. end
  4968. function yinyangi()
  4969. attack = true
  4970. for i = 0, 2, 0.1 do
  4971. swait()
  4972. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2)
  4973. 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(20)),.2)
  4974. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2)
  4975. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4976. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4977. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4978. end
  4979. local bv = Instance.new("BodyVelocity")
  4980. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4981. bv.velocity = root.CFrame.lookVector*175
  4982. bv.Parent = root
  4983. for Rotations = 0, 9 do
  4984. for i = 0, 1, 0.5 do
  4985. swait()
  4986. bv.velocity = root.CFrame.lookVector*175
  4987. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4988. 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(20)),.5)
  4989. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(90)),.5)
  4990. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4991. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4992. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4993. end
  4994. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4995. for i = 0, 1, 0.5 do
  4996. swait()
  4997. bv.velocity = root.CFrame.lookVector*175
  4998. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4999. 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(20)),.5)
  5000. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(180)),.5)
  5001. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5002. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5003. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5004. end
  5005. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5006. for i = 0, 1, 0.5 do
  5007. swait()
  5008. bv.velocity = root.CFrame.lookVector*175
  5009. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  5010. 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(20)),.5)
  5011. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(270)),.5)
  5012. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5013. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5014. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5015. end
  5016. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5017. for i = 0, 1, 0.5 do
  5018. swait()
  5019. bv.velocity = root.CFrame.lookVector*175
  5020. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  5021. 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(20)),.5)
  5022. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(360)),.5)
  5023. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  5024. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  5025. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  5026. end
  5027. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  5028. end
  5029. bv:Destroy()
  5030. attack = false
  5031. end
  5032.  
  5033. function createBGCircle(size,parent,color)
  5034. local bgui = Instance.new("BillboardGui",parent)
  5035. bgui.Size = UDim2.new(size, 0, size, 0)
  5036. local imgc = Instance.new("ImageLabel",bgui)
  5037. imgc.BackgroundTransparency = 1
  5038. imgc.ImageTransparency = 0
  5039. imgc.Size = UDim2.new(1,0,1,0)
  5040. imgc.Image = "rbxassetid://997291547" --997291547,521073910
  5041. imgc.ImageColor3 = color
  5042. return bgui,imgc
  5043. end
  5044.  
  5045. function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
  5046. local bgui,imgc = createBGCircle(size,guipar,color)
  5047. bgui.AlwaysOnTop = true
  5048. imgc.Image = "rbxassetid://" ..img
  5049. local rrot = math.random(1,2)
  5050. CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
  5051. coroutine.resume(coroutine.create(function()
  5052. for i = 0, 24*delay do
  5053. swait()
  5054. if rotationenabled == true then
  5055. if rrot == 1 then
  5056. imgc.Rotation = imgc.Rotation + rotsp
  5057. elseif rrot == 2 then
  5058. imgc.Rotation = imgc.Rotation - rotsp
  5059. end
  5060. end
  5061. bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
  5062. imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
  5063. end
  5064. bgui:Destroy()
  5065. end))
  5066. end
  5067. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
  5068. for i, v in pairs(mw2:GetChildren()) do
  5069. if v:IsA("Part") then
  5070. v.BrickColor = one
  5071. v.Material = "Neon"
  5072. end
  5073. end
  5074. CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
  5075. symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
  5076. symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
  5077. tr1.Color = ColorSequence.new(one.Color)
  5078. tr2.Color = ColorSequence.new(one.Color)
  5079. tr3.Color = ColorSequence.new(one.Color)
  5080. for i, v in pairs(mw1:GetChildren()) do
  5081. if v:IsA("Part") then
  5082. if secondaryenabled == false then
  5083. v.Transparency = 1
  5084. elseif secondaryenabled == true then
  5085. v.Transparency = 0
  5086. end
  5087. v.BrickColor = two
  5088. v.Material = "Neon"
  5089. end
  5090. end
  5091. if secondaryenabled == false then
  5092. tl1.Enabled = false
  5093. tl2.Enabled = false
  5094. tl3.Enabled = false
  5095. elseif secondaryenabled == true then
  5096. tl1.Enabled = true
  5097. tl2.Enabled = true
  5098. tl3.Enabled = true
  5099. end
  5100. tl1.Color = ColorSequence.new(two.Color)
  5101. tl2.Color = ColorSequence.new(two.Color)
  5102. tl3.Color = ColorSequence.new(two.Color)
  5103. for i, v in pairs(m:GetChildren()) do
  5104. if v:IsA("Part") then
  5105. v.BrickColor = three
  5106. v.Material = "Ice"
  5107. end
  5108. end
  5109. for i, v in pairs(m2:GetChildren()) do
  5110. if v:IsA("Part") then
  5111. v.BrickColor = four
  5112. v.Material = "Ice"
  5113. end
  5114. end
  5115. for i, v in pairs(m3:GetChildren()) do
  5116. if v:IsA("Part") then
  5117. v.BrickColor = five
  5118. v.Material = "Neon"
  5119. end
  5120. end
  5121. for i, v in pairs(extrawingmod1:GetChildren()) do
  5122. if v:IsA("Part") then
  5123. v.Transparency = exonetran
  5124. v.BrickColor = exone
  5125. v.Material = "Neon"
  5126. end
  5127. end
  5128. for i, v in pairs(extrawingmod2:GetChildren()) do
  5129. if v:IsA("Part") then
  5130. v.Transparency = extwotran
  5131. v.BrickColor = extwo
  5132. v.Material = "Neon"
  5133. end
  5134. end
  5135. end
  5136.  
  5137.  
  5138. function normalmog()
  5139. attack = true
  5140. hum.WalkSpeed = 0
  5141. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
  5142. for i = 0,6,0.1 do
  5143. swait()
  5144. sphereMK(2.5,-1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3.5,3.5,45,-0.035,MAINRUINCOLOR,100)
  5145. slash(math.random(30,60)/10,5,true,"Round","Add","In",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.01,0.5),-0.5,MAINRUINCOLOR)
  5146. 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(30)),.2)
  5147. 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(0),math.rad(-30)),.2)
  5148. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
  5149. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.2)
  5150. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
  5151. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
  5152. end
  5153. CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
  5154. CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
  5155. CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
  5156. CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
  5157. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
  5158. CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
  5159. CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
  5160. rainbowmode = false
  5161. chaosmode = false
  5162. ModeOfGlitch = 1
  5163. storehumanoidWS = 16
  5164. newTheme("rbxassetid://614032233",48.6,1,1.25)
  5165. RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  5166. CameraEnshaking(5,2.5)
  5167. MAINRUINCOLOR = BrickColor.new("Really red")
  5168. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5169. for i = 0, 49 do
  5170. PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.04,MAINRUINCOLOR,0)
  5171. end
  5172. for i = 0, 24 do
  5173. sphere2(2,"Add",tors.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,7,-0.01,MAINRUINCOLOR)
  5174. slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(150,350)/250,BrickColor.new("White"))
  5175. end
  5176. for i = 0,3,0.1 do
  5177. sphereMK(2.5,-1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,MAINRUINCOLOR,0)
  5178. end
  5179. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  5180. for i = 0,2,0.1 do
  5181. swait()
  5182. 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(-30)),.5)
  5183. 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(0),math.rad(30)),.5)
  5184. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  5185. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5)
  5186. RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5)
  5187. LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5)
  5188. end
  5189. hum.WalkSpeed = storehumanoidWS
  5190. attack = false
  5191. end
  5192.  
  5193. function attackone()
  5194. attack = true
  5195. local keptcolor = MAINRUINCOLOR
  5196. for i = 0,1,0.1 do
  5197. swait()
  5198. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  5199. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  5200. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  5201. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5202. 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)
  5203. 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)
  5204. end
  5205. local distlook = 5
  5206. coroutine.resume(coroutine.create(function()
  5207. for i = 0, 4 do
  5208. swait(2)
  5209. CameraEnshaking(2,3)
  5210. local hite = Instance.new("Part", char)
  5211. hite.Anchored = true
  5212. hite.CanCollide = false
  5213. hite.FormFactor = 3
  5214. hite.Name = "Ring"
  5215. hite.Material = "Neon"
  5216. hite.Size = Vector3.new(1, 1, 1)
  5217. hite.Transparency = 1
  5218. hite.TopSurface = 0
  5219. hite.BottomSurface = 0
  5220. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  5221. 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)
  5222. 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)
  5223. 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)
  5224. 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)
  5225. MagniDamage(hite, 9, 10,25, 0, "Normal")
  5226. for i = 0, 14 do
  5227. local rsiz = math.random(5,20)
  5228. 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)
  5229. end
  5230. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  5231. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  5232. game:GetService("Debris"):AddItem(hite, 5)
  5233. distlook = distlook + 10
  5234. end
  5235. end))
  5236. for i = 0,1,0.1 do
  5237. swait()
  5238. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  5239. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  5240. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  5241. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  5242. 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)
  5243. 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)
  5244. end
  5245. attack = false
  5246. end
  5247.  
  5248. function attacktwo()
  5249. attack = true
  5250. hum.WalkSpeed = 2
  5251. local keptcolor = MAINRUINCOLOR
  5252. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5253. sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  5254. sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.2,0.2,0.2,keptcolor,keptcolor.Color)
  5255. for i = 0, 14 do
  5256. end
  5257. for i = 0,1,0.1 do
  5258. swait()
  5259. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5260. RH.C0=clerp(RH.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(-5)),.3)
  5261. 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(30),math.rad(0)),.3)
  5262. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  5263. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
  5264. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  5265. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5266. end
  5267. for i = 0, 1 do
  5268. CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
  5269. for i = 0,1,0.6 do
  5270. swait()
  5271. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5272. RH.C0=clerp(RH.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(-5)),.6)
  5273. 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(30),math.rad(0)),.6)
  5274. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5275. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5276. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5277. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5278. end
  5279. for i = 0,1,0.6 do
  5280. swait()
  5281. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5282. RH.C0=clerp(RH.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(-5)),.6)
  5283. 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(30),math.rad(0)),.6)
  5284. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
  5285. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5286. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5287. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5288. end
  5289. for i = 0,1,0.6 do
  5290. swait()
  5291. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5292. RH.C0=clerp(RH.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(-5)),.6)
  5293. 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(30),math.rad(0)),.6)
  5294. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
  5295. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5296. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5297. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5298. end
  5299. for i = 0,1,0.6 do
  5300. swait()
  5301. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5302. RH.C0=clerp(RH.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(-5)),.6)
  5303. 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(30),math.rad(0)),.6)
  5304. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
  5305. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
  5306. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
  5307. LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
  5308. end
  5309. local rot = 0
  5310. local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
  5311. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5312. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5313. CreateMesh(dis,"Sphere",10,1,10)
  5314. local at1 = Instance.new("Attachment",dis)
  5315. at1.Position = vt(-5,0,0)
  5316. local at2 = Instance.new("Attachment",dis)
  5317. at2.Position = vt(5,0,0)
  5318. local trl = Instance.new('Trail',wed)
  5319. trl.Attachment0 = at1
  5320. trl.Attachment1 = at2
  5321. trl.Texture = "rbxassetid://1049219073"
  5322. trl.LightEmission = 1
  5323. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5324. trl.Color = ColorSequence.new(dis.Color)
  5325. trl.Lifetime = 0.6
  5326. local a = Instance.new("Part",workspace)
  5327. a.Name = "Direction"
  5328. a.Anchored = true
  5329. a.BrickColor = bc("Bright red")
  5330. a.Material = "Neon"
  5331. a.Transparency = 1
  5332. a.CanCollide = false
  5333. local ray = Ray.new(
  5334. dis.CFrame.p, -- origin
  5335. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5336. )
  5337. local ignore = dis
  5338. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5339. a.BottomSurface = 10
  5340. a.TopSurface = 10
  5341. local distance = (dis.CFrame.p - position).magnitude
  5342. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5343. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5344. dis.CFrame = a.CFrame
  5345. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  5346. a:Destroy()
  5347. local bv = Instance.new("BodyVelocity")
  5348. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5349. bv.velocity = dis.CFrame.lookVector*250
  5350. bv.Parent = dis
  5351. game:GetService("Debris"):AddItem(dis, 5)
  5352. local hitted = false
  5353. coroutine.resume(coroutine.create(function()
  5354. dis.Touched:connect(function(hit)
  5355. if hitted == false and hit.Parent ~= char then
  5356. hitted = true
  5357. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  5358. MagniDamage(dis, 30, 33,56, 0, "Normal")
  5359. sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  5360. sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5361. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  5362. coroutine.resume(coroutine.create(function()
  5363. for i = 0, 9 do
  5364. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  5365. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5366. local at1 = Instance.new("Attachment",disr)
  5367. at1.Position = vt(-5,0,0)
  5368. local at2 = Instance.new("Attachment",disr)
  5369. at2.Position = vt(5,0,0)
  5370. local trl = Instance.new('Trail',disr)
  5371. trl.Attachment0 = at1
  5372. trl.FaceCamera = true
  5373. trl.Attachment1 = at2
  5374. trl.Texture = "rbxassetid://2342682798"
  5375. trl.LightEmission = 1
  5376. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5377. trl.Color = ColorSequence.new(keptcolor.Color)
  5378. trl.Lifetime = 0.5
  5379. local bv = Instance.new("BodyVelocity")
  5380. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5381. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  5382. bv.Parent = disr
  5383. local val = 0
  5384. coroutine.resume(coroutine.create(function()
  5385. swait(30)
  5386. for i = 0, 9 do
  5387. swait()
  5388. val = val + 0.1
  5389. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  5390. end
  5391. game:GetService("Debris"):AddItem(disr, 3)
  5392. end))
  5393. end
  5394. local eff = Instance.new("ParticleEmitter",dis)
  5395. eff.Texture = "rbxassetid://2273224484"
  5396. eff.LightEmission = 1
  5397. eff.Color = ColorSequence.new(keptcolor.Color)
  5398. eff.Rate = 50
  5399. eff.Lifetime = NumberRange.new(0.5,2)
  5400. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  5401. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5402. eff.Speed = NumberRange.new(20,250)
  5403. eff.Drag = 5
  5404. eff.Rotation = NumberRange.new(-500,500)
  5405. eff.VelocitySpread = 9000
  5406. eff.RotSpeed = NumberRange.new(-50,50)
  5407. wait(0.25)
  5408. eff.Enabled = false
  5409. end))
  5410. for i = 0, 9 do
  5411. end
  5412. for i = 0, 19 do
  5413. end
  5414. coroutine.resume(coroutine.create(function()
  5415. for i = 0, 19 do
  5416. swait()
  5417. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  5418. end
  5419. hum.CameraOffset = vt(0,0,0)
  5420. end))
  5421. dis.Anchored = true
  5422. dis.Transparency = 1
  5423. wait(8)
  5424. dis:Destroy()
  5425. end
  5426. end)
  5427. end))
  5428. rot = rot - 15
  5429. end
  5430. for i = 0,2,0.1 do
  5431. swait()
  5432. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-30),math.rad(0)),.3)
  5433. 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(5)),.3)
  5434. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5435. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
  5436. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5437. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
  5438. end
  5439. attack = false
  5440. hum.WalkSpeed = storehumanoidWS
  5441. end
  5442.  
  5443. function attackthree()
  5444. attack = true
  5445. local keptcolor = MAINRUINCOLOR
  5446. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  5447. for i = 0,2,0.1 do
  5448. swait()
  5449. sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5450. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
  5451. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  5452. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
  5453. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
  5454. 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(-50),math.rad(-10)),.3)
  5455. 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(40)),.3)
  5456. end
  5457. CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
  5458. CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
  5459. CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
  5460. CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
  5461. sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  5462. sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
  5463. for i = 0, 24 do
  5464. end
  5465. for i = 0,4,0.1 do
  5466. swait()
  5467. root.CFrame = root.CFrame + root.CFrame.lookVector*5
  5468. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  5469. CreateMesh(dis,"Sphere",1,1,1)
  5470. dis.Anchored = true
  5471. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  5472. sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  5473. coroutine.resume(coroutine.create(function()
  5474. swait(30)
  5475. dis.Transparency = 1
  5476. coroutine.resume(coroutine.create(function()
  5477. for i = 0, 19 do
  5478. swait()
  5479. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  5480. end
  5481. hum.CameraOffset = vt(0,0,0)
  5482. end))
  5483. coroutine.resume(coroutine.create(function()
  5484. local eff = Instance.new("ParticleEmitter",dis)
  5485. eff.Texture = "rbxassetid://2273224484"
  5486. eff.LightEmission = 1
  5487. eff.Color = ColorSequence.new(dis.Color)
  5488. eff.Rate = 500000
  5489. eff.Lifetime = NumberRange.new(0.5,2)
  5490. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  5491. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  5492. eff.Speed = NumberRange.new(50,450)
  5493. eff.Drag = 5
  5494. eff.Rotation = NumberRange.new(-500,500)
  5495. eff.VelocitySpread = 9000
  5496. eff.RotSpeed = NumberRange.new(-50,50)
  5497. wait(0.125)
  5498. eff.Enabled = false
  5499. end))
  5500. MagniDamage(dis, 30, 45,50, 0, "Normal")
  5501. for i = 0, 2 do
  5502. --slash(math.random(10,80)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,150)/250,dis.BrickColor)
  5503. end
  5504. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
  5505. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
  5506. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
  5507. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
  5508. end))
  5509. game:GetService("Debris"):AddItem(dis, 5)
  5510. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
  5511. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
  5512. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
  5513. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
  5514. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-8),math.rad(0),math.rad(-20)),.5)
  5515. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(9),math.rad(0),math.rad(20)),.5)
  5516. end
  5517. attack = false
  5518. end
  5519. ----------------------------------- Abilities
  5520.  
  5521. function ExtinctiveHeartbreak()
  5522. local targetted = nil
  5523. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  5524. targetted = mouse.Target.Parent
  5525. end
  5526. if targetted ~= nil then
  5527. attack = true
  5528. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5529. for i = 0, 9 do
  5530. --sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  5531. end
  5532. for i = 0, 24 do
  5533. --
  5534. end
  5535. --sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5536. local originalpos = root.CFrame
  5537. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  5538. for i = 0, 9 do
  5539. --sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  5540. end
  5541. for i = 0, 24 do
  5542. end
  5543. hum.WalkSpeed = 0
  5544. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5545. local radm = math.random(1,3)
  5546. if radm == 1 then
  5547. --bosschatfunc("YOU WON'T BE NECCESSARY.",MAINRUINCOLOR.Color,2)
  5548. elseif radm == 2 then
  5549. --bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
  5550. elseif radm == 3 then
  5551. --bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
  5552. end
  5553. for i = 0,2,0.1 do
  5554. swait()
  5555. 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),math.rad(0)),.4)
  5556. 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(0),math.rad(0)),.4)
  5557. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4)
  5558. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5559. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
  5560. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(60)),.4)
  5561. end
  5562. CFuncs["Sound"].Create("rbxassetid://153092227", root, 5,1)
  5563. CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 10, 1,0,10,0.25,0.5,1)
  5564. for i = 0,2,0.1 do
  5565. swait()
  5566. coroutine.resume(coroutine.create(function()
  5567. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5568. for i,v in pairs(targetted:GetChildren()) do
  5569. if v:IsA("Part") or v:IsA("MeshPart") then
  5570. v.Velocity = vt(0,0,0)
  5571. end
  5572. end
  5573. end))
  5574. 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(0)),.8)
  5575. 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(10),math.rad(0)),.8)
  5576. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  5577. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  5578. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  5579. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(-80)),.8)
  5580. end
  5581. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1,0,10,0.25,0.5,1)
  5582. CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 1.5, 0.9,0,10,0.25,0.5,1)
  5583. for i = 0, 1 do
  5584. CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 1.5, 1,0.1,10,0.15,0.5,1)
  5585. end
  5586. CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 10, 1,0.1,10,0.15,0.5,1)
  5587. --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
  5588. for i = 0,4,0.1 do
  5589. swait()
  5590. coroutine.resume(coroutine.create(function()
  5591. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5592. dis.CFrame = targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5593. local at1 = Instance.new("Attachment",dis)
  5594. at1.Position = vt(-25000,0,0)
  5595. local at2 = Instance.new("Attachment",dis)
  5596. at2.Position = vt(25000,0,0)
  5597. local trl = Instance.new('Trail',dis)
  5598. trl.Attachment0 = at1
  5599. trl.FaceCamera = true
  5600. trl.Attachment1 = at2
  5601. trl.Texture = "rbxassetid://1049219073"
  5602. trl.LightEmission = 1
  5603. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5604. trl.Color = ColorSequence.new(Color3.new(1,0,0))
  5605. trl.Lifetime = 5
  5606. local bv = Instance.new("BodyVelocity")
  5607. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5608. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5609. bv.Parent = dis
  5610. game:GetService("Debris"):AddItem(dis, 5)
  5611. targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
  5612. CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
  5613. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
  5614. CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
  5615. CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
  5616. CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
  5617. sphere2(5,"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(3,3,3),-0.03,15,-0.03,MAINRUINCOLOR)
  5618. targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
  5619. for i = 0, 2 do
  5620. --slash(5,5,true,"Round","Add","Out",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,350)/250,BrickColor.new("Crimson"))
  5621. end
  5622. symbolizeBlink(targetted.Head,0,2092248396,Color3.new(1,0,0),math.random(3,35),0,0,0,targetted.Head,true,math.random(3,9),0.25)
  5623. for i,v in pairs(targetted:GetChildren()) do
  5624. if v:IsA("Part") or v:IsA("MeshPart") then
  5625. v.Velocity = vt(0,0,0)
  5626. end
  5627. end
  5628. end))
  5629. hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
  5630. 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(0)),.8)
  5631. 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(10),math.rad(0)),.8)
  5632. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  5633. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
  5634. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(40)),.8)
  5635. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(170),math.rad(0),math.rad(-30)),.8)
  5636. end
  5637. hum.CameraOffset = vt(0,0,0)
  5638. for i = 0, 49 do
  5639. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  5640. dis.CFrame = targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  5641. local at1 = Instance.new("Attachment",dis)
  5642. at1.Position = vt(-50000,0,0)
  5643. local at2 = Instance.new("Attachment",dis)
  5644. at2.Position = vt(50000,0,0)
  5645. local trl = Instance.new('Trail',dis)
  5646. trl.Attachment0 = at1
  5647. trl.FaceCamera = true
  5648. trl.Attachment1 = at2
  5649. trl.Texture = "rbxassetid://1049219073"
  5650. trl.LightEmission = 1
  5651. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5652. trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
  5653. trl.Lifetime = 5
  5654. local bv = Instance.new("BodyVelocity")
  5655. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  5656. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  5657. bv.Parent = dis
  5658. game:GetService("Debris"):AddItem(dis, 5)
  5659. end
  5660. for i = 0, 49 do
  5661. sphere2(math.random(10,75)/10,"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(5,5,5),-0.05,50,-0.05,MAINRUINCOLOR)
  5662. --slash(math.random(10,30)/15,5,true,"Round","Add","Out",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(40,500)/250,BrickColor.new("Really red"))
  5663. end
  5664. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
  5665. for i = 0, 1 do
  5666. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
  5667. CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
  5668. end
  5669. for i = 0, 4 do
  5670. CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
  5671. end
  5672. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
  5673. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
  5674. symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
  5675. dmg(targetted)
  5676. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  5677. for i = 0, 9 do
  5678. --sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  5679. end
  5680. for i = 0, 24 do
  5681. end
  5682. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5683. root.CFrame = originalpos
  5684. for i = 0, 9 do
  5685. --sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  5686. end
  5687. for i = 0, 24 do
  5688. end
  5689. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  5690. attack = false
  5691. hum.WalkSpeed = storehumanoidWS
  5692. end
  5693. end
  5694.  
  5695. function CorruptionEvent()
  5696. attack = true
  5697. hum.WalkSpeed = 0
  5698. CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5699. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5700. local keptcolor = MAINRUINCOLOR
  5701. for i = 0,4,0.1 do
  5702. swait()
  5703. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5704. block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5705. RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5),math.rad(-20)),.1)
  5706. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1)
  5707. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
  5708. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
  5709. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
  5710. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5711. end
  5712. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5713. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
  5714. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
  5715. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5716. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5717. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5718. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
  5719. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
  5720. hum.CameraOffset = vt(0,0,0)
  5721. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5722. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5723. for i = 0, 24 do
  5724. --slash(math.random(15,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.new("Really black"))
  5725. end
  5726. local rrot = 0
  5727. coroutine.resume(coroutine.create(function()
  5728. for i = 0, 4 do
  5729. rrot = rrot + 45
  5730. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5731. xa.Anchored = true
  5732. local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5733. xb.Anchored = true
  5734. local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5735. xc.Anchored = true
  5736. local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  5737. xd.Anchored = true
  5738. CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
  5739. CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
  5740. CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
  5741. CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
  5742. CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
  5743. CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
  5744. CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
  5745. CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
  5746. CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
  5747. CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
  5748. CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
  5749. CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
  5750. xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
  5751. xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
  5752. xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
  5753. xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
  5754. MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5755. MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5756. MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5757. MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
  5758. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5759. block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5760. block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5761. block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5762. sphere2(2,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  5763. sphere2(2,"Add",xb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  5764. sphere2(2,"Add",xc.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  5765. sphere2(2,"Add",xd.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
  5766. sphere2(4,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5767. sphere2(4,"Add",xb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5768. sphere2(4,"Add",xc.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5769. sphere2(4,"Add",xd.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
  5770. game:GetService("Debris"):AddItem(xa, 5)
  5771. game:GetService("Debris"):AddItem(xb, 5)
  5772. game:GetService("Debris"):AddItem(xc, 5)
  5773. game:GetService("Debris"):AddItem(xd, 5)
  5774. coroutine.resume(coroutine.create(function()
  5775. for i = 0, 19 do
  5776. swait()
  5777. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5778. end
  5779. hum.CameraOffset = vt(0,0,0)
  5780. end))
  5781. swait(9)
  5782. end
  5783. end))
  5784. for i = 0,2,0.1 do
  5785. swait()
  5786. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(10)),.8)
  5787. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(10)),.8)
  5788. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  5789. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
  5790. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
  5791. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5792. end
  5793. attack = false
  5794. hum.WalkSpeed = storehumanoidWS
  5795. end
  5796.  
  5797. function EndGROUND()
  5798. attack = true
  5799. hum.WalkSpeed = 0
  5800. bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
  5801. --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
  5802. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
  5803. CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
  5804. CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
  5805. local keptcolor = MAINRUINCOLOR
  5806. for i = 0,4,0.1 do
  5807. swait()
  5808. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  5809. block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5810. --slash(math.random(25,50)/10,5,true,"Round","Add","Out",rarm.CFrame*CFrame.new(0,-6,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.01,0.1),-0.1,BrickColor.new("Really black"))
  5811. RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-15),math.rad(-20)),.1)
  5812. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1)
  5813. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
  5814. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
  5815. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
  5816. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
  5817. end
  5818. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
  5819. CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
  5820. CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
  5821. CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
  5822. CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
  5823. CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
  5824. coroutine.resume(coroutine.create(function()
  5825. local shval = 10
  5826. for i = 0, 99 do
  5827. swait()
  5828. shval = shval - 0.1
  5829. hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
  5830. end
  5831. hum.CameraOffset = vt(0,0,0)
  5832. end))
  5833. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5834. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  5835. for i = 0, 24 do
  5836. --slash(math.random(15,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.new("Really black"))
  5837. end
  5838. local rrot = 0
  5839. local xam = 1
  5840. coroutine.resume(coroutine.create(function()
  5841. for i = 0, 14 do
  5842. --swait()
  5843. rrot = rrot + 40*xam
  5844. xam = xam + 0.25
  5845. local bonus = xam
  5846. local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
  5847. xa.Anchored = true
  5848. xa.Color = Color3.new(0,0,0)
  5849. xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
  5850. CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
  5851. local xc = 0
  5852. coroutine.resume(coroutine.create(function()
  5853. for i = 0, 99 do
  5854. swait()
  5855. xc = xc + 0.01
  5856. xa.Color = Color3.new(xc,0,0)
  5857. end
  5858. xa.Transparency = 1
  5859. CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
  5860. MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
  5861. for i = 0, 9 do
  5862. --slash(math.random(15,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01*bonus,0.01,0.01*bonus),math.random(50,125)/250*bonus,BrickColor.new("Really black"))
  5863. end
  5864. block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30*bonus,30*bonus,30*bonus),0.3,0.3,0.3,keptcolor,keptcolor.Color)
  5865. sphere2(2,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25*bonus,1,25*bonus),0.05*bonus,1.5*bonus,0.05*bonus,keptcolor,keptcolor.Color)
  5866. sphere2(4,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30*bonus,1,30*bonus),0.05*bonus,1.5*bonus,0.05*bonus,BrickColor.new("Really black"),Color3.new(0,0,0))
  5867. game:GetService("Debris"):AddItem(xa, 5)
  5868. coroutine.resume(coroutine.create(function()
  5869. for i = 0, 19 do
  5870. swait()
  5871. hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
  5872. end
  5873. hum.CameraOffset = vt(0,0,0)
  5874. end))
  5875. end))
  5876. end
  5877. end))
  5878. for i = 0,2,0.1 do
  5879. swait()
  5880. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-25),math.rad(30)),.8)
  5881. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.8)
  5882. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
  5883. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
  5884. RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
  5885. LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
  5886. end
  5887. attack = false
  5888. hum.WalkSpeed = storehumanoidWS
  5889. end
  5890.  
  5891. function HeavenlyDisk()
  5892. attack = true
  5893. hum.WalkSpeed = 2
  5894. local keptcolor = MAINRUINCOLOR
  5895. local radm = math.random(1,3)
  5896. if radm == 1 then
  5897. --bosschatfunc("Don't make this too easy for you.",MAINRUINCOLOR.Color,1)
  5898. elseif radm == 2 then
  5899. --bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
  5900. elseif radm == 3 then
  5901. --bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
  5902. end
  5903. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
  5904. CFuncs["EchoSound"].Create("rbxassetid://1625448638", root, 4, 1,0,10,0.15,0.5,1)
  5905. for i = 0, 14 do
  5906. --
  5907. end
  5908. for i = 0,2,0.1 do
  5909. swait()
  5910. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5911. RH.C0=clerp(RH.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(-5)),.3)
  5912. 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(30),math.rad(0)),.3)
  5913. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  5914. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
  5915. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  5916. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  5917. end
  5918. CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
  5919. for i = 0,1,0.6 do
  5920. swait()
  5921. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5922. --slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5923. RH.C0=clerp(RH.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(-5)),.6)
  5924. 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(30),math.rad(0)),.6)
  5925. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
  5926. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5927. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5928. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5929. end
  5930. for i = 0,1,0.6 do
  5931. swait()
  5932. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5933. --slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5934. RH.C0=clerp(RH.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(-5)),.6)
  5935. 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(30),math.rad(0)),.6)
  5936. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
  5937. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5938. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5939. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5940. end
  5941. for i = 0,1,0.6 do
  5942. swait()
  5943. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5944. --slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5945. RH.C0=clerp(RH.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(-5)),.6)
  5946. 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(30),math.rad(0)),.6)
  5947. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
  5948. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5949. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5950. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5951. end
  5952. for i = 0,1,0.6 do
  5953. swait()
  5954. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
  5955. --slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
  5956. RH.C0=clerp(RH.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(-5)),.6)
  5957. 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(30),math.rad(0)),.6)
  5958. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
  5959. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
  5960. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
  5961. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
  5962. end
  5963. local rot = 15
  5964. for i = 0, 2 do
  5965. local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
  5966. CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
  5967. dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
  5968. CreateMesh(dis,"Sphere",10,1,10)
  5969. local at1 = Instance.new("Attachment",dis)
  5970. at1.Position = vt(-5,0,0)
  5971. local at2 = Instance.new("Attachment",dis)
  5972. at2.Position = vt(5,0,0)
  5973. local trl = Instance.new('Trail',wed)
  5974. trl.Attachment0 = at1
  5975. trl.Attachment1 = at2
  5976. trl.Texture = "rbxassetid://1049219073"
  5977. trl.LightEmission = 1
  5978. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  5979. trl.Color = ColorSequence.new(dis.Color)
  5980. trl.Lifetime = 0.6
  5981. local a = Instance.new("Part",workspace)
  5982. a.Name = "Direction"
  5983. a.Anchored = true
  5984. a.BrickColor = bc("Bright red")
  5985. a.Material = "Neon"
  5986. a.Transparency = 1
  5987. a.CanCollide = false
  5988. local ray = Ray.new(
  5989. dis.CFrame.p, -- origin
  5990. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  5991. )
  5992. local ignore = dis
  5993. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5994. a.BottomSurface = 10
  5995. a.TopSurface = 10
  5996. local distance = (dis.CFrame.p - position).magnitude
  5997. a.Size = Vector3.new(0.1, 0.1, 0.1)
  5998. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  5999. dis.CFrame = a.CFrame
  6000. dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
  6001. a:Destroy()
  6002. local bv = Instance.new("BodyVelocity")
  6003. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6004. bv.velocity = dis.CFrame.lookVector*250
  6005. bv.Parent = dis
  6006. game:GetService("Debris"):AddItem(dis, 5)
  6007. local hitted = false
  6008. coroutine.resume(coroutine.create(function()
  6009. dis.Touched:connect(function(hit)
  6010. if hitted == false and hit.Parent ~= char then
  6011. hitted = true
  6012. CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
  6013. MagniDamage(dis, 30, 82,34575, 0, "Normal")
  6014. --sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
  6015. --sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
  6016. --sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
  6017. coroutine.resume(coroutine.create(function()
  6018. for i = 0, 9 do
  6019. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6020. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6021. local at1 = Instance.new("Attachment",disr)
  6022. at1.Position = vt(-2,0,0)
  6023. local at2 = Instance.new("Attachment",disr)
  6024. at2.Position = vt(2,0,0)
  6025. local trl = Instance.new('Trail',disr)
  6026. trl.Attachment0 = at1
  6027. trl.FaceCamera = true
  6028. trl.Attachment1 = at2
  6029. trl.Texture = "rbxassetid://2342682798"
  6030. trl.LightEmission = 1
  6031. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6032. trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6033. trl.Lifetime = 0.5
  6034. local bv = Instance.new("BodyVelocity")
  6035. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6036. bv.velocity = disr.CFrame.lookVector*math.random(50,200)
  6037. bv.Parent = disr
  6038. local val = 0
  6039. coroutine.resume(coroutine.create(function()
  6040. swait(30)
  6041. for i = 0, 9 do
  6042. swait()
  6043. val = val + 0.1
  6044. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6045. end
  6046. game:GetService("Debris"):AddItem(disr, 3)
  6047. end))
  6048. end
  6049. local eff = Instance.new("ParticleEmitter",dis)
  6050. eff.Texture = "rbxassetid://2273224484"
  6051. eff.LightEmission = 1
  6052. eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
  6053. eff.Rate = 500000
  6054. eff.Lifetime = NumberRange.new(0.5,2)
  6055. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6056. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6057. eff.Speed = NumberRange.new(20,250)
  6058. eff.Drag = 5
  6059. eff.Rotation = NumberRange.new(-500,500)
  6060. eff.VelocitySpread = 9000
  6061. eff.RotSpeed = NumberRange.new(-50,50)
  6062. wait(0.25)
  6063. eff.Enabled = false
  6064. end))
  6065. for i = 0, 9 do
  6066. --slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("White"))
  6067. end
  6068. for i = 0, 19 do
  6069. --
  6070. end
  6071. coroutine.resume(coroutine.create(function()
  6072. for i = 0, 19 do
  6073. swait()
  6074. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6075. end
  6076. hum.CameraOffset = vt(0,0,0)
  6077. end))
  6078. dis.Anchored = true
  6079. dis.Transparency = 1
  6080. wait(8)
  6081. dis:Destroy()
  6082. end
  6083. end)
  6084. end))
  6085. rot = rot - 15
  6086. end
  6087. for i = 0,2,0.1 do
  6088. swait()
  6089. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-30),math.rad(0)),.3)
  6090. 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(5)),.3)
  6091. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
  6092. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  6093. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
  6094. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
  6095. end
  6096. attack = false
  6097. hum.WalkSpeed = storehumanoidWS
  6098. end
  6099.  
  6100. function RapidBurst()
  6101. attack = true
  6102. hum.WalkSpeed = 0
  6103. CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
  6104. CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
  6105. CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
  6106. bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2)
  6107. local keptcolor = MAINRUINCOLOR
  6108. for i = 0,8,0.1 do
  6109. swait()
  6110. hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  6111. --slash(math.random(25,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,25,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,0.01,2),-2,BrickColor.random())
  6112. block(10,"Add",root.CFrame*CFrame.new(0,25,0),vt(0,0,0),0.5,0.5,0.5,BrickColor.random(),BrickColor.random().Color)
  6113. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-15 - 2 * math.cos(sine / 32))),.1)
  6114. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(15 + 2 * math.cos(sine / 32))),.1)
  6115. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.15 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(-15 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  6116. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  6117. RW.C0=clerp(RW.C0,cf(1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-10 + 3 * math.cos(sine / 45))),.1)
  6118. LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(13 - 3 * math.cos(sine / 45))),.1)
  6119. end
  6120. for i = 0, 99 do
  6121. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6122. dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6123. local at1 = Instance.new("Attachment",dis)
  6124. at1.Position = vt(-25000,0,0)
  6125. local at2 = Instance.new("Attachment",dis)
  6126. at2.Position = vt(25000,0,0)
  6127. local trl = Instance.new('Trail',dis)
  6128. trl.Attachment0 = at1
  6129. trl.FaceCamera = true
  6130. trl.Attachment1 = at2
  6131. trl.Texture = "rbxassetid://1049219073"
  6132. trl.LightEmission = 1
  6133. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6134. trl.Color = ColorSequence.new(BrickColor.random().Color)
  6135. trl.Lifetime = 5
  6136. local bv = Instance.new("BodyVelocity")
  6137. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6138. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6139. bv.Parent = dis
  6140. game:GetService("Debris"):AddItem(dis, 5)
  6141. end
  6142. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
  6143. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
  6144. symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
  6145. sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6146. sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6147. sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
  6148. sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
  6149. CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
  6150. CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
  6151. CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
  6152. hum.CameraOffset = vt(0,0,0)
  6153. for i = 0, 24 do
  6154. --slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(500,1500)/250,BrickColor.random())
  6155. end
  6156. local distam = 0
  6157. coroutine.resume(coroutine.create(function()
  6158. for i = 0, 99 do
  6159. wait()
  6160. distam = distam + 1
  6161. local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
  6162. xa.Anchored = true
  6163. xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
  6164. game:GetService("Debris"):AddItem(xa, 5)
  6165. for i = 0, 4 do
  6166. --slash(math.random(25,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.random())
  6167. end
  6168. coroutine.resume(coroutine.create(function()
  6169. local eff = Instance.new("ParticleEmitter",xa)
  6170. eff.Texture = "rbxassetid://2273224484"
  6171. eff.LightEmission = 1
  6172. eff.Color = ColorSequence.new(BrickColor.random().Color)
  6173. eff.Rate = 500000
  6174. eff.Lifetime = NumberRange.new(1,3)
  6175. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,30,0),NumberSequenceKeypoint.new(0.2,5,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
  6176. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6177. eff.Speed = NumberRange.new(50,500)
  6178. eff.Drag = 5
  6179. eff.Rotation = NumberRange.new(-500,500)
  6180. eff.VelocitySpread = 9000
  6181. eff.RotSpeed = NumberRange.new(-50,50)
  6182. wait(0.25)
  6183. eff.Enabled = false
  6184. end))
  6185. coroutine.resume(coroutine.create(function()
  6186. for i = 0, 19 do
  6187. swait()
  6188. hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  6189. end
  6190. hum.CameraOffset = vt(0,0,0)
  6191. end))
  6192. CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
  6193. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
  6194. --sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
  6195. MagniDamage(xa, 60, 9999,99999, 0, "Normal")
  6196. end
  6197. end))
  6198. attack = false
  6199. hum.WalkSpeed = storehumanoidWS
  6200. end
  6201.  
  6202.  
  6203. function FallenOrbs()
  6204. attack = true
  6205. hum.WalkSpeed = 2
  6206. local keptcolor = MAINRUINCOLOR
  6207. CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 1.5, 1,0,10,0.15,0.5,1)
  6208. CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 10, 1,0,10,0.15,0.5,1)
  6209. local radm = math.random(1,3)
  6210. if radm == 1 then
  6211. bosschatfunc("This won't be easy for you.",MAINRUINCOLOR.Color,1)
  6212. elseif radm == 2 then
  6213. bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
  6214. elseif radm == 3 then
  6215. bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
  6216. end
  6217. coroutine.resume(coroutine.create(function()
  6218. for i = 0, 29 do
  6219. swait(2)
  6220. local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
  6221. dis.Anchored = true
  6222. CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
  6223. dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
  6224. CreateMesh(dis,"Sphere",2,2,2)
  6225. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
  6226. --slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(10,50)/250,BrickColor.new("White"))
  6227. coroutine.resume(coroutine.create(function()
  6228. wait(0.5)
  6229. dis.Anchored = false
  6230. CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 5, 1,0,2,0.15,0.1,1)
  6231. local at1 = Instance.new("Attachment",dis)
  6232. at1.Position = vt(-1,0,0)
  6233. local at2 = Instance.new("Attachment",dis)
  6234. at2.Position = vt(1,0,0)
  6235. local trl = Instance.new('Trail',dis)
  6236. trl.Attachment0 = at1
  6237. trl.FaceCamera = true
  6238. trl.Attachment1 = at2
  6239. trl.Texture = "rbxassetid://1049219073"
  6240. trl.LightEmission = 1
  6241. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6242. trl.Color = ColorSequence.new(dis.Color)
  6243. trl.Lifetime = 0.6
  6244. local a = Instance.new("Part",workspace)
  6245. a.Name = "Direction"
  6246. a.Anchored = true
  6247. a.BrickColor = bc("Bright red")
  6248. a.Material = "Neon"
  6249. a.Transparency = 1
  6250. a.CanCollide = false
  6251. local ray = Ray.new(
  6252. dis.CFrame.p, -- origin
  6253. (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
  6254. )
  6255. local ignore = dis
  6256. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  6257. a.BottomSurface = 10
  6258. a.TopSurface = 10
  6259. local distance = (dis.CFrame.p - position).magnitude
  6260. a.Size = Vector3.new(0.1, 0.1, 0.1)
  6261. a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
  6262. dis.CFrame = a.CFrame
  6263. a:Destroy()
  6264. local bv = Instance.new("BodyVelocity")
  6265. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6266. bv.velocity = dis.CFrame.lookVector*500
  6267. bv.Parent = dis
  6268. game:GetService("Debris"):AddItem(dis, 5)
  6269. local hitted = false
  6270. coroutine.resume(coroutine.create(function()
  6271. dis.Touched:connect(function(hit)
  6272. if hitted == false and hit.Parent ~= char then
  6273. hitted = true
  6274. CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 2.5, 0.8,0,10,0.15,0.5,1)
  6275. MagniDamage(dis, 60, 25456,124672, 0, "Normal")
  6276. --sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
  6277. --sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
  6278. coroutine.resume(coroutine.create(function()
  6279. for i = 0, 4 do
  6280. local disr = CreateParta(char,1,1,"Neon",keptcolor)
  6281. disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6282. local at1 = Instance.new("Attachment",disr)
  6283. at1.Position = vt(-10,0,0)
  6284. local at2 = Instance.new("Attachment",disr)
  6285. at2.Position = vt(10,0,0)
  6286. local trl = Instance.new('Trail',disr)
  6287. trl.Attachment0 = at1
  6288. trl.FaceCamera = true
  6289. trl.Attachment1 = at2
  6290. trl.Texture = "rbxassetid://2342682798"
  6291. trl.LightEmission = 1
  6292. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6293. trl.Color = ColorSequence.new(disr.Color)
  6294. trl.Lifetime = 0.5
  6295. local bv = Instance.new("BodyVelocity")
  6296. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6297. bv.velocity = disr.CFrame.lookVector*math.random(125,250)
  6298. bv.Parent = disr
  6299. local val = 0
  6300. coroutine.resume(coroutine.create(function()
  6301. swait(30)
  6302. for i = 0, 9 do
  6303. swait()
  6304. val = val + 0.1
  6305. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
  6306. end
  6307. game:GetService("Debris"):AddItem(disr, 3)
  6308. end))
  6309. end
  6310. local eff = Instance.new("ParticleEmitter",dis)
  6311. eff.Texture = "rbxassetid://2273224484"
  6312. eff.LightEmission = 1
  6313. eff.Color = ColorSequence.new(dis.Color)
  6314. eff.Rate = 500000
  6315. eff.Lifetime = NumberRange.new(0.5,2)
  6316. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6317. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6318. eff.Speed = NumberRange.new(20,250)
  6319. eff.Drag = 5
  6320. eff.Rotation = NumberRange.new(-500,500)
  6321. eff.VelocitySpread = 9000
  6322. eff.RotSpeed = NumberRange.new(-50,50)
  6323. wait(0.5)
  6324. eff.Enabled = false
  6325. end))
  6326. for i = 0, 4 do
  6327. --slash(math.random(20,50)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("White"))
  6328. end
  6329. coroutine.resume(coroutine.create(function()
  6330. for i = 0, 19 do
  6331. swait()
  6332. hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
  6333. end
  6334. hum.CameraOffset = vt(0,0,0)
  6335. end))
  6336. dis.Anchored = true
  6337. dis.Transparency = 1
  6338. wait(8)
  6339. dis:Destroy()
  6340. end
  6341. end)
  6342. end))
  6343. end))
  6344. end
  6345. end))
  6346. for i = 0,9,0.1 do
  6347. swait()
  6348. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*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.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  6349. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 32))),.3)
  6350. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 2 * math.cos(sine / 32))),.3)
  6351. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(90)),.3)
  6352. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(-15 + 1 * math.cos(sine / 58)),math.rad(-90 + 2 * math.cos(sine / 53))),.3)
  6353. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(90 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(90 + 2 * math.cos(sine / 45))),.3)
  6354. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(8 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(-9 - 4 * math.cos(sine / 45))),.3)
  6355. end
  6356. attack = false
  6357. hum.WalkSpeed = storehumanoidWS
  6358. end
  6359.  
  6360. function EquinoxOrbs()
  6361. hum.WalkSpeed = 0
  6362. attack = true
  6363. for i = 0,1,0.1 do
  6364. swait()
  6365. 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)),.2)
  6366. 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)
  6367. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6368. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6369. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
  6370. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
  6371. end
  6372. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
  6373. --sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
  6374. for i = 0, 24 do
  6375. --slash(math.random(10,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),math.rad(0)),vt(0.01,0.01,0.01),math.random(100,400)/250,BrickColor.new("White"))
  6376. end
  6377. CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
  6378. CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
  6379. CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
  6380. CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
  6381. for i = 0,4,0.1 do
  6382. swait()
  6383. root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
  6384. local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
  6385. CreateMesh(dis,"Sphere",1,1,1)
  6386. dis.Anchored = true
  6387. dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
  6388. local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
  6389. CreateMesh(dis2,"Sphere",1,1,1)
  6390. dis2.Anchored = true
  6391. dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
  6392. --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
  6393. --sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
  6394. coroutine.resume(coroutine.create(function()
  6395. swait(60)
  6396. dis.Transparency = 1
  6397. dis2.Transparency = 1
  6398. coroutine.resume(coroutine.create(function()
  6399. for i = 0, 19 do
  6400. swait()
  6401. hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
  6402. end
  6403. hum.CameraOffset = vt(0,0,0)
  6404. end))
  6405. coroutine.resume(coroutine.create(function()
  6406. local eff = Instance.new("ParticleEmitter",dis)
  6407. eff.Texture = "rbxassetid://2273224484"
  6408. eff.LightEmission = 1
  6409. eff.Color = ColorSequence.new(dis.Color)
  6410. eff.Rate = 500000
  6411. eff.Lifetime = NumberRange.new(0.5,2)
  6412. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  6413. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  6414. eff.Speed = NumberRange.new(50,450)
  6415. eff.Drag = 5
  6416. eff.Rotation = NumberRange.new(-500,500)
  6417. eff.VelocitySpread = 9000
  6418. eff.RotSpeed = NumberRange.new(-50,50)
  6419. local eff2 = eff:Clone()
  6420. eff2.Parent = dis2
  6421. eff2.LightEmission = 0
  6422. eff2.Color = ColorSequence.new(dis2.Color)
  6423. wait(0.25)
  6424. eff.Enabled = false
  6425. eff2.Enabled = false
  6426. end))
  6427. MagniDamage(dis, 55, 89,219788936, 0, "Normal")
  6428. MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
  6429. CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
  6430. CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
  6431. CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
  6432. CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
  6433. CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
  6434. CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
  6435. sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
  6436. sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
  6437. end))
  6438. game:GetService("Debris"):AddItem(dis, 5)
  6439. game:GetService("Debris"):AddItem(dis2, 5)
  6440. 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)),.2)
  6441. 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)
  6442. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  6443. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
  6444. RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
  6445. LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
  6446. end
  6447. attack = false
  6448. hum.WalkSpeed = storehumanoidWS
  6449. end
  6450. function FallenDEMISE()
  6451. attack = true
  6452. hum.WalkSpeed = 0
  6453. local keptcolor = MAINRUINCOLOR
  6454. --bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
  6455. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
  6456. CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
  6457. for i = 0, 15, 0.1 do
  6458. swait()
  6459. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6460. dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6461. local at1 = Instance.new("Attachment",dis)
  6462. at1.Position = vt(-25000,0,0)
  6463. local at2 = Instance.new("Attachment",dis)
  6464. at2.Position = vt(25000,0,0)
  6465. local trl = Instance.new('Trail',dis)
  6466. trl.Attachment0 = at1
  6467. trl.FaceCamera = true
  6468. trl.Attachment1 = at2
  6469. trl.Texture = "rbxassetid://1049219073"
  6470. trl.LightEmission = 1
  6471. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6472. trl.Color = ColorSequence.new(dis.Color)
  6473. trl.Lifetime = 5
  6474. local bv = Instance.new("BodyVelocity")
  6475. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6476. bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
  6477. bv.Parent = dis
  6478. game:GetService("Debris"):AddItem(dis, 1)
  6479. sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
  6480. --slash(math.random(30,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(1,0.01,1),math.random(100,500)/250,BrickColor.new("Toothpaste"))
  6481. --slash(math.random(30,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(1,0.01,1),math.random(100,500)/250,BrickColor.new("Deep orange"))
  6482. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-35)),.1)
  6483. LH.C0=clerp(LH.C0,cf(-1,-0.45,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(35)),.1)
  6484. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6485. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6486. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6487. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6488. end
  6489. CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
  6490. for i = 0, 30, 0.1 do
  6491. swait()
  6492. coroutine.resume(coroutine.create(function()
  6493. for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
  6494. if v:FindFirstChild('Head') then
  6495. dmg(v)
  6496. end
  6497. end
  6498. end))
  6499. local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
  6500. dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  6501. local at1 = Instance.new("Attachment",dis)
  6502. at1.Position = vt(-50000,0,0)
  6503. local at2 = Instance.new("Attachment",dis)
  6504. at2.Position = vt(50000,0,0)
  6505. local trl = Instance.new('Trail',dis)
  6506. trl.Attachment0 = at1
  6507. trl.FaceCamera = true
  6508. trl.Attachment1 = at2
  6509. trl.Texture = "rbxassetid://1049219073"
  6510. trl.LightEmission = 1
  6511. trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  6512. trl.Color = ColorSequence.new(dis.Color)
  6513. trl.Lifetime = 10
  6514. local bv = Instance.new("BodyVelocity")
  6515. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  6516. bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
  6517. bv.Parent = dis
  6518. game:GetService("Debris"):AddItem(dis, math.random(1,4))
  6519. --sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
  6520. --sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
  6521. --sphere2(2,"Add",root.CFrame*CFrame.new(math.random(-2000,2000),math.random(-2000,2000),math.random(-2000,2000)),vt(0,0,0),5,5,5,BrickColor.new("Deep orange"))
  6522. --sphere2(2,"Add",root.CFrame*CFrame.new(math.random(-2000,2000),math.random(-2000,2000),math.random(-2000,2000)),vt(0,0,0),5,5,5,BrickColor.new("Toothpaste"))
  6523. --slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,0.01,5),math.random(500,5000)/250,BrickColor.new("Deep orange"))
  6524. --slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,0.01,5),math.random(500,5000)/250,BrickColor.new("Toothpaste"))
  6525. for i = 0, 2 do
  6526. --slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,math.random(-3,1000),0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(2,0.01,2),math.random(250,750)/250,MAINRUINCOLOR)
  6527. end
  6528. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-35)),.1)
  6529. LH.C0=clerp(LH.C0,cf(-1,-0.45,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(35)),.1)
  6530. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
  6531. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6532. RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
  6533. LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
  6534. end
  6535. attack = false
  6536. hum.WalkSpeed = storehumanoidWS
  6537. end
  6538. -------------------------------------
  6539.  
  6540. Humanoid.Animator.Parent = nil
  6541.  
  6542. -------------------------------------
  6543.  
  6544. local attacktype = 1
  6545. mouse.Button1Down:connect(function()
  6546. if attack == false and attacktype == 1 then
  6547. attacktype = 2
  6548. attackone()
  6549. elseif attack == false and attacktype == 2 then
  6550. attacktype = 3
  6551. attacktwo()
  6552. elseif attack == false and attacktype == 3 then
  6553. attacktype = 1
  6554. attackthree()
  6555. elseif attack == false and attacktype == 4 then
  6556. attacktype = 1
  6557. --attackfour()
  6558. end
  6559. end)
  6560. mouse.KeyDown:connect(function(k)
  6561. if k == "q" and attack == false and ModeOfGlitch ~= 1 then
  6562. --normalmog() ---Disabled due to crashing... only in VSB
  6563. ModeOfGlitch = 1
  6564. storehumanoidWS = 16
  6565. hum.WalkSpeed = 16
  6566. rainbowmode = false
  6567. chaosmode = false
  6568. newTheme("rbxassetid://981170452",48.6,1,1.25)
  6569. RecolorTextAndRename("FROZEN",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
  6570. MAINRUINCOLOR = BrickColor.new("Bright blue")
  6571. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
  6572. end
  6573. if k == "e" and attack == false and ModeOfGlitch ~= 2 then
  6574. ModeOfGlitch = 2
  6575. storehumanoidWS = 16
  6576. hum.WalkSpeed = 19
  6577. rainbowmode = false
  6578. chaosmode = false
  6579. RecolorTextAndRename("MIDNIGHT",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
  6580. newTheme("rbxassetid://981170452",0,1,1.25)
  6581. MAINRUINCOLOR = BrickColor.new("Tr. Yellow")
  6582. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6583. end
  6584. if k == "r" and attack == false and ModeOfGlitch ~= 3 then
  6585. ModeOfGlitch = 3
  6586. storehumanoidWS = 16
  6587. hum.WalkSpeed = 16
  6588. rainbowmode = false
  6589. chaosmode = false
  6590. RecolorTextAndRename("BraveFreeze",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
  6591. newTheme("rbxassetid://248144653",58.15,0.98,1.25)
  6592. MAINRUINCOLOR = BrickColor.new("Neon orange")
  6593. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6594. end
  6595. if k == "t" and attack == false and ModeOfGlitch ~= 4 then
  6596. ModeOfGlitch = 4
  6597. storehumanoidWS = 16
  6598. hum.WalkSpeed = 20
  6599. rainbowmode = false
  6600. chaosmode = true
  6601. RecolorTextAndRename("InSaNe",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
  6602. newTheme("rbxassetid://1256211816",0,1.01,1.25)
  6603. MAINRUINCOLOR = BrickColor.new("Tr. Red")
  6604. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6605. end
  6606. if k == "y" and attack == false and ModeOfGlitch ~= 5 then
  6607. ModeOfGlitch = 5
  6608. storehumanoidWS = 16
  6609. hum.WalkSpeed = 30
  6610. rainbowmode = false
  6611. chaosmode = false
  6612. RecolorTextAndRename("SUNLIGHT",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
  6613. newTheme("rbxassetid://929330882",0,1.02,1.25)
  6614. MAINRUINCOLOR = BrickColor.new("New Yeller")
  6615. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6616. end
  6617. if k == "u" and attack == false and ModeOfGlitch ~= 6 then
  6618. ModeOfGlitch = 6
  6619. storehumanoidWS = 100
  6620. hum.WalkSpeed = 100
  6621. rainbowmode = false
  6622. chaosmode = false
  6623. RecolorTextAndRename("RED/BLUE",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
  6624. newTheme("rbxassetid://1057842305",0,1.01,1.25)
  6625. MAINRUINCOLOR = BrickColor.new("Really red")
  6626. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6627. end
  6628. if k == "f" and attack == false and ModeOfGlitch ~= 8 then
  6629. ModeOfGlitch = 8
  6630. storehumanoidWS = 140
  6631. hum.WalkSpeed = 140
  6632. rainbowmode = false
  6633. chaosmode = false
  6634. RecolorTextAndRename("Forget",Color3.new(1,1,1),BrickColor.new("Crimson").Color,"Code")
  6635. newTheme("rbxassetid://1985652577",0,1.01,1.25)
  6636. MAINRUINCOLOR = BrickColor.new("Camo")
  6637. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6638. end
  6639. if k == "g" and attack == false and ModeOfGlitch ~= 9 then
  6640. ModeOfGlitch = 9
  6641. storehumanoidWS = 150
  6642. hum.WalkSpeed = 150
  6643. rainbowmode = false
  6644. chaosmode = false
  6645. RecolorTextAndRename("POISON",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
  6646. newTheme("rbxassetid://332149004",0,1.1,1.25)
  6647. MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
  6648. RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6649. end
  6650. if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
  6651. ModeOfGlitch = 8889
  6652. storehumanoidWS = 180
  6653. hum.WalkSpeed = 180
  6654. rainbowmode = false
  6655. chaosmode = false
  6656. RecolorTextAndRename("CALAMITY",BrickColor.new("Alder").Color,BrickColor.new("Lilac").Color,"Antique")
  6657. newTheme("rbxassetid://1359036559",0,1.01,1.25)
  6658. MAINRUINCOLOR = BrickColor.new("Lilac")
  6659. RecolorThing(MAINRUINCOLOR,BrickColor.new("Alder"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6660. end
  6661. if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
  6662. ModeOfGlitch = 55469696922
  6663. storehumanoidWS = 275
  6664. hum.WalkSpeed = 275
  6665. rainbowmode = false
  6666. chaosmode = false
  6667. RecolorTextAndRename("NANO",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
  6668. newTheme("rbxassetid://582020393",0,1.005,1.25)
  6669. MAINRUINCOLOR = BrickColor.new("Hot pink")
  6670. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6671. end
  6672. if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
  6673. ModeOfGlitch = 4367677813
  6674. storehumanoidWS = 225
  6675. hum.WalkSpeed = 225
  6676. rainbowmode = false
  6677. chaosmode = false
  6678. RecolorTextAndRename("BRIGHTNESS",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
  6679. newTheme("rbxassetid://363284685",0,1.01,1.25)
  6680. MAINRUINCOLOR = BrickColor.new("Tr. Lg blue")
  6681. RecolorThing(MAINRUINCOLOR,BrickColor.new(" Tr. Medi. reddish violet"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6682. end
  6683. if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
  6684. ModeOfGlitch = 9999999921111
  6685. storehumanoidWS = 300
  6686. hum.WalkSpeed = 300
  6687. rainbowmode = false
  6688. chaosmode = false
  6689. RecolorTextAndRename("DESTROY",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
  6690. newTheme("rbxassetid://643309199",0,1.01,1.25)
  6691. MAINRUINCOLOR = BrickColor.new("Bright bluish green")
  6692. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6693. end
  6694. if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
  6695. ModeOfGlitch = 999999999556
  6696. storehumanoidWS = 500
  6697. hum.WalkSpeed = 500
  6698. rainbowmode = false
  6699. chaosmode = false
  6700. RecolorTextAndRename("Tech",BrickColor.new("Really blue").Color,BrickColor.new("Really black").Color,"Code")
  6701. newTheme("rbxassetid://719008519",0,1.02,1.25)
  6702. MAINRUINCOLOR = BrickColor.new("Really black")
  6703. RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6704. end
  6705. if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
  6706. ModeOfGlitch = 1264532489
  6707. storehumanoidWS = 250
  6708. hum.WalkSpeed = 250
  6709. rainbowmode = false
  6710. chaosmode = false
  6711. RecolorTextAndRename("BROKEN",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
  6712. newTheme("rbxassetid://1505487022",0,1.01,1.25)
  6713. MAINRUINCOLOR = BrickColor.new("Earth blue")
  6714. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
  6715. end
  6716. if k == "l" and mutedtog == false then
  6717. mutedtog = true
  6718. kan.Volume = 0
  6719. elseif k == "l" and mutedtog == true then
  6720. mutedtog = false
  6721. kan.Volume = 1.25
  6722. end
  6723. if k == "p" and toggleTag == false then
  6724. toggleTag = true
  6725. modet.TextTransparency = 0
  6726. modet.TextStrokeTransparency = 0
  6727. elseif k == "p" and toggleTag == true then
  6728. toggleTag = false
  6729. modet.TextTransparency = 1
  6730. modet.TextStrokeTransparency = 1
  6731. end
  6732. if k == "z" and attack == false and ModeOfGlitch == 1 then
  6733. ExtinctiveHeartbreak()
  6734. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  6735. HeavenlyDisk()
  6736. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  6737. CorruptionEvent()
  6738. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  6739. RapidBurst()
  6740. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  6741. --DivineLights()
  6742. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  6743. EquinoxOrbs()
  6744. elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
  6745. FallenOrbs()
  6746. end
  6747. if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
  6748. FallenDEMISE()
  6749. end
  6750. if k == "x" and attack == false and ModeOfGlitch == 1 then
  6751. EndGROUND()
  6752. end
  6753. end)
  6754.  
  6755. --[[coroutine.resume(coroutine.create(function()
  6756. while true do
  6757. swait(2)
  6758. if chaosmode == true then
  6759. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  6760. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  6761. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  6762. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
  6763. for i, v in pairs(mw1:GetChildren()) do
  6764. if v:IsA("Part") then
  6765. v.Transparency = 0.75
  6766. v.BrickColor = BrickColor.random()
  6767. v.Material = "Neon"
  6768. end
  6769. end
  6770. for i, v in pairs(m2:GetChildren()) do
  6771. if v:IsA("Part") then
  6772. v.BrickColor = BrickColor.random()
  6773. v.Material = "Neon"
  6774. end
  6775. end
  6776. end
  6777. end
  6778. end))]]--
  6779. Humanoid.Name = "STARGLITCHER"
  6780. Humanoid.MaxHealth = math.huge
  6781. Humanoid.Health = math.huge
  6782. Instance.new("ForceField",char).Visible = false
  6783.  
  6784. local bguis = Instance.new("BillboardGui",tors)
  6785. bguis.Size = UDim2.new(25, 0, 25, 0)
  6786. local imgca = Instance.new("ImageLabel",bguis)
  6787. imgca.BackgroundTransparency = 1
  6788. imgca.ImageTransparency = 1
  6789. imgca.Size = UDim2.new(1,0,1,0)
  6790. imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
  6791. imgca.ImageColor3 = Color3.new(0,0,0)
  6792.  
  6793. idleanim=.4
  6794. while true do
  6795. if mutedtog == false then
  6796. kan.Volume = currentVol
  6797. elseif mutedtog == true then
  6798. kan.Volume = 0
  6799. end
  6800. kan.PlaybackSpeed = currentPitch
  6801. kan.Pitch = currentPitch
  6802. kan.SoundId = currentThemePlaying
  6803. kan.Looped = true
  6804. kan.Parent = char
  6805. kan:Resume()
  6806. if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 then
  6807. imgca.ImageTransparency = 1
  6808. elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
  6809. imgca.ImageColor3 = MAINRUINCOLOR.Color
  6810. imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
  6811. end
  6812. imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
  6813. bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
  6814. coroutine.resume(coroutine.create(function()
  6815. if chaosmode == true then
  6816. for i, v in pairs(mw1:GetChildren()) do
  6817. if v:IsA("Part") then
  6818. v.Transparency = 0
  6819. v.BrickColor = BrickColor.random()
  6820. v.Material = "Neon"
  6821. end
  6822. end
  6823. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  6824. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  6825. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  6826. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
  6827. end
  6828. end))
  6829. if chaosmode == false then
  6830. modet.Position = UDim2.new(0,0,0,0)
  6831. modet.Rotation = -5 * math.cos(sine / 32)
  6832. techc.Rotation = techc.Rotation + 1
  6833. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1
  6834. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1
  6835. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 + 1
  6836. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 - 1
  6837. ned.Rotation = 0 - 2 * math.cos(sine / 24)
  6838. ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
  6839. else
  6840. techc.Rotation = techc.Rotation + 1
  6841. circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
  6842. circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
  6843. imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
  6844. imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
  6845. ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
  6846. ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
  6847. modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  6848. modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
  6849. end
  6850. CameraManager()
  6851. swait()
  6852. lwing1weld.C1=clerp(lwing1weld.C1,cf(2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(12.5 + 5 * math.cos(sine / 32))),.3)
  6853. lwing2weld.C1=clerp(lwing2weld.C1,cf(3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(25 + 7.5 * math.cos(sine / 32))),.3)
  6854. lwing3weld.C1=clerp(lwing3weld.C1,cf(3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(37.5 + 10 * math.cos(sine / 32))),.3)
  6855. lwing4weld.C1=clerp(lwing4weld.C1,cf(4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(50 + 12.5 * math.cos(sine / 32))),.3)
  6856. lwing5weld.C1=clerp(lwing5weld.C1,cf(5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(62.5 + 15 * math.cos(sine / 32))),.3)
  6857. lwing6weld.C1=clerp(lwing6weld.C1,cf(6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(75 + 17.5 * math.cos(sine / 32))),.3)
  6858. rwing1weld.C1=clerp(rwing1weld.C1,cf(-2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(-12.5 - 5 * math.cos(sine / 32))),.3)
  6859. rwing2weld.C1=clerp(rwing2weld.C1,cf(-3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(-25 - 7.5 * math.cos(sine / 32))),.3)
  6860. rwing3weld.C1=clerp(rwing3weld.C1,cf(-3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(-37.5 - 10 * math.cos(sine / 32))),.3)
  6861. rwing4weld.C1=clerp(rwing4weld.C1,cf(-4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(-50 - 12.5 * math.cos(sine / 32))),.3)
  6862. rwing5weld.C1=clerp(rwing5weld.C1,cf(-5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(-62.5 - 15 * math.cos(sine / 32))),.3)
  6863. rwing6weld.C1=clerp(rwing6weld.C1,cf(-6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(-75 - 17.5 * math.cos(sine / 32))),.3)
  6864. sine = sine + change
  6865. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  6866. local velderp=RootPart.Velocity.y
  6867. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  6868. if equipped==true or equipped==false then
  6869. if attack==false then
  6870. idle=idle+1
  6871. else
  6872. idle=0
  6873. end
  6874. if idle>=500 then
  6875. if attack==false then
  6876. --Sheath()
  6877. end
  6878. end
  6879. if RootPart.Velocity.y > 1 and hitfloor==nil then
  6880. Anim="Jump"
  6881. if attack==false then
  6882. 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)
  6883. 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)
  6884. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  6885. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  6886. 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)
  6887. 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)
  6888. end
  6889. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  6890. Anim="Fall"
  6891. if attack==false then
  6892. 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)
  6893. 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)
  6894. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  6895. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  6896. 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)
  6897. 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)
  6898. end
  6899. elseif torvel<1 and hitfloor~=nil then
  6900. Anim="Idle"
  6901. if attack==false then
  6902. if ModeOfGlitch == 1 then
  6903. local snap = math.random(1,10)
  6904. if snap == 1 then
  6905. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(22 + math.random(-5,5))),1)
  6906. end
  6907. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5.5 - 2 * math.cos(sine / 56)),math.rad(-12 - 2 * math.cos(sine / 32))),.1)
  6908. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-6),math.rad(22 - 2 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  6909. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 32),0 + 0.1 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-22 + 2 * math.cos(sine / 56))),.1)
  6910. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 2 * math.cos(sine / 37)),math.rad(0 + 5 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(22 - 2 * math.cos(sine / 56))),.1)
  6911. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.1)
  6912. LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),-0.2)*angles(math.rad(148 - 2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(22 - 2 * math.cos(sine / 45))),.1)
  6913. elseif ModeOfGlitch == 2 then
  6914. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
  6915. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  6916. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 42))),.1)
  6917. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 58)),math.rad(0 + 1 * math.cos(sine / 53))),.1)
  6918. RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
  6919. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  6920. elseif ModeOfGlitch == 3 then
  6921. local snap = math.random(1,32)
  6922. if snap == 1 then
  6923. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1)
  6924. end
  6925. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
  6926. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
  6927. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.02 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 44))),.1)
  6928. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  6929. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 + 3 * math.cos(sine / 45))),.1)
  6930. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(33 - 3 * math.cos(sine / 45))),.1)
  6931. elseif ModeOfGlitch == 4 then
  6932. local snap = math.random(1,5)
  6933. if snap == 1 then
  6934. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),0.6)
  6935. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 + 5 * math.cos(sine / 74) + math.random(-1,1)),math.rad(1 - 3 * math.cos(sine / 53) + math.random(-1,1)),math.rad(1 + 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
  6936. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 - 3 * math.cos(sine / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(sine / 55) + math.random(-1,1)),math.rad(-3 - 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
  6937. end
  6938. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(25 - 2 * math.cos(sine / 32))),.1)
  6939. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-25 + 2 * math.cos(sine / 32))),.1)
  6940. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(25 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  6941. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  6942. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(1 + 3 * math.cos(sine / 45))),.1)
  6943. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-3 - 3 * math.cos(sine / 45))),.1)
  6944. elseif ModeOfGlitch == 5 then
  6945. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  6946. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  6947. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  6948. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(10 + 2 * math.cos(sine / 53))),.1)
  6949. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(8 + 3 * math.cos(sine / 45))),.1)
  6950. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-14 - 3 * math.cos(sine / 45))),.1)
  6951. elseif ModeOfGlitch == 6 then
  6952. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  6953. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  6954. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  6955. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  6956. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(14 + 5 * math.cos(sine / 32))),.1)
  6957. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-14 - 6 * math.cos(sine / 33))),.1)
  6958. elseif ModeOfGlitch == 8 then
  6959. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1)
  6960. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1)
  6961. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-20)),.1)
  6962. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(20 + 2 * math.cos(sine / 53))),.1)
  6963. RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
  6964. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  6965. elseif ModeOfGlitch == 9 then
  6966. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-4 - 2 * math.cos(sine / 53)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
  6967. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(9 - 2 * math.cos(sine / 53)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
  6968. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 53))),.1)
  6969. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(19 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  6970. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(18 - 3 * math.cos(sine / 53)),math.rad(17 + 3 * math.cos(sine / 45))),.1)
  6971. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(-11 - 1 * math.cos(sine / 55)),math.rad(-14 - 3 * math.cos(sine / 45))),.1)
  6972. elseif ModeOfGlitch == 8889 then
  6973. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 5 * math.cos(sine / 51))),.1)
  6974. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 44))),.1)
  6975. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-36)),.1)
  6976. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(36 + 2 * math.cos(sine / 53))),.1)
  6977. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(3 + 7 * math.cos(sine / 79)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 10 * math.cos(sine / 73))),.1)
  6978. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(15 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-27 - 6 * math.cos(sine / 33))),.1)
  6979. elseif ModeOfGlitch == 1264532489 then
  6980. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-14 - 5 * math.cos(sine / 48))),.1)
  6981. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(15 + 7 * math.cos(sine / 51))),.1)
  6982. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  6983. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(21 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  6984. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(13 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(28 + 2 * math.cos(sine / 45))),.1)
  6985. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  6986. elseif ModeOfGlitch == 9999999921111 then
  6987. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(8 - 6 * math.cos(sine / 67)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-18 - 5 * math.cos(sine / 32))),.1)
  6988. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-15 - 8 * math.cos(sine / 74)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(31 + 8 * math.cos(sine / 38))),.1)
  6989. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(-21 - 2 * math.cos(sine / 32)),math.rad(8),math.rad(0)),.1)
  6990. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 6 * math.cos(sine / 37)),math.rad(-14 + 5 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  6991. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-24 + 9 * math.cos(sine / 72)),math.rad(3 - 5 * math.cos(sine / 58)),math.rad(38 + 7 * math.cos(sine / 45))),.1)
  6992. LW.C0=clerp(LW.C0,cf(-0.8,0.35 + 0.025 * math.cos(sine / 45),-0.75)*angles(math.rad(160 - 2 * math.cos(sine / 66)),math.rad(5 - 8 * math.cos(sine / 59)),math.rad(87 - 3 * math.cos(sine / 45))),.1)
  6993. elseif ModeOfGlitch == 4367677813 then
  6994. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 32))),.1)
  6995. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 2 * math.cos(sine / 32))),.1)
  6996. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(10)),.1)
  6997. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 58)),math.rad(-10 + 2 * math.cos(sine / 53))),.1)
  6998. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(4 + 3 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(19 + 2 * math.cos(sine / 45))),.1)
  6999. LW.C0=clerp(LW.C0,cf(-1.25,0.5 + 0.025 * math.cos(sine / 45),-0.15)*angles(math.rad(10 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(13 - 4 * math.cos(sine / 45))),.1)
  7000. elseif ModeOfGlitch == 55469696922 then
  7001. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(19 + 8 * math.cos(sine / 62)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-20 - 3 * math.cos(sine / 34))),.1)
  7002. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 - 1 * math.cos(sine / 55)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(26 + 5 * math.cos(sine / 41))),.1)
  7003. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(-13 - 2 * math.cos(sine / 32)),math.rad(3),math.rad(10 - 4 * math.cos(sine / 67))),.1)
  7004. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 8 * math.cos(sine / 37)),math.rad(-21 + 2 * math.cos(sine / 58)),math.rad(-10 + 2 * math.cos(sine / 53))),.1)
  7005. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 + 14 * math.cos(sine / 45))),.1)
  7006. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(35 - 8 * math.cos(sine / 51))),.1)
  7007. elseif ModeOfGlitch == 999999999556 then
  7008. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 6 * math.cos(sine / 39))),.1)
  7009. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 45))),.1)
  7010. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(17)),.1)
  7011. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(29 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(-17 + 2 * math.cos(sine / 53))),.1)
  7012. RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
  7013. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
  7014. end
  7015. end
  7016. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  7017. Anim="Walk"
  7018. if attack==false then
  7019. 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)
  7020. 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)
  7021. 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)
  7022. 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)
  7023. 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)
  7024. 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)
  7025. end
  7026. elseif torvel>=22 and hitfloor~=nil then
  7027. Anim="Run"
  7028. if attack==false then
  7029. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 8889 then
  7030. 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 + 95 * math.cos(sine / 6))),.1)
  7031. 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 + 95 * math.cos(sine / 6))),.1)
  7032. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(25 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 1 * math.cos(sine / 6))),.1)
  7033. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-6 + 2 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 1 * math.cos(sine / 6))),.1)
  7034. RW.C0=clerp(RW.C0,cf(1.5,0.5,0.3)*angles(math.rad(-50 + 10 * math.cos(sine / 3)),math.rad(-10),math.rad(7 + 5 * math.cos(sine / 6))),.1)
  7035. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.3)*angles(math.rad(-50 + 10 * math.cos(sine / 3)),math.rad(10),math.rad(-7 - 5 * math.cos(sine / 6))),.1)
  7036. if ModeOfGlitch == 9 then
  7037. --
  7038. end
  7039. elseif ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 then
  7040. 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)
  7041. 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)
  7042. 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)
  7043. 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)
  7044. 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)
  7045. 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)
  7046. end
  7047. end
  7048. end
  7049. end
  7050. end
  7051. end)
  7052.  
  7053. TextButton_2.Parent = TextBox
  7054. TextButton_2.BackgroundColor3 = Color3.new(0.666667, 1, 0)
  7055. TextButton_2.Position = UDim2.new(0.535545051, 0, 1, 0)
  7056. TextButton_2.Size = UDim2.new(0, 98, 0, 50)
  7057. TextButton_2.Font = Enum.Font.SourceSans
  7058. TextButton_2.Text = "Fighter"
  7059. TextButton_2.TextColor3 = Color3.new(0, 0, 0)
  7060. TextButton_2.TextSize = 14
  7061.  
  7062. (Fighter).MouseButton1Down:connect(function()
  7063. --[[ Name : Gale Fighter ]]--
  7064. -------------------------------------------------------
  7065. --A Collaboration Between makhail07 and KillerDarkness0105
  7066.  
  7067. --Base Animaion by makhail07, attacks by KillerDarkness0105
  7068. -------------------------------------------------------
  7069.  
  7070.  
  7071. local FavIDs = {
  7072. 340106355, --Nefl Crystals
  7073. 927529620, --Dimension
  7074. 876981900, --Fantasy
  7075. 398987889, --Ordinary Days
  7076. 1117396305, --Oh wait, it's you.
  7077. 885996042, --Action Winter Journey
  7078. 919231299, --Sprawling Idiot Effigy
  7079. 743466274, --Good Day Sunshine
  7080. 727411183, --Knife Fight
  7081. 1402748531, --The Earth Is Counting On You!
  7082. 595230126 --Robot Language
  7083. }
  7084.  
  7085.  
  7086.  
  7087. --The reality of my life isn't real but a Universe -makhail07
  7088. wait(0.2)
  7089. local plr = game:service'Players'.LocalPlayer
  7090. print('Local User is '..plr.Name)
  7091. print('Gale Fighter Loaded')
  7092. print('The Fighter that is as fast as wind, a true Fighter')
  7093. local char = plr.Character
  7094. local hum = char.Humanoid
  7095. local hed = char.Head
  7096. local root = char.HumanoidRootPart
  7097. local rootj = root.RootJoint
  7098. local tors = char.Torso
  7099. local ra = char["Right Arm"]
  7100. local la = char["Left Arm"]
  7101. local rl = char["Right Leg"]
  7102. local ll = char["Left Leg"]
  7103. local neck = tors["Neck"]
  7104. local mouse = plr:GetMouse()
  7105. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  7106. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  7107. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  7108. local maincolor = BrickColor.new("Institutional white")
  7109. hum.MaxHealth = 200
  7110. hum.Health = 200
  7111.  
  7112. -------------------------------------------------------
  7113. --Start Good Stuff--
  7114. -------------------------------------------------------
  7115. cam = game.Workspace.CurrentCamera
  7116. CF = CFrame.new
  7117. angles = CFrame.Angles
  7118. attack = false
  7119. Euler = CFrame.fromEulerAnglesXYZ
  7120. Rad = math.rad
  7121. IT = Instance.new
  7122. BrickC = BrickColor.new
  7123. Cos = math.cos
  7124. Acos = math.acos
  7125. Sin = math.sin
  7126. Asin = math.asin
  7127. Abs = math.abs
  7128. Mrandom = math.random
  7129. Floor = math.floor
  7130. -------------------------------------------------------
  7131. --End Good Stuff--
  7132. -------------------------------------------------------
  7133. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  7134. RSH, LSH = nil, nil
  7135. RW = Instance.new("Weld")
  7136. LW = Instance.new("Weld")
  7137. RH = tors["Right Hip"]
  7138. LH = tors["Left Hip"]
  7139. RSH = tors["Right Shoulder"]
  7140. LSH = tors["Left Shoulder"]
  7141. RSH.Parent = nil
  7142. LSH.Parent = nil
  7143. RW.Name = "RW"
  7144. RW.Part0 = tors
  7145. RW.C0 = CF(1.5, 0.5, 0)
  7146. RW.C1 = CF(0, 0.5, 0)
  7147. RW.Part1 = ra
  7148. RW.Parent = tors
  7149. LW.Name = "LW"
  7150. LW.Part0 = tors
  7151. LW.C0 = CF(-1.5, 0.5, 0)
  7152. LW.C1 = CF(0, 0.5, 0)
  7153. LW.Part1 = la
  7154. LW.Parent = tors
  7155. vt = Vector3.new
  7156. Effects = {}
  7157. -------------------------------------------------------
  7158. --Start HeartBeat--
  7159. -------------------------------------------------------
  7160. ArtificialHB = Instance.new("BindableEvent", script)
  7161. ArtificialHB.Name = "Heartbeat"
  7162. script:WaitForChild("Heartbeat")
  7163.  
  7164. frame = 1 / 90
  7165. tf = 0
  7166. allowframeloss = false
  7167. tossremainder = false
  7168.  
  7169.  
  7170. lastframe = tick()
  7171. script.Heartbeat:Fire()
  7172.  
  7173.  
  7174. game:GetService("RunService").Heartbeat:connect(function(s, p)
  7175. tf = tf + s
  7176. if tf >= frame then
  7177. if allowframeloss then
  7178. script.Heartbeat:Fire()
  7179. lastframe = tick()
  7180. else
  7181. for i = 1, math.floor(tf / frame) do
  7182. script.Heartbeat:Fire()
  7183. end
  7184. lastframe = tick()
  7185. end
  7186. if tossremainder then
  7187. tf = 0
  7188. else
  7189. tf = tf - frame * math.floor(tf / frame)
  7190. end
  7191. end
  7192. end)
  7193. -------------------------------------------------------
  7194. --End HeartBeat--
  7195. -------------------------------------------------------
  7196.  
  7197.  
  7198.  
  7199. -------------------------------------------------------
  7200. --Start Combo Function--
  7201. -------------------------------------------------------
  7202. local comboing = false
  7203. local combohits = 0
  7204. local combotime = 0
  7205. local maxtime = 65
  7206.  
  7207.  
  7208.  
  7209. function sandbox(var,func)
  7210. local env = getfenv(func)
  7211. local newenv = setmetatable({},{
  7212. __index = function(self,k)
  7213. if k=="script" then
  7214. return var
  7215. else
  7216. return env[k]
  7217. end
  7218. end,
  7219. })
  7220. setfenv(func,newenv)
  7221. return func
  7222. end
  7223. cors = {}
  7224. mas = Instance.new("Model",game:GetService("Lighting"))
  7225. comboframe = Instance.new("ScreenGui")
  7226. Frame1 = Instance.new("Frame")
  7227. Frame2 = Instance.new("Frame")
  7228. TextLabel3 = Instance.new("TextLabel")
  7229. comboframe.Name = "combinserter"
  7230. comboframe.Parent = mas
  7231. Frame1.Name = "combtimegui"
  7232. Frame1.Parent = comboframe
  7233. Frame1.Size = UDim2.new(0, 300, 0, 14)
  7234. Frame1.Position = UDim2.new(0, 900, 0.629999971, 0)
  7235. Frame1.BackgroundColor3 = Color3.new(0, 0, 0)
  7236. Frame1.BorderColor3 = Color3.new(0.0313726, 0.0470588, 0.0627451)
  7237. Frame1.BorderSizePixel = 5
  7238. Frame2.Name = "combtimeoverlay"
  7239. Frame2.Parent = Frame1
  7240. Frame2.Size = UDim2.new(0, 0, 0, 14)
  7241. Frame2.BackgroundColor3 = Color3.new(0, 1, 0)
  7242. Frame2.ZIndex = 2
  7243. TextLabel3.Parent = Frame2
  7244. TextLabel3.Transparency = 0
  7245. TextLabel3.Size = UDim2.new(0, 300, 0, 50)
  7246. TextLabel3.Text ="Hits: "..combohits
  7247. TextLabel3.Position = UDim2.new(0, 0, -5.5999999, 0)
  7248. TextLabel3.BackgroundColor3 = Color3.new(1, 1, 1)
  7249. TextLabel3.BackgroundTransparency = 1
  7250. TextLabel3.Font = Enum.Font.Bodoni
  7251. TextLabel3.FontSize = Enum.FontSize.Size60
  7252. TextLabel3.TextColor3 = Color3.new(0, 1, 0)
  7253. TextLabel3.TextStrokeTransparency = 0
  7254. gui = game:GetService("Players").LocalPlayer.PlayerGui
  7255. for i,v in pairs(mas:GetChildren()) do
  7256. v.Parent = game:GetService("Players").LocalPlayer.PlayerGui
  7257. pcall(function() v:MakeJoints() end)
  7258. end
  7259. mas:Destroy()
  7260. for i,v in pairs(cors) do
  7261. spawn(function()
  7262. pcall(v)
  7263. end)
  7264. end
  7265.  
  7266.  
  7267.  
  7268.  
  7269.  
  7270. coroutine.resume(coroutine.create(function()
  7271. while true do
  7272. wait()
  7273.  
  7274.  
  7275. if combotime>65 then
  7276. combotime = 65
  7277. end
  7278.  
  7279.  
  7280.  
  7281.  
  7282.  
  7283. if combotime>.1 and comboing == true then
  7284. TextLabel3.Transparency = 0
  7285. TextLabel3.TextStrokeTransparency = 0
  7286. TextLabel3.BackgroundTransparency = 1
  7287. Frame1.Transparency = 0
  7288. Frame2.Transparency = 0
  7289. TextLabel3.Text ="Hits: "..combohits
  7290. combotime = combotime - .34
  7291. Frame2.Size = Frame2.Size:lerp(UDim2.new(0, combotime/maxtime*300, 0, 14),0.42)
  7292. end
  7293.  
  7294.  
  7295.  
  7296.  
  7297. if combotime<.1 then
  7298. TextLabel3.BackgroundTransparency = 1
  7299. TextLabel3.Transparency = 1
  7300. TextLabel3.TextStrokeTransparency = 1
  7301.  
  7302. Frame2.Size = UDim2.new(0, 0, 0, 14)
  7303. combotime = 0
  7304. comboing = false
  7305. Frame1.Transparency = 1
  7306. Frame2.Transparency = 1
  7307. combohits = 0
  7308.  
  7309. end
  7310. end
  7311. end))
  7312.  
  7313.  
  7314.  
  7315. -------------------------------------------------------
  7316. --End Combo Function--
  7317. -------------------------------------------------------
  7318.  
  7319. -------------------------------------------------------
  7320. --Start Important Functions--
  7321. -------------------------------------------------------
  7322. function swait(num)
  7323. if num == 0 or num == nil then
  7324. game:service("RunService").Stepped:wait(0)
  7325. else
  7326. for i = 0, num do
  7327. game:service("RunService").Stepped:wait(0)
  7328. end
  7329. end
  7330. end
  7331. function thread(f)
  7332. coroutine.resume(coroutine.create(f))
  7333. end
  7334. function clerp(a, b, t)
  7335. local qa = {
  7336. QuaternionFromCFrame(a)
  7337. }
  7338. local qb = {
  7339. QuaternionFromCFrame(b)
  7340. }
  7341. local ax, ay, az = a.x, a.y, a.z
  7342. local bx, by, bz = b.x, b.y, b.z
  7343. local _t = 1 - t
  7344. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  7345. end
  7346. function QuaternionFromCFrame(cf)
  7347. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  7348. local trace = m00 + m11 + m22
  7349. if trace > 0 then
  7350. local s = math.sqrt(1 + trace)
  7351. local recip = 0.5 / s
  7352. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  7353. else
  7354. local i = 0
  7355. if m00 < m11 then
  7356. i = 1
  7357. end
  7358. if m22 > (i == 0 and m00 or m11) then
  7359. i = 2
  7360. end
  7361. if i == 0 then
  7362. local s = math.sqrt(m00 - m11 - m22 + 1)
  7363. local recip = 0.5 / s
  7364. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  7365. elseif i == 1 then
  7366. local s = math.sqrt(m11 - m22 - m00 + 1)
  7367. local recip = 0.5 / s
  7368. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  7369. elseif i == 2 then
  7370. local s = math.sqrt(m22 - m00 - m11 + 1)
  7371. local recip = 0.5 / s
  7372. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  7373. end
  7374. end
  7375. end
  7376. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  7377. local xs, ys, zs = x + x, y + y, z + z
  7378. local wx, wy, wz = w * xs, w * ys, w * zs
  7379. local xx = x * xs
  7380. local xy = x * ys
  7381. local xz = x * zs
  7382. local yy = y * ys
  7383. local yz = y * zs
  7384. local zz = z * zs
  7385. 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))
  7386. end
  7387. function QuaternionSlerp(a, b, t)
  7388. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  7389. local startInterp, finishInterp
  7390. if cosTheta >= 1.0E-4 then
  7391. if 1 - cosTheta > 1.0E-4 then
  7392. local theta = math.acos(cosTheta)
  7393. local invSinTheta = 1 / Sin(theta)
  7394. startInterp = Sin((1 - t) * theta) * invSinTheta
  7395. finishInterp = Sin(t * theta) * invSinTheta
  7396. else
  7397. startInterp = 1 - t
  7398. finishInterp = t
  7399. end
  7400. elseif 1 + cosTheta > 1.0E-4 then
  7401. local theta = math.acos(-cosTheta)
  7402. local invSinTheta = 1 / Sin(theta)
  7403. startInterp = Sin((t - 1) * theta) * invSinTheta
  7404. finishInterp = Sin(t * theta) * invSinTheta
  7405. else
  7406. startInterp = t - 1
  7407. finishInterp = t
  7408. end
  7409. 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
  7410. end
  7411. function rayCast(Position, Direction, Range, Ignore)
  7412. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  7413. end
  7414. local RbxUtility = LoadLibrary("RbxUtility")
  7415. local Create = RbxUtility.Create
  7416.  
  7417. -------------------------------------------------------
  7418. --Start Damage Function--
  7419. -------------------------------------------------------
  7420. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  7421. if hit.Parent == nil then
  7422. return
  7423. end
  7424. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  7425. for _, v in pairs(hit.Parent:children()) do
  7426. if v:IsA("Humanoid") then
  7427. h = v
  7428. end
  7429. end
  7430. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  7431.  
  7432. hit.Parent:FindFirstChild("Head"):BreakJoints()
  7433. end
  7434.  
  7435. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  7436. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  7437. if hit.Parent.DebounceHit.Value == true then
  7438. return
  7439. end
  7440. end
  7441. if insta == true then
  7442. hit.Parent:FindFirstChild("Head"):BreakJoints()
  7443. end
  7444. local c = Create("ObjectValue"){
  7445. Name = "creator",
  7446. Value = game:service("Players").LocalPlayer,
  7447. Parent = h,
  7448. }
  7449. game:GetService("Debris"):AddItem(c, .5)
  7450. if HitSound ~= nil and HitPitch ~= nil then
  7451. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  7452. end
  7453. local Damage = math.random(minim, maxim)
  7454. local blocked = false
  7455. local block = hit.Parent:findFirstChild("Block")
  7456. if block ~= nil then
  7457. if block.className == "IntValue" then
  7458. if block.Value > 0 then
  7459. blocked = true
  7460. block.Value = block.Value - 1
  7461. print(block.Value)
  7462. end
  7463. end
  7464. end
  7465. if blocked == false then
  7466. h.Health = h.Health - Damage
  7467. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  7468. else
  7469. h.Health = h.Health - (Damage / 2)
  7470. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  7471. end
  7472. if Type == "Knockdown" then
  7473. local hum = hit.Parent.Humanoid
  7474. hum.PlatformStand = true
  7475. coroutine.resume(coroutine.create(function(HHumanoid)
  7476. swait(1)
  7477. HHumanoid.PlatformStand = false
  7478. end), hum)
  7479. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  7480. local bodvol = Create("BodyVelocity"){
  7481. velocity = angle * knockback,
  7482. P = 5000,
  7483. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  7484. Parent = hit,
  7485. }
  7486. local rl = Create("BodyAngularVelocity"){
  7487. P = 3000,
  7488. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  7489. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  7490. Parent = hit,
  7491. }
  7492. game:GetService("Debris"):AddItem(bodvol, .5)
  7493. game:GetService("Debris"):AddItem(rl, .5)
  7494. elseif Type == "Normal" then
  7495. local vp = Create("BodyVelocity"){
  7496. P = 500,
  7497. maxForce = Vector3.new(math.huge, 0, math.huge),
  7498. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  7499. }
  7500. if knockback > 0 then
  7501. vp.Parent = hit.Parent.Torso
  7502. end
  7503. game:GetService("Debris"):AddItem(vp, .5)
  7504. elseif Type == "Up" then
  7505. local bodyVelocity = Create("BodyVelocity"){
  7506. velocity = Vector3.new(0, 20, 0),
  7507. P = 5000,
  7508. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  7509. Parent = hit,
  7510. }
  7511. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  7512. elseif Type == "DarkUp" then
  7513. coroutine.resume(coroutine.create(function()
  7514. for i = 0, 1, 0.1 do
  7515. swait()
  7516. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  7517. end
  7518. end))
  7519. local bodyVelocity = Create("BodyVelocity"){
  7520. velocity = Vector3.new(0, 20, 0),
  7521. P = 5000,
  7522. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  7523. Parent = hit,
  7524. }
  7525. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  7526. elseif Type == "Snare" then
  7527. local bp = Create("BodyPosition"){
  7528. P = 2000,
  7529. D = 100,
  7530. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  7531. position = hit.Parent.Torso.Position,
  7532. Parent = hit.Parent.Torso,
  7533. }
  7534. game:GetService("Debris"):AddItem(bp, 1)
  7535. elseif Type == "Freeze" then
  7536. local BodPos = Create("BodyPosition"){
  7537. P = 50000,
  7538. D = 1000,
  7539. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  7540. position = hit.Parent.Torso.Position,
  7541. Parent = hit.Parent.Torso,
  7542. }
  7543. local BodGy = Create("BodyGyro") {
  7544. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  7545. P = 20e+003,
  7546. Parent = hit.Parent.Torso,
  7547. cframe = hit.Parent.Torso.CFrame,
  7548. }
  7549. hit.Parent.Torso.Anchored = true
  7550. coroutine.resume(coroutine.create(function(Part)
  7551. swait(1.5)
  7552. Part.Anchored = false
  7553. end), hit.Parent.Torso)
  7554. game:GetService("Debris"):AddItem(BodPos, 3)
  7555. game:GetService("Debris"):AddItem(BodGy, 3)
  7556. end
  7557. local debounce = Create("BoolValue"){
  7558. Name = "DebounceHit",
  7559. Parent = hit.Parent,
  7560. Value = true,
  7561. }
  7562. game:GetService("Debris"):AddItem(debounce, Delay)
  7563. c = Create("ObjectValue"){
  7564. Name = "creator",
  7565. Value = Player,
  7566. Parent = h,
  7567. }
  7568. game:GetService("Debris"):AddItem(c, .5)
  7569. end
  7570. end
  7571.  
  7572.  
  7573.  
  7574.  
  7575. kDamagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  7576. if hit.Parent==nil then
  7577. return
  7578. end
  7579. h=hit.Parent:FindFirstChild("Humanoid")
  7580. for _,v in pairs(hit.Parent:children()) do
  7581. if v:IsA("Humanoid") then
  7582. h=v
  7583. end
  7584. end
  7585. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  7586. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  7587. end
  7588. if hit.Parent.className=="Hat" then
  7589. hit=hit.Parent.Parent:findFirstChild("Head")
  7590. end
  7591. if h~=nil and hit.Parent.Name~=char.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  7592. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  7593. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  7594. return
  7595. end]]
  7596. -- hs(hit,1.2)
  7597. c=Instance.new("ObjectValue")
  7598. c.Name="creator"
  7599. c.Value=game:service("Players").LocalPlayer
  7600. c.Parent=h
  7601. game:GetService("Debris"):AddItem(c,.5)
  7602. Damage=math.random(minim,maxim)
  7603. -- h:TakeDamage(Damage)
  7604. blocked=false
  7605. block=hit.Parent:findFirstChild("Block")
  7606. if block~=nil then
  7607. print(block.className)
  7608. if block.className=="NumberValue" then
  7609. if block.Value>0 then
  7610. blocked=true
  7611. if decreaseblock==nil then
  7612. block.Value=block.Value-1
  7613. end
  7614. end
  7615. end
  7616. if block.className=="IntValue" then
  7617. if block.Value>0 then
  7618. blocked=true
  7619. if decreaseblock~=nil then
  7620. block.Value=block.Value-1
  7621. end
  7622. end
  7623. end
  7624. end
  7625. if blocked==false then
  7626. -- h:TakeDamage(Damage)
  7627. h.Health=h.Health-Damage
  7628. kshowDamage(hit.Parent,Damage,.5,BrickColor.new("White"))
  7629. else
  7630. h.Health=h.Health-(Damage/2)
  7631. kshowDamage(hit.Parent,Damage/2,.5,BrickColor.new("White"))
  7632. end
  7633. if Type=="Knockdown" then
  7634. hum=hit.Parent.Humanoid
  7635. hum.PlatformStand=true
  7636. coroutine.resume(coroutine.create(function(HHumanoid)
  7637. swait(1)
  7638. HHumanoid.PlatformStand=false
  7639. end),hum)
  7640. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  7641. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  7642. local bodvol=Instance.new("BodyVelocity")
  7643. bodvol.velocity=angle*knockback
  7644. bodvol.P=5000
  7645. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  7646. bodvol.Parent=hit
  7647. rl=Instance.new("BodyAngularVelocity")
  7648. rl.P=3000
  7649. rl.maxTorque=Vector3.new(500,500,500)
  7650. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  7651. rl.Parent=hit
  7652. game:GetService("Debris"):AddItem(bodvol,.5)
  7653. game:GetService("Debris"):AddItem(rl,.5)
  7654. elseif Type=="Normal" then
  7655. vp=Instance.new("BodyVelocity")
  7656. vp.P=500
  7657. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  7658. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  7659. if KnockbackType==1 then
  7660. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  7661. elseif KnockbackType==2 then
  7662. vp.velocity=Property.CFrame.lookVector*knockback
  7663. end
  7664. if knockback>0 then
  7665. vp.Parent=hit.Parent.Torso
  7666. end
  7667. game:GetService("Debris"):AddItem(vp,.5)
  7668. elseif Type=="Up" then
  7669. hit.Parent.Humanoid.PlatformStand = true
  7670. local bodyVelocity=Instance.new("BodyVelocity")
  7671. bodyVelocity.velocity=vt(0,15,0)
  7672. bodyVelocity.P=5000
  7673. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  7674. bodyVelocity.Parent=hit
  7675. game:GetService("Debris"):AddItem(bodyVelocity,1)
  7676. rl=Instance.new("BodyAngularVelocity")
  7677. rl.P=3000
  7678. rl.AngularVelocity = Vector3.new(2000,2000,2000)
  7679. rl.MaxTorque = Vector3.new(40000,40000,40000)
  7680. rl.Parent=hit
  7681. hit.Parent.Humanoid.PlatformStand = false
  7682. game:GetService("Debris"):AddItem(rl,.5)
  7683. elseif Type=="Snare" then
  7684. bp=Instance.new("BodyPosition")
  7685. bp.P=2000
  7686. bp.D=100
  7687. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  7688. bp.position=hit.Parent.Torso.Position
  7689. bp.Parent=hit.Parent.Torso
  7690. game:GetService("Debris"):AddItem(bp,1)
  7691. elseif Type=="Float" then
  7692. hit.Parent.Humanoid.PlatformStand = true
  7693. bp=Instance.new("BodyPosition")
  7694. bp.P=2000
  7695. bp.D=400
  7696. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  7697. bp.position=hit.Parent.Torso.Position+vt(0,35,24)
  7698. bp.Parent=hit.Parent.Torso
  7699.  
  7700. local rl=Instance.new("BodyAngularVelocity",hit.Parent.Torso)
  7701. rl.P=377705
  7702. rl.maxTorque=Vector3.new(1,1,1)*500
  7703. rl.angularvelocity=Vector3.new(math.random(-3,3),math.random(-6,6),math.random(-3,3))
  7704.  
  7705. local BF = Instance.new("BodyForce",hit.Parent.Torso)
  7706. BF.force = Vector3.new(0, workspace.Gravity/1.10, 0)
  7707. game:GetService("Debris"):AddItem(bp,5)
  7708. game:GetService("Debris"):AddItem(BF,5)
  7709. game:GetService("Debris"):AddItem(rl,5)
  7710. elseif Type=="Target" then
  7711. if Targetting==false then
  7712. ZTarget=hit.Parent.Torso
  7713. coroutine.resume(coroutine.create(function(Part)
  7714. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  7715. swait(5)
  7716. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  7717. end),ZTarget)
  7718. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  7719. targetgui=Instance.new("BillboardGui")
  7720. targetgui.Parent=ZTarget
  7721. targetgui.Size=UDim2.new(10,100,10,100)
  7722. targ=Instance.new("ImageLabel")
  7723. targ.Parent=targetgui
  7724. targ.BackgroundTransparency=1
  7725. targ.Image="rbxassetid://4834067"
  7726. targ.Size=UDim2.new(1,0,1,0)
  7727. cam.CameraType="Scriptable"
  7728. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  7729. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  7730. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  7731. Targetting=true
  7732. RocketTarget=ZTarget
  7733. for i=1,Property do
  7734. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  7735. if Humanoid.Health>0 and char.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  7736. swait()
  7737. end
  7738. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  7739. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  7740. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  7741. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  7742. end
  7743. Targetting=false
  7744. RocketTarget=nil
  7745. targetgui.Parent=nil
  7746. cam.CameraType="Custom"
  7747. end
  7748. end
  7749. debounce=Instance.new("BoolValue")
  7750. debounce.Name="DebounceHit"
  7751. debounce.Parent=hit.Parent
  7752. debounce.Value=true
  7753. game:GetService("Debris"):AddItem(debounce,Delay)
  7754. c=Instance.new("ObjectValue")
  7755. c.Name="creator"
  7756. c.Value=Player
  7757. c.Parent=h
  7758. game:GetService("Debris"):AddItem(c,.5)
  7759. CRIT=false
  7760. hitDeb=true
  7761. AttackPos=6
  7762. comboing = true
  7763. combohits = combohits+1
  7764. combotime = combotime+3.4
  7765.  
  7766.  
  7767.  
  7768. if hitfloor == nil then
  7769.  
  7770. local velo=Instance.new("BodyVelocity")
  7771. velo.velocity=vt(0,5.5,0)
  7772. velo.P=8000
  7773. velo.maxForce=Vector3.new(math.huge, math.huge, math.huge)
  7774. velo.Parent=root
  7775. game:GetService("Debris"):AddItem(velo,0.06)
  7776.  
  7777. local hitvelo=Instance.new("BodyVelocity")
  7778. hitvelo.velocity=vt(0,5.5,0)
  7779. hitvelo.P=8000
  7780. hitvelo.maxForce=Vector3.new(math.huge, math.huge, math.huge)
  7781. hitvelo.Parent=hit
  7782. game:GetService("Debris"):AddItem(hitvelo,0.06)
  7783.  
  7784. coroutine.resume(coroutine.create(function()
  7785. for i = 0,3.7,0.1 do
  7786. swait()
  7787. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,0,-2.4)
  7788. root.Velocity = root.CFrame.lookVector*0
  7789. hit.Velocity = hit.CFrame.lookVector*130
  7790. end
  7791. end))
  7792. coroutine.resume(coroutine.create(function()
  7793. while ultra == true do
  7794. swait()
  7795. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,0,-2.4)
  7796. end
  7797. end))
  7798.  
  7799.  
  7800. end
  7801.  
  7802.  
  7803. end
  7804. end
  7805.  
  7806. kshowDamage=function(Char,Dealt,du,Color)
  7807. m=Instance.new("Model")
  7808. m.Name=tostring(Dealt)
  7809. h=Instance.new("Humanoid")
  7810. h.Health=0
  7811. h.MaxHealth=0
  7812. h.Parent=m
  7813. c=Instance.new("Part")
  7814. c.Transparency=0
  7815. c.BrickColor=Color
  7816. c.Name="Head"
  7817. c.Material = "Neon"
  7818. c.TopSurface=0
  7819. c.BottomSurface=0
  7820. c.formFactor="Plate"
  7821. c.Size=Vector3.new(1,.4,1)
  7822. ms=Instance.new("CylinderMesh")
  7823. ms.Scale=Vector3.new(.8,.8,.8)
  7824. if CRIT==true then
  7825. ms.Scale=Vector3.new(1,1.25,1)
  7826. end
  7827. ms.Parent=c
  7828. c.Reflectance=0
  7829. Instance.new("BodyGyro").Parent=c
  7830. c.Parent=m
  7831. if Char:findFirstChild("Head")~=nil then
  7832. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  7833. elseif Char.Parent:findFirstChild("Head")~=nil then
  7834. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  7835. end
  7836. f=Instance.new("BodyPosition")
  7837. f.P=2000
  7838. f.D=220
  7839. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  7840. f.position=c.Position+Vector3.new(0,3,0)
  7841. f.Parent=c
  7842. game:GetService("Debris"):AddItem(m,.5+du)
  7843. c.CanCollide=false
  7844. m.Parent=workspace
  7845. c.CanCollide=false
  7846.  
  7847. end
  7848.  
  7849. -------------------------------------------------------
  7850. --End Damage Function--
  7851. -------------------------------------------------------
  7852.  
  7853. -------------------------------------------------------
  7854. --Start Damage Function Customization--
  7855. -------------------------------------------------------
  7856. function ShowDamage(Pos, Text, Time, Color)
  7857. local Rate = (1 / 30)
  7858. local Pos = (Pos or Vector3.new(0, 0, 0))
  7859. local Text = (Text or "")
  7860. local Time = (Time or 2)
  7861. local Color = (Color or Color3.new(1, 0, 1))
  7862. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  7863. EffectPart.Anchored = true
  7864. local BillboardGui = Create("BillboardGui"){
  7865. Size = UDim2.new(3, 0, 3, 0),
  7866. Adornee = EffectPart,
  7867. Parent = EffectPart,
  7868. }
  7869. local TextLabel = Create("TextLabel"){
  7870. BackgroundTransparency = 1,
  7871. Size = UDim2.new(1, 0, 1, 0),
  7872. Text = Text,
  7873. Font = "Bodoni",
  7874. TextColor3 = Color,
  7875. TextScaled = true,
  7876. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  7877. Parent = BillboardGui,
  7878. }
  7879. game.Debris:AddItem(EffectPart, (Time))
  7880. EffectPart.Parent = game:GetService("Workspace")
  7881. delay(0, function()
  7882. local Frames = (Time / Rate)
  7883. for Frame = 1, Frames do
  7884. wait(Rate)
  7885. local Percent = (Frame / Frames)
  7886. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  7887. TextLabel.TextTransparency = Percent
  7888. end
  7889. if EffectPart and EffectPart.Parent then
  7890. EffectPart:Destroy()
  7891. end
  7892. end)
  7893. end
  7894. -------------------------------------------------------
  7895. --End Damage Function Customization--
  7896. -------------------------------------------------------
  7897.  
  7898. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  7899. for _, c in pairs(workspace:children()) do
  7900. local hum = c:findFirstChild("Humanoid")
  7901. if hum ~= nil then
  7902. local head = c:findFirstChild("Head")
  7903. if head ~= nil then
  7904. local targ = head.Position - Part.Position
  7905. local mag = targ.magnitude
  7906. if magni >= mag and c.Name ~= plr.Name then
  7907. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  7908. end
  7909. end
  7910. end
  7911. end
  7912. end
  7913.  
  7914.  
  7915. CFuncs = {
  7916. Part = {
  7917. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  7918. local Part = Create("Part")({
  7919. Parent = Parent,
  7920. Reflectance = Reflectance,
  7921. Transparency = Transparency,
  7922. CanCollide = false,
  7923. Locked = true,
  7924. BrickColor = BrickColor.new(tostring(BColor)),
  7925. Name = Name,
  7926. Size = Size,
  7927. Material = Material
  7928. })
  7929. RemoveOutlines(Part)
  7930. return Part
  7931. end
  7932. },
  7933. Mesh = {
  7934. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  7935. local Msh = Create(Mesh)({
  7936. Parent = Part,
  7937. Offset = OffSet,
  7938. Scale = Scale
  7939. })
  7940. if Mesh == "SpecialMesh" then
  7941. Msh.MeshType = MeshType
  7942. Msh.MeshId = MeshId
  7943. end
  7944. return Msh
  7945. end
  7946. },
  7947. Mesh = {
  7948. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  7949. local Msh = Create(Mesh)({
  7950. Parent = Part,
  7951. Offset = OffSet,
  7952. Scale = Scale
  7953. })
  7954. if Mesh == "SpecialMesh" then
  7955. Msh.MeshType = MeshType
  7956. Msh.MeshId = MeshId
  7957. end
  7958. return Msh
  7959. end
  7960. },
  7961. Weld = {
  7962. Create = function(Parent, Part0, Part1, C0, C1)
  7963. local Weld = Create("Weld")({
  7964. Parent = Parent,
  7965. Part0 = Part0,
  7966. Part1 = Part1,
  7967. C0 = C0,
  7968. C1 = C1
  7969. })
  7970. return Weld
  7971. end
  7972. },
  7973. Sound = {
  7974. Create = function(id, par, vol, pit)
  7975. coroutine.resume(coroutine.create(function()
  7976. local S = Create("Sound")({
  7977. Volume = vol,
  7978. Pitch = pit or 1,
  7979. SoundId = id,
  7980. Parent = par or workspace
  7981. })
  7982. wait()
  7983. S:play()
  7984. game:GetService("Debris"):AddItem(S, 6)
  7985. end))
  7986. end
  7987. },
  7988. ParticleEmitter = {
  7989. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  7990. local fp = Create("ParticleEmitter")({
  7991. Parent = Parent,
  7992. Color = ColorSequence.new(Color1, Color2),
  7993. LightEmission = LightEmission,
  7994. Size = Size,
  7995. Texture = Texture,
  7996. Transparency = Transparency,
  7997. ZOffset = ZOffset,
  7998. Acceleration = Accel,
  7999. Drag = Drag,
  8000. LockedToPart = LockedToPart,
  8001. VelocityInheritance = VelocityInheritance,
  8002. EmissionDirection = EmissionDirection,
  8003. Enabled = Enabled,
  8004. Lifetime = LifeTime,
  8005. Rate = Rate,
  8006. Rotation = Rotation,
  8007. RotSpeed = RotSpeed,
  8008. Speed = Speed,
  8009. VelocitySpread = VelocitySpread
  8010. })
  8011. return fp
  8012. end
  8013. }
  8014. }
  8015. function RemoveOutlines(part)
  8016. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  8017. end
  8018. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  8019. local Part = Create("Part")({
  8020. formFactor = FormFactor,
  8021. Parent = Parent,
  8022. Reflectance = Reflectance,
  8023. Transparency = Transparency,
  8024. CanCollide = false,
  8025. Locked = true,
  8026. BrickColor = BrickColor.new(tostring(BColor)),
  8027. Name = Name,
  8028. Size = Size,
  8029. Material = Material
  8030. })
  8031. RemoveOutlines(Part)
  8032. return Part
  8033. end
  8034. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  8035. local Msh = Create(Mesh)({
  8036. Parent = Part,
  8037. Offset = OffSet,
  8038. Scale = Scale
  8039. })
  8040. if Mesh == "SpecialMesh" then
  8041. Msh.MeshType = MeshType
  8042. Msh.MeshId = MeshId
  8043. end
  8044. return Msh
  8045. end
  8046. function CreateWeld(Parent, Part0, Part1, C0, C1)
  8047. local Weld = Create("Weld")({
  8048. Parent = Parent,
  8049. Part0 = Part0,
  8050. Part1 = Part1,
  8051. C0 = C0,
  8052. C1 = C1
  8053. })
  8054. return Weld
  8055. end
  8056.  
  8057.  
  8058. -------------------------------------------------------
  8059. --Start Effect Function--
  8060. -------------------------------------------------------
  8061. EffectModel = Instance.new("Model", char)
  8062. Effects = {
  8063. Block = {
  8064. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  8065. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  8066. prt.Anchored = true
  8067. prt.CFrame = cframe
  8068. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  8069. game:GetService("Debris"):AddItem(prt, 10)
  8070. if Type == 1 or Type == nil then
  8071. table.insert(Effects, {
  8072. prt,
  8073. "Block1",
  8074. delay,
  8075. x3,
  8076. y3,
  8077. z3,
  8078. msh
  8079. })
  8080. elseif Type == 2 then
  8081. table.insert(Effects, {
  8082. prt,
  8083. "Block2",
  8084. delay,
  8085. x3,
  8086. y3,
  8087. z3,
  8088. msh
  8089. })
  8090. else
  8091. table.insert(Effects, {
  8092. prt,
  8093. "Block3",
  8094. delay,
  8095. x3,
  8096. y3,
  8097. z3,
  8098. msh
  8099. })
  8100. end
  8101. end
  8102. },
  8103. Sphere = {
  8104. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  8105. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  8106. prt.Anchored = true
  8107. prt.CFrame = cframe
  8108. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  8109. game:GetService("Debris"):AddItem(prt, 10)
  8110. table.insert(Effects, {
  8111. prt,
  8112. "Cylinder",
  8113. delay,
  8114. x3,
  8115. y3,
  8116. z3,
  8117. msh
  8118. })
  8119. end
  8120. },
  8121. Cylinder = {
  8122. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  8123. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  8124. prt.Anchored = true
  8125. prt.CFrame = cframe
  8126. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  8127. game:GetService("Debris"):AddItem(prt, 10)
  8128. table.insert(Effects, {
  8129. prt,
  8130. "Cylinder",
  8131. delay,
  8132. x3,
  8133. y3,
  8134. z3,
  8135. msh
  8136. })
  8137. end
  8138. },
  8139. Wave = {
  8140. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  8141. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  8142. prt.Anchored = true
  8143. prt.CFrame = cframe
  8144. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  8145. game:GetService("Debris"):AddItem(prt, 10)
  8146. table.insert(Effects, {
  8147. prt,
  8148. "Cylinder",
  8149. delay,
  8150. x3 / 60,
  8151. y3 / 60,
  8152. z3 / 60,
  8153. msh
  8154. })
  8155. end
  8156. },
  8157. Ring = {
  8158. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  8159. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  8160. prt.Anchored = true
  8161. prt.CFrame = cframe
  8162. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  8163. game:GetService("Debris"):AddItem(prt, 10)
  8164. table.insert(Effects, {
  8165. prt,
  8166. "Cylinder",
  8167. delay,
  8168. x3,
  8169. y3,
  8170. z3,
  8171. msh
  8172. })
  8173. end
  8174. },
  8175. Break = {
  8176. Create = function(brickcolor, cframe, x1, y1, z1)
  8177. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  8178. prt.Anchored = true
  8179. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  8180. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  8181. local num = math.random(10, 50) / 1000
  8182. game:GetService("Debris"):AddItem(prt, 10)
  8183. table.insert(Effects, {
  8184. prt,
  8185. "Shatter",
  8186. num,
  8187. prt.CFrame,
  8188. math.random() - math.random(),
  8189. 0,
  8190. math.random(50, 100) / 100
  8191. })
  8192. end
  8193. },
  8194. Spiral = {
  8195. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  8196. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  8197. prt.Anchored = true
  8198. prt.CFrame = cframe
  8199. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  8200. game:GetService("Debris"):AddItem(prt, 10)
  8201. table.insert(Effects, {
  8202. prt,
  8203. "Cylinder",
  8204. delay,
  8205. x3,
  8206. y3,
  8207. z3,
  8208. msh
  8209. })
  8210. end
  8211. },
  8212. Push = {
  8213. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  8214. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  8215. prt.Anchored = true
  8216. prt.CFrame = cframe
  8217. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  8218. game:GetService("Debris"):AddItem(prt, 10)
  8219. table.insert(Effects, {
  8220. prt,
  8221. "Cylinder",
  8222. delay,
  8223. x3,
  8224. y3,
  8225. z3,
  8226. msh
  8227. })
  8228. end
  8229. }
  8230. }
  8231. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  8232. local fp = IT("Part")
  8233. fp.formFactor = formfactor
  8234. fp.Parent = parent
  8235. fp.Reflectance = reflectance
  8236. fp.Transparency = transparency
  8237. fp.CanCollide = false
  8238. fp.Locked = true
  8239. fp.BrickColor = brickcolor
  8240. fp.Name = name
  8241. fp.Size = size
  8242. fp.Position = tors.Position
  8243. RemoveOutlines(fp)
  8244. fp.Material = "SmoothPlastic"
  8245. fp:BreakJoints()
  8246. return fp
  8247. end
  8248.  
  8249. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  8250. local mesh = IT(Mesh)
  8251. mesh.Parent = part
  8252. if Mesh == "SpecialMesh" then
  8253. mesh.MeshType = meshtype
  8254. if meshid ~= "nil" then
  8255. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  8256. end
  8257. end
  8258. mesh.Offset = offset
  8259. mesh.Scale = scale
  8260. return mesh
  8261. end
  8262.  
  8263. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  8264. local type = type
  8265. local rng = Instance.new("Part", char)
  8266. rng.Anchored = true
  8267. rng.BrickColor = color
  8268. rng.CanCollide = false
  8269. rng.FormFactor = 3
  8270. rng.Name = "Ring"
  8271. rng.Material = "Neon"
  8272. rng.Size = Vector3.new(1, 1, 1)
  8273. rng.Transparency = 0
  8274. rng.TopSurface = 0
  8275. rng.BottomSurface = 0
  8276. rng.CFrame = pos
  8277. local rngm = Instance.new("SpecialMesh", rng)
  8278. rngm.MeshType = MType
  8279. rngm.Scale = scale
  8280. local scaler2 = 1
  8281. if type == "Add" then
  8282. scaler2 = 1 * value
  8283. elseif type == "Divide" then
  8284. scaler2 = 1 / value
  8285. end
  8286. coroutine.resume(coroutine.create(function()
  8287. for i = 0, 10 / bonuspeed, 0.1 do
  8288. swait()
  8289. if type == "Add" then
  8290. scaler2 = scaler2 - 0.01 * value / bonuspeed
  8291. elseif type == "Divide" then
  8292. scaler2 = scaler2 - 0.01 / value * bonuspeed
  8293. end
  8294. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  8295. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  8296. end
  8297. rng:Destroy()
  8298. end))
  8299. end
  8300.  
  8301. function Eviscerate(dude)
  8302. if dude.Name ~= char then
  8303. local bgf = IT("BodyGyro", dude.Head)
  8304. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  8305. local val = IT("BoolValue", dude)
  8306. val.Name = "IsHit"
  8307. local ds = coroutine.wrap(function()
  8308. dude:WaitForChild("Head"):BreakJoints()
  8309. wait(0.5)
  8310. target = nil
  8311. coroutine.resume(coroutine.create(function()
  8312. for i, v in pairs(dude:GetChildren()) do
  8313. if v:IsA("Accessory") then
  8314. v:Destroy()
  8315. end
  8316. if v:IsA("Humanoid") then
  8317. v:Destroy()
  8318. end
  8319. if v:IsA("CharacterMesh") then
  8320. v:Destroy()
  8321. end
  8322. if v:IsA("Model") then
  8323. v:Destroy()
  8324. end
  8325. if v:IsA("Part") or v:IsA("MeshPart") then
  8326. for x, o in pairs(v:GetChildren()) do
  8327. if o:IsA("Decal") then
  8328. o:Destroy()
  8329. end
  8330. end
  8331. coroutine.resume(coroutine.create(function()
  8332. v.Material = "Neon"
  8333. v.CanCollide = false
  8334. local PartEmmit1 = IT("ParticleEmitter", v)
  8335. PartEmmit1.LightEmission = 1
  8336. PartEmmit1.Texture = "rbxassetid://284205403"
  8337. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  8338. PartEmmit1.Rate = 150
  8339. PartEmmit1.Lifetime = NumberRange.new(1)
  8340. PartEmmit1.Size = NumberSequence.new({
  8341. NumberSequenceKeypoint.new(0, 0.75, 0),
  8342. NumberSequenceKeypoint.new(1, 0, 0)
  8343. })
  8344. PartEmmit1.Transparency = NumberSequence.new({
  8345. NumberSequenceKeypoint.new(0, 0, 0),
  8346. NumberSequenceKeypoint.new(1, 1, 0)
  8347. })
  8348. PartEmmit1.Speed = NumberRange.new(0, 0)
  8349. PartEmmit1.VelocitySpread = 30000
  8350. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  8351. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  8352. local BodPoss = IT("BodyPosition", v)
  8353. BodPoss.P = 3000
  8354. BodPoss.D = 1000
  8355. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  8356. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  8357. v.Color = maincolor.Color
  8358. coroutine.resume(coroutine.create(function()
  8359. for i = 0, 49 do
  8360. swait(1)
  8361. v.Transparency = v.Transparency + 0.08
  8362. end
  8363. wait(0.5)
  8364. PartEmmit1.Enabled = false
  8365. wait(3)
  8366. v:Destroy()
  8367. dude:Destroy()
  8368. end))
  8369. end))
  8370. end
  8371. end
  8372. end))
  8373. end)
  8374. ds()
  8375. end
  8376. end
  8377.  
  8378. function FindNearestHead(Position, Distance, SinglePlayer)
  8379. if SinglePlayer then
  8380. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  8381. end
  8382. local List = {}
  8383. for i, v in pairs(workspace:GetChildren()) do
  8384. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  8385. table.insert(List, v)
  8386. end
  8387. end
  8388. return List
  8389. end
  8390.  
  8391. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  8392. local type = type
  8393. local rng = Instance.new("Part", char)
  8394. rng.Anchored = true
  8395. rng.BrickColor = color
  8396. rng.CanCollide = false
  8397. rng.FormFactor = 3
  8398. rng.Name = "Ring"
  8399. rng.Material = "Neon"
  8400. rng.Size = Vector3.new(1, 1, 1)
  8401. rng.Transparency = 0
  8402. rng.TopSurface = 0
  8403. rng.BottomSurface = 0
  8404. rng.CFrame = pos
  8405. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  8406. local rngm = Instance.new("SpecialMesh", rng)
  8407. rngm.MeshType = MType
  8408. rngm.Scale = Vector3.new(x1, y1, z1)
  8409. local scaler2 = 1
  8410. local speeder = FastSpeed
  8411. if type == "Add" then
  8412. scaler2 = 1 * value
  8413. elseif type == "Divide" then
  8414. scaler2 = 1 / value
  8415. end
  8416. coroutine.resume(coroutine.create(function()
  8417. for i = 0, 10 / bonuspeed, 0.1 do
  8418. swait()
  8419. if type == "Add" then
  8420. scaler2 = scaler2 - 0.01 * value / bonuspeed
  8421. elseif type == "Divide" then
  8422. scaler2 = scaler2 - 0.01 / value * bonuspeed
  8423. end
  8424. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  8425. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  8426. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  8427. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  8428. end
  8429. rng:Destroy()
  8430. end))
  8431. end
  8432.  
  8433. function SoulSteal(dude)
  8434. if dude.Name ~= char then
  8435. local bgf = IT("BodyGyro", dude.Head)
  8436. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  8437. local val = IT("BoolValue", dude)
  8438. val.Name = "IsHit"
  8439. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  8440. local soulst = coroutine.wrap(function()
  8441. local soul = Instance.new("Part",dude)
  8442. soul.Size = Vector3.new(1,1,1)
  8443. soul.CanCollide = false
  8444. soul.Anchored = false
  8445. soul.Position = torso.Position
  8446. soul.Transparency = 1
  8447. local PartEmmit1 = IT("ParticleEmitter", soul)
  8448. PartEmmit1.LightEmission = 1
  8449. PartEmmit1.Texture = "rbxassetid://569507414"
  8450. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  8451. PartEmmit1.Rate = 250
  8452. PartEmmit1.Lifetime = NumberRange.new(1.6)
  8453. PartEmmit1.Size = NumberSequence.new({
  8454. NumberSequenceKeypoint.new(0, 1, 0),
  8455. NumberSequenceKeypoint.new(1, 0, 0)
  8456. })
  8457. PartEmmit1.Transparency = NumberSequence.new({
  8458. NumberSequenceKeypoint.new(0, 0, 0),
  8459. NumberSequenceKeypoint.new(1, 1, 0)
  8460. })
  8461. PartEmmit1.Speed = NumberRange.new(0, 0)
  8462. PartEmmit1.VelocitySpread = 30000
  8463. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  8464. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  8465. local BodPoss = IT("BodyPosition", soul)
  8466. BodPoss.P = 3000
  8467. BodPoss.D = 1000
  8468. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  8469. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  8470. wait(1.6)
  8471. soul.Touched:connect(function(hit)
  8472. if hit.Parent == char then
  8473. soul:Destroy()
  8474. end
  8475. end)
  8476. wait(1.2)
  8477. while soul do
  8478. swait()
  8479. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  8480. BodPoss.Position = tors.Position
  8481. end
  8482. end)
  8483. soulst()
  8484. end
  8485. end
  8486.  
  8487.  
  8488.  
  8489.  
  8490. --killer's effects
  8491.  
  8492.  
  8493.  
  8494.  
  8495.  
  8496. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  8497. local Part = Create("Part"){
  8498. Parent = Parent,
  8499. Reflectance = Reflectance,
  8500. Transparency = Transparency,
  8501. CanCollide = false,
  8502. Locked = true,
  8503. BrickColor = BrickColor.new(tostring(BColor)),
  8504. Name = Name,
  8505. Size = Size,
  8506. Material = Material,
  8507. }
  8508. RemoveOutlines(Part)
  8509. return Part
  8510. end
  8511.  
  8512. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  8513. local Msh = Create(Mesh){
  8514. Parent = Part,
  8515. Offset = OffSet,
  8516. Scale = Scale,
  8517. }
  8518. if Mesh == "SpecialMesh" then
  8519. Msh.MeshType = MeshType
  8520. Msh.MeshId = MeshId
  8521. end
  8522. return Msh
  8523. end
  8524.  
  8525.  
  8526.  
  8527. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  8528. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  8529. prt.Anchored = true
  8530. prt.CFrame = cframe
  8531. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  8532. game:GetService("Debris"):AddItem(prt, 10)
  8533. if Type == 1 or Type == nil then
  8534. table.insert(Effects, {
  8535. prt,
  8536. "Block1",
  8537. delay,
  8538. x3,
  8539. y3,
  8540. z3,
  8541. msh
  8542. })
  8543. elseif Type == 2 then
  8544. table.insert(Effects, {
  8545. prt,
  8546. "Block2",
  8547. delay,
  8548. x3,
  8549. y3,
  8550. z3,
  8551. msh
  8552. })
  8553. end
  8554. end
  8555.  
  8556. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  8557. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  8558. prt.Anchored = true
  8559. prt.CFrame = cframe
  8560. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  8561. game:GetService("Debris"):AddItem(prt, 10)
  8562. table.insert(Effects, {
  8563. prt,
  8564. "Cylinder",
  8565. delay,
  8566. x3,
  8567. y3,
  8568. z3,
  8569. msh
  8570. })
  8571. end
  8572.  
  8573. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  8574. local prt=CreatePart(workspace,"Neon",0,0,brickcolor,"Effect",vt(.5,.5,.5))--part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  8575. prt.Anchored=true
  8576. prt.CFrame=cframe
  8577. msh=CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  8578. game:GetService("Debris"):AddItem(prt,2)
  8579. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  8580. for i=0,1,delay do
  8581. swait()
  8582. Part.Transparency=i
  8583. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  8584. end
  8585. Part.Parent=nil
  8586. end),prt,msh,(math.random(0,1)+math.random())/5)
  8587. end
  8588.  
  8589. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  8590. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  8591. prt.Anchored = true
  8592. prt.CFrame = cframe
  8593. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  8594. game:GetService("Debris"):AddItem(prt, 10)
  8595. table.insert(Effects, {
  8596. prt,
  8597. "Cylinder",
  8598. delay,
  8599. x3,
  8600. y3,
  8601. z3,
  8602. msh
  8603. })
  8604. end
  8605.  
  8606. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  8607. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  8608. prt.Anchored = true
  8609. prt.CFrame = cframe
  8610. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  8611. game:GetService("Debris"):AddItem(prt, 10)
  8612. table.insert(Effects, {
  8613. prt,
  8614. "Cylinder",
  8615. delay,
  8616. x3,
  8617. y3,
  8618. z3,
  8619. msh
  8620. })
  8621. end
  8622.  
  8623. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  8624. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  8625. prt.Anchored = true
  8626. prt.CFrame = cframe
  8627. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  8628. game:GetService("Debris"):AddItem(prt, 10)
  8629. table.insert(Effects, {
  8630. prt,
  8631. "Cylinder",
  8632. delay,
  8633. x3,
  8634. y3,
  8635. z3,
  8636. msh
  8637. })
  8638. end
  8639.  
  8640.  
  8641. function MoonEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  8642. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  8643. prt.Anchored = true
  8644. prt.CFrame = cframe
  8645. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://259403370", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  8646. game:GetService("Debris"):AddItem(prt, 10)
  8647. table.insert(Effects, {
  8648. prt,
  8649. "Cylinder",
  8650. delay,
  8651. x3,
  8652. y3,
  8653. z3,
  8654. msh
  8655. })
  8656. end
  8657.  
  8658. function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  8659. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  8660. prt.Anchored = true
  8661. prt.CFrame = cframe
  8662. local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  8663. game:GetService("Debris"):AddItem(prt, 10)
  8664. table.insert(Effects, {
  8665. prt,
  8666. "Cylinder",
  8667. delay,
  8668. x3,
  8669. y3,
  8670. z3,
  8671. msh
  8672. })
  8673. end
  8674.  
  8675. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  8676. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  8677. prt.Anchored = true
  8678. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  8679. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  8680. local num = math.random(10, 50) / 1000
  8681. game:GetService("Debris"):AddItem(prt, 10)
  8682. table.insert(Effects, {
  8683. prt,
  8684. "Shatter",
  8685. num,
  8686. prt.CFrame,
  8687. math.random() - math.random(),
  8688. 0,
  8689. math.random(50, 100) / 100
  8690. })
  8691. end
  8692.  
  8693.  
  8694.  
  8695.  
  8696.  
  8697. so = function(id,par,vol,pit)
  8698. coroutine.resume(coroutine.create(function()
  8699. local sou = Instance.new("Sound",par or workspace)
  8700. sou.Volume=vol
  8701. sou.Pitch=pit or 1
  8702. sou.SoundId=id
  8703. sou:play()
  8704. game:GetService("Debris"):AddItem(sou,8)
  8705. end))
  8706. end
  8707.  
  8708.  
  8709. --end of killer's effects
  8710.  
  8711.  
  8712. function FaceMouse()
  8713. local Cam = workspace.CurrentCamera
  8714. return {
  8715. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  8716. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  8717. }
  8718. end
  8719. -------------------------------------------------------
  8720. --End Effect Function--
  8721. -------------------------------------------------------
  8722. function Cso(ID, PARENT, VOLUME, PITCH)
  8723. local NSound = nil
  8724. coroutine.resume(coroutine.create(function()
  8725. NSound = IT("Sound", PARENT)
  8726. NSound.Volume = VOLUME
  8727. NSound.Pitch = PITCH
  8728. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  8729. swait()
  8730. NSound:play()
  8731. game:GetService("Debris"):AddItem(NSound, 10)
  8732. end))
  8733. return NSound
  8734. end
  8735. function CameraEnshaking(Length, Intensity)
  8736. coroutine.resume(coroutine.create(function()
  8737. local intensity = 1 * Intensity
  8738. local rotM = 0.01 * Intensity
  8739. for i = 0, Length, 0.1 do
  8740. swait()
  8741. intensity = intensity - 0.05 * Intensity / Length
  8742. rotM = rotM - 5.0E-4 * Intensity / Length
  8743. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  8744. cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
  8745. end
  8746. hum.CameraOffset = Vector3.new(0, 0, 0)
  8747. end))
  8748. end
  8749. -------------------------------------------------------
  8750. --End Important Functions--
  8751. -------------------------------------------------------
  8752.  
  8753.  
  8754. -------------------------------------------------------
  8755. --Start Customization--
  8756. -------------------------------------------------------
  8757. local Player_Size = 1
  8758. if Player_Size ~= 1 then
  8759. root.Size = root.Size * Player_Size
  8760. tors.Size = tors.Size * Player_Size
  8761. hed.Size = hed.Size * Player_Size
  8762. ra.Size = ra.Size * Player_Size
  8763. la.Size = la.Size * Player_Size
  8764. rl.Size = rl.Size * Player_Size
  8765. ll.Size = ll.Size * Player_Size
  8766. ----------------------------------------------------------------------------------
  8767. rootj.Parent = root
  8768. neck.Parent = tors
  8769. RW.Parent = tors
  8770. LW.Parent = tors
  8771. RH.Parent = tors
  8772. LH.Parent = tors
  8773. ----------------------------------------------------------------------------------
  8774. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  8775. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  8776. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  8777. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  8778. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  8779. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  8780. ----------------------------------------------------------------------------------
  8781. RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  8782. LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  8783. RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  8784. LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  8785. --hat.Parent = Character
  8786. end
  8787. ----------------------------------------------------------------------------------
  8788. local SONG = 900817147 --900817147
  8789. local SONG2 = 0
  8790. local Music = Instance.new("Sound",tors)
  8791. Music.Volume = 0.7
  8792. Music.Looped = true
  8793. Music.Pitch = 1 --Pitcher
  8794. ----------------------------------------------------------------------------------
  8795. local equipped = false
  8796. local idle = 0
  8797. local change = 1
  8798. local val = 0
  8799. local toim = 0
  8800. local idleanim = 0.4
  8801. local sine = 0
  8802. local Sit = 1
  8803. local attacktype = 1
  8804. local attackdebounce = false
  8805. local euler = CFrame.fromEulerAnglesXYZ
  8806. local cankick = false
  8807. ----------------------------------------------------------------------------------
  8808. hum.WalkSpeed = 8
  8809. hum.JumpPower = 57
  8810. --[[
  8811. local ROBLOXIDLEANIMATION = IT("Animation")
  8812. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  8813. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  8814. ]]
  8815. local ANIMATOR = hum.Animator
  8816. local ANIMATE = char.Animate
  8817. ANIMATE.Parent = nil
  8818. ANIMATOR.Parent = nil
  8819. -------------------------------------------------------
  8820. --End Customization--
  8821. -------------------------------------------------------
  8822.  
  8823.  
  8824. -------------------------------------------------------
  8825. --Start Attacks N Stuff--
  8826. -------------------------------------------------------
  8827.  
  8828. --pls be proud mak i did my best
  8829.  
  8830.  
  8831.  
  8832. function attackone()
  8833.  
  8834. attack = true
  8835.  
  8836. for i = 0, 1.35, 0.1 do
  8837. swait()
  8838. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-4-2*i), math.rad(4+2*i), math.rad(-40-11*i)), 0.2)
  8839. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40+11*i)), 0.2)
  8840. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.6, 0.2) * angles(math.rad(90+4*i), math.rad(-43), math.rad(16+6*i)), 0.3)
  8841. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-43)), 0.3)
  8842. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.7, 0) * RHCF * angles(math.rad(-34), math.rad(0), math.rad(-17)), 0.2)
  8843. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, -0.2) * LHCF * angles(math.rad(-24), math.rad(0), math.rad(0)), 0.2)
  8844. end
  8845.  
  8846. so("http://roblox.com/asset/?id=1340545854",ra,1,math.random(0.7,1))
  8847.  
  8848.  
  8849. con5=ra.Touched:connect(function(hit)
  8850. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8851. if attackdebounce == false then
  8852. attackdebounce = true
  8853.  
  8854. kDamagefunc(hit,3,4,math.random(2,3),"Normal",root,0,1)
  8855.  
  8856. so("http://roblox.com/asset/?id=636494529",ra,2,1)
  8857.  
  8858. RingEffect(BrickColor.new("White"),ra.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  8859. RingEffect(BrickColor.new("White"),ra.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  8860. SphereEffect(BrickColor.new("White"),ra.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  8861.  
  8862.  
  8863. coroutine.resume(coroutine.create(function()
  8864. for i = 0,1,0.1 do
  8865. swait()
  8866. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8)),0.24)
  8867. end
  8868. end))
  8869.  
  8870.  
  8871. wait(0.34)
  8872. attackdebounce = false
  8873.  
  8874. end
  8875. end
  8876. end)
  8877. for i = 0, 1.12, 0.1 do
  8878. swait()
  8879. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.9, -0) * angles(math.rad(14), math.rad(6), math.rad(23)), 0.35)
  8880. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-4), math.rad(0), math.rad(-23)), 0.35)
  8881. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.6, -0.8) * angles(math.rad(110), math.rad(23), math.rad(2)), 0.4)
  8882. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0.2) * angles(math.rad(-37), math.rad(0), math.rad(-13)), 0.35)
  8883. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.3) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(6)), 0.3)
  8884. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0.05) * LHCF * angles(math.rad(-22), math.rad(0), math.rad(23)), 0.3)
  8885. end
  8886.  
  8887. con5:Disconnect()
  8888. attack = false
  8889.  
  8890. end
  8891.  
  8892.  
  8893.  
  8894.  
  8895.  
  8896.  
  8897.  
  8898.  
  8899.  
  8900.  
  8901.  
  8902.  
  8903. function attacktwo()
  8904.  
  8905. attack = true
  8906.  
  8907. for i = 0, 1.35, 0.1 do
  8908. swait()
  8909. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-4), math.rad(-4), math.rad(40)), 0.2)
  8910. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  8911. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(46)), 0.3)
  8912. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, 0.2) * angles(math.rad(90), math.rad(23), math.rad(6)), 0.3)
  8913. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.7, -0.2) * RHCF * angles(math.rad(-34), math.rad(0), math.rad(-17)), 0.2)
  8914. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-24), math.rad(0), math.rad(0)), 0.2)
  8915. end
  8916.  
  8917. so("http://roblox.com/asset/?id=1340545854",la,1,math.random(0.7,1))
  8918.  
  8919.  
  8920. con5=la.Touched:connect(function(hit)
  8921. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8922. if attackdebounce == false then
  8923. attackdebounce = true
  8924.  
  8925. kDamagefunc(hit,3,4,math.random(2,3),"Normal",root,0,1)
  8926.  
  8927. so("http://roblox.com/asset/?id=636494529",la,2,1)
  8928.  
  8929. RingEffect(BrickColor.new("White"),la.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  8930. RingEffect(BrickColor.new("White"),la.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  8931. SphereEffect(BrickColor.new("White"),la.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  8932.  
  8933.  
  8934. coroutine.resume(coroutine.create(function()
  8935. for i = 0,1,0.1 do
  8936. swait()
  8937. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8)),0.24)
  8938. end
  8939. end))
  8940.  
  8941.  
  8942. wait(0.34)
  8943. attackdebounce = false
  8944.  
  8945. end
  8946. end
  8947. end)
  8948.  
  8949.  
  8950.  
  8951.  
  8952. for i = 0, 1.12, 0.1 do
  8953. swait()
  8954. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.9, -0) * angles(math.rad(14), math.rad(-6), math.rad(-27)), 0.35)
  8955. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-4), math.rad(0), math.rad(27)), 0.35)
  8956. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.16) * angles(math.rad(-33), math.rad(0), math.rad(23)), 0.4)
  8957. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.67, -0.9) * angles(math.rad(116), math.rad(-28), math.rad(1)), 0.35)
  8958. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0.05) * RHCF * angles(math.rad(-22), math.rad(0), math.rad(-18)), 0.3)
  8959. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, -0.3) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(4)), 0.3)
  8960. end
  8961.  
  8962. con5:Disconnect()
  8963. attack = false
  8964.  
  8965. end
  8966.  
  8967.  
  8968.  
  8969.  
  8970.  
  8971. function attackthree()
  8972.  
  8973. attack = true
  8974.  
  8975.  
  8976. for i = 0, 1.14, 0.1 do
  8977. swait()
  8978. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-4), math.rad(-4), math.rad(40)), 0.2)
  8979. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  8980. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-46)), 0.3)
  8981. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, 0.2) * angles(math.rad(90), math.rad(23), math.rad(36)), 0.3)
  8982. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.7, -0.2) * RHCF * angles(math.rad(-34), math.rad(0), math.rad(-17)), 0.2)
  8983. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-12), math.rad(0), math.rad(34)), 0.2)
  8984. end
  8985.  
  8986. con5=hum.Touched:connect(function(hit)
  8987. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  8988. if attackdebounce == false then
  8989. attackdebounce = true
  8990.  
  8991. kDamagefunc(hit,4,5,math.random(3,4),"Normal",root,0,1)
  8992. so("http://roblox.com/asset/?id=636494529",ll,2,1)
  8993.  
  8994. RingEffect(BrickColor.new("White"),ll.CFrame*CF(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  8995. RingEffect(BrickColor.new("White"),ll.CFrame*CF(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  8996. SphereEffect(BrickColor.new("White"),ll.CFrame*CF(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  8997.  
  8998.  
  8999. coroutine.resume(coroutine.create(function()
  9000. for i = 0,1,0.1 do
  9001. swait()
  9002. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8)),0.24)
  9003. end
  9004. end))
  9005.  
  9006.  
  9007. wait(0.34)
  9008. attackdebounce = false
  9009.  
  9010. end
  9011. end
  9012. end)
  9013.  
  9014. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  9015. for i = 0, 9.14, 0.3 do
  9016. swait()
  9017. BlockEffect(BrickColor.new("White"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  9018. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(8), math.rad(8), math.rad(0-54*i)), 0.35)
  9019. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  9020. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  9021. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  9022. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
  9023. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-7*i), math.rad(0), math.rad(0-9*i)), 0.35)
  9024. end
  9025. attack = false
  9026. con5:disconnect()
  9027. end
  9028.  
  9029.  
  9030.  
  9031. function attackfour()
  9032.  
  9033. attack = true
  9034. so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 3, 1)
  9035. WaveEffect(BrickColor.new("White"), root.CFrame * CFrame.new(0, -1, 0) * euler(0, math.random(-50, 50), 0), 1, 1, 1, 1, 0.5, 1, 0.05)
  9036. for i = 0, 5.14, 0.1 do
  9037. swait()
  9038. SphereEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
  9039. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.8) * angles(math.rad(24+4*i), math.rad(0), math.rad(0)), 0.2)
  9040. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0+11*i), math.rad(0), math.rad(0)), 0.2)
  9041. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0-6*i), math.rad(0), math.rad(36+4*i)), 0.3)
  9042. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0-6*i), math.rad(0), math.rad(-36-4*i)), 0.3)
  9043. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.6, -0.3) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-28+4*i)), 0.2)
  9044. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.2, -0.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-34-4*i)), 0.2)
  9045. end
  9046. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  9047. local velo=Instance.new("BodyVelocity")
  9048. velo.velocity=vt(0,25,0)
  9049. velo.P=8000
  9050. velo.maxForce=Vector3.new(math.huge, math.huge, math.huge)
  9051. velo.Parent=root
  9052. game:GetService("Debris"):AddItem(velo,0.7)
  9053.  
  9054.  
  9055.  
  9056. con5=hum.Touched:connect(function(hit)
  9057. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  9058. if attackdebounce == false then
  9059. attackdebounce = true
  9060. coroutine.resume(coroutine.create(function()
  9061. for i = 0,1.5,0.1 do
  9062. swait()
  9063. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.6,-1.8)
  9064. end
  9065. end))
  9066. kDamagefunc(hit,3,4,math.random(0,0),"Normal",root,0,1)
  9067. so("http://roblox.com/asset/?id=636494529",rl,2,1)
  9068. RingEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  9069. RingEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  9070. SphereEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  9071.  
  9072.  
  9073.  
  9074. coroutine.resume(coroutine.create(function()
  9075. for i = 0,1,0.1 do
  9076. swait()
  9077. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.75*1.8,0.75*1.8),math.random(-0.75*1.8,0.75*1.8),math.random(-0.75*1.8,0.75*1.8)),0.44)
  9078. end
  9079. end))
  9080.  
  9081.  
  9082. wait(0.14)
  9083. attackdebounce = false
  9084. end
  9085. end
  9086. end)
  9087.  
  9088. for i = 0, 5.11, 0.15 do
  9089. swait()
  9090. BlockEffect(BrickColor.new("White"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  9091. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, 0.1+0.2*i) * angles(math.rad(-10-80*i), math.rad(0), math.rad(0)), 0.42)
  9092. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-43), math.rad(0), math.rad(0)), 0.42)
  9093. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(60)), 0.35)
  9094. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(-60)), 0.35)
  9095. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.5, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(20+10*i)), 0.42)
  9096. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.5, -0.4) * LHCF * angles(math.rad(0), math.rad(0), math.rad(24)), 0.42)
  9097. end
  9098.  
  9099.  
  9100. attack = false
  9101. con5:disconnect()
  9102. end
  9103.  
  9104.  
  9105.  
  9106.  
  9107.  
  9108. local cooldown = false
  9109. function quickkick()
  9110. attack = true
  9111.  
  9112.  
  9113. con5=hum.Touched:connect(function(hit)
  9114. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  9115. if attackdebounce == false then
  9116. attackdebounce = true
  9117.  
  9118. coroutine.resume(coroutine.create(function()
  9119. for i = 0,1.5,0.1 do
  9120. swait()
  9121. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.3,-1.8)
  9122. end
  9123. end))
  9124.  
  9125. kDamagefunc(hit,1,2,math.random(0,0),"Normal",root,0,1)
  9126. so("http://roblox.com/asset/?id=636494529",rl,2,1)
  9127. RingEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  9128. RingEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  9129. SphereEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  9130.  
  9131.  
  9132.  
  9133. coroutine.resume(coroutine.create(function()
  9134. for i = 0,1,0.1 do
  9135. swait()
  9136. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.8*1.8,0.8*1.8),math.random(-0.8*1.8,0.8*1.8),math.random(-0.8*1.8,0.8*1.8)),0.44)
  9137. end
  9138. end))
  9139.  
  9140.  
  9141. wait(0.08)
  9142. attackdebounce = false
  9143. end
  9144. end
  9145. end)
  9146.  
  9147. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  9148. for i = 0, 11.14, 0.3 do
  9149. swait()
  9150. root.Velocity = root.CFrame.lookVector * 30
  9151. BlockEffect(BrickColor.new("White"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  9152. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(-21-30*i), math.rad(8+10*i), math.rad(0-90*i)), 0.35)
  9153. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  9154. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  9155. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  9156. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
  9157. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-2*i), math.rad(0), math.rad(0-9*i)), 0.35)
  9158. end
  9159. attack = false
  9160. con5:disconnect()
  9161. end
  9162.  
  9163.  
  9164.  
  9165.  
  9166.  
  9167.  
  9168.  
  9169.  
  9170. function Taunt()
  9171. attack = true
  9172. hum.WalkSpeed = 0
  9173. Cso("1535995570", hed, 8.45, 1)
  9174. for i = 0, 8.2, 0.1 do
  9175. swait()
  9176. hum.WalkSpeed = 0
  9177. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 12)) * angles(Rad(0), Rad(0), Rad(0)), 0.2)
  9178. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25), Rad(0), Rad(16 * Cos(sine / 12))), 0.2)
  9179. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.1)
  9180. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.1)
  9181. RW.C0 = clerp(RW.C0, CF(1.1* Player_Size, 0.5 + 0.05 * Sin(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(180), Rad(6), Rad(-56)), 0.1)
  9182. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.1 + 0.05 * Sin(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(45), Rad(6), Rad(86)), 0.1)
  9183. end
  9184. attack = false
  9185. hum.WalkSpeed = 8
  9186. end
  9187.  
  9188.  
  9189.  
  9190.  
  9191.  
  9192.  
  9193.  
  9194. function Hyperkickcombo()
  9195.  
  9196. attack = true
  9197. so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 3, 1)
  9198. WaveEffect(BrickColor.new("White"), root.CFrame * CFrame.new(0, -1, 0) * euler(0, math.random(-50, 50), 0), 1, 1, 1, 1, 0.5, 1, 0.05)
  9199. for i = 0, 7.14, 0.1 do
  9200. swait()
  9201. SphereEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
  9202. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.8) * angles(math.rad(24), math.rad(0), math.rad(0)), 0.2)
  9203. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  9204. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(36)), 0.3)
  9205. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-36)), 0.3)
  9206. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.6, -0.3) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-28)), 0.2)
  9207. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.2, -0.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-34)), 0.2)
  9208. end
  9209. local Cracking = Cso("292536356", tors, 10, 1)
  9210. for i = 0, 7.14, 0.1 do
  9211. swait()
  9212. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
  9213. Aura(5, 0.15, "Add" , root.CFrame * CF(Mrandom(-12, 12), -6, Mrandom(-12, 12)) * angles(Rad(90 + Mrandom(-12, 12)), 0, 0), 1.5, 1.5, 10, -0.015, BrickC"Lime green", 0, "Sphere")
  9214. WaveEffect(BrickColor.new("Lime green"), root.CFrame * CFrame.new(0, -6, 0) * euler(0, math.random(-25, 25), 0), 1, 1, 1, 1, 0.2, 1, 0.05)
  9215. SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
  9216. SphereEffect(BrickColor.new("Lime green"),ll.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
  9217. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.8) * angles(math.rad(24), math.rad(0), math.rad(0)), 0.2)
  9218. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2)
  9219. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(36)), 0.3)
  9220. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-36)), 0.3)
  9221. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.6, -0.3) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-28)), 0.2)
  9222. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.2, -0.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-34)), 0.2)
  9223. end
  9224. Cracking.Playing = false
  9225. so("http://www.roblox.com/asset/?id=197161452", char, 3, 0.8)
  9226. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  9227. SphereEffect(BrickColor.new("Lime green"),tors.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,38,38,38,0.08)
  9228. local velo=Instance.new("BodyVelocity")
  9229. velo.velocity=vt(0,27,0)
  9230. velo.P=11000
  9231. velo.maxForce=Vector3.new(math.huge, math.huge, math.huge)
  9232. velo.Parent=root
  9233. game:GetService("Debris"):AddItem(velo,1.24)
  9234.  
  9235.  
  9236.  
  9237. con5=hum.Touched:connect(function(hit)
  9238. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  9239. if attackdebounce == false then
  9240. attackdebounce = true
  9241. coroutine.resume(coroutine.create(function()
  9242. for i = 0,1.5,0.1 do
  9243. swait()
  9244. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,3.4,-1.8)
  9245. end
  9246. end))
  9247. kDamagefunc(hit,2,3,math.random(0,0),"Normal",root,0,1)
  9248. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  9249. RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  9250. RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  9251. SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  9252.  
  9253.  
  9254.  
  9255. coroutine.resume(coroutine.create(function()
  9256. for i = 0,1,0.1 do
  9257. swait()
  9258. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
  9259. end
  9260. end))
  9261.  
  9262.  
  9263. wait(0.09)
  9264. attackdebounce = false
  9265. end
  9266. end
  9267. end)
  9268.  
  9269. for i = 0, 9.11, 0.2 do
  9270. swait()
  9271. BlockEffect(BrickColor.new("Lime green"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  9272. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, 0.1+0.12*i) * angles(math.rad(-10-95*i), math.rad(0), math.rad(0)), 0.42)
  9273. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-43), math.rad(0), math.rad(0)), 0.42)
  9274. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(60)), 0.35)
  9275. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(-60)), 0.35)
  9276. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.5, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(20+10*i)), 0.42)
  9277. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.5, -0.4) * LHCF * angles(math.rad(0), math.rad(0), math.rad(24)), 0.42)
  9278. end
  9279.  
  9280.  
  9281.  
  9282.  
  9283. con5:disconnect()
  9284.  
  9285.  
  9286.  
  9287.  
  9288.  
  9289.  
  9290. con5=hum.Touched:connect(function(hit)
  9291. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  9292. if attackdebounce == false then
  9293. attackdebounce = true
  9294. coroutine.resume(coroutine.create(function()
  9295. for i = 0,1.5,0.1 do
  9296. swait()
  9297. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  9298. end
  9299. end))
  9300. kDamagefunc(hit,3,4,math.random(0,0),"Normal",root,0,1)
  9301.  
  9302. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  9303. RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  9304. RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  9305. SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  9306.  
  9307.  
  9308.  
  9309. coroutine.resume(coroutine.create(function()
  9310. for i = 0,1,0.1 do
  9311. swait()
  9312. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
  9313. end
  9314. end))
  9315.  
  9316.  
  9317. wait(0.08)
  9318. attackdebounce = false
  9319. end
  9320. end
  9321. end)
  9322.  
  9323.  
  9324.  
  9325. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  9326. for i = 0, 9.14, 0.3 do
  9327. swait()
  9328. root.Velocity = root.CFrame.lookVector * 20
  9329. BlockEffect(BrickColor.new("Lime green"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  9330. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(53), math.rad(8), math.rad(0-54*i)), 0.35)
  9331. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  9332. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  9333. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  9334. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
  9335. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-7*i), math.rad(0), math.rad(0-9*i)), 0.35)
  9336. end
  9337.  
  9338.  
  9339.  
  9340. con5:disconnect()
  9341.  
  9342.  
  9343.  
  9344. con5=hum.Touched:connect(function(hit)
  9345. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  9346. if attackdebounce == false then
  9347. attackdebounce = true
  9348. coroutine.resume(coroutine.create(function()
  9349. for i = 0,1.5,0.1 do
  9350. swait()
  9351. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  9352. end
  9353. end))
  9354. kDamagefunc(hit,3,4,math.random(0,0),"Normal",root,0,1)
  9355. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  9356. RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  9357. RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  9358. SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  9359.  
  9360.  
  9361.  
  9362. coroutine.resume(coroutine.create(function()
  9363. for i = 0,1,0.1 do
  9364. swait()
  9365. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
  9366. end
  9367. end))
  9368.  
  9369.  
  9370. wait(0.05)
  9371. attackdebounce = false
  9372. end
  9373. end
  9374. end)
  9375.  
  9376.  
  9377. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  9378. for i = 0, 15.14, 0.32 do
  9379. swait()
  9380. root.Velocity = root.CFrame.lookVector * 20
  9381. BlockEffect(BrickColor.new("Lime green"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  9382. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(-21-50*i), math.rad(8+20*i), math.rad(0-90*i)), 0.35)
  9383. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  9384. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  9385. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  9386. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
  9387. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-2*i), math.rad(0), math.rad(0-4*i)), 0.35)
  9388. end
  9389.  
  9390. attack = false
  9391. con5:disconnect()
  9392.  
  9393. end
  9394.  
  9395.  
  9396.  
  9397.  
  9398.  
  9399. local ultra = false
  9400.  
  9401. function Galekicks()
  9402.  
  9403. attack = true
  9404. so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 3, 1)
  9405. for i = 0, 1.65, 0.1 do
  9406. swait()
  9407. root.Velocity = root.CFrame.lookVector * 0
  9408. SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
  9409. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
  9410. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  9411. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
  9412. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
  9413. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  9414. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  9415. end
  9416.  
  9417.  
  9418. for i = 1, 17 do
  9419.  
  9420. con5=hum.Touched:connect(function(hit)
  9421. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  9422. if attackdebounce == false then
  9423. attackdebounce = true
  9424. coroutine.resume(coroutine.create(function()
  9425. for i = 0,1.5,0.1 do
  9426. swait()
  9427. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  9428. end
  9429. end))
  9430. kDamagefunc(hit,1,2,math.random(0,0),"Normal",root,0,1)
  9431. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  9432. RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  9433. RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  9434. SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  9435.  
  9436.  
  9437.  
  9438. coroutine.resume(coroutine.create(function()
  9439. for i = 0,1,0.1 do
  9440. swait()
  9441. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
  9442. end
  9443. end))
  9444.  
  9445.  
  9446. wait(0.05)
  9447. attackdebounce = false
  9448. end
  9449. end
  9450. end)
  9451.  
  9452. for i = 0, .1, 0.2 do
  9453. swait()
  9454. BlockEffect(BrickColor.new("Lime green"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
  9455. root.Velocity = root.CFrame.lookVector * 10
  9456. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, -0.3) * angles(math.rad(-44), math.rad(-2), math.rad(90)), 0.7)
  9457. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-24), math.rad(-90)), 0.7)
  9458. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.7)
  9459. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.7)
  9460. RH.C0 = clerp(RH.C0, CFrame.new(1, -.6 , 0) * RHCF * angles(math.rad(math.random(-100,-10)), math.rad(0), math.rad(2)), 0.7)
  9461. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-34), math.rad(0), math.rad(0)), 0.7)
  9462. end
  9463.  
  9464. so("http://roblox.com/asset/?id=1340545854",rl,1,math.random(0.7,1))
  9465.  
  9466. for i = 0, 0.4, 0.2 do
  9467. swait()
  9468. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
  9469. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  9470. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
  9471. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
  9472. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  9473. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  9474. end
  9475. con5:disconnect()
  9476. end
  9477.  
  9478.  
  9479. u = mouse.KeyDown:connect(function(key)
  9480. if key == 'r' and combohits >= 150 then
  9481. ultra = true
  9482. SphereEffect(BrickColor.new("Really red"),tors.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,15,15,15,0.04)
  9483. end
  9484. end)
  9485. wait(0.3)
  9486. if ultra == true then
  9487. combohits = 0
  9488. wait(0.1)
  9489. for i = 0, 1.65, 0.1 do
  9490. swait()
  9491. root.Velocity = root.CFrame.lookVector * 0
  9492. SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
  9493. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
  9494. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  9495. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
  9496. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
  9497. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  9498. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  9499. end
  9500.  
  9501.  
  9502. so("http://roblox.com/asset/?id=146094803",hed,1,1.2)
  9503.  
  9504. for i = 1, 65 do
  9505. --Aura(5, 0.15, "Add" , root.CFrame * CF(Mrandom(-12, 12), -6, Mrandom(-12, 12)) * angles(Rad(90 + Mrandom(-12, 12)), 0, 0), 1.5, 1.5, 10, -0.015, BrickC"Really red", 0, "Brick")
  9506. con5=hum.Touched:connect(function(hit)
  9507. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  9508. if attackdebounce == false then
  9509. attackdebounce = true
  9510. coroutine.resume(coroutine.create(function()
  9511. for i = 0,1.5,0.1 do
  9512. swait()
  9513. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  9514. end
  9515. end))
  9516. kDamagefunc(hit,1,2,math.random(0,0),"Normal",root,0,1)
  9517.  
  9518.  
  9519.  
  9520.  
  9521. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  9522. RingEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  9523. RingEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  9524. SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  9525.  
  9526.  
  9527.  
  9528. coroutine.resume(coroutine.create(function()
  9529. for i = 0,1,0.1 do
  9530. swait()
  9531. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
  9532. end
  9533. end))
  9534.  
  9535.  
  9536. wait(0.05)
  9537. attackdebounce = false
  9538. end
  9539. end
  9540. end)
  9541.  
  9542. for i = 0, .03, 0.1 do
  9543. swait()
  9544. BlockEffect(BrickColor.new("Really red"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
  9545. root.Velocity = root.CFrame.lookVector * 10
  9546. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, -0.3) * angles(math.rad(-44), math.rad(-2), math.rad(90)), 0.7)
  9547. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-24), math.rad(-90)), 0.7)
  9548. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.7)
  9549. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.7)
  9550. RH.C0 = clerp(RH.C0, CFrame.new(1, -.6 , 0) * RHCF * angles(math.rad(math.random(-100,-10)), math.rad(0), math.rad(2)), 0.7)
  9551. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-34), math.rad(0), math.rad(0)), 0.7)
  9552. end
  9553.  
  9554. so("http://roblox.com/asset/?id=1340545854",rl,1,math.random(0.7,1))
  9555.  
  9556. for i = 0, 0.07, 0.1 do
  9557. swait()
  9558. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
  9559. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  9560. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
  9561. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
  9562. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  9563. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  9564. end
  9565. con5:disconnect()
  9566. end
  9567.  
  9568. for i = 0, 1.65, 0.1 do
  9569. swait()
  9570. root.Velocity = root.CFrame.lookVector * 0
  9571. SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
  9572. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
  9573. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  9574. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
  9575. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
  9576. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  9577. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  9578. end
  9579.  
  9580. con5=hum.Touched:connect(function(hit)
  9581. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  9582. if attackdebounce == false then
  9583. attackdebounce = true
  9584. coroutine.resume(coroutine.create(function()
  9585. for i = 0,1.5,0.1 do
  9586. swait()
  9587. --hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  9588. end
  9589. end))
  9590. kDamagefunc(hit, 1, 3, 0,"Normal",root,0,1)
  9591. so("http://roblox.com/asset/?id=636494529",rl,2,.63)
  9592. RingEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  9593. RingEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  9594. SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  9595.  
  9596.  
  9597. coroutine.resume(coroutine.create(function()
  9598. for i = 0,1,0.1 do
  9599. swait()
  9600. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
  9601. end
  9602. end))
  9603.  
  9604.  
  9605. wait(0.05)
  9606. attackdebounce = false
  9607. end
  9608. end
  9609. end)
  9610.  
  9611. so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 1, 1.4)
  9612. SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,38,38,38,0.08)
  9613.  
  9614. for i = 0, 2, 0.1 do
  9615. swait()
  9616. --BlockEffect(BrickColor.new("Really red"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
  9617. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
  9618. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  9619. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
  9620. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
  9621. RH.C0 = clerp(RH.C0, CFrame.new(1, -.6 , 0.2) * RHCF * angles(math.rad(-50), math.rad(0), math.rad(2)), 0.2)
  9622. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  9623. end
  9624. SphereEffect(BrickColor.new("Really red"),tors.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,8,8,8,0.04)
  9625.  
  9626. wait(0.25)
  9627. con5:Disconnect()
  9628.  
  9629.  
  9630.  
  9631.  
  9632. con5=hum.Touched:connect(function(hit)
  9633. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  9634. if attackdebounce == false then
  9635. attackdebounce = true
  9636.  
  9637. kDamagefunc(hit,1,2,math.random(0,0),"Normal",root,0,1)
  9638. so("http://roblox.com/asset/?id=565207203",ll,7,0.63)
  9639.  
  9640. RingEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,2.2,6,2.2,0.04)
  9641. RingEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,2.2,6,2.2,0.04)
  9642. SphereEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,8,8,8,0.04)
  9643. SpecialEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,8,8,8,0.04)
  9644. SphereEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,5,18,5,0.04)
  9645. WaveEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,1.5,16,1.5,0.04)
  9646.  
  9647. coroutine.resume(coroutine.create(function()
  9648. for i = 0,1,0.1 do
  9649. swait()
  9650. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8)),0.24)
  9651. end
  9652. end))
  9653.  
  9654. wait(0.06)
  9655. attackdebounce = false
  9656.  
  9657. end
  9658. end
  9659. end)
  9660.  
  9661. coroutine.resume(coroutine.create(function()
  9662. while ultra == true do
  9663. swait()
  9664. root.CFrame = root.CFrame*CFrame.new(math.random(-3,3),math.random(-2,2),math.random(-3,3))
  9665. end
  9666. end))
  9667.  
  9668.  
  9669. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  9670. for i = 1,3 do
  9671. for i = 0, 9.14, 0.45 do
  9672. swait()
  9673. root.Velocity = root.CFrame.lookVector * 30
  9674. BlockEffect(BrickColor.new("Really red"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  9675. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(8), math.rad(8), math.rad(0-94*i)), 0.35)
  9676. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  9677. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  9678. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  9679. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
  9680. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-7*i), math.rad(0), math.rad(0-9*i)), 0.35)
  9681. end
  9682. end
  9683.  
  9684.  
  9685. for i = 1,3 do
  9686. for i = 0, 11.14, 0.45 do
  9687. swait()
  9688. root.Velocity = root.CFrame.lookVector * 30
  9689. BlockEffect(BrickColor.new("Really red"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  9690. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(-21-30*i), math.rad(8+10*i), math.rad(0-110*i)), 0.35)
  9691. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  9692. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  9693. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  9694. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(27), math.rad(0), math.rad(74)), 0.35)
  9695. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-34-2*i), math.rad(0), math.rad(0-9*i)), 0.35)
  9696. end
  9697.  
  9698.  
  9699.  
  9700. end
  9701. so("http://www.roblox.com/asset/?id=197161452", char, 0.5, 0.8)
  9702. con5:disconnect()
  9703.  
  9704.  
  9705. end -- combo hit end
  9706. attack = false
  9707. ultra = false
  9708. u:disconnect()
  9709.  
  9710. end
  9711.  
  9712.  
  9713.  
  9714.  
  9715. -------------------------------------------------------
  9716. --End Attacks N Stuff--
  9717. -------------------------------------------------------
  9718. mouse.KeyDown:connect(function(key)
  9719. if string.byte(key) == 48 then
  9720. Swing = 2
  9721. hum.WalkSpeed = 24.82
  9722. end
  9723. end)
  9724. mouse.KeyUp:connect(function(key)
  9725. if string.byte(key) == 48 then
  9726. Swing = 1
  9727. hum.WalkSpeed = 8
  9728. end
  9729. end)
  9730.  
  9731.  
  9732.  
  9733.  
  9734.  
  9735.  
  9736.  
  9737. mouse.Button1Down:connect(function()
  9738. if attack==false then
  9739. if attacktype==1 then
  9740. attack=true
  9741. attacktype=2
  9742. attackone()
  9743. elseif attacktype==2 then
  9744. attack=true
  9745. attacktype=3
  9746. attacktwo()
  9747. elseif attacktype==3 then
  9748. attack=true
  9749. attacktype=4
  9750. attackthree()
  9751. elseif attacktype==4 then
  9752. attack=true
  9753. attacktype=1
  9754. attackfour()
  9755. end
  9756. end
  9757. end)
  9758.  
  9759.  
  9760.  
  9761.  
  9762. mouse.KeyDown:connect(function(key)
  9763. if key == 'e' and attack == false and cankick == true and cooldown == false then
  9764. quickkick()
  9765. cooldown = true
  9766.  
  9767. coroutine.resume(coroutine.create(function()
  9768. wait(2)
  9769. cooldown = false
  9770. end))
  9771.  
  9772.  
  9773.  
  9774. end
  9775. end)
  9776.  
  9777.  
  9778.  
  9779.  
  9780.  
  9781.  
  9782.  
  9783.  
  9784. mouse.KeyDown:connect(function(key)
  9785. if attack == false then
  9786. if key == 't' then
  9787. Taunt()
  9788. elseif key == 'f' then
  9789. Hyperkickcombo()
  9790. elseif key == 'r' then
  9791. Galekicks()
  9792. end
  9793. end
  9794. end)
  9795.  
  9796. -------------------------------------------------------
  9797. --Start Animations--
  9798. -------------------------------------------------------
  9799. print("By Makhail07 and KillerDarkness0105")
  9800. print("Basic Animations by Makhail07")
  9801. print("Attack Animations by KillerDarkness0105")
  9802. print("This is pretty much our final script together")
  9803. print("--------------------------------")
  9804. print("Attacks")
  9805. print("E in air: Quick Kicks")
  9806. print("Left Mouse: 4 click combo")
  9807. print("F: Hyper Kicks")
  9808. print("R: Gale Kicks, Spam R if your combo is over 150 to do an ultra combo")
  9809. print("--------------------------------")
  9810. while true do
  9811. swait()
  9812. sine = sine + change
  9813. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  9814. local velderp = root.Velocity.y
  9815. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  9816.  
  9817. if hitfloor == nil then
  9818. cankick = true
  9819. else
  9820. cankick = false
  9821. end
  9822.  
  9823.  
  9824. if equipped == true or equipped == false then
  9825. if attack == false then
  9826. idle = idle + 1
  9827. else
  9828. idle = 0
  9829. end
  9830. if 1 < root.Velocity.y and hitfloor == nil then
  9831. Anim = "Jump"
  9832. if attack == false then
  9833. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  9834. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15)
  9835. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.1)
  9836. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  9837. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  9838. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
  9839. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  9840. end
  9841. elseif -1 > root.Velocity.y and hitfloor == nil then
  9842. Anim = "Fall"
  9843. if attack == false then
  9844. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  9845. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15)
  9846. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.1)
  9847. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
  9848. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
  9849. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
  9850. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
  9851. end
  9852. elseif torvel < 1 and hitfloor ~= nil then
  9853. Anim = "Idle"
  9854. change = 1
  9855. if attack == false then
  9856. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  9857. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 12)) * angles(Rad(0), Rad(0), Rad(20)), 0.1)
  9858. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-6.5 * Sin(sine / 12)), Rad(0), Rad(-20)), 0.1)
  9859. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-12.5), Rad(0), Rad(0)), 0.1)
  9860. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, -0.2* Player_Size) * angles(Rad(0), Rad(-65), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.1)
  9861. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.05 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(110), Rad(6 + 6.5 * Sin(sine / 12)), Rad(25)), 0.1)
  9862. LW.C0 = clerp(LW.C0, CF(-1.3* Player_Size, 0.2 + 0.05 * Sin(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(110), Rad(6 - 6.5 * Sin(sine / 12)), Rad(25)), 0.1)
  9863. end
  9864. elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
  9865. Anim = "Walk"
  9866. change = 1
  9867. if attack == false then
  9868. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  9869. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15)
  9870. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-1), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.15)
  9871. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 15 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  9872. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 15 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  9873. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(56) * Cos(sine / 7) , Rad(10 * Cos(sine / 7)), Rad(6) - ra.RotVelocity.Y / 75), 0.1)
  9874. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-56) * Cos(sine / 7) , Rad(10 * Cos(sine / 7)) , Rad(-6) + la.RotVelocity.Y / 75), 0.1)
  9875. end
  9876. elseif torvel >= 22 and hitfloor ~= nil then
  9877. Anim = "Sprint"
  9878. change = 1.35
  9879. if attack == false then
  9880. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  9881. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
  9882. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-8.5 - 2 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.15)
  9883. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  9884. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  9885. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-65) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
  9886. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-65) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15)
  9887. end
  9888. end
  9889. end
  9890. Music.SoundId = "rbxassetid://"..SONG
  9891. Music.Looped = true
  9892. Music.Pitch = 1
  9893. Music.Volume = 0.7
  9894. Music.Parent = tors
  9895. Music:Resume()
  9896. if 0 < #Effects then
  9897. for e = 1, #Effects do
  9898. if Effects[e] ~= nil then
  9899. local Thing = Effects[e]
  9900. if Thing ~= nil then
  9901. local Part = Thing[1]
  9902. local Mode = Thing[2]
  9903. local Delay = Thing[3]
  9904. local IncX = Thing[4]
  9905. local IncY = Thing[5]
  9906. local IncZ = Thing[6]
  9907. if 1 >= Thing[1].Transparency then
  9908. if Thing[2] == "Block1" then
  9909. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  9910. local Mesh = Thing[1].Mesh
  9911. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  9912. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  9913. elseif Thing[2] == "Block2" then
  9914. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  9915. local Mesh = Thing[7]
  9916. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  9917. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  9918. elseif Thing[2] == "Block3" then
  9919. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
  9920. local Mesh = Thing[7]
  9921. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  9922. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  9923. elseif Thing[2] == "Cylinder" then
  9924. local Mesh = Thing[1].Mesh
  9925. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  9926. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  9927. elseif Thing[2] == "Blood" then
  9928. local Mesh = Thing[7]
  9929. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  9930. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  9931. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  9932. elseif Thing[2] == "Elec" then
  9933. local Mesh = Thing[1].Mesh
  9934. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  9935. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  9936. elseif Thing[2] == "Disappear" then
  9937. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  9938. elseif Thing[2] == "Shatter" then
  9939. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  9940. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  9941. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  9942. Thing[6] = Thing[6] + Thing[5]
  9943. end
  9944. else
  9945. Part.Parent = nil
  9946. table.remove(Effects, e)
  9947. end
  9948. end
  9949. end
  9950. end
  9951. end
  9952. end
  9953. -------------------------------------------------------
  9954. --End Animations And Script--
  9955. -------------------------------------------------------
  9956. end)
  9957.  
  9958. --ENd :D--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement