Advertisement
Vintage-Furry

AAAAAAAAAAAAAAAAAAAAAAAAA

Sep 7th, 2018
468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 265.71 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
  2. print("FE Compatibility: by EzzyCrafts")
  3. InternalData = {}
  4. do
  5. script.Parent = owner.Character
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInput"
  8. local function NewFakeEvent()
  9. local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  10. return Fake
  11. end
  12. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  13. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  14. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  15. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  16. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  17. local function TriggerEvent(self,Event,...)
  18. local Trigger = Mouse[Event]
  19. if Trigger and Trigger.fakeEvent and Trigger.Function then
  20. Trigger.Function(...)
  21. end
  22. end
  23. Mouse.TrigEvent = TriggerEvent
  24. UserInputService.TrigEvent = TriggerEvent
  25. Event.OnServerEvent:Connect(function(FiredBy,Input)
  26. if FiredBy.Name ~= owner.Name then end
  27. if Input.MouseEvent then
  28. Mouse.Target = Input.Target
  29. Mouse.Hit = Input.Hit
  30. else
  31. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  32. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  33. return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  34. end
  35. for _,Action in pairs(ContextActionService.Actions) do
  36. for _,Key in pairs(Action.Keys) do
  37. if Key==Input.KeyCode then
  38. Action.Function(Action.Name,Input.UserInputState,Input)
  39. end
  40. end
  41. end
  42. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  43. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  44. end
  45. end)
  46. InternalData["Mouse"] = Mouse
  47. InternalData["ContextActionService"] = ContextActionService
  48. InternalData["UserInputService"] = UserInputService
  49. Event.Parent = NLS([[
  50. local Player = owner
  51. local Event = script:WaitForChild("UserInput")
  52. local UserInputService = game:GetService("UserInputService")
  53. local Mouse = Player:GetMouse()
  54. local Input = function(Input,gameProcessedEvent)
  55. if gameProcessedEvent then return end
  56. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  57. end
  58. UserInputService.InputBegan:Connect(Input)
  59. UserInputService.InputEnded:Connect(Input)
  60. local Hit,Target
  61. while wait(1/30) do
  62. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  63. Hit,Target = Mouse.Hit,Mouse.Target
  64. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  65. end
  66. end
  67. ]],owner.Character)
  68. end
  69. RealGame = game;game = setmetatable({},{
  70. __index = function (self,Index)
  71. local Sandbox = function (Thing)
  72. if Thing:IsA("Player") then
  73. local RealPlayer = Thing
  74. return setmetatable({},{
  75. __index = function (self,Index)
  76. local Type = type(RealPlayer[Index])
  77. if Type == "function" then
  78. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  79. return function (self)
  80. return InternalData["Mouse"]
  81. end
  82. end
  83. return function (self,...)
  84. return RealPlayer[Index](RealPlayer,...)
  85. end
  86. else
  87. if Index == "PlrObj" then
  88. return RealPlayer
  89. end
  90. return RealPlayer[Index]
  91. end
  92. end;
  93. __tostring = function(self)
  94. return RealPlayer.Name
  95. end
  96. })
  97. end
  98. end
  99. if RealGame[Index] then
  100. local Type = type(RealGame[Index])
  101. if Type == "function" then
  102. if Index:lower() == "getservice" or Index:lower() == "service" then
  103. return function (self,Service)
  104. if Service:lower() == "players" then
  105. return setmetatable({},{
  106. __index = function (self2,Index2)
  107. local RealService = RealGame:GetService(Service)
  108. local Type2 = type(Index2)
  109. if Type2 == "function" then
  110. return function (self,...)
  111. return RealService[Index2](RealService,...)
  112. end
  113. else
  114. if Index2:lower() == "localplayer" then
  115. return Sandbox(owner)
  116. end
  117. return RealService[Index2]
  118. end
  119. end;
  120. __tostring = function(self)
  121. return RealGame:GetService(Service).Name
  122. end
  123. })
  124. elseif Service:lower() == "contextactionservice" then
  125. return InternalData["ContextActionService"]
  126. elseif Service:lower() == "contextactionservice" then
  127. return InternalData["UserInputService"]
  128. elseif Service:lower() == "runservice" then
  129. return setmetatable({},{
  130. __index = function(self2,Index2)
  131. local RealService = RealGame:GetService(Service)
  132. local Type2 = type(Index2)
  133. if Type2 == "function" then
  134. return function (self,...)
  135. return RealService[Index2](RealService,...)
  136. end
  137. else
  138. if Index2:lower() == "bindtorenderstep" then
  139. return function (self,Name,Priority,Function)
  140. return RealGame:GetService("RunService").Stepped:Connect(Function)
  141. end
  142. end
  143. if Index2:lower() == "renderstepped" then
  144. return RealService["Stepped"]
  145. end
  146. return RealService[Index2]
  147. end
  148. end
  149. })
  150. else
  151. return RealGame:GetService(Service)
  152. end
  153. end
  154. end
  155. return function (self,...)
  156. return RealGame[Index](RealGame,...)
  157. end
  158. else
  159. if game:GetService(Index) then
  160. return game:GetService(Index)
  161. end
  162. return RealGame[Index]
  163. end
  164. else
  165. return nil
  166. end
  167. end
  168. });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
  169. print("Complete! Running...")
  170.  
  171.  
  172. --//Paste script below this line.
  173.  
  174. warn("GUEST GLITCHER CORE LOADED")
  175. warn("All of what I did took a long time")
  176. warn("I don't want people to leak, Only leaked on my channel.")
  177. warn("UPDATE: NEW HALO AND TRAILS AND MUSIC, ENJOY!")
  178. warn("Please enjoy it. CREDITS: DerpzTehNugget for some of the animations and some coding with attacks.")
  179. warn("-EzzyCrafts (Poison Resistance)")
  180. plr = game.Players.LocalPlayer
  181. char = plr.Character
  182. hum = char.Humanoid
  183. local cam = game.Workspace.CurrentCamera
  184. Camera = cam
  185. local CamInterrupt = false
  186. local TwoD = false
  187. local TargetInfo = {nil, nil}
  188. cam.CameraType = "Custom"
  189. t = char.Torso
  190. h = char.Head
  191. ra = char["Right Arm"]
  192. la = char["Left Arm"]
  193. rl = char["Right Leg"]
  194. ll = char["Left Leg"]
  195. tors = char.Torso
  196. lleg = char["Left Leg"]
  197. root = char.HumanoidRootPart
  198. hed = char.Head
  199. rleg = char["Right Leg"]
  200. rarm = char["Right Arm"]
  201. larm = char["Left Arm"]
  202. radian = math.rad
  203. random = math.random
  204. Vec3 = Vector3.new
  205. Inst = Instance.new
  206. cFrame = CFrame.new
  207. Euler = CFrame.fromEulerAnglesXYZ
  208. vt = Vector3.new
  209. bc = BrickColor.new
  210. br = BrickColor.random
  211. it = Instance.new
  212. cf = CFrame.new
  213. local Booleans = {CamFollow = true, GyroUse = true}
  214. function lerp(object, newCFrame, alpha)
  215. return object:lerp(newCFrame, alpha)
  216. end
  217. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  218. ff.Visible = false
  219. local Directer = Inst("BodyGyro", root)
  220. Directer.MaxTorque = Vec3(0, 0, 0)
  221. Directer.P = 600000
  222. local CPart = Inst("Part")
  223. CPart.Anchored = true
  224. CPart.CanCollide = false
  225. CPart.Locked = true
  226. CPart.Transparency = 1
  227. local rainbowmode = false
  228. local chaosmode = false
  229. kan = Instance.new("Sound",char)
  230. kan.Volume = 1.25
  231. kan.TimePosition = 0
  232. kan.PlaybackSpeed = 1
  233. kan.Pitch = 1
  234. kan.SoundId = "rbxassetid://614032233"
  235. kan.Name = "wrecked"
  236. kan.Looped = true
  237. kan:Play()
  238. function newTheme(ID,timepos,pitch,vol)
  239. local kanz = kan
  240. --kanz:Stop()
  241. --kanz.Volume = vol
  242. --kanz.TimePosition = timepos
  243. kanz.PlaybackSpeed = pitch
  244. kanz.Pitch = pitch
  245. kanz.SoundId = ID
  246. kanz.Name = "wrecked"
  247. kanz.Looped = true
  248. kanz.Volume = 0.3
  249. --kanz:Play()
  250. --coroutine.resume(coroutine.create(function()
  251. --wait(0.05)
  252. --end))
  253. end
  254. function newThemeCust(ID,timepos,pitch,vol)
  255. local kanz = kan
  256. kanz:Stop()
  257. kanz.Volume = vol
  258. kanz.TimePosition = timepos
  259. kanz.PlaybackSpeed = pitch
  260. kanz.Pitch = pitch
  261. kanz.SoundId = ID
  262. kanz.Name = "wrecked"
  263. kanz.Looped = true
  264. kanz:Play()
  265. coroutine.resume(coroutine.create(function()
  266. wait(0.05)
  267. end))
  268. end
  269.  
  270. function CameraShake(Times, Power, PlayerTarget)
  271. coroutine.resume(coroutine.create(function()
  272. FV = Instance.new("BoolValue", PlayerTarget)
  273. FV.Name = "CameraShake"
  274. for ShakeNum=1,Times do
  275. swait()
  276. local ef=Power
  277. if ef>=1 then
  278. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  279. else
  280. ef=Power*10
  281. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  282. end
  283. end
  284. Humanoid.CameraOffset = Vector3.new(0,0,0)
  285. FV:Destroy()
  286. end))
  287. end
  288. function CameraEnshaking(Length,Intensity)
  289. coroutine.resume(coroutine.create(function()
  290. local intensity = 1*Intensity
  291. local rotM = 0.01*Intensity
  292. for i = 0, Length, 0.1 do
  293. swait()
  294. intensity = intensity - 0.05*Intensity/Length
  295. rotM = rotM - 0.0005*Intensity/Length
  296. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  297. 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)
  298. end
  299. Humanoid.CameraOffset = Vec3(0, 0, 0)
  300. end))
  301. end
  302. CamShake=function(Part,Distan,Power,Times)
  303. local de=Part.Position
  304. for i,v in pairs(workspace:children()) do
  305. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  306. for _,c in pairs(v:children()) do
  307. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  308. local Noob=v.Humanoid
  309. if Noob~=nil then
  310. coroutine.resume(coroutine.create(function()
  311. FV = Instance.new("BoolValue", Noob)
  312. FV.Name = "CameraShake"
  313. for ShakeNum=1,Times do
  314. swait()
  315. local ef=Power
  316. if ef>=1 then
  317. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  318. else
  319. ef=Power*10
  320. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  321. end
  322. end
  323. Humanoid.CameraOffset = Vector3.new(0,0,0)
  324. FV:Destroy()
  325. end))
  326. CameraShake(Times, Power, Noob)
  327. end
  328. end
  329. end
  330. end
  331. end
  332. end
  333.  
  334. function CameraShake(Times, Power, PlayerTarget)
  335. coroutine.resume(coroutine.create(function()
  336. FV = Instance.new("BoolValue", PlayerTarget)
  337. FV.Name = "CameraShake"
  338. for ShakeNum = 1, Times do
  339. swait()
  340. local ef = Power
  341. if ef >= 1 then
  342. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef))
  343. else
  344. ef = Power * 10
  345. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10)
  346. end
  347. end
  348. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  349. FV:Destroy()
  350. end))
  351. end
  352. function CameraEnshaking(Length, Intensity)
  353. coroutine.resume(coroutine.create(function()
  354. local intensity = 1 * Intensity
  355. local rotM = 0.01 * Intensity
  356. for i = 0, Length, 0.1 do
  357. swait()
  358. intensity = intensity - 0.05 * Intensity / Length
  359. rotM = rotM - 5.0E-4 * Intensity / Length
  360. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  361. 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)
  362. end
  363. Humanoid.CameraOffset = Vec3(0, 0, 0)
  364. end))
  365. end
  366. function CamShake(Part, Distan, Power, Times)
  367. local de = Part.Position
  368. for i, v in pairs(workspace:children()) do
  369. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  370. for _, c in pairs(v:children()) do
  371. if c.ClassName == "Part" and Distan > (c.Position - de).magnitude then
  372. do
  373. local Noob = v.Humanoid
  374. if Noob ~= nil then
  375. coroutine.resume(coroutine.create(function()
  376. FV = Instance.new("BoolValue", Noob)
  377. FV.Name = "CameraShake"
  378. for ShakeNum = 1, Times do
  379. swait()
  380. local ef = Power
  381. if ef >= 1 then
  382. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef))
  383. else
  384. ef = Power * 10
  385. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10)
  386. end
  387. end
  388. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  389. FV:Destroy()
  390. end))
  391. CameraShake(Times, Power, Noob)
  392. end
  393. end
  394. end
  395. end
  396. end
  397. end
  398. end
  399. function chatfunc(text, color)
  400. local chat = coroutine.wrap(function()
  401. if Character:FindFirstChild("TalkingBillBoard") ~= nil then
  402. Character:FindFirstChild("TalkingBillBoard"):destroy()
  403. end
  404. local naeeym2 = Instance.new("BillboardGui", Character)
  405. naeeym2.Size = UDim2.new(0, 100, 0, 40)
  406. naeeym2.StudsOffset = Vector3.new(0, 3, 0)
  407. naeeym2.Adornee = Character.Head
  408. naeeym2.Name = "TalkingBillBoard"
  409. local tecks2 = Instance.new("TextLabel", naeeym2)
  410. tecks2.BackgroundTransparency = 1
  411. tecks2.BorderSizePixel = 0
  412. tecks2.Text = ""
  413. tecks2.Font = "Antique"
  414. tecks2.TextSize = 30
  415. tecks2.TextStrokeTransparency = 0
  416. tecks2.TextColor3 = color
  417. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  418. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  419. local tecks3 = Instance.new("TextLabel", naeeym2)
  420. tecks3.BackgroundTransparency = 1
  421. tecks3.BorderSizePixel = 0
  422. tecks3.Text = ""
  423. tecks3.Font = "Antique"
  424. tecks3.TextSize = 30
  425. tecks3.TextStrokeTransparency = 0
  426. tecks3.TextColor3 = Color3.new(0, 0, 0)
  427. tecks3.TextStrokeColor3 = color
  428. tecks3.Size = UDim2.new(1, 0, 0.5, 0)
  429. coroutine.resume(coroutine.create(function()
  430. while true do
  431. swait(1)
  432. if chaosmode == true then
  433. tecks2.TextColor3 = BrickColor.random().Color
  434. tecks3.TextStrokeColor3 = BrickColor.random().Color
  435. end
  436. tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
  437. tecks3.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
  438. tecks2.Rotation = math.random(-5, 5)
  439. tecks3.Rotation = math.random(-5, 5)
  440. end
  441. end))
  442. for i = 1, string.len(text) do
  443. CFuncs.Sound.Create("rbxassetid://274118116", char, 0.25, 0.115)
  444. tecks2.Text = string.sub(text, 1, i)
  445. tecks3.Text = string.sub(text, 1, i)
  446. swait(1)
  447. end
  448. wait(1)
  449. local randomrot = math.random(1, 2)
  450. if randomrot == 1 then
  451. for i = 1, 50 do
  452. swait()
  453. tecks2.Rotation = tecks2.Rotation - 0.75
  454. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  455. tecks2.TextTransparency = tecks2.TextTransparency + 0.04
  456. tecks3.Rotation = tecks2.Rotation + 0.75
  457. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  458. tecks3.TextTransparency = tecks2.TextTransparency + 0.04
  459. end
  460. elseif randomrot == 2 then
  461. for i = 1, 50 do
  462. swait()
  463. tecks2.Rotation = tecks2.Rotation + 0.75
  464. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  465. tecks2.TextTransparency = tecks2.TextTransparency + 0.04
  466. tecks3.Rotation = tecks2.Rotation - 0.75
  467. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  468. tecks3.TextTransparency = tecks2.TextTransparency + 0.04
  469. end
  470. end
  471. naeeym2:Destroy()
  472. end)
  473. chat()
  474. end
  475. local Create = LoadLibrary("RbxUtility").Create
  476. CFuncs = {
  477. Part = {
  478. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  479. local Part = Create("Part")({
  480. Parent = Parent,
  481. Reflectance = Reflectance,
  482. Transparency = Transparency,
  483. CanCollide = false,
  484. Locked = true,
  485. BrickColor = BrickColor.new(tostring(BColor)),
  486. Name = Name,
  487. Size = Size,
  488. Material = Material
  489. })
  490. RemoveOutlines(Part)
  491. return Part
  492. end
  493. },
  494. Mesh = {
  495. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  496. local Msh = Create(Mesh)({
  497. Parent = Part,
  498. Offset = OffSet,
  499. Scale = Scale
  500. })
  501. if Mesh == "SpecialMesh" then
  502. Msh.MeshType = MeshType
  503. Msh.MeshId = MeshId
  504. end
  505. return Msh
  506. end
  507. },
  508. Mesh = {
  509. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  510. local Msh = Create(Mesh)({
  511. Parent = Part,
  512. Offset = OffSet,
  513. Scale = Scale
  514. })
  515. if Mesh == "SpecialMesh" then
  516. Msh.MeshType = MeshType
  517. Msh.MeshId = MeshId
  518. end
  519. return Msh
  520. end
  521. },
  522. Weld = {
  523. Create = function(Parent, Part0, Part1, C0, C1)
  524. local Weld = Create("Weld")({
  525. Parent = Parent,
  526. Part0 = Part0,
  527. Part1 = Part1,
  528. C0 = C0,
  529. C1 = C1
  530. })
  531. return Weld
  532. end
  533. },
  534. Sound = {
  535. Create = function(id, par, vol, pit)
  536. coroutine.resume(coroutine.create(function()
  537. local S = Create("Sound")({
  538. Volume = vol,
  539. Pitch = pit or 1,
  540. SoundId = id,
  541. Parent = par or workspace
  542. })
  543. wait()
  544. S:play()
  545. game:GetService("Debris"):AddItem(S, 10)
  546. end))
  547. end
  548. },
  549. LongSound = {
  550. Create = function(id, par, vol, pit)
  551. coroutine.resume(coroutine.create(function()
  552. local S = Create("Sound")({
  553. Volume = vol,
  554. Pitch = pit or 1,
  555. SoundId = id,
  556. Parent = par or workspace
  557. })
  558. wait()
  559. S:play()
  560. game:GetService("Debris"):AddItem(S, 30)
  561. end))
  562. end
  563. },
  564. ["ParticleEmitter"] = {
  565. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  566. local fp = Create("ParticleEmitter"){
  567. Parent = Parent,
  568. Color = ColorSequence.new(Color1, Color2),
  569. LightEmission = LightEmission,
  570. Size = Size,
  571. Texture = Texture,
  572. Transparency = Transparency,
  573. ZOffset = ZOffset,
  574. Acceleration = Accel,
  575. Drag = Drag,
  576. LockedToPart = LockedToPart,
  577. VelocityInheritance = VelocityInheritance,
  578. EmissionDirection = EmissionDirection,
  579. Enabled = Enabled,
  580. Lifetime = LifeTime,
  581. Rate = Rate,
  582. Rotation = Rotation,
  583. RotSpeed = RotSpeed,
  584. Speed = Speed,
  585. VelocitySpread = VelocitySpread,
  586. }
  587. return fp
  588. end;
  589. };
  590.  
  591. CreateTemplate = {
  592.  
  593. };
  594. }
  595.  
  596.  
  597.  
  598. New = function(Object, Parent, Name, Data)
  599. local Object = Instance.new(Object)
  600. for Index, Value in pairs(Data or {}) do
  601. Object[Index] = Value
  602. end
  603. Object.Parent = Parent
  604. Object.Name = Name
  605. return Object
  606. end
  607. tl1 = Instance.new('Trail',wed)
  608. tl1.Attachment0 = A0
  609. tl1.Attachment1 = A1
  610. --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  611. tl1.LightEmission = 1
  612. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  613. tl1.Color = ColorSequence.new(BrickColor.new('Crimson').Color)
  614. tl1.Lifetime = 0.6
  615. local halocolor = BrickColor.new("Pastel light blue")
  616. local halocolor2 = BrickColor.new("Cool yellow")
  617. local starcolor = BrickColor.new("Bright yellow")
  618. local lunacolor = BrickColor.new("Navy blue")
  619. local lunacolor2 = BrickColor.new("Bright blue")
  620. local wepcolor = BrickColor.new("Really black")
  621. local maincolor = BrickColor.new("Really black")
  622. local m = Instance.new("Model",char)
  623. local m2 = Instance.new("Model",char)
  624. local m3 = Instance.new("Model",char)
  625. local mw1 = Instance.new("Model",char)
  626. local mw2 = Instance.new("Model",char)
  627. local extrawingmod1 = Instance.new("Model",char)
  628. local extrawingmod2 = Instance.new("Model",char)
  629. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  630. local p = Instance.new("Part")
  631. p.TopSurface = 0
  632. p.BottomSurface = 0
  633. p.Parent = parent
  634. p.Size = Vector3.new(0.1,0.1,0.1)
  635. p.Transparency = transparency
  636. p.Reflectance = reflectance
  637. p.CanCollide = false
  638. p.Locked = true
  639. p.BrickColor = brickcolor
  640. p.Material = material
  641. return p
  642. end
  643. function CreateMesh(parent,meshtype,x1,y1,z1)
  644. local mesh = Instance.new("SpecialMesh",parent)
  645. mesh.MeshType = meshtype
  646. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  647. return mesh
  648. end
  649. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  650. local mesh = Instance.new("SpecialMesh",parent)
  651. mesh.MeshType = "FileMesh"
  652. mesh.MeshId = meshid
  653. mesh.Scale = Vector3.new(x1,y1,z1)
  654. return mesh
  655. end
  656. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  657. local mesh = Instance.new("SpecialMesh",parent)
  658. mesh.MeshType = "FileMesh"
  659. mesh.MeshId = meshid
  660. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  661. mesh.Scale = Vector3.new(x1,y1,z1)
  662. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  663. return mesh
  664. end
  665. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  666. local weld = Instance.new("Weld")
  667. weld.Parent = parent
  668. weld.Part0 = part0
  669. weld.Part1 = part1
  670. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  671. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  672. return weld
  673. end
  674. local secondchar = Instance.new("Model",char)
  675. local GhostCol = BrickColor.new("Really red")
  676. local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol)
  677. CreateMesh(sectors,"Brick",2*8,2*8,1*8)
  678. local torsweld = CreateWeld(sectors,root,sectors,1,-1,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  679. local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  680. CreateMesh(seclarm,"Brick",1*8,2*8,1*8)
  681. local larmsweld = CreateWeld(seclarm,sectors,seclarm,1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  682. local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  683. CreateMesh(secrarm,"Brick",1*8,2*8,1*8)
  684. local rarmsweld = CreateWeld(secrarm,sectors,secrarm,-1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  685. local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  686. CreateMesh(seclleg,"Brick",1*8,2*8,1*8)
  687. local llegsweld = CreateWeld(seclleg,sectors,seclleg,0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  688. local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  689. CreateMesh(secrleg,"Brick",1*8,2*8,1*8)
  690. local rlegsweld = CreateWeld(secrleg,sectors,secrleg,-0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  691. local seched = CreateParta(secondchar,1,0,"Neon",GhostCol)
  692. CreateMesh(seched,"Brick",1*8,1*8,1*8)
  693. local hedsweld = CreateWeld(seched,sectors,seched,0,-1.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  694. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  695. 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))
  696. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  697. 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))
  698. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  699. CreateMesh(handle,"Brick",0,0,0)
  700. 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))
  701. local valuaring = 10
  702. for i = 0, 49 do
  703. valuaring = valuaring + 10
  704. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  705. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  706. 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))
  707. end
  708. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  709. CreateMesh(handle,"Brick",0,0,0)
  710. 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))
  711. local valuaring = 10
  712. for i = 0, 49 do
  713. valuaring = valuaring + 10
  714. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  715. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  716. 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))
  717. end
  718. local handle = CreateParta(m,1,1,"Neon",maincolor)
  719. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  720. 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))
  721. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  722. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  723. 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))
  724. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  725. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  726. 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))
  727. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  728. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  729. 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))
  730. A0 = Instance.new('Attachment',wed)
  731. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  732. CreateMesh(wed,"Wedge",0.05,0.5,3)
  733. 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))
  734. A1 = Instance.new('Attachment',wed)
  735. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  736. CreateMesh(wed,"Wedge",0.05,3,0.5)
  737. 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))
  738.  
  739. tl1 = Instance.new('Trail',wed)
  740. tl1.Attachment0 = A0
  741. tl1.Attachment1 = A1
  742. --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  743. tl1.LightEmission = 1
  744. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  745. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  746. tl1.Lifetime = 0.6
  747.  
  748.  
  749. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  750. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  751. 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))
  752.  
  753. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  754. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  755. 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))
  756. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  757. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  758. 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))
  759. A0 = Instance.new('Attachment',wed)
  760. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  761. CreateMesh(wed,"Wedge",0.05,0.5,3)
  762. 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))
  763. A1 = Instance.new('Attachment',wed)
  764. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  765. CreateMesh(wed,"Wedge",0.05,3,0.5)
  766. 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))
  767.  
  768. tl2 = Instance.new('Trail',wed)
  769. tl2.Attachment0 = A0
  770. tl2.Attachment1 = A1
  771. --tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  772. tl2.LightEmission = 1
  773. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  774. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  775. tl2.Lifetime = 0.6
  776.  
  777. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  778. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  779. 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))
  780.  
  781. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  782. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  783. 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))
  784. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  785. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  786. 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))
  787. A0 = Instance.new('Attachment',wed)
  788. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  789. CreateMesh(wed,"Wedge",0.05,0.5,3)
  790. 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))
  791. A1 = Instance.new('Attachment',wed)
  792. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  793. CreateMesh(wed,"Wedge",0.05,3,0.5)
  794. 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))
  795.  
  796. tl3 = Instance.new('Trail',wed)
  797. tl3.Attachment0 = A0
  798. tl3.Attachment1 = A1
  799. --tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  800. tl3.LightEmission = 1
  801. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  802. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  803. tl3.Lifetime = 0.6
  804.  
  805. tl1.Enabled = false
  806. tl2.Enabled = false
  807. tl3.Enabled = false
  808. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  809. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  810. 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))
  811.  
  812. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  813. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  814. 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))
  815. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  816. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  817. 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))
  818. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  819. CreateMesh(wed,"Wedge",0.05,0.5,3)
  820. 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))
  821. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  822. CreateMesh(wed,"Wedge",0.05,3,0.5)
  823. 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))
  824.  
  825. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  826. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  827. 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))
  828.  
  829. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  830. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  831. 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))
  832. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  833. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  834. 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))
  835. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  836. CreateMesh(wed,"Wedge",0.05,0.5,3)
  837. 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))
  838. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  839. CreateMesh(wed,"Wedge",0.05,3,0.5)
  840. 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))
  841.  
  842. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  843. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  844. 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))
  845.  
  846. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  847. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  848. 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))
  849. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  850. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  851. 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))
  852. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  853. CreateMesh(wed,"Wedge",0.05,0.5,3)
  854. 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))
  855. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  856. CreateMesh(wed,"Wedge",0.05,3,0.5)
  857. 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))
  858.  
  859. -- Right wing.
  860.  
  861. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  862. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  863. 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))
  864.  
  865. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  866. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  867. 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))
  868. A0 = Instance.new('Attachment',wed)
  869. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  870. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  871. 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))
  872. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  873. CreateMesh(wed,"Wedge",0.05,0.5,3)
  874. 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))
  875. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  876. CreateMesh(wed,"Wedge",0.05,3,0.5)
  877. 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))
  878. A1 = Instance.new('Attachment',wed)
  879.  
  880. tr1 = Instance.new('Trail',wed)
  881. tr1.Attachment0 = A0
  882. tr1.Attachment1 = A1
  883. --tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  884. tr1.LightEmission = 1
  885. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  886. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  887. tr1.Lifetime = 0.6
  888.  
  889. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  890. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  891. 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))
  892.  
  893. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  894. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  895. 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))
  896. A0 = Instance.new('Attachment',wed)
  897. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  898. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  899. 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))
  900. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  901. CreateMesh(wed,"Wedge",0.05,0.5,3)
  902. 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))
  903. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  904. CreateMesh(wed,"Wedge",0.05,3,0.5)
  905. 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))
  906. A1 = Instance.new('Attachment',wed)
  907.  
  908. tr2 = Instance.new('Trail',wed)
  909. tr2.Attachment0 = A0
  910. tr2.Attachment1 = A1
  911. --tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  912. tr2.LightEmission = 1
  913. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  914. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  915. tr2.Lifetime = 0.6
  916.  
  917. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  918. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  919. 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))
  920.  
  921. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  922. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  923. 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))
  924. A0 = Instance.new('Attachment',wed)
  925. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  926. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  927. 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))
  928. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  929. CreateMesh(wed,"Wedge",0.05,0.5,3)
  930. 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))
  931. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  932. CreateMesh(wed,"Wedge",0.05,3,0.5)
  933. 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))
  934. A1 = Instance.new('Attachment',wed)
  935.  
  936. tr3 = Instance.new('Trail',wed)
  937. tr3.Attachment0 = A0
  938. tr3.Attachment1 = A1
  939. --tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  940. tr3.LightEmission = 1
  941. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  942. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  943. tr3.Lifetime = 0.6
  944.  
  945.  
  946. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  947. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  948. 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))
  949.  
  950. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  951. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  952. 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))
  953. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  954. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  955. 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))
  956. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  957. CreateMesh(wed,"Wedge",0.05,0.5,3)
  958. 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))
  959. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  960. CreateMesh(wed,"Wedge",0.05,3,0.5)
  961. 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))
  962.  
  963. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  964. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  965. 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))
  966.  
  967. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  968. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  969. 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))
  970. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  971. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  972. 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))
  973. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  974. CreateMesh(wed,"Wedge",0.05,0.5,3)
  975. 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))
  976. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  977. CreateMesh(wed,"Wedge",0.05,3,0.5)
  978. 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))
  979.  
  980. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  981. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  982. 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))
  983.  
  984. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  985. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  986. 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))
  987. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  988. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  989. 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))
  990. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  991. CreateMesh(wed,"Wedge",0.05,0.5,3)
  992. 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))
  993. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  994. CreateMesh(wed,"Wedge",0.05,3,0.5)
  995. 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))
  996.  
  997. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  998. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  999. 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))
  1000. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1001. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1002. 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))
  1003. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1004. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1005. 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))
  1006.  
  1007.  
  1008. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1009. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1010. 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))
  1011.  
  1012. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1013. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1014. 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))
  1015.  
  1016.  
  1017.  
  1018. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1019. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1020. 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))
  1021.  
  1022. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1023. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1024. 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))
  1025.  
  1026. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1027. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1028. 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))
  1029.  
  1030. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1031. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1032. 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))
  1033. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1034. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1035. 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))
  1036.  
  1037. --- second ring
  1038.  
  1039. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1040. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1041. 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))
  1042. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1043. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1044. 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))
  1045. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1046. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1047. 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))
  1048.  
  1049. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1050. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1051. 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))
  1052.  
  1053. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1054. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1055. 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))
  1056.  
  1057.  
  1058.  
  1059. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1060. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1061. 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))
  1062.  
  1063. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1064. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1065. 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))
  1066.  
  1067. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1068. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1069. 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))
  1070.  
  1071. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1072. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1073. 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))
  1074. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1075. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1076. 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))]]--
  1077.  
  1078.  
  1079.  
  1080. for i, v in pairs(m:GetChildren()) do
  1081. if v:IsA("Part") then
  1082. v.BrickColor = BrickColor.new("Really black")
  1083. v.Material = "Glass"
  1084. end
  1085. end
  1086. for i, v in pairs(m2:GetChildren()) do
  1087. if v:IsA("Part") then
  1088. v.BrickColor = BrickColor.new("Crimson")
  1089. v.Material = "Granite"
  1090. end
  1091. end
  1092. for i, v in pairs(m3:GetChildren()) do
  1093. if v:IsA("Part") then
  1094. v.BrickColor = BrickColor.new("Really red")
  1095. v.Material = "Neon"
  1096. end
  1097. end
  1098. for i, v in pairs(mw2:GetChildren()) do
  1099. if v:IsA("Part") then
  1100. v.BrickColor = BrickColor.new("Really red")
  1101. v.Material = "Neon"
  1102. end
  1103. end
  1104. for i, v in pairs(mw1:GetChildren()) do
  1105. if v:IsA("Part") then
  1106. v.Transparency = 1
  1107. v.BrickColor = BrickColor.new("Really red")
  1108. v.Material = "Neon"
  1109. end
  1110. end
  1111. for i, v in pairs(extrawingmod1:GetChildren()) do
  1112. if v:IsA("Part") then
  1113. v.Transparency = 1
  1114. v.BrickColor = BrickColor.new("White")
  1115. v.Material = "Neon"
  1116. end
  1117. end
  1118. for i, v in pairs(extrawingmod2:GetChildren()) do
  1119. if v:IsA("Part") then
  1120. v.Transparency = 1
  1121. v.BrickColor = BrickColor.new("White")
  1122. v.Material = "Neon"
  1123. end
  1124. end
  1125. local MAINRUINCOLOR = BrickColor.new("Really red")
  1126.  
  1127. function RemoveOutlines(part)
  1128. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1129. end
  1130. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1131. local Part = Create("Part")({
  1132. Parent = Parent,
  1133. Reflectance = Reflectance,
  1134. Transparency = Transparency,
  1135. CanCollide = false,
  1136. Locked = true,
  1137. BrickColor = BrickColor.new(tostring(BColor)),
  1138. Name = Name,
  1139. Size = Size,
  1140. Material = Material
  1141. })
  1142. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1143. RemoveOutlines(Part)
  1144. return Part
  1145. end
  1146. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1147. local Msh = Create(Mesh)({
  1148. Parent = Part,
  1149. Offset = OffSet,
  1150. Scale = Scale
  1151. })
  1152. if Mesh == "SpecialMesh" then
  1153. Msh.MeshType = MeshType
  1154. Msh.MeshId = MeshId
  1155. end
  1156. return Msh
  1157. end
  1158. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1159. local Weld = Create("Weld")({
  1160. Parent = Parent,
  1161. Part0 = Part0,
  1162. Part1 = Part1,
  1163. C0 = C0,
  1164. C1 = C1
  1165. })
  1166. return Weld
  1167. end
  1168.  
  1169. Player = game:GetService("Players").LocalPlayer
  1170. Character = Player.Character
  1171. PlayerGui = Player.PlayerGui
  1172. Backpack = Player.Backpack
  1173. Torso = Character.Torso
  1174. Head = Character.Head
  1175. Humanoid = Character.Humanoid
  1176. m = Instance.new("Model", Character)
  1177. LeftArm = Character["Left Arm"]
  1178. LeftLeg = Character["Left Leg"]
  1179. RightArm = Character["Right Arm"]
  1180. RightLeg = Character["Right Leg"]
  1181. LS = Torso["Left Shoulder"]
  1182. LH = Torso["Left Hip"]
  1183. RS = Torso["Right Shoulder"]
  1184. RH = Torso["Right Hip"]
  1185. Face = Head.face
  1186. Neck = Torso.Neck
  1187. it = Instance.new
  1188. attacktype = 1
  1189. vt = Vector3.new
  1190. cf = CFrame.new
  1191. euler = CFrame.fromEulerAnglesXYZ
  1192. angles = CFrame.Angles
  1193. cloaked = false
  1194. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  1195. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  1196. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1197. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1198. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1199. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1200. RootPart = Character.HumanoidRootPart
  1201. RootJoint = RootPart.RootJoint
  1202. RootCF = euler(-1.57, 0, 3.14)
  1203. attack = false
  1204. attackdebounce = false
  1205. deb = false
  1206. equipped = true
  1207. hand = false
  1208. MMouse = nil
  1209. combo = 0
  1210. mana = 0
  1211. trispeed = 0.2
  1212. attackmode = "none"
  1213. local idle = 0
  1214. local Anim = "Idle"
  1215. local Effects = {}
  1216. local gun = false
  1217. local shoot = false
  1218. local sine = 0
  1219. local change = 1
  1220. player = nil
  1221. local toggleTag = true
  1222. local txt = Instance.new("BillboardGui", Head)
  1223. txt.Adornee = nil
  1224. txt.Name = "NameDetect"
  1225. txt.Size = UDim2.new(4, 0, 1.2, 0)
  1226. txt.StudsOffset = Vector3.new(-8, 5.333333333333333, 0)
  1227. local text = Instance.new("TextLabel", txt)
  1228. text.Size = UDim2.new(5, 0, 3.5, 0)
  1229. text.FontSize = "Size8"
  1230. text.TextScaled = true
  1231. text.TextTransparency = 0
  1232. text.BackgroundTransparency = 1
  1233. text.TextTransparency = 0
  1234. text.TextStrokeTransparency = 0
  1235. text.Font = "Antique"
  1236. text.TextStrokeColor3 = Color3.new(1, 0, 0)
  1237. text.TextColor3 = Color3.new(0, 0, 0)
  1238. text.Text = ""
  1239. function RecolorTextAndRename(name, col1, col2)
  1240. text.TextStrokeColor3 = col2
  1241. text.TextColor3 = col1
  1242. text.Text = name
  1243. end
  1244. mouse = Player:GetMouse()
  1245. RSH, LSH = nil, nil
  1246. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  1247. RW.Name = "Right Shoulder"
  1248. LW.Name = "Left Shoulder"
  1249. LH = Torso["Left Hip"]
  1250. RH = Torso["Right Hip"]
  1251. TorsoColor = Torso.BrickColor
  1252. function NoOutline(Part)
  1253. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  1254. end
  1255. Player=owner
  1256. Character=Player.Character
  1257. PlayerGui=Player.PlayerGui
  1258. Backpack=Player.Backpack
  1259. Torso=Character.Torso
  1260. Head=Character.Head
  1261. Humanoid=Character.Humanoid
  1262. m=Instance.new('Model',Character)
  1263. LeftArm=Character["Left Arm"]
  1264. LeftLeg=Character["Left Leg"]
  1265. RightArm=Character["Right Arm"]
  1266. RightLeg=Character["Right Leg"]
  1267. LS=Torso["Left Shoulder"]
  1268. LH=Torso["Left Hip"]
  1269. RS=Torso["Right Shoulder"]
  1270. RH=Torso["Right Hip"]
  1271. Face = Head.face
  1272. Neck=Torso.Neck
  1273. it=Instance.new
  1274. attacktype=1
  1275. vt=Vector3.new
  1276. cf=CFrame.new
  1277. euler=CFrame.fromEulerAnglesXYZ
  1278. angles=CFrame.Angles
  1279. cloaked=false
  1280. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1281. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1282. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1283. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1284. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1285. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1286. RootPart=Character.HumanoidRootPart
  1287. RootJoint=RootPart.RootJoint
  1288. RootCF=euler(-1.57,0,3.14)
  1289. attack = false
  1290. attackdebounce = false
  1291. deb=false
  1292. equipped=true
  1293. hand=false
  1294. MMouse=nil
  1295. combo=0
  1296. mana=0
  1297. trispeed=.2
  1298. attackmode='none'
  1299. local idle=0
  1300. local Anim="Idle"
  1301. local Effects={}
  1302. local gun=false
  1303. local shoot=false
  1304. local sine = 0
  1305. local change = 1
  1306. player=nil
  1307.  
  1308. local toggleTag = true
  1309. local txt = Instance.new("BillboardGui", Head)
  1310. txt.Adornee = nil
  1311. txt.Name = "NameDetect"
  1312. txt.Size = UDim2.new(4, 0, 1.2, 0)
  1313. txt.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  1314. local text = Instance.new("TextLabel", txt)
  1315. text.Size = UDim2.new(10/2, 0, 7/2, 0)
  1316. text.FontSize = "Size8"
  1317. text.TextScaled = true
  1318. text.TextTransparency = 0
  1319. text.BackgroundTransparency = 1
  1320. text.TextTransparency = 0
  1321. text.TextStrokeTransparency = 0
  1322. text.Font = "Fantasy"
  1323. text.TextStrokeColor3 = Color3.new(1,0,0)
  1324. text.TextColor3 = Color3.new(0,0,0)
  1325. text.Text = "Mayhem"
  1326.  
  1327. function RecolorTextAndRename(name,col1,col2)
  1328. text.TextStrokeColor3 = col2
  1329. text.TextColor3 = col1
  1330. text.Text = name
  1331. end
  1332. --save shoulders
  1333. RSH, LSH=nil, nil
  1334. --welds
  1335. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1336. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1337. LH=Torso["Left Hip"]
  1338. RH=Torso["Right Hip"]
  1339. TorsoColor=Torso.BrickColor
  1340. function NoOutline(Part)
  1341. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1342. end
  1343. player=Player
  1344. ch=Character
  1345. RSH=ch.Torso["Right Shoulder"]
  1346. LSH=ch.Torso["Left Shoulder"]
  1347. --
  1348. RSH.Parent=nil
  1349. LSH.Parent=nil
  1350. --
  1351. RW.Name="Right Shoulder"
  1352. RW.Part0=ch.Torso
  1353. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1354. RW.C1=cf(0, 0.5, 0)
  1355. RW.Part1=ch["Right Arm"]
  1356. RW.Parent=ch.Torso
  1357. --
  1358. LW.Name="Left Shoulder"
  1359. LW.Part0=ch.Torso
  1360. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1361. LW.C1=cf(0, 0.5, 0)
  1362. LW.Part1=ch["Left Arm"]
  1363. LW.Parent=ch.Torso
  1364.  
  1365. local Stats=Instance.new("BoolValue")
  1366. Stats.Name="Stats"
  1367. Stats.Parent=Character
  1368. local Atk=Instance.new("NumberValue")
  1369. Atk.Name="Damage"
  1370. Atk.Parent=Stats
  1371. Atk.Value=1
  1372. local Def=Instance.new("NumberValue")
  1373. Def.Name="Defense"
  1374. Def.Parent=Stats
  1375. Def.Value=1
  1376. local Speed=Instance.new("NumberValue")
  1377. Speed.Name="Speed"
  1378. Speed.Parent=Stats
  1379. Speed.Value=1
  1380. local Mvmt=Instance.new("NumberValue")
  1381. Mvmt.Name="Movement"
  1382. Mvmt.Parent=Stats
  1383. Mvmt.Value=1
  1384.  
  1385. local donum=0
  1386.  
  1387. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1388. local fp=it("Part")
  1389. fp.formFactor=formfactor
  1390. fp.Parent=parent
  1391. fp.Reflectance=reflectance
  1392. fp.Transparency=transparency
  1393. fp.CanCollide=false
  1394. fp.Locked=true
  1395. fp.BrickColor=brickcolor
  1396. fp.Name=name
  1397. fp.Size=size
  1398. fp.Position=Torso.Position
  1399. NoOutline(fp)
  1400. fp.Material="SmoothPlastic"
  1401. fp:BreakJoints()
  1402. return fp
  1403. end
  1404.  
  1405. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1406. local mesh=it(Mesh)
  1407. mesh.Parent=part
  1408. if Mesh=="SpecialMesh" then
  1409. mesh.MeshType=meshtype
  1410. if meshid~="nil" then
  1411. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1412. end
  1413. end
  1414. mesh.Offset=offset
  1415. mesh.Scale=scale
  1416. return mesh
  1417. end
  1418.  
  1419. function weld(parent,part0,part1,c0)
  1420. local weld=it("Weld")
  1421. weld.Parent=parent
  1422. weld.Part0=part0
  1423. weld.Part1=part1
  1424. weld.C0=c0
  1425. return weld
  1426. end
  1427.  
  1428. local Color1=Torso.BrickColor
  1429.  
  1430. local bodvel=Instance.new("BodyVelocity")
  1431. local bg=Instance.new("BodyGyro")
  1432.  
  1433. function swait(num)
  1434. if num==0 or num==nil then
  1435. game:service'RunService'.Stepped:wait(0)
  1436. else
  1437. for i=0,num do
  1438. game:service'RunService'.Stepped:wait(0)
  1439. end
  1440. end
  1441. end
  1442.  
  1443. local r = 255
  1444. local g = 0
  1445. local b = 0
  1446. coroutine.resume(coroutine.create(function()
  1447. while wait() do
  1448. for i = 0, 254/5 do
  1449. swait()
  1450. g = g + 5
  1451. end
  1452. for i = 0, 254/5 do
  1453. swait()
  1454. r = r - 5
  1455. end
  1456. for i = 0, 254/5 do
  1457. swait()
  1458. b = b + 5
  1459. end
  1460. for i = 0, 254/5 do
  1461. swait()
  1462. g = g - 5
  1463. end
  1464. for i = 0, 254/5 do
  1465. swait()
  1466. r = r + 5
  1467. end
  1468. for i = 0, 254/5 do
  1469. swait()
  1470. b = b - 5
  1471. end
  1472. end
  1473. end))
  1474.  
  1475.  
  1476. so = function(id,par,vol,pit)
  1477. coroutine.resume(coroutine.create(function()
  1478. local sou = Instance.new("Sound",par or workspace)
  1479. sou.Volume=vol
  1480. sou.Pitch=pit or 1
  1481. sou.SoundId=id
  1482. swait()
  1483. sou:play()
  1484. game:GetService("Debris"):AddItem(sou,6)
  1485. end))
  1486. end
  1487.  
  1488. function clerp(a,b,t)
  1489. local qa = {QuaternionFromCFrame(a)}
  1490. local qb = {QuaternionFromCFrame(b)}
  1491. local ax, ay, az = a.x, a.y, a.z
  1492. local bx, by, bz = b.x, b.y, b.z
  1493. local _t = 1-t
  1494. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1495. end
  1496.  
  1497. function QuaternionFromCFrame(cf)
  1498. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1499. local trace = m00 + m11 + m22
  1500. if trace > 0 then
  1501. local s = math.sqrt(1 + trace)
  1502. local recip = 0.5/s
  1503. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1504. else
  1505. local i = 0
  1506. if m11 > m00 then
  1507. i = 1
  1508. end
  1509. if m22 > (i == 0 and m00 or m11) then
  1510. i = 2
  1511. end
  1512. if i == 0 then
  1513. local s = math.sqrt(m00-m11-m22+1)
  1514. local recip = 0.5/s
  1515. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1516. elseif i == 1 then
  1517. local s = math.sqrt(m11-m22-m00+1)
  1518. local recip = 0.5/s
  1519. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1520. elseif i == 2 then
  1521. local s = math.sqrt(m22-m00-m11+1)
  1522. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1523. end
  1524. end
  1525. end
  1526.  
  1527. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1528. local xs, ys, zs = x + x, y + y, z + z
  1529. local wx, wy, wz = w*xs, w*ys, w*zs
  1530. local xx = x*xs
  1531. local xy = x*ys
  1532. local xz = x*zs
  1533. local yy = y*ys
  1534. local yz = y*zs
  1535. local zz = z*zs
  1536. 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))
  1537. end
  1538.  
  1539. function QuaternionSlerp(a, b, t)
  1540. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1541. local startInterp, finishInterp;
  1542. if cosTheta >= 0.0001 then
  1543. if (1 - cosTheta) > 0.0001 then
  1544. local theta = math.acos(cosTheta)
  1545. local invSinTheta = 1/math.sin(theta)
  1546. startInterp = math.sin((1-t)*theta)*invSinTheta
  1547. finishInterp = math.sin(t*theta)*invSinTheta
  1548. else
  1549. startInterp = 1-t
  1550. finishInterp = t
  1551. end
  1552. else
  1553. if (1+cosTheta) > 0.0001 then
  1554. local theta = math.acos(-cosTheta)
  1555. local invSinTheta = 1/math.sin(theta)
  1556. startInterp = math.sin((t-1)*theta)*invSinTheta
  1557. finishInterp = math.sin(t*theta)*invSinTheta
  1558. else
  1559. startInterp = t-1
  1560. finishInterp = t
  1561. end
  1562. end
  1563. 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
  1564. end
  1565.  
  1566. local function CFrameFromTopBack(at, top, back)
  1567. local right = top:Cross(back)
  1568. return CFrame.new(at.x, at.y, at.z,
  1569. right.x, top.x, back.x,
  1570. right.y, top.y, back.y,
  1571. right.z, top.z, back.z)
  1572. end
  1573.  
  1574. function Triangle(a, b, c)
  1575. local edg1 = (c-a):Dot((b-a).unit)
  1576. local edg2 = (a-b):Dot((c-b).unit)
  1577. local edg3 = (b-c):Dot((a-c).unit)
  1578. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1579. a, b, c = a, b, c
  1580. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1581. a, b, c = b, c, a
  1582. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1583. a, b, c = c, a, b
  1584. else
  1585. assert(false, "unreachable")
  1586. end
  1587.  
  1588. local len1 = (c-a):Dot((b-a).unit)
  1589. local len2 = (b-a).magnitude - len1
  1590. local width = (a + (b-a).unit*len1 - c).magnitude
  1591.  
  1592. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1593.  
  1594. local list = {}
  1595.  
  1596. if len1 > 0.01 then
  1597. local w1 = Instance.new('WedgePart', m)
  1598. game:GetService("Debris"):AddItem(w1,5)
  1599. w1.Material = "SmoothPlastic"
  1600. w1.FormFactor = 'Custom'
  1601. w1.BrickColor = BrickColor.new("Really red")
  1602. w1.Transparency = 0
  1603. w1.Reflectance = 0
  1604. w1.Material = "SmoothPlastic"
  1605. w1.CanCollide = false
  1606. local l1 = Instance.new("PointLight",w1)
  1607. l1.Color = Color3.new(170,0,0)
  1608. NoOutline(w1)
  1609. local sz = Vector3.new(0.2, width, len1)
  1610. w1.Size = sz
  1611. local sp = Instance.new("SpecialMesh",w1)
  1612. sp.MeshType = "Wedge"
  1613. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1614. w1:BreakJoints()
  1615. w1.Anchored = true
  1616. w1.Parent = workspace
  1617. w1.Transparency = 0.7
  1618. table.insert(Effects,{w1,"Disappear",.01})
  1619. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1620. table.insert(list,w1)
  1621. end
  1622.  
  1623. if len2 > 0.01 then
  1624. local w2 = Instance.new('WedgePart', m)
  1625. game:GetService("Debris"):AddItem(w2,5)
  1626. w2.Material = "SmoothPlastic"
  1627. w2.FormFactor = 'Custom'
  1628. w2.BrickColor = BrickColor.new("Really red")
  1629. w2.Transparency = 0
  1630. w2.Reflectance = 0
  1631. w2.Material = "SmoothPlastic"
  1632. w2.CanCollide = false
  1633. local l2 = Instance.new("PointLight",w2)
  1634. l2.Color = Color3.new(170,0,0)
  1635. NoOutline(w2)
  1636. local sz = Vector3.new(0.2, width, len2)
  1637. w2.Size = sz
  1638. local sp = Instance.new("SpecialMesh",w2)
  1639. sp.MeshType = "Wedge"
  1640. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1641. w2:BreakJoints()
  1642. w2.Anchored = true
  1643. w2.Parent = workspace
  1644. w2.Transparency = 0.7
  1645. table.insert(Effects,{w2,"Disappear",.01})
  1646. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1647. table.insert(list,w2)
  1648. end
  1649. return unpack(list)
  1650. end
  1651. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1652. if hit.Parent == nil then
  1653. return
  1654. end
  1655. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1656. for _, v in pairs(hit.Parent:children()) do
  1657. if v:IsA("Humanoid") then
  1658. h = v
  1659. end
  1660. end
  1661. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1662. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1663. return
  1664. end
  1665. local c = Create("ObjectValue")({
  1666. Name = "creator",
  1667. Value = owner,
  1668. Parent = h
  1669. })
  1670. game:GetService("Debris"):AddItem(c, 0.5)
  1671. if HitSound ~= nil and HitPitch ~= nil then
  1672. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1673. end
  1674. local Damage = math.random(minim, maxim)
  1675. local blocked = false
  1676. local block = hit.Parent:findFirstChild("Block")
  1677. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1678. blocked = true
  1679. block.Value = block.Value - 1
  1680. print(block.Value)
  1681. end
  1682. if blocked == false then
  1683. HitHealth = h.Health
  1684. h.Health = h.Health - Damage
  1685. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1686. print("gained kill")
  1687. end
  1688. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1689. else
  1690. h.Health = h.Health - Damage / 2
  1691. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1692. end
  1693. if Type == "Knockdown" then
  1694. local hum = hit.Parent.Humanoid
  1695. hum.PlatformStand = true
  1696. coroutine.resume(coroutine.create(function(HHumanoid)
  1697. swait(1)
  1698. HHumanoid.PlatformStand = false
  1699. end), hum)
  1700. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1701. local bodvol = Create("BodyVelocity")({
  1702. velocity = angle * knockback,
  1703. P = 5000,
  1704. maxForce = Vector3.new(8000, 8000, 8000),
  1705. Parent = hit
  1706. })
  1707. local rl = Create("BodyAngularVelocity")({
  1708. P = 3000,
  1709. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1710. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1711. Parent = hit
  1712. })
  1713. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1714. game:GetService("Debris"):AddItem(rl, 0.5)
  1715. elseif Type == "Normal" then
  1716. local vp = Create("BodyVelocity")({
  1717. P = 500,
  1718. maxForce = Vector3.new(math.huge, 0, math.huge),
  1719. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1720. })
  1721. if knockback > 0 then
  1722. vp.Parent = hit.Parent.Head
  1723. end
  1724. game:GetService("Debris"):AddItem(vp, 0.5)
  1725. elseif Type == "Up" then
  1726. local bodyVelocity = Create("BodyVelocity")({
  1727. velocity = Vector3.new(0, 20, 0),
  1728. P = 5000,
  1729. maxForce = Vector3.new(8000, 8000, 8000),
  1730. Parent = hit
  1731. })
  1732. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1733. local bodyVelocity = Create("BodyVelocity")({
  1734. velocity = Vector3.new(0, 20, 0),
  1735. P = 5000,
  1736. maxForce = Vector3.new(8000, 8000, 8000),
  1737. Parent = hit
  1738. })
  1739. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1740. elseif Type == "Leech" then
  1741. local hum = hit.Parent.Humanoid
  1742. if hum ~= nil then
  1743. for i = 0, 2 do
  1744. 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)
  1745. end
  1746. Humanoid.Health = Humanoid.Health + 10
  1747. end
  1748. elseif Type == "UpKnock" then
  1749. local hum = hit.Parent.Humanoid
  1750. hum.PlatformStand = true
  1751. if hum ~= nil then
  1752. hitr = true
  1753. end
  1754. coroutine.resume(coroutine.create(function(HHumanoid)
  1755. swait(5)
  1756. HHumanoid.PlatformStand = false
  1757. hitr = false
  1758. end), hum)
  1759. local bodyVelocity = Create("BodyVelocity")({
  1760. velocity = Vector3.new(0, 20, 0),
  1761. P = 5000,
  1762. maxForce = Vector3.new(8000, 8000, 8000),
  1763. Parent = hit
  1764. })
  1765. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1766. local bodyVelocity = Create("BodyVelocity")({
  1767. velocity = Vector3.new(0, 20, 0),
  1768. P = 5000,
  1769. maxForce = Vector3.new(8000, 8000, 8000),
  1770. Parent = hit
  1771. })
  1772. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1773. elseif Type == "Snare" then
  1774. local bp = Create("BodyPosition")({
  1775. P = 2000,
  1776. D = 100,
  1777. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1778. position = hit.Parent.Torso.Position,
  1779. Parent = hit.Parent.Torso
  1780. })
  1781. game:GetService("Debris"):AddItem(bp, 1)
  1782. elseif Type == "Slashnare" then
  1783. 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)
  1784. for i = 1, math.random(4, 5) do
  1785. 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)
  1786. end
  1787. local bp = Create("BodyPosition")({
  1788. P = 2000,
  1789. D = 100,
  1790. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1791. position = hit.Parent.Torso.Position,
  1792. Parent = hit.Parent.Torso
  1793. })
  1794. game:GetService("Debris"):AddItem(bp, 1)
  1795. elseif Type == "Spike" then
  1796. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1797. local bp = Create("BodyPosition")({
  1798. P = 2000,
  1799. D = 100,
  1800. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1801. position = hit.Parent.Torso.Position,
  1802. Parent = hit.Parent.Torso
  1803. })
  1804. game:GetService("Debris"):AddItem(bp, 1)
  1805. elseif Type == "Freeze" then
  1806. local BodPos = Create("BodyPosition")({
  1807. P = 50000,
  1808. D = 1000,
  1809. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1810. position = hit.Parent.Torso.Position,
  1811. Parent = hit.Parent.Torso
  1812. })
  1813. local BodGy = Create("BodyGyro")({
  1814. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1815. P = 20000,
  1816. Parent = hit.Parent.Torso,
  1817. cframe = hit.Parent.Torso.CFrame
  1818. })
  1819. hit.Parent.Torso.Anchored = true
  1820. coroutine.resume(coroutine.create(function(Part)
  1821. swait(1.5)
  1822. Part.Anchored = false
  1823. end), hit.Parent.Torso)
  1824. game:GetService("Debris"):AddItem(BodPos, 3)
  1825. game:GetService("Debris"):AddItem(BodGy, 3)
  1826. end
  1827. local debounce = Create("BoolValue")({
  1828. Name = "DebounceHit",
  1829. Parent = hit.Parent,
  1830. Value = true
  1831. })
  1832. game:GetService("Debris"):AddItem(debounce, Delay)
  1833. c = Instance.new("ObjectValue")
  1834. c.Name = "creator"
  1835. c.Value = Player
  1836. c.Parent = h
  1837. game:GetService("Debris"):AddItem(c, 0.5)
  1838. end
  1839. end
  1840. function ShowDamage(Pos, Text, Time, Color)
  1841. local Rate = 0.03333333333333333
  1842. local Pos = Pos or Vector3.new(0, 0, 0)
  1843. local Text = Text or ""
  1844. local Time = Time or 2
  1845. local Color = Color or Color3.new(1, 0, 1)
  1846. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1847. EffectPart.Anchored = true
  1848. local BillboardGui = Create("BillboardGui")({
  1849. Size = UDim2.new(3, 0, 3, 0),
  1850. Adornee = EffectPart,
  1851. Parent = EffectPart
  1852. })
  1853. local TextLabel = Create("TextLabel")({
  1854. BackgroundTransparency = 1,
  1855. Size = UDim2.new(1, 0, 1, 0),
  1856. Text = Text,
  1857. TextColor3 = Color,
  1858. TextScaled = true,
  1859. Font = Enum.Font.ArialBold,
  1860. Parent = BillboardGui
  1861. })
  1862. game.Debris:AddItem(EffectPart, Time + 0.1)
  1863. EffectPart.Parent = game:GetService("Workspace")
  1864. delay(0, function()
  1865. local Frames = Time / Rate
  1866. for Frame = 1, Frames do
  1867. wait(Rate)
  1868. local Percent = Frame / Frames
  1869. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1870. TextLabel.TextTransparency = Percent
  1871. end
  1872. if EffectPart and EffectPart.Parent then
  1873. EffectPart:Destroy()
  1874. end
  1875. end)
  1876. end
  1877. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1878. for _, c in pairs(workspace:children()) do
  1879. local hum = c:findFirstChildOfClass("Humanoid")
  1880. if hum ~= nil then
  1881. local head = c:findFirstChild("Head")
  1882. if head ~= nil then
  1883. local targ = head.Position - Part.Position
  1884. local mag = targ.magnitude
  1885. if magni >= mag and c.Name ~= Player.Name then
  1886. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1887. end
  1888. end
  1889. end
  1890. end
  1891. end
  1892.  
  1893. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1894. for _, c in pairs(workspace:children()) do
  1895. local hum = c:findFirstChild("Humanoid")
  1896. if hum ~= nil then
  1897. local head = c:findFirstChild("Torso")
  1898. if head ~= nil then
  1899. local targ = head.Position - Part.Position
  1900. local mag = targ.magnitude
  1901. if magni >= mag and c.Name ~= Player.Name then
  1902. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1903. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1904. end
  1905. end
  1906. end
  1907. end
  1908. end
  1909.  
  1910. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1911. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1912. end
  1913.  
  1914. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1915. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1916. prt.Anchored=true
  1917. prt.CFrame=cframe
  1918. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1919. --http://www.roblox.com/asset/?id=4770560
  1920. game:GetService("Debris"):AddItem(prt,2)
  1921. CF=prt.CFrame
  1922. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1923. for i=0,1,0.2 do
  1924. wait()
  1925. Part.CFrame=CF*cf(0,0,-0.4)
  1926. end
  1927. for i=0,1,delay do
  1928. wait()
  1929. --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)
  1930. Mesh.Scale=Mesh.Scale
  1931. end
  1932. for i=0,1,0.1 do
  1933. wait()
  1934. Part.Transparency=i
  1935. end
  1936. Part.Parent=nil
  1937. end),prt,msh,CF)
  1938. end
  1939.  
  1940. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1941. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1942. prt.Anchored=true
  1943. prt.Material = "Neon"
  1944. prt.CFrame=cframe
  1945. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1946. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1947. game:GetService("Debris"):AddItem(prt,5)
  1948. coroutine.resume(coroutine.create(function(Part,Mesh)
  1949. for i=0,1,delay do
  1950. swait()
  1951. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1952. Part.Transparency=i
  1953. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1954. end
  1955. Part.Parent=nil
  1956. end),prt,msh)
  1957. end
  1958.  
  1959. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1960. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1961. prt.Anchored=true
  1962. prt.Material = "Neon"
  1963. prt.CFrame=cframe
  1964. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1965. game:GetService("Debris"):AddItem(prt,5)
  1966. coroutine.resume(coroutine.create(function(Part,Mesh)
  1967. local rtype = rottype
  1968. for i=0,1,delay do
  1969. swait()
  1970. if rtype == 1 then
  1971. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1972. elseif rtype == 2 then
  1973. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1974. end
  1975. Part.Transparency=i
  1976. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1977. end
  1978. Part.Parent=nil
  1979. end),prt,msh)
  1980. end
  1981.  
  1982. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1983. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1984. prt.Anchored=true
  1985. prt.CFrame=cframe
  1986. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1987. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1988. game:GetService("Debris"):AddItem(prt,5)
  1989. coroutine.resume(coroutine.create(function(Part,Mesh)
  1990. for i=0,1,delay do
  1991. wait()
  1992. Part.Transparency=i
  1993. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1994. end
  1995. Part.Parent=nil
  1996. end),prt,msh)
  1997. end
  1998.  
  1999. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2000. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2001. prt.Anchored=true
  2002. prt.Material = "Neon"
  2003. prt.CFrame=cframe
  2004. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2005. game:GetService("Debris"):AddItem(prt,5)
  2006. coroutine.resume(coroutine.create(function(Part,Mesh)
  2007. local rtype = rottype
  2008. for i=0,1,delay do
  2009. swait()
  2010. if rtype == 1 then
  2011. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2012. elseif rtype == 2 then
  2013. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2014. end
  2015. Part.Transparency=i
  2016. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2017. end
  2018. Part.Parent=nil
  2019. end),prt,msh)
  2020. end
  2021.  
  2022. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2023. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2024. prt.Anchored=true
  2025. prt.Material = "Neon"
  2026. prt.CFrame=cframe
  2027. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2028. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2029. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2030. game:GetService("Debris"):AddItem(prt,5)
  2031. coroutine.resume(coroutine.create(function(Part,Mesh)
  2032. local rtype = rottype
  2033. for i=0,1,delay do
  2034. swait()
  2035. if rtype == 1 then
  2036. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2037. elseif rtype == 2 then
  2038. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2039. end
  2040. dec.Transparency=i
  2041. dec2.Transparency=i
  2042. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2043. end
  2044. Part.Parent=nil
  2045. end),prt,msh)
  2046. end
  2047.  
  2048. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2049. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2050. prt.Anchored=true
  2051. prt.Material = "Neon"
  2052. prt.CFrame=cframe
  2053. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2054. game:GetService("Debris"):AddItem(prt,5)
  2055. coroutine.resume(coroutine.create(function(Part,Mesh)
  2056. local rtype = rottype
  2057. for i=0,1,delay do
  2058. swait()
  2059. if rtype == 1 then
  2060. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2061. elseif rtype == 2 then
  2062. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2063. end
  2064. prt.Transparency=i
  2065. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2066. end
  2067. Part.Parent=nil
  2068. end),prt,msh)
  2069. end
  2070.  
  2071. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2072. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2073. prt.Anchored=true
  2074. prt.Material = "Neon"
  2075. prt.CFrame=cframe
  2076. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2077. game:GetService("Debris"):AddItem(prt,5)
  2078. coroutine.resume(coroutine.create(function(Part,Mesh)
  2079. local rtype = rottype
  2080. for i=0,1,delay do
  2081. swait()
  2082. if rtype == 1 then
  2083. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2084. elseif rtype == 2 then
  2085. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2086. end
  2087. prt.Transparency=i
  2088. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2089. end
  2090. Part.Parent=nil
  2091. end),prt,msh)
  2092. end
  2093.  
  2094. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2095. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2096. prt.Anchored=true
  2097. prt.Material = "Neon"
  2098. prt.CFrame=cframe
  2099. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2100. game:GetService("Debris"):AddItem(prt,5)
  2101. coroutine.resume(coroutine.create(function(Part,Mesh)
  2102. local rtype = rottype
  2103. for i=0,1,delay do
  2104. swait()
  2105. if rtype == 1 then
  2106. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2107. elseif rtype == 2 then
  2108. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2109. end
  2110. prt.Transparency=i
  2111. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2112. end
  2113. Part.Parent=nil
  2114. end),prt,msh)
  2115. end
  2116.  
  2117. function MagicShockTrailAlt2(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. prt.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 MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2141. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2142. prt.Anchored=false
  2143. prt.CFrame=cframe
  2144. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2145. local wld=weld(prt,prt,Parent,cframe)
  2146. game:GetService("Debris"):AddItem(prt,5)
  2147. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2148. for i=0,1,delay do
  2149. wait()
  2150. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2151. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2152. Part.Transparency=i
  2153. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2154. end
  2155. Part.Parent=nil
  2156. end),prt,msh,wld)
  2157. end
  2158.  
  2159. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2160. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2161. prt.Anchored=false
  2162. prt.CFrame=cframe
  2163. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2164. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2165. game:GetService("Debris"):AddItem(prt,5)
  2166. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2167. for i=0,1,delay do
  2168. wait()
  2169. Weld.C0=euler(i*20,0,0)
  2170. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2171. Part.Transparency=i
  2172. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2173. end
  2174. Part.Parent=nil
  2175. end),prt,msh,wld)
  2176. end
  2177.  
  2178. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2179. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2180. prt.Anchored=true
  2181. prt.CFrame=cframe
  2182. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2183. game:GetService("Debris"):AddItem(prt,2)
  2184. coroutine.resume(coroutine.create(function(Part,Mesh)
  2185. for i=0,1,delay do
  2186. wait()
  2187. Part.CFrame=Part.CFrame
  2188. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2189. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2190. prt2.Anchored=true
  2191. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2192. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2193. game:GetService("Debris"):AddItem(prt2,2)
  2194. coroutine.resume(coroutine.create(function(Part,Mesh)
  2195. for i=0,1,0.1 do
  2196. wait()
  2197. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2198. end
  2199. Part.Parent=nil
  2200. end),prt2,msh2)
  2201. end
  2202. for i=0,1,delay*2 do
  2203. wait()
  2204. Part.CFrame=Part.CFrame
  2205. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2206. end
  2207. Part.Parent=nil
  2208. end),prt,msh)
  2209. end
  2210.  
  2211. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2212. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2213. prt.Anchored=true
  2214. prt.CFrame=cframe
  2215. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2216. game:GetService("Debris"):AddItem(prt,2)
  2217. coroutine.resume(coroutine.create(function(Part,Mesh)
  2218. for i=0,1,delay do
  2219. wait()
  2220. Part.CFrame=Part.CFrame
  2221. Part.Transparency=i
  2222. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2223. end
  2224. Part.Parent=nil
  2225. end),prt,msh)
  2226. end
  2227.  
  2228. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2229. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2230. prt.Anchored=true
  2231. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2232. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2233. game:GetService("Debris"):AddItem(prt,2)
  2234. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2235. CF=Part.CFrame
  2236. Numbb=0
  2237. randnumb=math.random()/10
  2238. rand1=math.random()/10
  2239. for i=0,1,rand1 do
  2240. wait()
  2241. CF=CF*cf(0,math.random()/2,0)
  2242. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2243. Part.CFrame=CF*euler(Numbb,0,0)
  2244. Part.Transparency=i
  2245. Numbb=Numbb+randnumb
  2246. end
  2247. Part.Parent=nil
  2248. end),prt,CF,Numbb,randnumb)
  2249. end
  2250.  
  2251. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2252. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2253. prt.Anchored=true
  2254. prt.CFrame=cframe
  2255. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2256. game:GetService("Debris"):AddItem(prt,5)
  2257. coroutine.resume(coroutine.create(function(Part,Mesh)
  2258. for i=0,1,delay do
  2259. wait()
  2260. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2261. Part.Transparency=i
  2262. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2263. end
  2264. Part.Parent=nil
  2265. end),prt,msh)
  2266. end
  2267.  
  2268. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2269. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2270. prt.Anchored=true
  2271. prt.CFrame=cframe
  2272. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2273. game:GetService("Debris"):AddItem(prt,2)
  2274. coroutine.resume(coroutine.create(function(Part,Mesh)
  2275. for i=0,1,delay do
  2276. wait()
  2277. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2278. Part.Transparency=i
  2279. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2280. end
  2281. Part.Parent=nil
  2282. end),prt,msh)
  2283. end
  2284.  
  2285. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2286. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2287. prt.Anchored=true
  2288. prt.CFrame=cframe*cf(x,y,z)
  2289. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2290. game:GetService("Debris"):AddItem(prt,5)
  2291. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2292. local num=math.random()
  2293. local num2=math.random(-3,2)+math.random()
  2294. local numm=0
  2295. for i=0,1,delay*2 do
  2296. swait()
  2297. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2298. Part.Transparency=i
  2299. numm=numm+0.01
  2300. end
  2301. Part.Parent=nil
  2302. Mesh.Parent=nil
  2303. end),prt,msh,x,y,z)
  2304. end
  2305.  
  2306. function dmgstart(dmg,what)
  2307. hitcon = what.Touched:connect(function(hit)
  2308. local hum = hit.Parent:FindFirstChild("Humanoid")
  2309. if hum and not hum:IsDescendantOf(Character) then
  2310. hum:TakeDamage(dmg)
  2311. end
  2312. end)
  2313. end
  2314.  
  2315. function dmgstop()
  2316. hitcon:disconnect()
  2317. end
  2318.  
  2319. function Cloak()
  2320. Face.Parent=nil
  2321. cloaked=true
  2322. for _,v in pairs(Torso.Parent:children()) do
  2323. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2324. coroutine.resume(coroutine.create(function()
  2325. for i=0,1,0.2 do
  2326. wait()
  2327. v.Transparency=i
  2328. end
  2329. v.Transparency=1
  2330. end))
  2331. end
  2332. if v.className=="Hat" then
  2333. hatp=v.Handle
  2334. coroutine.resume(coroutine.create(function(derp)
  2335. for i=0,1,0.2 do
  2336. wait()
  2337. derp.Transparency=i
  2338. end
  2339. derp.Transparency=1
  2340. end),hatp)
  2341. end
  2342. end
  2343. for _,v in pairs(m:children()) do
  2344. if v.className=="Part" then
  2345. coroutine.resume(coroutine.create(function()
  2346. for i=0,1,0.2 do
  2347. wait()
  2348. v.Transparency=i
  2349. end
  2350. v.Transparency=1
  2351. end))
  2352. end
  2353. end
  2354. end
  2355.  
  2356. function UnCloak()
  2357. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2358. Face.Parent=Head
  2359. cloaked=false
  2360. for _,v in pairs(Torso.Parent:children()) do
  2361. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2362. coroutine.resume(coroutine.create(function()
  2363. for i=0,1,0.1 do
  2364. wait()
  2365. v.Transparency=v.Transparency-0.1
  2366. end
  2367. v.Transparency=0
  2368. end))
  2369. end
  2370. if v.className=="Hat" then
  2371. hatp=v.Handle
  2372. coroutine.resume(coroutine.create(function(derp)
  2373. for i=0,1,0.1 do
  2374. wait()
  2375. derp.Transparency=derp.Transparency-0.1
  2376. end
  2377. derp.Transparency=0
  2378. end),hatp)
  2379. end
  2380. end
  2381. for _,v in pairs(m:children()) do
  2382. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2383. coroutine.resume(coroutine.create(function()
  2384. for i=0,1,0.1 do
  2385. wait()
  2386. v.Transparency=v.Transparency-0.1
  2387. end
  2388. v.Transparency=0
  2389. end))
  2390. v.Transparency=0
  2391. end
  2392. end
  2393. end
  2394.  
  2395. local origcolor = BrickColor.new("Pastel light blue")
  2396. ---- This section of explosions.
  2397. function Explode(rad,par,pitch,vol,mindam,maxdam)
  2398. local expart = Instance.new("Part",char)
  2399. local expart2 = Instance.new("Part",char)
  2400. local rin = Instance.new("Part",char)
  2401. local rin2 = Instance.new("Part",char)
  2402. local partMesh = Instance.new("SpecialMesh",expart)
  2403. partMesh.MeshType = "Sphere"
  2404. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2405. partMesh2.MeshType = "Sphere"
  2406. local partMesh3 = Instance.new("SpecialMesh",rin)
  2407. partMesh3.MeshType = "Brick"
  2408. local partMesh4 = Instance.new("SpecialMesh",rin2)
  2409. partMesh4.MeshType = "Brick"
  2410. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  2411. partMesh.Scale = vt(rad,rad,rad)
  2412. expart.Size = vt(1,1,1)
  2413. expart.Transparency = 0
  2414. expart.Anchored = true
  2415. expart.Material = "Neon"
  2416. expart.BrickColor = bc("White")
  2417. expart.CFrame = par.CFrame
  2418. partMesh2.Scale = vt(rad,rad,rad)
  2419. expart2.Size = vt(1.15,1.15,1.15)
  2420. expart2.Transparency = 0.5
  2421. expart2.Anchored = true
  2422. expart2.Material = "Neon"
  2423. expart2.BrickColor = par.BrickColor
  2424. expart2.CFrame = par.CFrame
  2425. rin.Size = vt(1.15,1.15,1.15)
  2426. rin.Transparency = 1
  2427. rin.Anchored = true
  2428. rin.Material = "Neon"
  2429. rin.BrickColor = par.BrickColor
  2430. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2431. rin2.Size = vt(1.15,1.15,1.15)
  2432. rin2.Transparency = 1
  2433. rin2.Anchored = true
  2434. rin2.Material = "Neon"
  2435. rin2.BrickColor = par.BrickColor
  2436. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2437. partMesh3.Scale = vt(0,1,0)
  2438. partMesh4.Scale = vt(0,1,0)
  2439. local dec2 = Instance.new("Decal", rin)
  2440. dec2.Face = "Top"
  2441. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2442. dec2.Parent = rin
  2443. local dec2b = dec2:Clone()
  2444. dec2b.Face = "Bottom"
  2445. dec2b.Parent = rin
  2446.  
  2447. local dec2a = Instance.new("Decal", rin2)
  2448. dec2a.Face = "Top"
  2449. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  2450. dec2a.Parent = rin2
  2451. local dec2ab = dec2a:Clone()
  2452. dec2ab.Face = "Bottom"
  2453. dec2ab.Parent = rin2
  2454. expart.CanCollide = false
  2455. expart2.CanCollide = false
  2456. rin.CanCollide = false
  2457. rin2.CanCollide = false
  2458. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  2459. local value = 1*rad/6.5
  2460. for i = 0, 199 do
  2461. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2462. expart.CFrame = expart.CFrame
  2463. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2464. expart2.CFrame = expart.CFrame
  2465. value = value - 0.035*rad/30
  2466. if value < 7.5 then
  2467. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  2468. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  2469. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  2470. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  2471. end
  2472. if value < 0 then
  2473. dec2.Transparency = dec2.Transparency + 0.025
  2474. dec2a.Transparency = dec2a.Transparency + 0.025
  2475. dec2b.Transparency = dec2b.Transparency + 0.025
  2476. dec2ab.Transparency = dec2ab.Transparency + 0.025
  2477. expart.Transparency = expart.Transparency + 0.025
  2478. expart2.Transparency = expart2.Transparency + 0.025
  2479. rin.Transparency = rin.Transparency + 0.025
  2480. rin2.Transparency = rin2.Transparency + 0.025
  2481. end
  2482. swait()
  2483. end
  2484. game:GetService("Debris"):AddItem(expart, 1)
  2485. game:GetService("Debris"):AddItem(expart2, 1)
  2486. game:GetService("Debris"):AddItem(rin, 1)
  2487. game:GetService("Debris"):AddItem(rin2, 1)
  2488. end
  2489.  
  2490. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  2491. local expart = Instance.new("Part",char)
  2492. local expart2 = Instance.new("Part",char)
  2493. local partMesh = Instance.new("SpecialMesh",expart)
  2494. partMesh.MeshType = "Sphere"
  2495. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2496. partMesh2.MeshType = "Sphere"
  2497. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  2498. partMesh.Scale = vt(rad,rad,rad)
  2499. expart.Size = vt(1,1,1)
  2500. expart.Transparency = 0
  2501. expart.Anchored = true
  2502. expart.Material = "Neon"
  2503. expart.BrickColor = bc("White")
  2504. expart.CFrame = par.CFrame
  2505. partMesh2.Scale = vt(rad,rad,rad)
  2506. expart2.Size = vt(1.15,1.15,1.15)
  2507. expart2.Transparency = 0.5
  2508. expart2.Anchored = true
  2509. expart2.Material = "Neon"
  2510. expart2.BrickColor = par.BrickColor
  2511. expart2.CFrame = par.CFrame
  2512. expart.CanCollide = false
  2513. expart2.CanCollide = false
  2514. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  2515. local value = 1*rad/6.5
  2516. for i = 0, 75 do
  2517. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2518. expart.CFrame = expart.CFrame
  2519. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2520. expart2.CFrame = expart.CFrame
  2521. value = value - 0.035*rad/5
  2522. if value < 0 then
  2523. value = 0
  2524. expart.Transparency = expart.Transparency + 0.05
  2525. expart2.Transparency = expart2.Transparency + 0.05
  2526. end
  2527. swait()
  2528. end
  2529. game:GetService("Debris"):AddItem(expart, 1)
  2530. game:GetService("Debris"):AddItem(expart2, 1)
  2531. end
  2532.  
  2533. function AreaDanger(rad,par,mindam,maxdam)
  2534. local expart = Instance.new("Part",char)
  2535. local partMesh = Instance.new("SpecialMesh",expart)
  2536. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2537. partMesh.MeshType = "Sphere"
  2538. partMesh.Scale = vt(rad,rad,rad)
  2539. expart.Size = vt(1,1,1)
  2540. expart.Transparency = 0.5
  2541. expart.Anchored = true
  2542. expart.Material = "Neon"
  2543. expart.CanCollide = false
  2544. expart.BrickColor = par.BrickColor
  2545. expart.CFrame = par.CFrame
  2546. local value = 1*rad/5
  2547. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  2548. for i = 0, 14 do
  2549. wait()
  2550. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2551. expart.CFrame = expart.CFrame
  2552. value = value - 0.035*rad
  2553. if value < 0 then
  2554. value = 0
  2555. end
  2556. end
  2557. wait(0.25)
  2558. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  2559. wait(0.5)
  2560. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  2561. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  2562. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  2563. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  2564. for i = 0, 14 do
  2565. wait()
  2566. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2567. expart.CFrame = expart.CFrame
  2568. value = value - 0.035*rad/2
  2569. end
  2570. expart.Transparency = 1
  2571. game:GetService("Debris"):AddItem(expart, 5)
  2572. end
  2573.  
  2574. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  2575. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  2576. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  2577. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  2578. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2579. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  2580. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  2581. for i = 0, 24 do
  2582. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2))
  2583. end
  2584. for i = 0, 24 do
  2585. local expart = Instance.new("Part",char)
  2586. expart.Transparency = 1
  2587. expart.Anchored = true
  2588. expart.CanCollide = false
  2589. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  2590. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  2591. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2592. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  2593. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  2594. for i = 0, 9 do
  2595. MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2))
  2596. end
  2597. game:GetService("Debris"):AddItem(expart, 2)
  2598. wait(0.1)
  2599. end
  2600. end
  2601.  
  2602. function EXterPlosion(par)
  2603. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  2604. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  2605. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  2606. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2607. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  2608. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  2609. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  2610. for i = 0, 24 do
  2611. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2))
  2612. end
  2613. for i = 0, 24 do
  2614. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2))
  2615. end
  2616. end
  2617. ----
  2618.  
  2619.  
  2620. function ring(type,pos,scale,value)
  2621. local type = type
  2622. local rng = Instance.new("Part",char)
  2623. rng.Anchored = true
  2624. rng.BrickColor = origcolor
  2625. rng.CanCollide = false
  2626. rng.FormFactor = 3
  2627. rng.Name = "Ring"
  2628. rng.Size = Vector3.new(1, 1, 1)
  2629. rng.Transparency = 0
  2630. rng.TopSurface = 0
  2631. rng.BottomSurface = 0
  2632. rng.CFrame = pos
  2633. local rngm = Instance.new("SpecialMesh", rng)
  2634. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2635. rngm.Scale = scale
  2636. local scaler2 = 1
  2637. if type == "Add" then
  2638. scaler2 = 1*value
  2639. elseif type == "Divide" then
  2640. scaler2 = 1/value
  2641. end
  2642. coroutine.resume(coroutine.create(function()
  2643. for i = 0,10,0.1 do
  2644. swait()
  2645. if type == "Add" then
  2646. scaler2 = scaler2 - 0.01*value
  2647. elseif type == "Divide" then
  2648. scaler2 = scaler2 - 0.01/value
  2649. end
  2650. rng.Transparency = rng.Transparency + 0.01
  2651. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2652. end
  2653. rng:Destroy()
  2654. end))
  2655. end
  2656.  
  2657.  
  2658. function wave(type,pos,scale,value)
  2659. local type = type
  2660. local rng = Instance.new("Part",char)
  2661. rng.Anchored = true
  2662. rng.BrickColor = origcolor
  2663. rng.CanCollide = false
  2664. rng.FormFactor = 3
  2665. rng.Name = "Ring"
  2666. rng.Size = Vector3.new(1, 1, 1)
  2667. rng.Transparency = 0
  2668. rng.TopSurface = 0
  2669. rng.BottomSurface = 0
  2670. rng.CFrame = pos
  2671. local rngm = Instance.new("SpecialMesh", rng)
  2672. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2673. rngm.Scale = scale
  2674. local scaler2 = 1
  2675. if type == "Add" then
  2676. scaler2 = 1*value
  2677. elseif type == "Divide" then
  2678. scaler2 = 1/value
  2679. end
  2680. coroutine.resume(coroutine.create(function()
  2681. for i = 0,10,0.1 do
  2682. swait()
  2683. if type == "Add" then
  2684. scaler2 = scaler2 - 0.01*value
  2685. elseif type == "Divide" then
  2686. scaler2 = scaler2 - 0.01/value
  2687. end
  2688. rng.Transparency = rng.Transparency + 0.01
  2689. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2690. end
  2691. rng:Destroy()
  2692. end))
  2693. end
  2694.  
  2695. function wind(type,pos,scale,value,speed)
  2696. local type = type
  2697. local rng = Instance.new("Part",char)
  2698. rng.Anchored = true
  2699. rng.BrickColor = origcolor
  2700. rng.CanCollide = false
  2701. rng.FormFactor = 3
  2702. rng.Name = "Ring"
  2703. rng.Size = Vector3.new(1, 1, 1)
  2704. rng.Transparency = 0
  2705. rng.TopSurface = 0
  2706. rng.BottomSurface = 0
  2707. rng.CFrame = pos
  2708. local rngm = Instance.new("SpecialMesh", rng)
  2709. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2710. rngm.Scale = scale
  2711. local scaler2 = 1
  2712. if type == "Add" then
  2713. scaler2 = 1*value
  2714. elseif type == "Divide" then
  2715. scaler2 = 1/value
  2716. end
  2717. coroutine.resume(coroutine.create(function()
  2718. for i = 0,10,0.1 do
  2719. swait()
  2720. if type == "Add" then
  2721. scaler2 = scaler2 - 0.01*value
  2722. elseif type == "Divide" then
  2723. scaler2 = scaler2 - 0.01/value
  2724. end
  2725. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2726. rng.Transparency = rng.Transparency + 0.01
  2727. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2728. end
  2729. rng:Destroy()
  2730. end))
  2731. end
  2732.  
  2733. function groundwind(type,pos,scale,value,speed)
  2734. local type = type
  2735. local rng = Instance.new("Part",char)
  2736. rng.Anchored = true
  2737. rng.BrickColor = origcolor
  2738. rng.CanCollide = false
  2739. rng.FormFactor = 3
  2740. rng.Name = "Ring"
  2741. rng.Size = Vector3.new(1, 1, 1)
  2742. rng.Transparency = 0
  2743. rng.TopSurface = 0
  2744. rng.BottomSurface = 0
  2745. rng.CFrame = pos
  2746. local rngm = Instance.new("SpecialMesh", rng)
  2747. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2748. rngm.Scale = scale
  2749. local scaler2 = 1
  2750. if type == "Add" then
  2751. scaler2 = 1*value
  2752. elseif type == "Divide" then
  2753. scaler2 = 1/value
  2754. end
  2755. coroutine.resume(coroutine.create(function()
  2756. for i = 0,10,0.1 do
  2757. swait()
  2758. if type == "Add" then
  2759. scaler2 = scaler2 - 0.01*value
  2760. elseif type == "Divide" then
  2761. scaler2 = scaler2 - 0.01/value
  2762. end
  2763. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2764. rng.Transparency = rng.Transparency + 0.01
  2765. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2766. end
  2767. rng:Destroy()
  2768. end))
  2769. end
  2770.  
  2771. function CameraManager()
  2772. if TwoD and not CamInterrupt then
  2773. if Humanoid.Health > 0 then
  2774. Camera.CameraSubject = Humanoid
  2775. Camera.CameraType = "Scriptable"
  2776. Humanoid.AutoRotate = false
  2777. if Booleans.GyroUse then
  2778. Directer.MaxTorque = Vec3(0, huge, 0)
  2779. else
  2780. Directer.MaxTorque = Vec3(0, 0, 0)
  2781. end
  2782. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2783. if Booleans.CamFollow then
  2784. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2785. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2786. else
  2787. CPart.Position = RootPart.Position
  2788. end
  2789. else
  2790. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2791. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2792. end
  2793. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2794. else
  2795. Camera.CameraSubject = Humanoid
  2796. Camera.CameraType = "Custom"
  2797. Controller.Disabled = false
  2798. end
  2799. end
  2800. end
  2801.  
  2802. function sphere(bonuspeed,type,pos,scale,value,color)
  2803. local type = type
  2804. local rng = Instance.new("Part",char)
  2805. rng.Anchored = true
  2806. rng.BrickColor = color
  2807. rng.CanCollide = false
  2808. rng.FormFactor = 3
  2809. rng.Name = "Ring"
  2810. rng.Material = "Neon"
  2811. rng.Size = Vector3.new(1, 1, 1)
  2812. rng.Transparency = 0
  2813. rng.TopSurface = 0
  2814. rng.BottomSurface = 0
  2815. rng.CFrame = pos
  2816. local rngm = Instance.new("SpecialMesh", rng)
  2817. rngm.MeshType = "Sphere"
  2818. rngm.Scale = scale
  2819. if rainbowmode == true then
  2820. rng.Color = Color3.new(r/255,g/255,b/255)
  2821. end
  2822. local scaler2 = 1
  2823. if type == "Add" then
  2824. scaler2 = 1*value
  2825. elseif type == "Divide" then
  2826. scaler2 = 1/value
  2827. end
  2828. coroutine.resume(coroutine.create(function()
  2829. for i = 0,10/bonuspeed,0.1 do
  2830. swait()
  2831. if rainbowmode == true then
  2832. rng.Color = Color3.new(r/255,g/255,b/255)
  2833. end
  2834. if type == "Add" then
  2835. scaler2 = scaler2 - 0.01*value/bonuspeed
  2836. elseif type == "Divide" then
  2837. scaler2 = scaler2 - 0.01/value*bonuspeed
  2838. end
  2839. if chaosmode == true then
  2840. rng.BrickColor = BrickColor.random()
  2841. end
  2842. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2843. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2844. end
  2845. rng:Destroy()
  2846. end))
  2847. end
  2848.  
  2849. function spherew(bonuspeed,type,pos,scale,value,color)
  2850. local type = type
  2851. local rng = Instance.new("Part", workspace)
  2852. rng.Anchored = true
  2853. rng.BrickColor = color
  2854. rng.CanCollide = false
  2855. rng.FormFactor = 3
  2856. rng.Name = "Ring"
  2857. rng.Material = "Neon"
  2858. rng.Size = Vector3.new(1, 1, 1)
  2859. rng.Transparency = 0
  2860. rng.TopSurface = 0
  2861. rng.BottomSurface = 0
  2862. rng.CFrame = pos
  2863. local rngm = Instance.new("SpecialMesh", rng)
  2864. rngm.MeshType = "Sphere"
  2865. rngm.Scale = scale
  2866. if rainbowmode == true then
  2867. rng.Color = Color3.new(r/255,g/255,b/255)
  2868. end
  2869. local scaler2 = 1
  2870. if type == "Add" then
  2871. scaler2 = 1*value
  2872. elseif type == "Divide" then
  2873. scaler2 = 1/value
  2874. end
  2875. coroutine.resume(coroutine.create(function()
  2876. for i = 0,10/bonuspeed,0.1 do
  2877. swait()
  2878. if rainbowmode == true then
  2879. rng.Color = Color3.new(r/255,g/255,b/255)
  2880. end
  2881. if type == "Add" then
  2882. scaler2 = scaler2 - 0.01*value/bonuspeed
  2883. elseif type == "Divide" then
  2884. scaler2 = scaler2 - 0.01/value*bonuspeed
  2885. end
  2886. if chaosmode == true then
  2887. rng.BrickColor = BrickColor.random()
  2888. end
  2889. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2890. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2891. end
  2892. rng:Destroy()
  2893. end))
  2894. end
  2895.  
  2896. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2897. local type = type
  2898. local rng = Instance.new("Part",char)
  2899. rng.Anchored = true
  2900. rng.BrickColor = color
  2901. rng.CanCollide = false
  2902. rng.FormFactor = 3
  2903. rng.Name = "Ring"
  2904. rng.Material = "Neon"
  2905. rng.Size = Vector3.new(1, 1, 1)
  2906. rng.Transparency = 0
  2907. rng.TopSurface = 0
  2908. rng.BottomSurface = 0
  2909. rng.CFrame = pos
  2910. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2911. local rngm = Instance.new("SpecialMesh", rng)
  2912. rngm.MeshType = "Brick"
  2913. rngm.Scale = vt(x1,y1,z1)
  2914. if rainbowmode == true then
  2915. rng.Color = Color3.new(r/255,g/255,b/255)
  2916. end
  2917. local scaler2 = 0
  2918. local speeder = FastSpeed/10
  2919. if type == "Add" then
  2920. scaler2 = 1*value
  2921. elseif type == "Divide" then
  2922. scaler2 = 1/value
  2923. end
  2924. coroutine.resume(coroutine.create(function()
  2925. for i = 0,10/bonuspeed,0.1 do
  2926. swait()
  2927. if rainbowmode == true then
  2928. rng.Color = Color3.new(r/255,g/255,b/255)
  2929. end
  2930. if type == "Add" then
  2931. scaler2 = scaler2 - 0.01*value/bonuspeed
  2932. elseif type == "Divide" then
  2933. scaler2 = scaler2 - 0.01/value*bonuspeed
  2934. end
  2935. if chaosmode == true then
  2936. rng.BrickColor = BrickColor.random()
  2937. end
  2938. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2939. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2940. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2941. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2942. end
  2943. rng:Destroy()
  2944. end))
  2945. end
  2946.  
  2947. function sphereMKw(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2948. local type = type
  2949. local rng = Instance.new("Part", workspace)
  2950. rng.Anchored = true
  2951. rng.BrickColor = color
  2952. rng.CanCollide = false
  2953. rng.FormFactor = 3
  2954. rng.Name = "Ring"
  2955. rng.Material = "Neon"
  2956. rng.Size = Vector3.new(1, 1, 1)
  2957. rng.Transparency = 0
  2958. rng.TopSurface = 0
  2959. rng.BottomSurface = 0
  2960. rng.CFrame = pos
  2961. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2962. local rngm = Instance.new("SpecialMesh", rng)
  2963. rngm.MeshType = "Sphere"
  2964. rngm.Scale = vt(x1,y1,z1)
  2965. if rainbowmode == true then
  2966. rng.Color = Color3.new(r/255,g/255,b/255)
  2967. end
  2968. local scaler2 = 1
  2969. local speeder = FastSpeed
  2970. if type == "Add" then
  2971. scaler2 = 1*value
  2972. elseif type == "Divide" then
  2973. scaler2 = 1/value
  2974. end
  2975. coroutine.resume(coroutine.create(function()
  2976. for i = 0,10/bonuspeed,0.1 do
  2977. swait()
  2978. if rainbowmode == true then
  2979. rng.Color = Color3.new(r/255,g/255,b/255)
  2980. end
  2981. if type == "Add" then
  2982. scaler2 = scaler2 - 0.01*value/bonuspeed
  2983. elseif type == "Divide" then
  2984. scaler2 = scaler2 - 0.01/value*bonuspeed
  2985. end
  2986. if chaosmode == true then
  2987. rng.BrickColor = BrickColor.random()
  2988. end
  2989. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2990. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2991. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2992. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2993. end
  2994. rng:Destroy()
  2995. end))
  2996. end
  2997. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2998. local type = type
  2999. local rng = Instance.new("Part",char)
  3000. rng.Anchored = true
  3001. rng.BrickColor = color
  3002. rng.CanCollide = false
  3003. rng.FormFactor = 3
  3004. rng.Name = "Ring"
  3005. rng.Material = "Neon"
  3006. rng.Size = Vector3.new(1, 1, 1)
  3007. rng.Transparency = 0
  3008. rng.TopSurface = 0
  3009. rng.BottomSurface = 0
  3010. rng.CFrame = pos
  3011. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3012. local rngm = Instance.new("SpecialMesh", rng)
  3013. rngm.MeshType = "Sphere"
  3014. rngm.Scale = vt(x1,y1,z1)
  3015. if rainbowmode == true then
  3016. rng.Color = Color3.new(r/255,g/255,b/255)
  3017. end
  3018. local scaler2 = 1
  3019. local speeder = FastSpeed
  3020. if type == "Add" then
  3021. scaler2 = 1*value
  3022. elseif type == "Divide" then
  3023. scaler2 = 1/value
  3024. end
  3025. coroutine.resume(coroutine.create(function()
  3026. for i = 0,10/bonuspeed,0.1 do
  3027. swait()
  3028. if rainbowmode == true then
  3029. rng.Color = Color3.new(r/255,g/255,b/255)
  3030. end
  3031. if type == "Add" then
  3032. scaler2 = scaler2 - 0.01*value/bonuspeed
  3033. elseif type == "Divide" then
  3034. scaler2 = scaler2 - 0.01/value*bonuspeed
  3035. end
  3036. if chaosmode == true then
  3037. rng.BrickColor = BrickColor.random()
  3038. end
  3039. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3040. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3041. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3042. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3043. end
  3044. rng:Destroy()
  3045. end))
  3046. end
  3047.  
  3048.  
  3049. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  3050. local type = type
  3051. local rng = Instance.new("Part",char)
  3052. rng.Anchored = true
  3053. rng.BrickColor = color
  3054. rng.CanCollide = false
  3055. rng.FormFactor = 3
  3056. rng.Name = "Ring"
  3057. rng.Material = "Neon"
  3058. rng.Size = Vector3.new(1, 1, 1)
  3059. rng.Transparency = 1
  3060. rng.TopSurface = 0
  3061. rng.BottomSurface = 0
  3062. rng.CFrame = pos
  3063. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  3064. local rngm = Instance.new("SpecialMesh", rng)
  3065. rngm.MeshType = "Sphere"
  3066. rngm.Scale = vt(x1,y1,z1)
  3067. if rainbowmode == true then
  3068. rng.Color = Color3.new(r/255,g/255,b/255)
  3069. end
  3070. local scaler2 = 1
  3071. local speeder = FastSpeed
  3072. if type == "Add" then
  3073. scaler2 = 1*value
  3074. elseif type == "Divide" then
  3075. scaler2 = 1/value
  3076. end
  3077. coroutine.resume(coroutine.create(function()
  3078. for i = 0,10/bonuspeed,0.1 do
  3079. swait()
  3080. if rainbowmode == true then
  3081. rng.Color = Color3.new(r/255,g/255,b/255)
  3082. end
  3083. if type == "Add" then
  3084. scaler2 = scaler2 - 0.01*value/bonuspeed
  3085. elseif type == "Divide" then
  3086. scaler2 = scaler2 - 0.01/value*bonuspeed
  3087. end
  3088. if chaosmode == true then
  3089. rng.BrickColor = BrickColor.random()
  3090. end
  3091. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3092. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3093. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3094. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3095. end
  3096. rng:Destroy()
  3097. end))
  3098. end
  3099.  
  3100. function dmg(dude)
  3101. if dude.Name ~= Character then
  3102. local bgf = Instance.new("BodyGyro",dude.Head)
  3103. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3104. local val = Instance.new("BoolValue",dude)
  3105. val.Name = "IsHit"
  3106. local ds = coroutine.wrap(function()
  3107. dude:WaitForChild("Head"):BreakJoints()
  3108. wait(0.5)
  3109. targetted = nil
  3110. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
  3111. coroutine.resume(coroutine.create(function()
  3112. for i, v in pairs(dude:GetChildren()) do
  3113. if v:IsA("Accessory") then
  3114. v:Destroy()
  3115. end
  3116. if v:IsA("Humanoid") then
  3117. v:Destroy()
  3118. end
  3119. if v:IsA("CharacterMesh") then
  3120. v:Destroy()
  3121. end
  3122. if v:IsA("Model") then
  3123. v:Destroy()
  3124. end
  3125. if v:IsA("Part") or v:IsA("MeshPart") then
  3126. for x, o in pairs(v:GetChildren()) do
  3127. if o:IsA("Decal") then
  3128. o:Destroy()
  3129. end
  3130. end
  3131. coroutine.resume(coroutine.create(function()
  3132. v.Material = "Neon"
  3133. v.CanCollide = false
  3134. local bld = Instance.new("ParticleEmitter",v)
  3135. bld.LightEmission = 1
  3136. bld.Texture = "rbxassetid://284205403"
  3137. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  3138. bld.Rate = 50
  3139. bld.Lifetime = NumberRange.new(1)
  3140. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  3141. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  3142. bld.Speed = NumberRange.new(0,0)
  3143. bld.VelocitySpread = 50000
  3144. bld.Rotation = NumberRange.new(-500,500)
  3145. bld.RotSpeed = NumberRange.new(-500,500)
  3146. local sbs = Instance.new("BodyPosition", v)
  3147. sbs.P = 3000
  3148. sbs.D = 1000
  3149. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3150. sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  3151. v.Color = Color3.new(1,1,1)
  3152. coroutine.resume(coroutine.create(function()
  3153. for i = 0, 49 do
  3154. swait(1)
  3155. v.Transparency = v.Transparency + 0.02
  3156. end
  3157. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1)
  3158. bld.Speed = NumberRange.new(1,5)
  3159. bld.Acceleration = vt(0,10,0)
  3160. wait(0.5)
  3161. bld.Enabled = false
  3162. wait(3)
  3163. v:Destroy()
  3164. dude:Destroy()
  3165. end))
  3166. end))
  3167. end
  3168. end
  3169. end))
  3170. end)
  3171. ds()
  3172. end
  3173. end
  3174.  
  3175.  
  3176. function FindNearestHead(Position, Distance, SinglePlayer)
  3177. if SinglePlayer then
  3178. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3179. end
  3180. local List = {}
  3181. for i, v in pairs(workspace:GetChildren()) do
  3182. if v:IsA("Model") then
  3183. if v:findFirstChild("Head") then
  3184. if v ~= Character then
  3185. if (v.Head.Position - Position).magnitude <= Distance then
  3186. table.insert(List, v)
  3187. end
  3188. end
  3189. end
  3190. end
  3191. end
  3192. return List
  3193. end
  3194.  
  3195. function FaceMouse()
  3196. Cam = workspace.CurrentCamera
  3197. return {
  3198. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3199. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3200. }
  3201. end
  3202.  
  3203. function FaceMouse2()
  3204. Cam = workspace.CurrentCamera
  3205. return {
  3206. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3207. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3208. }
  3209. end
  3210.  
  3211. local ModeOfGlitch = 1
  3212. -- Functions are ready.
  3213. local storehumanoidWS = 16
  3214.  
  3215. function Blink()
  3216. for i = 0, 14 do
  3217. 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)
  3218. end
  3219. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3220. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3221. CameraEnshaking(2,10)
  3222. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3223. if v:FindFirstChild('Head') then
  3224. end
  3225. end
  3226. for i = 0, 14 do
  3227. 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)
  3228. end
  3229. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3230. end
  3231.  
  3232. function ExtinctiveHeartbreak()
  3233. local targetted = nil
  3234. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3235. targetted = mouse.Target.Parent
  3236. end
  3237. if targetted ~= nil then
  3238. attack = true
  3239. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3240. for i = 0, 9 do
  3241. 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)
  3242. end
  3243. for i = 0, 24 do
  3244. PixelBlock(1,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.06,BrickColor.new("Really red"),0)
  3245. end
  3246. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3247. local originalpos = root.CFrame
  3248. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  3249. for i = 0, 9 do
  3250. 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)
  3251. end
  3252. for i = 0, 24 do
  3253. PixelBlock(1,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.06,BrickColor.new("Really red"),0)
  3254. end
  3255. hum.WalkSpeed = 0
  3256. targetted.Head.Anchored = true
  3257. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3258. for i = 0,2,0.1 do
  3259. swait()
  3260. 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)),.4)
  3261. 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)
  3262. 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)
  3263. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3264. 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)
  3265. 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)
  3266. end
  3267. coroutine.resume(coroutine.create(function()
  3268. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
  3269. bld.LightEmission = 0.1
  3270. bld.Texture = "rbxassetid://284205403"
  3271. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3272. bld.Rate = 500
  3273. bld.Lifetime = NumberRange.new(1)
  3274. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3275. bld.Acceleration = vt(0,-25,0)
  3276. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3277. bld.Speed = NumberRange.new(10,50)
  3278. bld.EmissionDirection = "Front"
  3279. bld.VelocitySpread = 25
  3280. bld.Rotation = NumberRange.new(-500,500)
  3281. bld.RotSpeed = NumberRange.new(-500,500)
  3282. end))
  3283. coroutine.resume(coroutine.create(function()
  3284. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("UpperTorso"))
  3285. bld.LightEmission = 0.1
  3286. bld.Texture = "rbxassetid://284205403"
  3287. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3288. bld.Rate = 500
  3289. bld.Lifetime = NumberRange.new(1)
  3290. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3291. bld.Acceleration = vt(0,-25,0)
  3292. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3293. bld.Speed = NumberRange.new(10,50)
  3294. bld.EmissionDirection = "Front"
  3295. bld.VelocitySpread = 25
  3296. bld.Rotation = NumberRange.new(-500,500)
  3297. bld.RotSpeed = NumberRange.new(-500,500)
  3298. end))
  3299. CameraEnshaking(5,5)
  3300. game:GetService("Debris"):AddItem(bld,3)
  3301. dmg(targetted)
  3302. CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Head, 1,1)
  3303. for i = 0,1,0.1 do
  3304. swait()
  3305. 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)
  3306. 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)),.8)
  3307. 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)
  3308. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  3309. 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)
  3310. 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)
  3311. end
  3312. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3313. for i = 0, 9 do
  3314. 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)
  3315. end
  3316. for i = 0, 24 do
  3317. PixelBlock(1,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.06,BrickColor.new("Really red"),0)
  3318. end
  3319. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3320. root.CFrame = originalpos
  3321. for i = 0, 9 do
  3322. 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)
  3323. end
  3324. for i = 0, 24 do
  3325. PixelBlock(1,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.06,BrickColor.new("Really red"),0)
  3326. end
  3327. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3328. bld.Enabled = false
  3329. attack = false
  3330. hum.WalkSpeed = storehumanoidWS
  3331. end
  3332. end
  3333. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3334. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3335. prt.Anchored = true
  3336. prt.CFrame = cframe
  3337. msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  3338. game:GetService("Debris"):AddItem(prt, 2)
  3339. coroutine.resume(coroutine.create(function(Part, Mesh)
  3340. for i = 0, 1, delay do
  3341. wait()
  3342. Part.CFrame = Part.CFrame * cf(0, y3 / 2, 0)
  3343. Part.Transparency = i
  3344. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3345. end
  3346. Part.Parent = nil
  3347. end), prt, msh)
  3348. end
  3349. function StravEffect(brickcolor, cframe, x, y, z, x1, y1, z1, delay)
  3350. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3351. prt.Anchored = true
  3352. prt.CFrame = cframe * cf(x, y, z)
  3353. msh = mesh("SpecialMesh", prt, "FileMesh", "rbxassetid://168892363", vt(0, 0, 0), vt(x1, y1, z1))
  3354. game:GetService("Debris"):AddItem(prt, 5)
  3355. coroutine.resume(coroutine.create(function(Part, Mesh, ex, why, zee)
  3356. local num = math.random()
  3357. local num2 = math.random(-3, 2) + math.random()
  3358. local numm = 0
  3359. for i = 0, 1, delay * 2 do
  3360. swait()
  3361. Part.CFrame = cframe * euler(0, numm * num * 10, 0) * cf(ex, why, zee) * cf(-i * 10, num2, 0)
  3362. Part.Transparency = i
  3363. numm = numm + 0.01
  3364. end
  3365. Part.Parent = nil
  3366. Mesh.Parent = nil
  3367. end), prt, msh, x, y, z)
  3368. end
  3369. function dmgstart(dmg, what)
  3370. hitcon = what.Touched:connect(function(hit)
  3371. local hum = hit.Parent:FindFirstChild("Humanoid")
  3372. if hum and not hum:IsDescendantOf(Character) then
  3373. hum:TakeDamage(dmg)
  3374. end
  3375. end)
  3376. end
  3377. function dmgstop()
  3378. hitcon:disconnect()
  3379. end
  3380. function Cloak()
  3381. Face.Parent = nil
  3382. cloaked = true
  3383. for _, v in pairs(Torso.Parent:children()) do
  3384. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  3385. coroutine.resume(coroutine.create(function()
  3386. for i = 0, 1, 0.2 do
  3387. wait()
  3388. v.Transparency = i
  3389. end
  3390. v.Transparency = 1
  3391. end))
  3392. end
  3393. if v.className == "Hat" then
  3394. hatp = v.Handle
  3395. coroutine.resume(coroutine.create(function(derp)
  3396. for i = 0, 1, 0.2 do
  3397. wait()
  3398. derp.Transparency = i
  3399. end
  3400. derp.Transparency = 1
  3401. end), hatp)
  3402. end
  3403. end
  3404. for _, v in pairs(m:children()) do
  3405. if v.className == "Part" then
  3406. coroutine.resume(coroutine.create(function()
  3407. for i = 0, 1, 0.2 do
  3408. wait()
  3409. v.Transparency = i
  3410. end
  3411. v.Transparency = 1
  3412. end))
  3413. end
  3414. end
  3415. end
  3416. function UnCloak()
  3417. so("http://roblox.com/asset/?id=2767090", Torso, 1, 1.1)
  3418. Face.Parent = Head
  3419. cloaked = false
  3420. for _, v in pairs(Torso.Parent:children()) do
  3421. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  3422. coroutine.resume(coroutine.create(function()
  3423. for i = 0, 1, 0.1 do
  3424. wait()
  3425. v.Transparency = v.Transparency - 0.1
  3426. end
  3427. v.Transparency = 0
  3428. end))
  3429. end
  3430. if v.className == "Hat" then
  3431. hatp = v.Handle
  3432. coroutine.resume(coroutine.create(function(derp)
  3433. for i = 0, 1, 0.1 do
  3434. wait()
  3435. derp.Transparency = derp.Transparency - 0.1
  3436. end
  3437. derp.Transparency = 0
  3438. end), hatp)
  3439. end
  3440. end
  3441. for _, v in pairs(m:children()) do
  3442. if v.className == "Part" and v.Name ~= "hitbox" and v.Name ~= "tip" then
  3443. coroutine.resume(coroutine.create(function()
  3444. for i = 0, 1, 0.1 do
  3445. wait()
  3446. v.Transparency = v.Transparency - 0.1
  3447. end
  3448. v.Transparency = 0
  3449. end))
  3450. v.Transparency = 0
  3451. end
  3452. end
  3453. end
  3454. local origcolor = BrickColor.new("Pastel light blue")
  3455. function Explode(rad, par, pitch, vol, mindam, maxdam)
  3456. local expart = Instance.new("Part", char)
  3457. local expart2 = Instance.new("Part", char)
  3458. local rin = Instance.new("Part", char)
  3459. local rin2 = Instance.new("Part", char)
  3460. local partMesh = Instance.new("SpecialMesh", expart)
  3461. partMesh.MeshType = "Sphere"
  3462. local partMesh2 = Instance.new("SpecialMesh", expart2)
  3463. partMesh2.MeshType = "Sphere"
  3464. local partMesh3 = Instance.new("SpecialMesh", rin)
  3465. partMesh3.MeshType = "Brick"
  3466. local partMesh4 = Instance.new("SpecialMesh", rin2)
  3467. partMesh4.MeshType = "Brick"
  3468. CFuncs.Sound.Create("rbxassetid://165970126", expart, vol, pitch)
  3469. partMesh.Scale = vt(rad, rad, rad)
  3470. expart.Size = vt(1, 1, 1)
  3471. expart.Transparency = 0
  3472. expart.Anchored = true
  3473. expart.Material = "Neon"
  3474. expart.BrickColor = bc("White")
  3475. expart.CFrame = par.CFrame
  3476. partMesh2.Scale = vt(rad, rad, rad)
  3477. expart2.Size = vt(1.15, 1.15, 1.15)
  3478. expart2.Transparency = 0.5
  3479. expart2.Anchored = true
  3480. expart2.Material = "Neon"
  3481. expart2.BrickColor = par.BrickColor
  3482. expart2.CFrame = par.CFrame
  3483. rin.Size = vt(1.15, 1.15, 1.15)
  3484. rin.Transparency = 1
  3485. rin.Anchored = true
  3486. rin.Material = "Neon"
  3487. rin.BrickColor = par.BrickColor
  3488. rin.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
  3489. rin2.Size = vt(1.15, 1.15, 1.15)
  3490. rin2.Transparency = 1
  3491. rin2.Anchored = true
  3492. rin2.Material = "Neon"
  3493. rin2.BrickColor = par.BrickColor
  3494. rin2.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
  3495. partMesh3.Scale = vt(0, 1, 0)
  3496. partMesh4.Scale = vt(0, 1, 0)
  3497. local dec2 = Instance.new("Decal", rin)
  3498. dec2.Face = "Top"
  3499. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  3500. dec2.Parent = rin
  3501. local dec2b = dec2:Clone()
  3502. dec2b.Face = "Bottom"
  3503. dec2b.Parent = rin
  3504. local dec2a = Instance.new("Decal", rin2)
  3505. dec2a.Face = "Top"
  3506. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  3507. dec2a.Parent = rin2
  3508. local dec2ab = dec2a:Clone()
  3509. dec2ab.Face = "Bottom"
  3510. dec2ab.Parent = rin2
  3511. expart.CanCollide = false
  3512. expart2.CanCollide = false
  3513. rin.CanCollide = false
  3514. rin2.CanCollide = false
  3515. MagniDamage(par, rad * 5, mindam, maxdam, 0, "Normal")
  3516. local value = 1 * rad / 6.5
  3517. for i = 0, 199 do
  3518. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  3519. expart.CFrame = expart.CFrame
  3520. partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
  3521. expart2.CFrame = expart.CFrame
  3522. value = value - 0.035 * rad / 30
  3523. if value < 7.5 then
  3524. partMesh3.Scale = partMesh3.Scale + vt(rad / 5, 0, rad / 5)
  3525. rin.CFrame = rin.CFrame * CFrame.Angles(0, math.rad(1), 0)
  3526. partMesh4.Scale = partMesh4.Scale + vt(rad / 7.5, 0, rad / 7.5)
  3527. rin2.CFrame = rin2.CFrame * CFrame.Angles(0, math.rad(-1), 0)
  3528. end
  3529. if value < 0 then
  3530. dec2.Transparency = dec2.Transparency + 0.025
  3531. dec2a.Transparency = dec2a.Transparency + 0.025
  3532. dec2b.Transparency = dec2b.Transparency + 0.025
  3533. dec2ab.Transparency = dec2ab.Transparency + 0.025
  3534. expart.Transparency = expart.Transparency + 0.025
  3535. expart2.Transparency = expart2.Transparency + 0.025
  3536. rin.Transparency = rin.Transparency + 0.025
  3537. rin2.Transparency = rin2.Transparency + 0.025
  3538. end
  3539. swait()
  3540. end
  3541. game:GetService("Debris"):AddItem(expart, 1)
  3542. game:GetService("Debris"):AddItem(expart2, 1)
  3543. game:GetService("Debris"):AddItem(rin, 1)
  3544. game:GetService("Debris"):AddItem(rin2, 1)
  3545. end
  3546. function ExplodeShort(rad, par, pitch, vol, mindam, maxdam)
  3547. local expart = Instance.new("Part", char)
  3548. local expart2 = Instance.new("Part", char)
  3549. local partMesh = Instance.new("SpecialMesh", expart)
  3550. partMesh.MeshType = "Sphere"
  3551. local partMesh2 = Instance.new("SpecialMesh", expart2)
  3552. partMesh2.MeshType = "Sphere"
  3553. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=142070127", expart, vol, pitch)
  3554. partMesh.Scale = vt(rad, rad, rad)
  3555. expart.Size = vt(1, 1, 1)
  3556. expart.Transparency = 0
  3557. expart.Anchored = true
  3558. expart.Material = "Neon"
  3559. expart.BrickColor = bc("White")
  3560. expart.CFrame = par.CFrame
  3561. partMesh2.Scale = vt(rad, rad, rad)
  3562. expart2.Size = vt(1.15, 1.15, 1.15)
  3563. expart2.Transparency = 0.5
  3564. expart2.Anchored = true
  3565. expart2.Material = "Neon"
  3566. expart2.BrickColor = par.BrickColor
  3567. expart2.CFrame = par.CFrame
  3568. expart.CanCollide = false
  3569. expart2.CanCollide = false
  3570. MagniDamage(par, rad * 2.5, mindam, maxdam, 0, "Normal")
  3571. local value = 1 * rad / 6.5
  3572. for i = 0, 75 do
  3573. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  3574. expart.CFrame = expart.CFrame
  3575. partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
  3576. expart2.CFrame = expart.CFrame
  3577. value = value - 0.035 * rad / 5
  3578. if value < 0 then
  3579. value = 0
  3580. expart.Transparency = expart.Transparency + 0.05
  3581. expart2.Transparency = expart2.Transparency + 0.05
  3582. end
  3583. swait()
  3584. end
  3585. game:GetService("Debris"):AddItem(expart, 1)
  3586. game:GetService("Debris"):AddItem(expart2, 1)
  3587. end
  3588. function AreaDanger(rad, par, mindam, maxdam)
  3589. local expart = Instance.new("Part", char)
  3590. local partMesh = Instance.new("SpecialMesh", expart)
  3591. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
  3592. partMesh.MeshType = "Sphere"
  3593. partMesh.Scale = vt(rad, rad, rad)
  3594. expart.Size = vt(1, 1, 1)
  3595. expart.Transparency = 0.5
  3596. expart.Anchored = true
  3597. expart.Material = "Neon"
  3598. expart.CanCollide = false
  3599. expart.BrickColor = par.BrickColor
  3600. expart.CFrame = par.CFrame
  3601. local value = 1 * rad / 5
  3602. MagicBlock(origcolor, expart.CFrame, 0, 0, 0, rad / 2, rad / 2, rad / 2, 0.1)
  3603. for i = 0, 14 do
  3604. wait()
  3605. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  3606. expart.CFrame = expart.CFrame
  3607. value = value - 0.035 * rad
  3608. if value < 0 then
  3609. value = 0
  3610. end
  3611. end
  3612. wait(0.25)
  3613. CFuncs.Sound.Create("rbxassetid://588738544", expart, 1.5, 1)
  3614. wait(0.5)
  3615. CFuncs.Sound.Create("rbxassetid://588737825", expart, 1.5, 1)
  3616. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 0.75)
  3617. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  3618. MagicBlock(origcolor, expart.CFrame, rad * 2, rad * 2, rad * 2, 0.1, 0.1, 0.1, 0.025)
  3619. for i = 0, 14 do
  3620. wait()
  3621. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  3622. expart.CFrame = expart.CFrame
  3623. value = value - 0.035 * rad / 2
  3624. end
  3625. expart.Transparency = 1
  3626. game:GetService("Debris"):AddItem(expart, 5)
  3627. end
  3628. function Swarmsplosions(negrad, rad, par, mindam, maxdam)
  3629. CFuncs.Sound.Create("rbxassetid://588737825", par, 2.5, 2)
  3630. CFuncs.Sound.Create("rbxassetid://231917784", par, 2.5, 1)
  3631. CFuncs.Sound.Create("rbxassetid://231917744", par, 2.5, 1)
  3632. CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
  3633. MagniDamageWithEffect(par, 25, 5, 10, 0, "Normal")
  3634. MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.025)
  3635. for i = 0, 24 do
  3636. MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2, 2, 5, -0.01, -0.01, 25, 0.005, math.random(1, 2))
  3637. end
  3638. for i = 0, 24 do
  3639. local expart = Instance.new("Part", char)
  3640. expart.Transparency = 1
  3641. expart.Anchored = true
  3642. expart.CanCollide = false
  3643. expart.CFrame = par.CFrame * CFrame.new(math.random(negrad, rad), math.random(negrad, rad), math.random(negrad, rad))
  3644. CFuncs.Sound.Create("rbxassetid://588737825", expart, 1, 2)
  3645. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
  3646. MagniDamage(expart, rad / 2, mindam, maxdam, 0, "Normal")
  3647. MagicBlock(origcolor, expart.CFrame, rad, rad, rad, 0.1, 0.1, 0.1, 0.025)
  3648. for i = 0, 9 do
  3649. MagicShockTrailAlt2(origcolor, expart.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2, 2, 5, -0.01, -0.01, 5, 0.05, math.random(1, 2))
  3650. end
  3651. game:GetService("Debris"):AddItem(expart, 2)
  3652. wait(0.1)
  3653. end
  3654. end
  3655. function EXterPlosion(par)
  3656. CFuncs.Sound.Create("rbxassetid://919941001", par, 10, 1)
  3657. CFuncs.Sound.Create("rbxassetid://138213851", par, 5, 0.85)
  3658. CFuncs.Sound.Create("rbxassetid://157878578", par, 5, 0.2)
  3659. CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
  3660. MagniDamageWithEffect(par, 500, 80, 99, 0, "Normal")
  3661. MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.005)
  3662. MagicBlock(origcolor, par.CFrame, 0, 0, 0, 150, 150, 150, 0.1)
  3663. for i = 0, 24 do
  3664. MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 50, 50, 5, -0.5, -0.5, 500, 0.1, math.random(1, 2))
  3665. end
  3666. for i = 0, 24 do
  3667. MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 50, 50, 5, -0.25, -0.25, 50, 0.005, math.random(1, 2))
  3668. end
  3669. end
  3670. function ring(type, pos, scale, value)
  3671. local type = type
  3672. local rng = Instance.new("Part", char)
  3673. rng.Anchored = true
  3674. rng.BrickColor = origcolor
  3675. rng.CanCollide = false
  3676. rng.FormFactor = 3
  3677. rng.Name = "Ring"
  3678. rng.Size = Vector3.new(1, 1, 1)
  3679. rng.Transparency = 0
  3680. rng.TopSurface = 0
  3681. rng.BottomSurface = 0
  3682. rng.CFrame = pos
  3683. local rngm = Instance.new("SpecialMesh", rng)
  3684. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  3685. rngm.Scale = scale
  3686. local scaler2 = 1
  3687. if type == "Add" then
  3688. scaler2 = 1 * value
  3689. elseif type == "Divide" then
  3690. scaler2 = 1 / value
  3691. end
  3692. coroutine.resume(coroutine.create(function()
  3693. for i = 0, 10, 0.1 do
  3694. swait()
  3695. if type == "Add" then
  3696. scaler2 = scaler2 - 0.01 * value
  3697. elseif type == "Divide" then
  3698. scaler2 = scaler2 - 0.01 / value
  3699. end
  3700. rng.Transparency = rng.Transparency + 0.01
  3701. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  3702. end
  3703. rng:Destroy()
  3704. end))
  3705. end
  3706. function wave(type, pos, scale, value)
  3707. local type = type
  3708. local rng = Instance.new("Part", char)
  3709. rng.Anchored = true
  3710. rng.BrickColor = origcolor
  3711. rng.CanCollide = false
  3712. rng.FormFactor = 3
  3713. rng.Name = "Ring"
  3714. rng.Size = Vector3.new(1, 1, 1)
  3715. rng.Transparency = 0
  3716. rng.TopSurface = 0
  3717. rng.BottomSurface = 0
  3718. rng.CFrame = pos
  3719. local rngm = Instance.new("SpecialMesh", rng)
  3720. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  3721. rngm.Scale = scale
  3722. local scaler2 = 1
  3723. if type == "Add" then
  3724. scaler2 = 1 * value
  3725. elseif type == "Divide" then
  3726. scaler2 = 1 / value
  3727. end
  3728. coroutine.resume(coroutine.create(function()
  3729. for i = 0, 10, 0.1 do
  3730. swait()
  3731. if type == "Add" then
  3732. scaler2 = scaler2 - 0.01 * value
  3733. elseif type == "Divide" then
  3734. scaler2 = scaler2 - 0.01 / value
  3735. end
  3736. rng.Transparency = rng.Transparency + 0.01
  3737. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  3738. end
  3739. rng:Destroy()
  3740. end))
  3741. end
  3742. function wind(type, pos, scale, value, speed)
  3743. local type = type
  3744. local rng = Instance.new("Part", char)
  3745. rng.Anchored = true
  3746. rng.BrickColor = origcolor
  3747. rng.CanCollide = false
  3748. rng.FormFactor = 3
  3749. rng.Name = "Ring"
  3750. rng.Size = Vector3.new(1, 1, 1)
  3751. rng.Transparency = 0
  3752. rng.TopSurface = 0
  3753. rng.BottomSurface = 0
  3754. rng.CFrame = pos
  3755. local rngm = Instance.new("SpecialMesh", rng)
  3756. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  3757. rngm.Scale = scale
  3758. local scaler2 = 1
  3759. if type == "Add" then
  3760. scaler2 = 1 * value
  3761. elseif type == "Divide" then
  3762. scaler2 = 1 / value
  3763. end
  3764. coroutine.resume(coroutine.create(function()
  3765. for i = 0, 10, 0.1 do
  3766. swait()
  3767. if type == "Add" then
  3768. scaler2 = scaler2 - 0.01 * value
  3769. elseif type == "Divide" then
  3770. scaler2 = scaler2 - 0.01 / value
  3771. end
  3772. rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
  3773. rng.Transparency = rng.Transparency + 0.01
  3774. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  3775. end
  3776. rng:Destroy()
  3777. end))
  3778. end
  3779. function groundwind(type, pos, scale, value, speed)
  3780. local type = type
  3781. local rng = Instance.new("Part", char)
  3782. rng.Anchored = true
  3783. rng.BrickColor = origcolor
  3784. rng.CanCollide = false
  3785. rng.FormFactor = 3
  3786. rng.Name = "Ring"
  3787. rng.Size = Vector3.new(1, 1, 1)
  3788. rng.Transparency = 0
  3789. rng.TopSurface = 0
  3790. rng.BottomSurface = 0
  3791. rng.CFrame = pos
  3792. local rngm = Instance.new("SpecialMesh", rng)
  3793. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  3794. rngm.Scale = scale
  3795. local scaler2 = 1
  3796. if type == "Add" then
  3797. scaler2 = 1 * value
  3798. elseif type == "Divide" then
  3799. scaler2 = 1 / value
  3800. end
  3801. coroutine.resume(coroutine.create(function()
  3802. for i = 0, 10, 0.1 do
  3803. swait()
  3804. if type == "Add" then
  3805. scaler2 = scaler2 - 0.01 * value
  3806. elseif type == "Divide" then
  3807. scaler2 = scaler2 - 0.01 / value
  3808. end
  3809. rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
  3810. rng.Transparency = rng.Transparency + 0.01
  3811. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2 / 5, scaler2)
  3812. end
  3813. rng:Destroy()
  3814. end))
  3815. end
  3816. function CameraManager()
  3817. if TwoD and not CamInterrupt then
  3818. if Humanoid.Health > 0 then
  3819. Camera.CameraSubject = Humanoid
  3820. Camera.CameraType = "Scriptable"
  3821. Humanoid.AutoRotate = false
  3822. if Booleans.GyroUse then
  3823. Directer.MaxTorque = Vec3(0, huge, 0)
  3824. else
  3825. Directer.MaxTorque = Vec3(0, 0, 0)
  3826. end
  3827. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  3828. if Booleans.CamFollow then
  3829. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  3830. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  3831. else
  3832. CPart.Position = RootPart.Position
  3833. end
  3834. else
  3835. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  3836. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  3837. end
  3838. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  3839. else
  3840. Camera.CameraSubject = Humanoid
  3841. Camera.CameraType = "Custom"
  3842. end
  3843. end
  3844. end
  3845. function sphere(bonuspeed, type, pos, scale, value, color)
  3846. local type = type
  3847. local rng = Instance.new("Part", char)
  3848. rng.Anchored = true
  3849. rng.BrickColor = color
  3850. rng.CanCollide = false
  3851. rng.FormFactor = 3
  3852. rng.Name = "Ring"
  3853. rng.Material = "Neon"
  3854. rng.Size = Vector3.new(1, 1, 1)
  3855. rng.Transparency = 0
  3856. rng.TopSurface = 0
  3857. rng.BottomSurface = 0
  3858. rng.CFrame = pos
  3859. local rngm = Instance.new("SpecialMesh", rng)
  3860. rngm.MeshType = "Sphere"
  3861. rngm.Scale = scale
  3862. if rainbowmode == true then
  3863. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  3864. end
  3865. local scaler2 = 1
  3866. if type == "Add" then
  3867. scaler2 = 1 * value
  3868. elseif type == "Divide" then
  3869. scaler2 = 1 / value
  3870. end
  3871. coroutine.resume(coroutine.create(function()
  3872. for i = 0, 10 / bonuspeed, 0.1 do
  3873. swait()
  3874. if rainbowmode == true then
  3875. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  3876. end
  3877. if type == "Add" then
  3878. scaler2 = scaler2 - 0.01 * value / bonuspeed
  3879. elseif type == "Divide" then
  3880. scaler2 = scaler2 - 0.01 / value * bonuspeed
  3881. end
  3882. if chaosmode == true then
  3883. rng.BrickColor = BrickColor.random()
  3884. end
  3885. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  3886. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  3887. end
  3888. rng:Destroy()
  3889. end))
  3890. end
  3891. function sphereMK(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
  3892. local type = type
  3893. local rng = Instance.new("Part", char)
  3894. rng.Anchored = true
  3895. rng.BrickColor = color
  3896. rng.CanCollide = false
  3897. rng.FormFactor = 3
  3898. rng.Name = "Ring"
  3899. rng.Material = "Neon"
  3900. rng.Size = Vector3.new(1, 1, 1)
  3901. rng.Transparency = 0
  3902. rng.TopSurface = 0
  3903. rng.BottomSurface = 0
  3904. rng.CFrame = pos
  3905. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  3906. local rngm = Instance.new("SpecialMesh", rng)
  3907. rngm.MeshType = "Sphere"
  3908. rngm.Scale = vt(x1, y1, z1)
  3909. if rainbowmode == true then
  3910. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  3911. end
  3912. local scaler2 = 1
  3913. local speeder = FastSpeed
  3914. if type == "Add" then
  3915. scaler2 = 1 * value
  3916. elseif type == "Divide" then
  3917. scaler2 = 1 / value
  3918. end
  3919. coroutine.resume(coroutine.create(function()
  3920. for i = 0, 10 / bonuspeed, 0.1 do
  3921. swait()
  3922. if rainbowmode == true then
  3923. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  3924. end
  3925. if type == "Add" then
  3926. scaler2 = scaler2 - 0.01 * value / bonuspeed
  3927. elseif type == "Divide" then
  3928. scaler2 = scaler2 - 0.01 / value * bonuspeed
  3929. end
  3930. if chaosmode == true then
  3931. rng.BrickColor = BrickColor.random()
  3932. end
  3933. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  3934. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  3935. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  3936. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  3937. end
  3938. rng:Destroy()
  3939. end))
  3940. end
  3941. function sphereMKCharge(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
  3942. local type = type
  3943. local rng = Instance.new("Part", char)
  3944. rng.Anchored = true
  3945. rng.BrickColor = color
  3946. rng.CanCollide = false
  3947. rng.FormFactor = 3
  3948. rng.Name = "Ring"
  3949. rng.Material = "Neon"
  3950. rng.Size = Vector3.new(1, 1, 1)
  3951. rng.Transparency = 1
  3952. rng.TopSurface = 0
  3953. rng.BottomSurface = 0
  3954. rng.CFrame = pos
  3955. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  3956. local rngm = Instance.new("SpecialMesh", rng)
  3957. rngm.MeshType = "Sphere"
  3958. rngm.Scale = vt(x1, y1, z1)
  3959. if rainbowmode == true then
  3960. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  3961. end
  3962. local scaler2 = 1
  3963. local speeder = FastSpeed
  3964. if type == "Add" then
  3965. scaler2 = 1 * value
  3966. elseif type == "Divide" then
  3967. scaler2 = 1 / value
  3968. end
  3969. coroutine.resume(coroutine.create(function()
  3970. for i = 0, 10 / bonuspeed, 0.1 do
  3971. swait()
  3972. if rainbowmode == true then
  3973. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  3974. end
  3975. if type == "Add" then
  3976. scaler2 = scaler2 - 0.01 * value / bonuspeed
  3977. elseif type == "Divide" then
  3978. scaler2 = scaler2 - 0.01 / value * bonuspeed
  3979. end
  3980. if chaosmode == true then
  3981. rng.BrickColor = BrickColor.random()
  3982. end
  3983. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  3984. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  3985. rng.Transparency = rng.Transparency - 0.01 * bonuspeed
  3986. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  3987. end
  3988. rng:Destroy()
  3989. end))
  3990. end
  3991. function dmg(dude)
  3992. if dude.Name ~= Character then
  3993. local bgf = Instance.new("BodyGyro", dude.Head)
  3994. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
  3995. local val = Instance.new("BoolValue", dude)
  3996. val.Name = "IsHit"
  3997. local ds = coroutine.wrap(function()
  3998. dude:WaitForChild("Head"):BreakJoints()
  3999. wait(0.5)
  4000. targetted = nil
  4001. CFuncs.Sound.Create("rbxassetid://62339698", char, 0.5, 0.3)
  4002. coroutine.resume(coroutine.create(function()
  4003. for i, v in pairs(dude:GetChildren()) do
  4004. if v:IsA("Accessory") then
  4005. v:Destroy()
  4006. end
  4007. if v:IsA("Humanoid") then
  4008. v:Destroy()
  4009. end
  4010. if v:IsA("CharacterMesh") then
  4011. v:Destroy()
  4012. end
  4013. if v:IsA("Model") then
  4014. v:Destroy()
  4015. end
  4016. if v:IsA("Part") or v:IsA("MeshPart") then
  4017. for x, o in pairs(v:GetChildren()) do
  4018. if o:IsA("Decal") then
  4019. o:Destroy()
  4020. end
  4021. end
  4022. coroutine.resume(coroutine.create(function()
  4023. v.Material = "Neon"
  4024. v.CanCollide = false
  4025. local bld = Instance.new("ParticleEmitter",v)
  4026. bld.LightEmission = 1
  4027. bld.Texture = "rbxassetid://284205403"
  4028. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  4029. bld.Rate = 50
  4030. bld.Lifetime = NumberRange.new(1)
  4031. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  4032. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  4033. bld.Speed = NumberRange.new(0,0)
  4034. bld.VelocitySpread = 50000
  4035. bld.Rotation = NumberRange.new(-500,500)
  4036. bld.RotSpeed = NumberRange.new(-500,500)
  4037. local sbs = Instance.new("BodyPosition", v)
  4038. sbs.P = 3000
  4039. sbs.D = 1000
  4040. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  4041. sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  4042. v.Color = Color3.new(1,1,1)
  4043. coroutine.resume(coroutine.create(function()
  4044. for i = 0, 49 do
  4045. swait(1)
  4046. v.Transparency = v.Transparency + 0.02
  4047. end
  4048. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1)
  4049. bld.Speed = NumberRange.new(1,5)
  4050. bld.Acceleration = vt(0,10,0)
  4051. wait(0.5)
  4052. bld.Enabled = false
  4053. wait(3)
  4054. v:Destroy()
  4055. dude:Destroy()
  4056. end))
  4057. end))
  4058. end
  4059. end
  4060. end))
  4061. end)
  4062. ds()
  4063. end
  4064. end
  4065.  
  4066.  
  4067. function FindNearestHead(Position, Distance, SinglePlayer)
  4068. if SinglePlayer then
  4069. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  4070. end
  4071. local List = {}
  4072. for i, v in pairs(workspace:GetChildren()) do
  4073. if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then
  4074. table.insert(List, v)
  4075. end
  4076. end
  4077. return List
  4078. end
  4079. function FaceMouse()
  4080. Cam = workspace.CurrentCamera
  4081. return {
  4082. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  4083. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  4084. }
  4085. end
  4086. function FaceMouse2()
  4087. Cam = workspace.CurrentCamera
  4088. return {
  4089. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  4090. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  4091. }
  4092. end
  4093. local ModeOfGlitch = 1
  4094. local storehumanoidWS = 16
  4095. function ExtinctiveHeartbreak()
  4096. local targetted
  4097. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  4098. targetted = mouse.Target.Parent
  4099. end
  4100. if targetted ~= nil then
  4101. attack = true
  4102. CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
  4103. for i = 0, 9 do
  4104. 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 black"), 0)
  4105. end
  4106. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  4107. local originalpos = root.CFrame
  4108. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0, -2, 2)
  4109. for i = 0, 9 do
  4110. 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 black"), 0)
  4111. end
  4112. hum.WalkSpeed = 0
  4113. targetted.Head.Anchored = true
  4114. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  4115. for i = 0, 2, 0.1 do
  4116. swait()
  4117. 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)), 0.4)
  4118. 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)), 0.4)
  4119. 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)), 0.4)
  4120. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8)
  4121. 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)), 0.4)
  4122. 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)), 0.4)
  4123. end
  4124. coroutine.resume(coroutine.create(function()
  4125. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
  4126. bld.LightEmission = 0.1
  4127. bld.Texture = "rbxassetid://284205403"
  4128. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  4129. bld.Rate = 500
  4130. bld.Lifetime = NumberRange.new(1)
  4131. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  4132. bld.Acceleration = vt(0,-25,0)
  4133. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  4134. bld.Speed = NumberRange.new(10,50)
  4135. bld.EmissionDirection = "Front"
  4136. bld.VelocitySpread = 25
  4137. bld.Rotation = NumberRange.new(-500,500)
  4138. bld.RotSpeed = NumberRange.new(-500,500)
  4139. end))
  4140. coroutine.resume(coroutine.create(function()
  4141. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("UpperTorso"))
  4142. bld.LightEmission = 0.1
  4143. bld.Texture = "rbxassetid://284205403"
  4144. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  4145. bld.Rate = 500
  4146. bld.Lifetime = NumberRange.new(1)
  4147. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  4148. bld.Acceleration = vt(0,-25,0)
  4149. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  4150. bld.Speed = NumberRange.new(10,50)
  4151. bld.EmissionDirection = "Front"
  4152. bld.VelocitySpread = 25
  4153. bld.Rotation = NumberRange.new(-500,500)
  4154. bld.RotSpeed = NumberRange.new(-500,500)
  4155. end))
  4156. CameraEnshaking(5, 5)
  4157. game:GetService("Debris"):AddItem(bld, 3)
  4158. dmg(targetted)
  4159. CFuncs.Sound.Create("rbxassetid://429400881", targetted.Head, 1, 1)
  4160. for i = 0, 1, 0.1 do
  4161. swait()
  4162. 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)), 0.8)
  4163. 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)), 0.8)
  4164. 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)), 0.8)
  4165. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(80)), 0.8)
  4166. 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)), 0.8)
  4167. 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)), 0.8)
  4168. end
  4169. CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
  4170. for i = 0, 9 do
  4171. 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 black"), 0)
  4172. end
  4173. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  4174. root.CFrame = originalpos
  4175. for i = 0, 9 do
  4176. 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 black"), 0)
  4177. end
  4178. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  4179. bld.Enabled = false
  4180. attack = false
  4181. hum.WalkSpeed = storehumanoidWS
  4182. end
  4183. end
  4184. function PureBomb()
  4185. attack = true
  4186. local orb = Instance.new("Part", char)
  4187. orb.Anchored = true
  4188. orb.BrickColor = BrickColor.new("Toothpaste")
  4189. orb.CanCollide = false
  4190. orb.FormFactor = 3
  4191. orb.Name = "Ring"
  4192. orb.Material = "Neon"
  4193. orb.Size = Vector3.new(1, 1, 1)
  4194. orb.Transparency = 0
  4195. orb.TopSurface = 0
  4196. orb.BottomSurface = 0
  4197. local orbm = Instance.new("SpecialMesh", orb)
  4198. orbm.MeshType = "Sphere"
  4199. orbm.Name = "SizeMesh"
  4200. orbm.Scale = vt(0, 0, 0)
  4201. local scaled = 0.1
  4202. local posid = 0
  4203. CFuncs.Sound.Create("rbxassetid://136007472", orb, 1, 1)
  4204. for i = 0, 5, 0.1 do
  4205. swait()
  4206. scaled = scaled - 0.001
  4207. posid = posid - scaled
  4208. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  4209. orbm.Scale = orbm.Scale + vt(scaled, scaled, scaled)
  4210. 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)
  4211. 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))), 0.1)
  4212. 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)), 0.1)
  4213. 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)), 0.1)
  4214. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  4215. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(180), math.rad(20), math.rad(0)), 0.1)
  4216. 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)), 0.1)
  4217. end
  4218. for i = 0, 2, 0.1 do
  4219. swait()
  4220. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  4221. 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))), 0.4)
  4222. 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)), 0.4)
  4223. 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)), 0.4)
  4224. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(20)), 0.4)
  4225. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(220), math.rad(20), math.rad(0)), 0.4)
  4226. 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)), 0.4)
  4227. end
  4228. coroutine.resume(coroutine.create(function()
  4229. orb.Anchored = false
  4230. CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
  4231. local a = Instance.new("Part", workspace)
  4232. a.Name = "Direction"
  4233. a.Anchored = true
  4234. a.BrickColor = bc("Bright red")
  4235. a.Material = "Neon"
  4236. a.Transparency = 1
  4237. a.CanCollide = false
  4238. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500)
  4239. local ignore = orb
  4240. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4241. a.BottomSurface = 10
  4242. a.TopSurface = 10
  4243. local distance = (orb.CFrame.p - position).magnitude
  4244. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4245. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4246. orb.CFrame = a.CFrame
  4247. a:Destroy()
  4248. local bv = Instance.new("BodyVelocity")
  4249. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  4250. bv.velocity = orb.CFrame.lookVector * 125
  4251. bv.Parent = orb
  4252. local hitted = false
  4253. game:GetService("Debris"):AddItem(orb, 15)
  4254. wait()
  4255. local hit = orb.Touched:connect(function(hit)
  4256. if hitted == false then
  4257. hitted = true
  4258. CameraEnshaking(10, 2.5)
  4259. CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
  4260. MagniDamage(orb, 65, 65, 90, 0, "Normal")
  4261. sphere(1, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickColor.new("Toothpaste"))
  4262. sphere(2, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickColor.new("Toothpaste"))
  4263. for i = 0, 9 do
  4264. 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)
  4265. 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)
  4266. end
  4267. orb.Anchored = true
  4268. orb.Transparency = 1
  4269. wait(8)
  4270. orb:Destroy()
  4271. end
  4272. end)
  4273. end))
  4274. for i = 0, 1, 0.1 do
  4275. swait()
  4276. 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))), 0.4)
  4277. 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)), 0.4)
  4278. 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)), 0.4)
  4279. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.4)
  4280. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(60), math.rad(20), math.rad(50)), 0.4)
  4281. 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)), 0.4)
  4282. end
  4283. attack = false
  4284. end
  4285. function ChaosGroundStrike()
  4286. attack = true
  4287. for i = 0, 2, 0.1 do
  4288. swait()
  4289. 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)), 0.2)
  4290. 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)), 0.2)
  4291. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  4292. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  4293. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  4294. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  4295. end
  4296. CFuncs.Sound.Create("rbxassetid://438666141", root, 7.5, 1)
  4297. CFuncs.Sound.Create("rbxassetid://1208650519", root, 7.5, 1)
  4298. CameraEnshaking(4, 12)
  4299. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  4300. if v:FindFirstChild("Head") then
  4301. dmg(v)
  4302. end
  4303. end
  4304. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1, BrickColor.random())
  4305. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2, BrickColor.random())
  4306. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100, 0.1, 100), 0.01, BrickColor.random())
  4307. for i = 0, 2, 0.1 do
  4308. swait()
  4309. 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)
  4310. 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)
  4311. 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)), 0.4)
  4312. 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)), 0.4)
  4313. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  4314. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  4315. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  4316. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  4317. end
  4318. attack = false
  4319. end
  4320. function ChaosBegone()
  4321. attack = true
  4322. chatfunc("Why Won't You People...", BrickColor.random().Color)
  4323. for i = 0, 10, 0.1 do
  4324. swait()
  4325. 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)), 0.2)
  4326. 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)), 0.2)
  4327. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  4328. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  4329. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  4330. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  4331. end
  4332. chatfunc("B U R N I N H E L L ? !", BrickColor.random().Color)
  4333. CFuncs.Sound.Create("rbxassetid://438666141", char, 7.5, 1)
  4334. CFuncs.Sound.Create("rbxassetid://1208650519", char, 7.5, 1)
  4335. CameraEnshaking(5, 25)
  4336. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4337. if v:FindFirstChild("Head") then
  4338. dmg(v)
  4339. end
  4340. end
  4341. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1000, BrickColor.random())
  4342. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2000, BrickColor.random())
  4343. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100000, 0.1, 100000), 0.01, BrickColor.random())
  4344. for i = 0, 3, 0.1 do
  4345. swait()
  4346. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * 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)
  4347. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * 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)
  4348. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * 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)
  4349. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * 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)
  4350. 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)), 0.4)
  4351. 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)), 0.4)
  4352. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  4353. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  4354. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  4355. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  4356. end
  4357. attack = false
  4358. end
  4359. function orb_spawn_norm(positted, timer, color, MagniBoost, min, max, volEx, ShakePower, volSummon)
  4360. local orb = Instance.new("Part", char)
  4361. orb.Anchored = true
  4362. orb.BrickColor = color
  4363. orb.CanCollide = false
  4364. orb.FormFactor = 3
  4365. orb.Name = "Ring"
  4366. orb.Material = "Neon"
  4367. orb.Size = Vector3.new(1, 1, 1)
  4368. orb.Transparency = 0
  4369. orb.TopSurface = 0
  4370. orb.BottomSurface = 0
  4371. local orbm = Instance.new("SpecialMesh", orb)
  4372. orbm.MeshType = "Sphere"
  4373. orb.CFrame = positted
  4374. orbm.Name = "SizeMesh"
  4375. orbm.Scale = vt(1, 1, 1)
  4376. CFuncs.Sound.Create("rbxassetid://183763506", orb, volSummon, 1)
  4377. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.05, orb.BrickColor)
  4378. coroutine.resume(coroutine.create(function()
  4379. wait(timer)
  4380. CameraEnshaking(3, ShakePower)
  4381. orb.Transparency = 1
  4382. MagniDamage(orb, 3.5 * MagniBoost, min, max, 0, "Normal")
  4383. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.1 * MagniBoost, orb.BrickColor)
  4384. CFuncs.Sound.Create("rbxassetid://192410089", orb, volEx, 0.7)
  4385. wait(3)
  4386. orb:Destroy()
  4387. end))
  4388. end
  4389. function orb_spawn(positted, timer)
  4390. local randomcol = math.random(1, 2)
  4391. local orb = Instance.new("Part", char)
  4392. orb.Anchored = true
  4393. if randomcol == 1 then
  4394. orb.BrickColor = BrickColor.new("White")
  4395. elseif randomcol == 2 then
  4396. orb.BrickColor = BrickColor.new("Really black")
  4397. end
  4398. orb.CanCollide = false
  4399. orb.FormFactor = 3
  4400. orb.Name = "Ring"
  4401. orb.Material = "Neon"
  4402. orb.Size = Vector3.new(1, 1, 1)
  4403. orb.Transparency = 0
  4404. orb.TopSurface = 0
  4405. orb.BottomSurface = 0
  4406. local orbm = Instance.new("SpecialMesh", orb)
  4407. orbm.MeshType = "Sphere"
  4408. orb.CFrame = positted
  4409. orbm.Name = "SizeMesh"
  4410. orbm.Scale = vt(1, 1, 1)
  4411. CFuncs.Sound.Create("rbxassetid://183763506", orb, 1.5, 1)
  4412. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.025, orb.BrickColor)
  4413. for i = 0, 2 do
  4414. 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)
  4415. end
  4416. coroutine.resume(coroutine.create(function()
  4417. wait(timer)
  4418. CameraEnshaking(3, 2)
  4419. orb.Transparency = 1
  4420. MagniDamage(orb, 17.5, 10, 50, 0, "Normal")
  4421. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.5, orb.BrickColor)
  4422. for i = 0, 4 do
  4423. 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)
  4424. end
  4425. CFuncs.Sound.Create("rbxassetid://192410089", orb, 2, 0.7)
  4426. wait(3)
  4427. orb:Destroy()
  4428. end))
  4429. end
  4430. function scattercorrupt()
  4431. attack = true
  4432. local rot = 0
  4433. local randomrotations = math.random(1, 2)
  4434. local lookv = 2.5
  4435. local power = 5
  4436. sphere(1, "Add", root.CFrame, vt(1, 100000, 1), 0.5, BrickColor.new("Royal purple"))
  4437. sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, BrickColor.new("Royal purple"))
  4438. for i = 0, 9 do
  4439. 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)
  4440. end
  4441. CFuncs.Sound.Create("rbxassetid://180204650", char, 2.5, 0.6)
  4442. CFuncs.Sound.Create("rbxassetid://233856079", char, 1, 0.5)
  4443. CFuncs.Sound.Create("rbxassetid://1208650519", char, 2.5, 1)
  4444. CFuncs.Sound.Create("rbxassetid://239000203", char, 0.5, 0.75)
  4445. CFuncs.Sound.Create("rbxassetid://579687077", char, 0.5, 0.5)
  4446. local hite = Instance.new("Part", char)
  4447. hite.Anchored = true
  4448. hite.CanCollide = false
  4449. hite.FormFactor = 3
  4450. hite.Name = "Ring"
  4451. hite.Material = "Neon"
  4452. hite.Size = Vector3.new(1, 1, 1)
  4453. hite.Transparency = 1
  4454. hite.TopSurface = 0
  4455. hite.BottomSurface = 0
  4456. hite.CFrame = root.CFrame * CFrame.new(0, -2.5, 0)
  4457. local rem = Instance.new("Part", char)
  4458. rem.Anchored = true
  4459. rem.CanCollide = false
  4460. rem.FormFactor = 3
  4461. rem.Name = "Ring"
  4462. rem.Material = "Neon"
  4463. rem.Size = Vector3.new(1, 1, 1)
  4464. rem.Transparency = 1
  4465. rem.TopSurface = 0
  4466. rem.BottomSurface = 0
  4467. rem.CFrame = hite.CFrame
  4468. local rem2 = rem:Clone()
  4469. rem2.Parent = char
  4470. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4471. local rem3 = rem:Clone()
  4472. rem3.Parent = char
  4473. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  4474. local rem4 = rem:Clone()
  4475. rem4.Parent = char
  4476. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  4477. hite:Destroy()
  4478. coroutine.resume(coroutine.create(function()
  4479. for i = 0, 24 do
  4480. swait(1)
  4481. if randomrotations == 1 then
  4482. rot = rot + 1
  4483. elseif randomrotations == 2 then
  4484. rot = rot - 1
  4485. end
  4486. power = power + 0.5
  4487. lookv = lookv + 7.5
  4488. rem.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(rot), 0)
  4489. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4490. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  4491. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  4492. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  4493. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  4494. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  4495. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  4496. end
  4497. end))
  4498. attack = false
  4499. end
  4500. function yinyangi()
  4501. attack = true
  4502. for i = 0, 2, 0.1 do
  4503. swait()
  4504. 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)), 0.2)
  4505. 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)), 0.2)
  4506. 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)), 0.2)
  4507. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  4508. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.2)
  4509. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  4510. end
  4511. local bv = Instance.new("BodyVelocity")
  4512. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  4513. bv.velocity = root.CFrame.lookVector * 175
  4514. bv.Parent = root
  4515. for Rotations = 0, 9 do
  4516. for i = 0, 1, 0.5 do
  4517. swait()
  4518. bv.velocity = root.CFrame.lookVector * 175
  4519. 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)), 0.5)
  4520. 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)), 0.5)
  4521. 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)), 0.5)
  4522. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  4523. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  4524. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  4525. end
  4526. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  4527. for i = 0, 1, 0.5 do
  4528. swait()
  4529. bv.velocity = root.CFrame.lookVector * 175
  4530. 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)), 0.5)
  4531. 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)), 0.5)
  4532. 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)), 0.5)
  4533. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  4534. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  4535. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  4536. end
  4537. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  4538. for i = 0, 1, 0.5 do
  4539. swait()
  4540. bv.velocity = root.CFrame.lookVector * 175
  4541. 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)), 0.5)
  4542. 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)), 0.5)
  4543. 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)), 0.5)
  4544. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  4545. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  4546. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  4547. end
  4548. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  4549. for i = 0, 1, 0.5 do
  4550. swait()
  4551. bv.velocity = root.CFrame.lookVector * 175
  4552. 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)), 0.5)
  4553. 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)), 0.5)
  4554. 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)), 0.5)
  4555. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  4556. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  4557. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  4558. end
  4559. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  4560. end
  4561. bv:Destroy()
  4562. attack = false
  4563. end
  4564. function StarDivision()
  4565. attack = true
  4566. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  4567. for i = 0, 2, 0.1 do
  4568. swait()
  4569. 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)
  4570. 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)),.6)
  4571. 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)),.6)
  4572. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90)),.6)
  4573. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-90)),.6)
  4574. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  4575. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.6)
  4576. end
  4577. local orb = Instance.new("Part", char)
  4578. orb.BrickColor = MAINRUINCOLOR
  4579. orb.CanCollide = false
  4580. orb.FormFactor = 3
  4581. orb.Name = "Ring"
  4582. orb.Material = "Neon"
  4583. orb.Size = Vector3.new(1, 1, 1)
  4584. orb.Transparency = 0
  4585. orb.TopSurface = 0
  4586. orb.BottomSurface = 0
  4587. local orbm = Instance.new("SpecialMesh", orb)
  4588. orbm.MeshType = "Sphere"
  4589. orbm.Name = "SizeMesh"
  4590. orbm.Scale = vt(2,2,2)
  4591. local a = Instance.new("Part",workspace)
  4592. a.Name = "Direction"
  4593. a.Anchored = true
  4594. a.BrickColor = bc("Bright red")
  4595. a.Material = "Neon"
  4596. a.Transparency = 1
  4597. a.CanCollide = false
  4598. local ray = Ray.new(
  4599. sorb.CFrame.p, -- origin
  4600. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  4601. )
  4602. local ignore = sorb
  4603. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4604. a.BottomSurface = 10
  4605. a.TopSurface = 10
  4606. local distance = (sorb.CFrame.p - position).magnitude
  4607. a.Size = Vector3.new(0.1, 0.1, 0.1)
  4608. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  4609. orb.CFrame = a.CFrame
  4610. a:Destroy()
  4611. local bv = Instance.new("BodyVelocity")
  4612. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4613. bv.velocity = orb.CFrame.lookVector*100
  4614. bv.Parent = orb
  4615. local hitted = false
  4616. game:GetService("Debris"):AddItem(orb, 10)
  4617. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  4618. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  4619. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  4620. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  4621. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  4622. coroutine.resume(coroutine.create(function()
  4623. while true do
  4624. swait(1)
  4625. if orb.Parent ~= nil and hitted == false then
  4626. 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)
  4627. elseif orb.Parent == nil then
  4628. break
  4629. end
  4630. end
  4631. end))
  4632. coroutine.resume(coroutine.create(function()
  4633. swait(1)
  4634. orb.Touched:connect(function(hit)
  4635. if hitted == false then
  4636. hitted = true
  4637. game:GetService("Debris"):AddItem(orb, 5)
  4638. orb.Transparency = 1
  4639. orb.Anchored = true
  4640. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4641. elocacenter.Anchored = true
  4642. elocacenter.CFrame = orb.CFrame
  4643. elocacenter.Orientation = vt(0,0,0)
  4644. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4645. eloca1.Anchored = true
  4646. eloca1.CFrame = elocacenter.CFrame
  4647. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4648. eloca2.Anchored = true
  4649. eloca2.CFrame = elocacenter.CFrame
  4650. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4651. eloca3.Anchored = true
  4652. eloca3.CFrame = elocacenter.CFrame
  4653. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  4654. eloca4.Anchored = true
  4655. eloca4.CFrame = elocacenter.CFrame
  4656. local lookavec = 0
  4657. local speeds = 0
  4658. CameraEnshaking(1,1)
  4659. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  4660. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4661. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4662. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4663. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4664. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4665. for i = 0, 99 do
  4666. swait()
  4667. lookavec = lookavec + 1
  4668. speeds = speeds + 0.1
  4669. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4670. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4671. 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)
  4672.  
  4673. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4674. 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)
  4675.  
  4676. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4677. 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)
  4678.  
  4679. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4680. 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)
  4681. end
  4682.  
  4683. for i = 0, 149 do
  4684. swait()
  4685. speeds = speeds + 0.1
  4686. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  4687. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  4688. 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)
  4689.  
  4690. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  4691. 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)
  4692.  
  4693. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  4694. 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)
  4695.  
  4696. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  4697. 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)
  4698. end
  4699. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  4700. if v:FindFirstChild('Head') then
  4701. dmg(v)
  4702. end
  4703. end
  4704. CameraEnshaking(7,30)
  4705. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  4706. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  4707. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  4708. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  4709. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  4710. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  4711. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4712. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4713. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4714. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4715. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4716. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4717. for i = 0, 24 do
  4718. 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)
  4719. 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)
  4720. 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)
  4721. 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)
  4722. end
  4723. coroutine.resume(coroutine.create(function()
  4724. for i = 0, 499 do
  4725. swait(1)
  4726. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4727. 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)
  4728. end
  4729. elocacenter:Destroy()
  4730. eloca1:Destroy()
  4731. eloca2:Destroy()
  4732. eloca3:Destroy()
  4733. eloca4:Destroy()
  4734. end))
  4735. end
  4736. end)
  4737. end))
  4738. attack = false
  4739. end
  4740. function Starfall()
  4741. attack = true
  4742. hum.WalkSpeed = 0
  4743. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  4744. for i = 0, 5, 0.1 do
  4745. swait()
  4746. 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)
  4747. 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)
  4748. 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)
  4749. 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)
  4750. 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)
  4751. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  4752. 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)
  4753. 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)
  4754. end
  4755. local Overed = false
  4756. CameraEnshaking(2,20)
  4757. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4758. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  4759. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  4760. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  4761. local orb = Instance.new("Part", char)
  4762. orb.Anchored = true
  4763. orb.BrickColor = BrickColor.new("Toothpaste")
  4764. orb.CanCollide = false
  4765. orb.FormFactor = 3
  4766. orb.Name = "Remenant"
  4767. orb.Material = "Neon"
  4768. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  4769. orb.Size = Vector3.new(1, 1, 1)
  4770. orb.Transparency = 1
  4771. orb.TopSurface = 0
  4772. orb.BottomSurface = 0
  4773. hum.WalkSpeed = storehumanoidWS
  4774. coroutine.resume(coroutine.create(function()
  4775. for i = 0, 9 do
  4776. swait(10)
  4777. local lb = Instance.new("Part")
  4778. lb.Color = MAINRUINCOLOR.Color
  4779. lb.CanCollide = false
  4780. lb.Material = "Neon"
  4781. lb.Anchored = true
  4782. lb.TopSurface = 0
  4783. lb.BottomSurface = 0
  4784. lb.Transparency = 0
  4785. lb.Size = vt(1,1,1)
  4786. 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)))
  4787. lb.Anchored = false
  4788. lb.Parent = char
  4789. local thingery = Instance.new("SpecialMesh",lb)
  4790. thingery.MeshType = "Sphere"
  4791. thingery.Scale = vt(20,20,20)
  4792. game:GetService("Debris"):AddItem(lb, 10)
  4793. local bv = Instance.new("BodyVelocity")
  4794. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4795. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  4796. bv.Parent = lb
  4797. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  4798. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  4799. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  4800. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  4801. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  4802. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  4803. local hitted = false
  4804. coroutine.resume(coroutine.create(function()
  4805. while true do
  4806. swait(1)
  4807. if lb.Parent ~= nil and hitted == false then
  4808. 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)
  4809. elseif lb.Parent == nil then
  4810. break
  4811. end
  4812. end
  4813. end))
  4814.  
  4815. game:GetService("Debris"):AddItem(a, 0.1)
  4816.  
  4817. coroutine.resume(coroutine.create(function()
  4818. swait(1)
  4819. lb.Touched:connect(function(hit)
  4820. if hitted == false then
  4821. hitted = true
  4822. lb.Transparency = 1
  4823. lb.Anchored = true
  4824. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  4825. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  4826. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  4827. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  4828. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  4829. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  4830. MagniDamage(lb, 45, 45,85, 0, "Normal")
  4831. CameraEnshaking(1,5)
  4832. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  4833. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  4834. for i = 0, 9 do
  4835. 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)
  4836. end
  4837. for i = 0, 49 do
  4838. swait()
  4839. MagniDamage(lb, 30, 2,4, 0, "Normal")
  4840. 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)
  4841. end
  4842. end
  4843. end)
  4844. end))
  4845. end
  4846. Overed = true
  4847. orb:Destroy()
  4848. end))
  4849.  
  4850. attack = false
  4851. end
  4852. function UniversalCollapse()
  4853. attack = true
  4854. local speedearn = 0
  4855. hum.WalkSpeed = 0
  4856. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4857. for i = 0, 10, 0.1 do
  4858. swait()
  4859. speedearn = speedearn + 0.1
  4860. 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)
  4861. 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)
  4862. 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)
  4863. 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)
  4864. 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)
  4865. 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)
  4866. 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)
  4867. 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)
  4868. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4869. 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)
  4870. 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)
  4871. end
  4872. CameraEnshaking(5,45)
  4873. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4874. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4875. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4876. if v:FindFirstChild('Head') then
  4877. dmg(v)
  4878. end
  4879. end
  4880. hum.WalkSpeed = storehumanoidWS
  4881. attack = false
  4882. end
  4883. function ChaosBegone()
  4884. attack = true
  4885. local speedearn = 0
  4886. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75)
  4887. for i = 0, 10, 0.1 do
  4888. swait()
  4889. speedearn = speedearn + 0.1
  4890.  
  4891. 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)
  4892. 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)
  4893. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4894. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4895. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4896. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4897. end
  4898. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  4899. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1)
  4900. CameraEnshaking(5,25)
  4901. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4902. if v:FindFirstChild('Head') then
  4903. dmg(v)
  4904. end
  4905. end
  4906. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4907. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4908. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4909. for i = 0, 3, 0.1 do
  4910. swait()
  4911.  
  4912. 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)
  4913. 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)
  4914. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4915. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4916. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4917. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4918. end
  4919. attack = false
  4920. end
  4921.  
  4922. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4923. local orb = Instance.new("Part", char)
  4924. orb.Anchored = true
  4925. orb.BrickColor = color
  4926. orb.CanCollide = false
  4927. orb.FormFactor = 3
  4928. orb.Name = "Ring"
  4929. orb.Material = "Neon"
  4930. orb.Size = Vector3.new(1, 1, 1)
  4931. orb.Transparency = 0
  4932. orb.TopSurface = 0
  4933. orb.BottomSurface = 0
  4934. local orbm = Instance.new("SpecialMesh", orb)
  4935. orbm.MeshType = "Sphere"
  4936. orb.CFrame = positted
  4937. orbm.Name = "SizeMesh"
  4938. orbm.Scale = vt(1,1,1)
  4939. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4940. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4941. --[[for i = 0, 2 do
  4942. 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)
  4943. end]]--
  4944. coroutine.resume(coroutine.create(function()
  4945. wait(timer)
  4946. CameraEnshaking(3,ShakePower)
  4947. orb.Transparency = 1
  4948. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4949. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4950. --[[for i = 0, 4 do
  4951. 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)
  4952. end]]--
  4953. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4954. wait(3)
  4955. orb:Destroy()
  4956. end))
  4957. end
  4958.  
  4959. function orb_spawn(positted,timer)
  4960. local randomcol = math.random(1,2)
  4961. local orb = Instance.new("Part", char)
  4962. orb.Anchored = true
  4963. if randomcol == 1 then
  4964. orb.BrickColor = BrickColor.new("White")
  4965. elseif randomcol == 2 then
  4966. orb.BrickColor = BrickColor.new("Really black")
  4967. end
  4968. orb.CanCollide = false
  4969. orb.FormFactor = 3
  4970. orb.Name = "Ring"
  4971. orb.Material = "Neon"
  4972. orb.Size = Vector3.new(1, 1, 1)
  4973. orb.Transparency = 0
  4974. orb.TopSurface = 0
  4975. orb.BottomSurface = 0
  4976. local orbm = Instance.new("SpecialMesh", orb)
  4977. orbm.MeshType = "Sphere"
  4978. orb.CFrame = positted
  4979. orbm.Name = "SizeMesh"
  4980. orbm.Scale = vt(1,1,1)
  4981. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4982. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4983. for i = 0, 2 do
  4984. 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)
  4985. end
  4986. coroutine.resume(coroutine.create(function()
  4987. wait(timer)
  4988. CameraEnshaking(3,2)
  4989. orb.Transparency = 1
  4990. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4991. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4992. for i = 0, 4 do
  4993. 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)
  4994. end
  4995. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4996. wait(3)
  4997. orb:Destroy()
  4998. end))
  4999. end
  5000. function Wip()
  5001. attack = true
  5002. local rngb = Instance.new("Part", char)
  5003. rngb.Anchored = true
  5004. rngb.BrickColor = origcolor
  5005. rngb.CanCollide = false
  5006. rngb.FormFactor = 3
  5007. rngb.Name = "Ring"
  5008. rngb.Material = "Neon"
  5009. rngb.Size = Vector3.new(1, 0.05, 1)
  5010. rngb.Transparency = 1
  5011. rngb.TopSurface = 0
  5012. rngb.BottomSurface = 0
  5013. local rngmb = Instance.new("SpecialMesh", rngb)
  5014. rngmb.MeshType = "Brick"
  5015. rngmb.Name = "SizeMesh"
  5016. rngmb.Scale = vt(0, 1, 0)
  5017. local orb = rngb:Clone()
  5018. orb.Parent = char
  5019. orb.Transparency = 0
  5020. orb.BrickColor = BrickColor.new("White")
  5021. orb.Size = vt(1, 1, 1)
  5022. local orbmish = orb.SizeMesh
  5023. orbmish.Scale = vt(0, 0, 0)
  5024. orbmish.MeshType = "Sphere"
  5025. local orbe = rngb:Clone()
  5026. orbe.Parent = char
  5027. orbe.Transparency = 0.5
  5028. orbe.BrickColor = BrickColor.new("New Yeller")
  5029. orbe.Size = vt(1, 1, 1)
  5030. local orbmish2 = orbe.SizeMesh
  5031. orbmish2.Scale = vt(0, 0, 0)
  5032. orbmish2.MeshType = "Sphere"
  5033. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  5034. rngb:Destroy()
  5035. for i = 0, 5, 0.1 do
  5036. swait()
  5037. if rainbowmode == true then
  5038. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  5039. end
  5040. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  5041. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  5042. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  5043. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  5044. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  5045. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5046. 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(0)), 0.3)
  5047. 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(10), math.rad(0)), 0.3)
  5048. RootPart.CFrame = FaceMouse()[1]
  5049. end
  5050. orbe.Transparency = 1
  5051. orb.Transparency = 1
  5052. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
  5053. CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
  5054. local a = Instance.new("Part", Character)
  5055. a.Name = "Direction"
  5056. a.Anchored = true
  5057. a.BrickColor = bc("White")
  5058. a.Material = "Neon"
  5059. a.Transparency = 0
  5060. a.Shape = "Cylinder"
  5061. a.CanCollide = false
  5062. local a2 = Instance.new("Part", Character)
  5063. a2.Name = "Direction"
  5064. a2.Anchored = true
  5065. a2.BrickColor = bc("New Yeller")
  5066. a2.Color = Color3.new(r / 255, g / 255, b / 255)
  5067. a2.Material = "Neon"
  5068. a2.Transparency = 0.5
  5069. a2.Shape = "Cylinder"
  5070. a2.CanCollide = false
  5071. local ba = Instance.new("Part", Character)
  5072. ba.Name = "HitDirect"
  5073. ba.Anchored = true
  5074. ba.BrickColor = bc("Really black")
  5075. ba.Material = "Neon"
  5076. ba.Transparency = 1
  5077. ba.CanCollide = false
  5078. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  5079. local ignore = Character
  5080. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5081. a.BottomSurface = 10
  5082. a.TopSurface = 10
  5083. a2.BottomSurface = 10
  5084. a2.TopSurface = 10
  5085. local distance = (orb.CFrame.p - position).magnitude
  5086. a.Size = Vector3.new(distance, 1, 1)
  5087. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5088. a2.Size = Vector3.new(distance, 1, 1)
  5089. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5090. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5091. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5092. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5093. game:GetService("Debris"):AddItem(a, 20)
  5094. game:GetService("Debris"):AddItem(a2, 20)
  5095. game:GetService("Debris"):AddItem(ba, 20)
  5096. local msh = Instance.new("SpecialMesh", a)
  5097. msh.MeshType = "Cylinder"
  5098. msh.Scale = vt(1, 25, 25)
  5099. local msh2 = Instance.new("SpecialMesh", a2)
  5100. msh2.MeshType = "Cylinder"
  5101. msh2.Scale = vt(1, 30, 30)
  5102. for i = 0, 10, 0.1 do
  5103. swait()
  5104. CameraEnshaking(1, 5)
  5105. a2.Color = Color3.new(r / 255, g / 255, b / 255)
  5106. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5107. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5108. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  5109. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5110. distance = (orb.CFrame.p - position).magnitude
  5111. if typrot == 1 then
  5112. rotation = rotation + 2.5
  5113. elseif typrot == 2 then
  5114. rotation = rotation - 2.5
  5115. end
  5116. RootPart.CFrame = FaceMouse()[1]
  5117. a.Size = Vector3.new(distance, 1, 1)
  5118. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5119. a2.Size = Vector3.new(distance, 1, 1)
  5120. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5121. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5122. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5123. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5124. msh.Scale = msh.Scale - vt(0, 0.25, 0.25)
  5125. msh2.Scale = msh2.Scale - vt(0, 0.3, 0.3)
  5126. sphereMK(5, 1.5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 15, 15, 25, -0.15, MAINRUINCOLOR, 0)
  5127. sphereMK(5, 1.5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 15, 15, 25, -0.15, MAINRUINCOLOR, 0)
  5128. MagniDamage(ba, 30, 500, 60000, 0, "Normal")
  5129. end
  5130. a:Destroy()
  5131. a2:Destroy()
  5132. ba:Destroy()
  5133. orb:Destroy()
  5134. orbe:Destroy()
  5135. attack = false
  5136. end
  5137. function UniversalSpark()
  5138. attack = true
  5139. local rngb = Instance.new("Part", char)
  5140. rngb.Anchored = true
  5141. rngb.BrickColor = origcolor
  5142. rngb.CanCollide = false
  5143. rngb.FormFactor = 3
  5144. rngb.Name = "Ring"
  5145. rngb.Material = "Neon"
  5146. rngb.Size = Vector3.new(1, 0.05, 1)
  5147. rngb.Transparency = 1
  5148. rngb.TopSurface = 0
  5149. rngb.BottomSurface = 0
  5150. local rngmb = Instance.new("SpecialMesh", rngb)
  5151. rngmb.MeshType = "Brick"
  5152. rngmb.Name = "SizeMesh"
  5153. rngmb.Scale = vt(0, 1, 0)
  5154. local orb = rngb:Clone()
  5155. orb.Parent = char
  5156. orb.Transparency = 0
  5157. orb.BrickColor = BrickColor.new("White")
  5158. orb.Size = vt(1, 1, 1)
  5159. local orbmish = orb.SizeMesh
  5160. orbmish.Scale = vt(0, 0, 0)
  5161. orbmish.MeshType = "Sphere"
  5162. local orbe = rngb:Clone()
  5163. orbe.Parent = char
  5164. orbe.Transparency = 0.5
  5165. orbe.BrickColor = BrickColor.new("New Yeller")
  5166. orbe.Size = vt(1, 1, 1)
  5167. local orbmish2 = orbe.SizeMesh
  5168. orbmish2.Scale = vt(0, 0, 0)
  5169. orbmish2.MeshType = "Sphere"
  5170. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  5171. rngb:Destroy()
  5172. for i = 0, 5, 0.1 do
  5173. swait()
  5174. if rainbowmode == true then
  5175. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  5176. end
  5177. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  5178. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  5179. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  5180. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  5181. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  5182. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5183. 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(0)), 0.3)
  5184. 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(10), math.rad(0)), 0.3)
  5185. RootPart.CFrame = FaceMouse()[1]
  5186. end
  5187. orbe.Transparency = 1
  5188. orb.Transparency = 1
  5189. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
  5190. CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
  5191. CFuncs.Sound.Create("rbxassetid://741272936", char, 0.75, 1)
  5192. CFuncs.Sound.Create("rbxassetid://1192402877", char, 1, 1)
  5193. CFuncs.Sound.Create("rbxassetid://1208650519", char, 0.75, 1)
  5194. CFuncs.Sound.Create("rbxassetid://164881112", char, 0.75, 1)
  5195. CFuncs.Sound.Create("rbxassetid://429123896", char, 1, 0.85)
  5196. CFuncs.Sound.Create("rbxassetid://164178927", char, 1, 1)
  5197. local xd = Instance.new("Sound", char)
  5198. xd.SoundId = "rbxassetid://445796828"
  5199. xd.Pitch = 0.75
  5200. xd.Looped = true
  5201. xd.Volume = 1.25
  5202. xd:Play()
  5203. local a = Instance.new("Part", Character)
  5204. a.Name = "Direction"
  5205. a.Anchored = true
  5206. a.BrickColor = bc("Alder")
  5207. a.Color = MAINRUINCOLOR.Color
  5208. a.Material = "Neon"
  5209. a.Transparency = 0.5
  5210. a.Shape = "Cylinder"
  5211. a.CanCollide = false
  5212. local a2 = Instance.new("Part", Character)
  5213. a2.Name = "Direction"
  5214. a2.Anchored = true
  5215. a2.BrickColor = bc("New Yeller")
  5216. a2.Color = MAINRUINCOLOR.Color
  5217. a2.Material = "Neon"
  5218. a2.Transparency = 0.5
  5219. a2.Shape = "Cylinder"
  5220. a2.CanCollide = false
  5221. local ba = Instance.new("Part", Character)
  5222. ba.Name = "HitDirect"
  5223. ba.Anchored = true
  5224. ba.BrickColor = bc("Really black")
  5225. ba.Material = "Neon"
  5226. ba.Transparency = 1
  5227. ba.CanCollide = false
  5228. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  5229. local ignore = Character
  5230. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5231. a.BottomSurface = 10
  5232. a.TopSurface = 10
  5233. a2.BottomSurface = 10
  5234. a2.TopSurface = 10
  5235. local distance = (orb.CFrame.p - position).magnitude
  5236. a.Size = Vector3.new(distance, 1, 1)
  5237. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5238. a2.Size = Vector3.new(distance, 1, 1)
  5239. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5240. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5241. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5242. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5243. game:GetService("Debris"):AddItem(a, 60)
  5244. game:GetService("Debris"):AddItem(a2, 60)
  5245. game:GetService("Debris"):AddItem(ba, 60)
  5246. local outerscale = 0
  5247. local msh = Instance.new("SpecialMesh", a)
  5248. msh.MeshType = "Cylinder"
  5249. msh.Scale = vt(1, 0, 0)
  5250. local msh2 = Instance.new("SpecialMesh", a2)
  5251. msh2.MeshType = "Cylinder"
  5252. msh2.Scale = vt(1, 0, 0)
  5253. for i = 0, 2, 0.1 do
  5254. swait()
  5255. CameraEnshaking(1, 1)
  5256. msh2.Scale = msh2.Scale + vt(0, outerscale * 20, outerscale * 20)
  5257. msh.Scale = msh.Scale + vt(0, outerscale * 15, outerscale * 15)
  5258. outerscale = outerscale - 0.015
  5259. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5260. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5261. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  5262. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5263. distance = (orb.CFrame.p - position).magnitude
  5264. if typrot == 1 then
  5265. rotation = rotation + 2.5
  5266. elseif typrot == 2 then
  5267. rotation = rotation - 2.5
  5268. end
  5269. RootPart.CFrame = FaceMouse()[1]
  5270. a.Size = Vector3.new(distance, 1, 1)
  5271. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5272. a2.Size = Vector3.new(distance, 1, 1)
  5273. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5274. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5275. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5276. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5277. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  5278. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  5279. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  5280. end
  5281. for z = 0, 2 do
  5282. for i = 0, 4, 0.1 do
  5283. swait()
  5284. CameraEnshaking(1, 1)
  5285. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  5286. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  5287. outerscale = outerscale + 0.015
  5288. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5289. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5290. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  5291. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5292. distance = (orb.CFrame.p - position).magnitude
  5293. if typrot == 1 then
  5294. rotation = rotation + 2.5
  5295. elseif typrot == 2 then
  5296. rotation = rotation - 2.5
  5297. end
  5298. RootPart.CFrame = FaceMouse()[1]
  5299. a.Size = Vector3.new(distance, 1, 1)
  5300. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5301. a2.Size = Vector3.new(distance, 1, 1)
  5302. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5303. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5304. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5305. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5306. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  5307. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  5308. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  5309. end
  5310. for i = 0, 4, 0.1 do
  5311. swait()
  5312. CameraEnshaking(1, 1)
  5313. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  5314. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  5315. outerscale = outerscale - 0.015
  5316. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5317. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5318. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  5319. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5320. distance = (orb.CFrame.p - position).magnitude
  5321. if typrot == 1 then
  5322. rotation = rotation + 2.5
  5323. elseif typrot == 2 then
  5324. rotation = rotation - 2.5
  5325. end
  5326. RootPart.CFrame = FaceMouse()[1]
  5327. a.Size = Vector3.new(distance, 1, 1)
  5328. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5329. a2.Size = Vector3.new(distance, 1, 1)
  5330. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5331. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5332. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5333. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5334. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  5335. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  5336. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  5337. end
  5338. end
  5339. for i = 0, 4, 0.1 do
  5340. swait()
  5341. CameraEnshaking(1, 1)
  5342. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  5343. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  5344. xd.Volume = xd.Volume - 0.025
  5345. a.Transparency = a.Transparency + 0.025
  5346. a2.Transparency = a2.Transparency + 0.025
  5347. outerscale = outerscale - 0.015
  5348. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5349. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  5350. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  5351. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  5352. distance = (orb.CFrame.p - position).magnitude
  5353. if typrot == 1 then
  5354. rotation = rotation + 2.5
  5355. elseif typrot == 2 then
  5356. rotation = rotation - 2.5
  5357. end
  5358. RootPart.CFrame = FaceMouse()[1]
  5359. a.Size = Vector3.new(distance, 1, 1)
  5360. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5361. a2.Size = Vector3.new(distance, 1, 1)
  5362. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  5363. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  5364. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5365. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  5366. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  5367. sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0)
  5368. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  5369. end
  5370. xd:Destroy()
  5371. a:Destroy()
  5372. a2:Destroy()
  5373. ba:Destroy()
  5374. orb:Destroy()
  5375. orbe:Destroy()
  5376. attack = false
  5377. end
  5378. function resetmode()
  5379. rainbowmode = false
  5380. chaosmode = false
  5381. RecolorTextAndRename("Unknown Guest", Color3.new(0, 0, 0), Color3.new(0, 0, 0.4))
  5382. ModeOfGlitch = 1
  5383. storehumanoidWS = 16
  5384. for i, v in pairs(mw2:GetChildren()) do
  5385. if v:IsA("Part") then
  5386. v.BrickColor = BrickColor.new("Really black")
  5387. v.Material = "Neon"
  5388. end
  5389. end
  5390. for i, v in pairs(mw1:GetChildren()) do
  5391. if v:IsA("Part") then
  5392. v.Transparency = 1
  5393. v.BrickColor = BrickColor.new("Really red")
  5394. v.Material = "Neon"
  5395. end
  5396. end
  5397. MAINRUINCOLOR = BrickColor.new("Really blue")
  5398. hum.WalkSpeed = 16
  5399. newTheme("rbxassetid://919231299", 0, 1.1, 10)
  5400. for i, v in pairs(m:GetChildren()) do
  5401. if v:IsA("Part") then
  5402. v.BrickColor = BrickColor.new("Navy blue")
  5403. v.Material = "Glass"
  5404. end
  5405. end
  5406. for i, v in pairs(m2:GetChildren()) do
  5407. if v:IsA("Part") then
  5408. v.BrickColor = BrickColor.new("Crimson")
  5409. v.Material = "Granite"
  5410. end
  5411. end
  5412. for i, v in pairs(m3:GetChildren()) do
  5413. if v:IsA("Part") then
  5414. v.BrickColor = BrickColor.new("Navy blue")
  5415. v.Material = "Neon"
  5416. end
  5417. end
  5418. for i, v in pairs(extrawingmod1:GetChildren()) do
  5419. if v:IsA("Part") then
  5420. v.Transparency = 0.5
  5421. v.BrickColor = BrickColor.new("Crimson")
  5422. v.Material = "Neon"
  5423. end
  5424. end
  5425. for i, v in pairs(extrawingmod2:GetChildren()) do
  5426. if v:IsA("Part") then
  5427. v.Transparency = 1
  5428. v.BrickColor = BrickColor.new("White")
  5429. v.Material = "Neon"
  5430. end
  5431. end
  5432. end
  5433. function attackone()
  5434. attack = true
  5435. for i = 0, 1, 0.1 do
  5436. swait()
  5437. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(-40)), 0.2)
  5438. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40)), 0.2)
  5439. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  5440. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  5441. RH.C0 = clerp(RH.C0, cf(1, -1 - 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)), 0.2)
  5442. 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(10)), 0.2)
  5443. end
  5444. CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1.1)
  5445. local hitb = Instance.new("Part", char)
  5446. hitb.Anchored = true
  5447. hitb.CanCollide = false
  5448. hitb.FormFactor = 3
  5449. hitb.Name = "Ring"
  5450. hitb.Material = "Neon"
  5451. hitb.Size = Vector3.new(1, 1, 1)
  5452. hitb.Transparency = 1
  5453. hitb.TopSurface = 0
  5454. hitb.BottomSurface = 0
  5455. hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
  5456. MagniDamage(hitb, 3, 10, 30, 0, "Normal")
  5457. hitb:Destroy()
  5458. for i = 0, 1, 0.1 do
  5459. swait()
  5460. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(70)), 0.4)
  5461. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-70)), 0.4)
  5462. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  5463. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  5464. RH.C0 = clerp(RH.C0, cf(1, -1 - 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(-40)), 0.4)
  5465. 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(-10)), 0.4)
  5466. end
  5467. attack = false
  5468. end
  5469. function attacktwo()
  5470. attack = true
  5471. for i = 0, 1, 0.1 do
  5472. swait()
  5473. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(40)), 0.2)
  5474. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  5475. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  5476. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  5477. RH.C0 = clerp(RH.C0, cf(1, -1 - 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)), 0.2)
  5478. 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(10)), 0.2)
  5479. end
  5480. CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1)
  5481. local hitb = Instance.new("Part", char)
  5482. hitb.Anchored = true
  5483. hitb.CanCollide = false
  5484. hitb.FormFactor = 3
  5485. hitb.Name = "Ring"
  5486. hitb.Material = "Neon"
  5487. hitb.Size = Vector3.new(1, 1, 1)
  5488. hitb.Transparency = 1
  5489. hitb.TopSurface = 0
  5490. hitb.BottomSurface = 0
  5491. hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
  5492. MagniDamage(hitb, 3, 10, 30, 0, "Normal")
  5493. hitb:Destroy()
  5494. for i = 0, 1, 0.1 do
  5495. swait()
  5496. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-70)), 0.4)
  5497. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(70)), 0.4)
  5498. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  5499. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  5500. 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(-5), math.rad(0), math.rad(-40)), 0.4)
  5501. 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(-10)), 0.4)
  5502. end
  5503. attack = false
  5504. end
  5505. function attackthree()
  5506. attack = true
  5507. for i = 0, 1, 0.1 do
  5508. swait()
  5509. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  5510. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3)
  5511. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  5512. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5513. 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(0)), 0.3)
  5514. 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(10), math.rad(0)), 0.3)
  5515. end
  5516. local distlook = 5
  5517. for i = 0, 4 do
  5518. swait(2)
  5519. CameraEnshaking(2, 3)
  5520. local hite = Instance.new("Part", char)
  5521. hite.Anchored = true
  5522. hite.CanCollide = false
  5523. hite.FormFactor = 3
  5524. hite.Name = "Ring"
  5525. hite.Material = "Neon"
  5526. hite.Size = Vector3.new(1, 1, 1)
  5527. hite.Transparency = 1
  5528. hite.TopSurface = 0
  5529. hite.BottomSurface = 0
  5530. hite.CFrame = root.CFrame + root.CFrame.lookVector * distlook
  5531. sphere(3, "Add", hite.CFrame, vt(0, 0, 0), 0.15, MAINRUINCOLOR)
  5532. sphere(6, "Add", hite.CFrame, vt(0, 0, 0), 0.3, MAINRUINCOLOR)
  5533. MagniDamage(hite, 10, 15, 35, 0, "Normal")
  5534. for i = 0, 2 do
  5535. sphereMK(2, 0.2, "Add", rarm.CFrame * CFrame.Angles(math.rad(-90 + math.random(-20, 20)), math.rad(math.random(-20, 20)), math.rad(math.random(-20, 20))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0)
  5536. sphereMK(3, 0.2, "Add", hite.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, MAINRUINCOLOR, 0)
  5537. sphereMK(6, 0.35, "Add", hite.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, MAINRUINCOLOR, 0)
  5538. end
  5539. CFuncs.Sound.Create("rbxassetid://183763506", hite, 2.5, 1)
  5540. CFuncs.Sound.Create("rbxassetid://178452221", hite, 0.25, 0.6)
  5541. game:GetService("Debris"):AddItem(hite, 5)
  5542. distlook = distlook + 10
  5543. end
  5544. attack = false
  5545. end
  5546. local attacktype = 1
  5547. mouse.Button1Down:connect(function()
  5548. if attack == false and attacktype == 1 then
  5549. attacktype = 2
  5550. attackone()
  5551. elseif attack == false and attacktype == 2 then
  5552. attacktype = 3
  5553. attacktwo()
  5554. elseif attack == false and attacktype == 3 then
  5555. attacktype = 1
  5556. attackthree()
  5557. elseif attack == false and attacktype == 4 then
  5558. attacktype = 1
  5559. end
  5560. end)
  5561. mouse.KeyDown:connect(function(k)
  5562. if k == "q" and attack == false and ModeOfGlitch ~= 2 then
  5563. ModeOfGlitch = 2
  5564. storehumanoidWS = 16
  5565. hum.WalkSpeed = 16
  5566. rainbowmode = false
  5567. chaosmode = false
  5568. RecolorTextAndRename("Starry Guest", Color3.new(1, 1, 1), Color3.new(0, 1, 1))
  5569. newTheme("rbxassetid://621367124", 20.25, 1.1, 1)
  5570. MAINRUINCOLOR = BrickColor.new("Deep blue")
  5571. for i, v in pairs(mw2:GetChildren()) do
  5572. if v:IsA("Part") then
  5573. v.BrickColor = MAINRUINCOLOR
  5574. v.Material = "Neon"
  5575. end
  5576. end
  5577. for i, v in pairs(mw1:GetChildren()) do
  5578. if v:IsA("Part") then
  5579. v.Transparency = 0.5
  5580. v.BrickColor = BrickColor.new("Toothpaste")
  5581. v.Material = "Neon"
  5582. end
  5583. end
  5584. for i, v in pairs(m:GetChildren()) do
  5585. if v:IsA("Part") then
  5586. v.BrickColor = BrickColor.new("White")
  5587. v.Material = "Ice"
  5588. end
  5589. end
  5590. for i, v in pairs(m2:GetChildren()) do
  5591. if v:IsA("Part") then
  5592. v.BrickColor = BrickColor.new("Deep blue")
  5593. v.Material = "Glass"
  5594. end
  5595. end
  5596. for i, v in pairs(m3:GetChildren()) do
  5597. if v:IsA("Part") then
  5598. v.BrickColor = BrickColor.new("Really blue")
  5599. v.Material = "Neon"
  5600. end
  5601. end
  5602. for i, v in pairs(extrawingmod1:GetChildren()) do
  5603. if v:IsA("Part") then
  5604. v.Transparency = 1
  5605. v.BrickColor = BrickColor.new("White")
  5606. v.Material = "Neon"
  5607. end
  5608. end
  5609. for i, v in pairs(extrawingmod2:GetChildren()) do
  5610. if v:IsA("Part") then
  5611. v.Transparency = 1
  5612. v.BrickColor = BrickColor.new("White")
  5613. v.Material = "Neon"
  5614. end
  5615. end
  5616. elseif k == "q" and attack == false and ModeOfGlitch == 2 then
  5617. resetmode()
  5618. end
  5619. if k == "e" and attack == false and ModeOfGlitch ~= 3 then
  5620. ModeOfGlitch = 3
  5621. storehumanoidWS = 100
  5622. hum.WalkSpeed = 80
  5623. rainbowmode = false
  5624. chaosmode = false
  5625. RecolorTextAndRename("Controlled Guest", Color3.new(0.4, 0, 0), Color3.new(0, 0, 0.4))
  5626. newTheme("rbxassetid://879189331", 0.8, 1, 0.8)
  5627. MAINRUINCOLOR = BrickColor.new("Really red")
  5628. for i, v in pairs(mw2:GetChildren()) do
  5629. if v:IsA("Part") then
  5630. v.BrickColor = MAINRUINCOLOR
  5631. v.Material = "Neon"
  5632. end
  5633. end
  5634. for i, v in pairs(mw1:GetChildren()) do
  5635. if v:IsA("Part") then
  5636. v.Transparency = 0
  5637. v.BrickColor = MAINRUINCOLOR
  5638. v.Material = "Neon"
  5639. end
  5640. end
  5641. for i, v in pairs(m:GetChildren()) do
  5642. if v:IsA("Part") then
  5643. v.BrickColor = BrickColor.new("Black")
  5644. v.Material = "Ice"
  5645. end
  5646. end
  5647. for i, v in pairs(m2:GetChildren()) do
  5648. if v:IsA("Part") then
  5649. v.BrickColor = BrickColor.new("Crimson")
  5650. v.Material = "Glass"
  5651. end
  5652. end
  5653. for i, v in pairs(m3:GetChildren()) do
  5654. if v:IsA("Part") then
  5655. v.BrickColor = BrickColor.new("Crimson")
  5656. v.Material = "Neon"
  5657. end
  5658. end
  5659. for i, v in pairs(extrawingmod1:GetChildren()) do
  5660. if v:IsA("Part") then
  5661. v.Transparency = 0.4
  5662. v.BrickColor = BrickColor.new("Really red")
  5663. v.Material = "Neon"
  5664. end
  5665. end
  5666. for i, v in pairs(extrawingmod2:GetChildren()) do
  5667. if v:IsA("Part") then
  5668. v.Transparency = 0
  5669. v.BrickColor = BrickColor.new("White")
  5670. v.Material = "Neon"
  5671. end
  5672. end
  5673. elseif k == "e" and attack == false and ModeOfGlitch == 3 then
  5674. resetmode()
  5675. end
  5676. if k == "r" and attack == false and ModeOfGlitch ~= 4 then
  5677. ModeOfGlitch = 4
  5678. storehumanoidWS = 16
  5679. hum.WalkSpeed = 16
  5680. rainbowmode = false
  5681. chaosmode = true
  5682. tl1.Enabled = true
  5683. tl2.Enabled = true
  5684. tl3.Enabled = true
  5685. RecolorTextAndRename("cOrRuPtEd gUeSt",Color3.new(0,0,0),BrickColor.random().Color)
  5686. newTheme("rbxassetid://2087122866",0,1,1)
  5687. MAINRUINCOLOR = BrickColor.new("Black")
  5688. for i, v in pairs(mw2:GetChildren()) do
  5689. if v:IsA("Part") then
  5690. v.BrickColor = MAINRUINCOLOR
  5691. v.Material = "Neon"
  5692. end
  5693. end
  5694. for i, v in pairs(mw1:GetChildren()) do
  5695. if v:IsA("Part") then
  5696. v.Transparency = 0.75
  5697. v.BrickColor = BrickColor.random()
  5698. v.Material = "Neon"
  5699. end
  5700. end
  5701. for i, v in pairs(m:GetChildren()) do
  5702. if v:IsA("Part") then
  5703. v.BrickColor = BrickColor.new("Black")
  5704. v.Material = "Neon"
  5705. end
  5706. end
  5707. for i, v in pairs(m2:GetChildren()) do
  5708. if v:IsA("Part") then
  5709. v.BrickColor = BrickColor.random()
  5710. v.Material = "Neon"
  5711. end
  5712. end
  5713. for i, v in pairs(m3:GetChildren()) do
  5714. if v:IsA("Part") then
  5715. v.BrickColor = BrickColor.new("Black")
  5716. v.Material = "Neon"
  5717. end
  5718. end
  5719. for i, v in pairs(extrawingmod1:GetChildren()) do
  5720. if v:IsA("Part") then
  5721. v.Transparency = 1
  5722. v.BrickColor = BrickColor.new("White")
  5723. v.Material = "Neon"
  5724. end
  5725. end
  5726. for i, v in pairs(extrawingmod2:GetChildren()) do
  5727. if v:IsA("Part") then
  5728. v.Transparency = 1
  5729. v.BrickColor = BrickColor.new("White")
  5730. v.Material = "Neon"
  5731. end
  5732. end
  5733. elseif k == "r" and attack == false and ModeOfGlitch == 4 then
  5734. resetmode()
  5735. end
  5736. if k == "v" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 666 then
  5737. newThemeCust("rbxassetid://964435618",0,1,1)
  5738. attack = true
  5739. hum.WalkSpeed = 0
  5740. MAINRUINCOLOR = BrickColor.new("Really black")
  5741. for i = 0, 24, 0.1 do
  5742. swait()
  5743. 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)
  5744. 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)
  5745. 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)
  5746. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5747. 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)
  5748. 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)
  5749. end
  5750. CameraEnshaking(1,1)
  5751.  
  5752. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5753. wait(0.55)
  5754. CameraEnshaking(1,2)
  5755.  
  5756. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5757. wait(0.55)
  5758. CameraEnshaking(1,3)
  5759.  
  5760. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5761. wait(0.55)
  5762. CameraEnshaking(10,5)
  5763. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5764. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5765. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5766. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5767. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5768.  
  5769. for i = 0, 49 do
  5770.  
  5771. end
  5772. ModeOfGlitch = 666
  5773. storehumanoidWS = 16
  5774. hum.WalkSpeed = 16
  5775. rainbowmode = false
  5776. chaosmode = false
  5777. tl1.Enabled = true
  5778. tl2.Enabled = true
  5779. tl3.Enabled = true
  5780. RecolorTextAndRename("Glitched Hateful Guest",Color3.new(1,0,0),Color3.new(0.75,0,0))
  5781. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5782. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5783. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5784. for i, v in pairs(mw2:GetChildren()) do
  5785. if v:IsA("Part") then
  5786. v.BrickColor = MAINRUINCOLOR
  5787. v.Material = "Neon"
  5788. end
  5789. end
  5790. for i, v in pairs(mw1:GetChildren()) do
  5791. if v:IsA("Part") then
  5792. v.Transparency = 0
  5793. v.BrickColor = MAINRUINCOLOR
  5794. v.Material = "Neon"
  5795. end
  5796. end
  5797. for i, v in pairs(m:GetChildren()) do
  5798. if v:IsA("Part") then
  5799. v.Color = Color3.new(1,0,0)
  5800. v.Material = "Neon"
  5801. end
  5802. end
  5803. for i, v in pairs(m2:GetChildren()) do
  5804. if v:IsA("Part") then
  5805. v.Color = Color3.new(1,0,0)
  5806. v.Material = "Neon"
  5807. end
  5808. end
  5809. for i, v in pairs(m3:GetChildren()) do
  5810. if v:IsA("Part") then
  5811. v.Color = Color3.new(1,0,0)
  5812. v.Material = "Neon"
  5813. end
  5814. end
  5815. for i, v in pairs(extrawingmod1:GetChildren()) do
  5816. if v:IsA("Part") then
  5817. v.Transparency = 0
  5818. v.Color = Color3.new(1,0,0)
  5819. v.Material = "Neon"
  5820. end
  5821. end
  5822. for i, v in pairs(extrawingmod2:GetChildren()) do
  5823. if v:IsA("Part") then
  5824. v.Transparency = 0
  5825. v.Color = Color3.new(1,0,0)
  5826. v.Material = "Neon"
  5827. end
  5828. attack = false
  5829. end
  5830. elseif k == "v" and attack == false and ModeOfGlitch == 666 then
  5831. resetmode()
  5832. end
  5833. if k == "t" and attack == false and ModeOfGlitch ~= 5 then
  5834. ModeOfGlitch = 5
  5835.  
  5836. storehumanoidWS = 16
  5837. hum.WalkSpeed = 16
  5838. rainbowmode = false
  5839. chaosmode = false
  5840. RecolorTextAndRename("Guest Commando", Color3.new(0, 0, 0), Color3.new(0, 0, 0))
  5841. newTheme("rbxassetid://1377737338", 0, 0.9, 11)
  5842. ModeOfGlitch = 1
  5843. MAINRUINCOLOR = BrickColor.new("White")
  5844. for i, v in pairs(mw2:GetChildren()) do
  5845. if v:IsA("Part") then
  5846. v.BrickColor = MAINRUINCOLOR
  5847. v.Material = "Neon"
  5848. end
  5849. end
  5850. for i, v in pairs(mw1:GetChildren()) do
  5851. if v:IsA("Part") then
  5852. v.Transparency = 0
  5853. v.BrickColor = MAINRUINCOLOR
  5854. v.Material = "Neon"
  5855. end
  5856. end
  5857. for i, v in pairs(m:GetChildren()) do
  5858. if v:IsA("Part") then
  5859. v.BrickColor = BrickColor.new("Really black")
  5860. v.Material = "Ice"
  5861. end
  5862. end
  5863. for i, v in pairs(m2:GetChildren()) do
  5864. if v:IsA("Part") then
  5865. v.BrickColor = BrickColor.new("Really black")
  5866. v.Material = "Ice"
  5867. end
  5868. end
  5869. for i, v in pairs(m3:GetChildren()) do
  5870. if v:IsA("Part") then
  5871. v.BrickColor = BrickColor.new("Really black")
  5872. v.Material = "Neon"
  5873. end
  5874. end
  5875. for i, v in pairs(extrawingmod1:GetChildren()) do
  5876. if v:IsA("Part") then
  5877. v.Transparency = 0.4
  5878. v.BrickColor = BrickColor.new("Really black")
  5879. v.Material = "Neon"
  5880. end
  5881. end
  5882. for i, v in pairs(extrawingmod2:GetChildren()) do
  5883. if v:IsA("Part") then
  5884. v.Transparency = 0.4
  5885. v.BrickColor = BrickColor.new("Really black")
  5886. v.Material = "Neon"
  5887. end
  5888. end
  5889. elseif k == "t" and attack == false and ModeOfGlitch == 5 then
  5890. resetmode()
  5891. end
  5892. if k == "y" and attack == false and ModeOfGlitch ~= 6 then
  5893. ModeOfGlitch = 6
  5894. storehumanoidWS = 75
  5895. hum.WalkSpeed = 75
  5896. rainbowmode = false
  5897. chaosmode = false
  5898. RecolorTextAndRename("Justice Guest", Color3.new(0, 0, 0.1), Color3.new(0, 0, 1))
  5899. newTheme("rbxassetid://1146120545", 0, 1.2, 1)
  5900. MAINRUINCOLOR = BrickColor.new("Really black")
  5901. for i, v in pairs(mw2:GetChildren()) do
  5902. if v:IsA("Part") then
  5903. v.BrickColor = BrickColor.new("Navy blue")
  5904. v.Material = "Neon"
  5905. end
  5906. end
  5907. for i, v in pairs(mw1:GetChildren()) do
  5908. if v:IsA("Part") then
  5909. v.Transparency = 0
  5910. v.BrickColor = BrickColor.new("Deep blue")
  5911. v.Material = "Neon"
  5912. end
  5913. end
  5914. for i, v in pairs(m:GetChildren()) do
  5915. if v:IsA("Part") then
  5916. v.BrickColor = BrickColor.new("Navy blue")
  5917. v.Material = "Ice"
  5918. end
  5919. end
  5920. for i, v in pairs(m2:GetChildren()) do
  5921. if v:IsA("Part") then
  5922. v.BrickColor = BrickColor.new("Deep blue")
  5923. v.Material = "Ice"
  5924. end
  5925. end
  5926. for i, v in pairs(m3:GetChildren()) do
  5927. if v:IsA("Part") then
  5928. v.BrickColor = BrickColor.new("Navy blue")
  5929. v.Material = "Neon"
  5930. end
  5931. end
  5932. for i, v in pairs(extrawingmod1:GetChildren()) do
  5933. if v:IsA("Part") then
  5934. v.Transparency = 0.7
  5935. v.BrickColor = BrickColor.new("Deep blue")
  5936. v.Material = "Neon"
  5937. end
  5938. end
  5939. for i, v in pairs(extrawingmod2:GetChildren()) do
  5940. if v:IsA("Part") then
  5941. v.Transparency = 0.7
  5942. v.BrickColor = BrickColor.new("Navy blue")
  5943. v.Material = "Neon"
  5944. end
  5945. end
  5946.  
  5947.  
  5948. elseif k == "y" and attack == false and ModeOfGlitch == 6 then
  5949. resetmode()
  5950. end
  5951. if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
  5952. ModeOfGlitch = 6127843
  5953. storehumanoidWS = 50
  5954. hum.WalkSpeed = 50
  5955. rainbowmode = true
  5956. chaosmode = false
  5957. RecolorTextAndRename("The Last Hope", Color3.new(1, 1, 1), Color3.new(1, 1, 1))
  5958. newTheme("rbxassetid://1504604335", 0, 1.25, 1)
  5959. MAINRUINCOLOR = BrickColor.new("White")
  5960. for i, v in pairs(mw2:GetChildren()) do
  5961. if v:IsA("Part") then
  5962. v.BrickColor = MAINRUINCOLOR
  5963. v.Material = "Neon"
  5964. end
  5965. end
  5966. for i, v in pairs(mw1:GetChildren()) do
  5967. if v:IsA("Part") then
  5968. v.Transparency = 0
  5969. v.BrickColor = MAINRUINCOLOR
  5970. v.Material = "Neon"
  5971. end
  5972. end
  5973. for i, v in pairs(m:GetChildren()) do
  5974. if v:IsA("Part") then
  5975. v.BrickColor = BrickColor.new("White")
  5976. v.Material = "Neon"
  5977. end
  5978. end
  5979. for i, v in pairs(m2:GetChildren()) do
  5980. if v:IsA("Part") then
  5981. v.BrickColor = BrickColor.new("White")
  5982. v.Material = "Neon"
  5983. end
  5984. end
  5985. for i, v in pairs(m3:GetChildren()) do
  5986. if v:IsA("Part") then
  5987. v.BrickColor = BrickColor.new("White")
  5988. v.Material = "Neon"
  5989. end
  5990. end
  5991. for i, v in pairs(extrawingmod1:GetChildren()) do
  5992. if v:IsA("Part") then
  5993. v.Transparency = 1
  5994. v.BrickColor = BrickColor.new("White")
  5995. v.Material = "Neon"
  5996. end
  5997. end
  5998. for i, v in pairs(extrawingmod2:GetChildren()) do
  5999. if v:IsA("Part") then
  6000. v.Transparency = 1
  6001. v.BrickColor = BrickColor.new("White")
  6002. v.Material = "Neon"
  6003. end
  6004. end
  6005. elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
  6006. resetmode()
  6007. end
  6008. if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
  6009. ModeOfGlitch = 1000000
  6010. storehumanoidWS = 100
  6011. hum.WalkSpeed = 100
  6012. rainbowmode = false
  6013. chaosmode = false
  6014. RecolorTextAndRename("The L A S T Guest", Color3.new(0.25, 0, 1), Color3.new(0.5, 0, 1))
  6015. newTheme("rbxassetid://361039297", 0, 1.2, 1)
  6016. MAINRUINCOLOR = BrickColor.new("Navy blue")
  6017. for i, v in pairs(mw2:GetChildren()) do
  6018. if v:IsA("Part") then
  6019. v.BrickColor = MAINRUINCOLOR
  6020. v.Material = "Neon"
  6021. end
  6022. end
  6023. for i, v in pairs(mw1:GetChildren()) do
  6024. if v:IsA("Part") then
  6025. v.Transparency = 0
  6026. v.BrickColor = MAINRUINCOLOR
  6027. v.Material = "Neon"
  6028. end
  6029. end
  6030. for i, v in pairs(m:GetChildren()) do
  6031. if v:IsA("Part") then
  6032. v.Color = Color3.new(0, 0, 0.3)
  6033. v.Material = "Neon"
  6034. end
  6035. end
  6036. for i, v in pairs(m2:GetChildren()) do
  6037. if v:IsA("Part") then
  6038. v.Color = Color3.new(0, 0, 0.5)
  6039. v.Material = "Neon"
  6040. end
  6041. end
  6042. for i, v in pairs(m3:GetChildren()) do
  6043. if v:IsA("Part") then
  6044. v.Color = Color3.new(0, 0, 0.7)
  6045. v.Material = "Neon"
  6046. end
  6047. end
  6048. for i, v in pairs(extrawingmod1:GetChildren()) do
  6049. if v:IsA("Part") then
  6050. v.Transparency = 0
  6051. v.Color = Color3.new(0, 0, 0.9)
  6052. v.Material = "Neon"
  6053. end
  6054. end
  6055. for i, v in pairs(extrawingmod2:GetChildren()) do
  6056. if v:IsA("Part") then
  6057. v.Transparency = 0
  6058. v.Color = Color3.new(0.6, 0, 0)
  6059. v.Material = "Neon"
  6060. end
  6061. end
  6062. elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
  6063. resetmode()
  6064. end
  6065. if k == "m" and attack == false and ModeOfGlitch == 1000000 and ModeOfGlitch ~= 12345678987654321 then
  6066. newThemeCust("rbxassetid://1465505939",0,1,1)
  6067. attack = true
  6068. hum.WalkSpeed = 0
  6069. MAINRUINCOLOR = BrickColor.new("Crimson")
  6070. for i = 0, 24, 0.1 do
  6071. swait()
  6072. 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)
  6073. 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)
  6074. 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)
  6075. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6076. 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)
  6077. 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)
  6078. end
  6079. CameraEnshaking(1,1)
  6080.  
  6081. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  6082. wait(0.55)
  6083. CameraEnshaking(1,2)
  6084.  
  6085. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  6086. wait(0.55)
  6087. CameraEnshaking(1,3)
  6088.  
  6089. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  6090. wait(0.55)
  6091. CameraEnshaking(10,5)
  6092. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  6093. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  6094. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  6095. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  6096. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  6097.  
  6098. for i = 0, 49 do
  6099.  
  6100. end
  6101. ModeOfGlitch = 12345678987654321
  6102. storehumanoidWS = 200
  6103. hum.WalkSpeed = 200
  6104. rainbowmode = false
  6105. chaosmode = false
  6106. tl1.Enabled = true
  6107. tl2.Enabled = true
  6108. tl3.Enabled = true
  6109. RecolorTextAndRename("Guests Final Act",Color3.new(0.5,0,1),Color3.new(0.75,0,1))
  6110. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6111. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6112. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6113. for i, v in pairs(mw2:GetChildren()) do
  6114. if v:IsA("Part") then
  6115. v.BrickColor = MAINRUINCOLOR
  6116. v.Material = "Neon"
  6117. end
  6118. end
  6119. for i, v in pairs(mw1:GetChildren()) do
  6120. if v:IsA("Part") then
  6121. v.Transparency = 0
  6122. v.BrickColor = MAINRUINCOLOR
  6123. v.Material = "Neon"
  6124. end
  6125. end
  6126. for i, v in pairs(m:GetChildren()) do
  6127. if v:IsA("Part") then
  6128. v.Color = Color3.new(0.5,0,1)
  6129. v.Material = "Neon"
  6130. end
  6131. end
  6132. for i, v in pairs(m2:GetChildren()) do
  6133. if v:IsA("Part") then
  6134. v.Color = Color3.new(0.5,0,1)
  6135. v.Material = "Neon"
  6136. end
  6137. end
  6138. for i, v in pairs(m3:GetChildren()) do
  6139. if v:IsA("Part") then
  6140. v.Color = Color3.new(0.5,0,1)
  6141. v.Material = "Neon"
  6142. end
  6143. end
  6144. for i, v in pairs(extrawingmod1:GetChildren()) do
  6145. if v:IsA("Part") then
  6146. v.Transparency = 0
  6147. v.Color = Color3.new(0.5,0,1)
  6148. v.Material = "Neon"
  6149. end
  6150. end
  6151. for i, v in pairs(extrawingmod2:GetChildren()) do
  6152. if v:IsA("Part") then
  6153. v.Transparency = 0
  6154. v.Color = Color3.new(0.5,0,1)
  6155. v.Material = "Neon"
  6156. end
  6157. attack = false
  6158. end
  6159. elseif k == "m" and attack == false and ModeOfGlitch == 12345678987654321 then
  6160. resetmode()
  6161. end
  6162. if k == "h" and attack == false and ModeOfGlitch ~= 1000000 then
  6163. ModeOfGlitch = 1000000
  6164. storehumanoidWS = 100
  6165. hum.WalkSpeed = 100
  6166. rainbowmode = false
  6167. chaosmode = false
  6168. RecolorTextAndRename("The Godly Guest", Color3.new(85, 25, 1), Color3.new(26, 27, 60))
  6169. newTheme("rbxassetid://614032233", 0, 1.2, 1)
  6170. MAINRUINCOLOR = BrickColor.new("Crimson")
  6171. for i, v in pairs(mw2:GetChildren()) do
  6172. if v:IsA("Part") then
  6173. v.BrickColor = MAINRUINCOLOR
  6174. v.Material = "Neon"
  6175. end
  6176. end
  6177. for i, v in pairs(mw1:GetChildren()) do
  6178. if v:IsA("Part") then
  6179. v.Transparency = 0
  6180. v.BrickColor = MAINRUINCOLOR
  6181. v.Material = "Neon"
  6182. end
  6183. end
  6184. for i, v in pairs(m:GetChildren()) do
  6185. if v:IsA("Part") then
  6186. v.Color = Color3.new(0, 0, 0.6)
  6187. v.Material = "Neon"
  6188. end
  6189. end
  6190. for i, v in pairs(m2:GetChildren()) do
  6191. if v:IsA("Part") then
  6192. v.Color = Color3.new(0, 0, 0.5)
  6193. v.Material = "Neon"
  6194. end
  6195. end
  6196. for i, v in pairs(m3:GetChildren()) do
  6197. if v:IsA("Part") then
  6198. v.Color = Color3.new(0, 0, 0.7)
  6199. v.Material = "Neon"
  6200. end
  6201. end
  6202. for i, v in pairs(extrawingmod1:GetChildren()) do
  6203. if v:IsA("Part") then
  6204. v.Transparency = 0
  6205. v.Color = Color3.new(0, 0, 0.9)
  6206. v.Material = "Neon"
  6207. end
  6208. end
  6209. for i, v in pairs(extrawingmod2:GetChildren()) do
  6210. if v:IsA("Part") then
  6211. v.Transparency = 0
  6212. v.Color = Color3.new(0.6, 0, 0)
  6213. v.Material = "Neon"
  6214. end
  6215. end
  6216. elseif k == "h" and attack == false and ModeOfGlitch == 1000000 then
  6217. resetmode()
  6218. end
  6219. if k == "n" and attack == false and ModeOfGlitch ~= 3 then
  6220. ModeOfGlitch = 2
  6221. storehumanoidWS = 16
  6222. hum.WalkSpeed = 60
  6223. rainbowmode = false
  6224. chaosmode = false
  6225. RecolorTextAndRename("Silly Guest", Color3.new(0.4, 0, 0), Color3.new(0, 0, 0.4))
  6226. newTheme("rbxassetid://621367124", 58.15, 1.2,2)
  6227. MAINRUINCOLOR = BrickColor.new("Navy blue")
  6228. for i, v in pairs(mw2:GetChildren()) do
  6229. if v:IsA("Part") then
  6230. v.BrickColor = MAINRUINCOLOR
  6231. v.Material = "Neon"
  6232. end
  6233. end
  6234. for i, v in pairs(mw1:GetChildren()) do
  6235. if v:IsA("Part") then
  6236. v.Transparency = 0
  6237. v.BrickColor = MAINRUINCOLOR
  6238. v.Material = "Neon"
  6239. end
  6240. end
  6241. for i, v in pairs(m:GetChildren()) do
  6242. if v:IsA("Part") then
  6243. v.BrickColor = BrickColor.new("Black")
  6244. v.Material = "Ice"
  6245. end
  6246. end
  6247. for i, v in pairs(m2:GetChildren()) do
  6248. if v:IsA("Part") then
  6249. v.BrickColor = BrickColor.new("Navy blue")
  6250. v.Material = "Glass"
  6251. end
  6252. end
  6253. for i, v in pairs(m3:GetChildren()) do
  6254. if v:IsA("Part") then
  6255. v.BrickColor = BrickColor.new("Navy blue")
  6256. v.Material = "Neon"
  6257. end
  6258. end
  6259. for i, v in pairs(extrawingmod1:GetChildren()) do
  6260. if v:IsA("Part") then
  6261. v.Transparency = 0
  6262. v.BrickColor = BrickColor.new("Royal blue")
  6263. v.Material = "Neon"
  6264. end
  6265. end
  6266. for i, v in pairs(extrawingmod2:GetChildren()) do
  6267. if v:IsA("Part") then
  6268. v.Transparency = 0
  6269. v.BrickColor = BrickColor.new("White")
  6270. v.Material = "Neon"
  6271. end
  6272. end
  6273. elseif k == "n" and attack == false and ModeOfGlitch == 3 then
  6274. resetmode()
  6275. end
  6276. if k == "f" and attack == false and ModeOfGlitch ~= 5 then
  6277. ModeOfGlitch = 5
  6278.  
  6279. storehumanoidWS = 16
  6280. hum.WalkSpeed = 16
  6281. rainbowmode = false
  6282. chaosmode = false
  6283. RecolorTextAndRename("Distorted Guest", Color3.new(0, 0, 0.1), Color3.new(1, 1, 1))
  6284. newTheme("rbxassetid://660801673", 10, 1.1, 3.2)
  6285. ModeOfGlitch = 1
  6286. MAINRUINCOLOR = BrickColor.new("Crimson")
  6287. for i, v in pairs(mw2:GetChildren()) do
  6288. if v:IsA("Part") then
  6289. v.BrickColor = MAINRUINCOLOR
  6290. v.Material = "Neon"
  6291. end
  6292. end
  6293. for i, v in pairs(mw1:GetChildren()) do
  6294. if v:IsA("Part") then
  6295. v.Transparency = 0
  6296. v.BrickColor = MAINRUINCOLOR
  6297. v.Material = "Neon"
  6298. end
  6299. end
  6300. for i, v in pairs(m:GetChildren()) do
  6301. if v:IsA("Part") then
  6302. v.BrickColor = BrickColor.new("Black")
  6303. v.Material = "Ice"
  6304. end
  6305. end
  6306. for i, v in pairs(m2:GetChildren()) do
  6307. if v:IsA("Part") then
  6308. v.BrickColor = BrickColor.new("Really black")
  6309. v.Material = "Ice"
  6310. end
  6311. end
  6312. for i, v in pairs(m3:GetChildren()) do
  6313. if v:IsA("Part") then
  6314. v.BrickColor = BrickColor.new("Really black")
  6315. v.Material = "Neon"
  6316. end
  6317. end
  6318. for i, v in pairs(extrawingmod1:GetChildren()) do
  6319. if v:IsA("Part") then
  6320. v.Transparency = 0.4
  6321. v.BrickColor = BrickColor.new("Dark stone gray")
  6322. v.Material = "Neon"
  6323. end
  6324. end
  6325. for i, v in pairs(extrawingmod2:GetChildren()) do
  6326. if v:IsA("Part") then
  6327. v.Transparency = 0.9
  6328. v.BrickColor = BrickColor.new("Dark stone gray")
  6329. v.Material = "Neon"
  6330. end
  6331. end
  6332. elseif k == "f" and attack == false and ModeOfGlitch == 5 then
  6333. resetmode()
  6334. end
  6335. if k == "g" and attack == false and ModeOfGlitch ~= 4 then
  6336. ModeOfGlitch = 4
  6337. storehumanoidWS = 16
  6338. hum.WalkSpeed = 18
  6339. rainbowmode = false
  6340. chaosmode = false
  6341. RecolorTextAndRename("Solar Guest", Color3.new(0, 0, 0), BrickColor.random().Color)
  6342. newTheme("rbxassetid://486598641", 0, 0.8, 10)
  6343. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  6344. for i, v in pairs(mw2:GetChildren()) do
  6345. if v:IsA("Part") then
  6346. v.BrickColor = MAINRUINCOLOR
  6347. v.Material = "Neon"
  6348. end
  6349. end
  6350. for i, v in pairs(mw1:GetChildren()) do
  6351. if v:IsA("Part") then
  6352. v.Transparency = 0.75
  6353. v.BrickColor = BrickColor.random()
  6354. v.Material = "Neon"
  6355. end
  6356. end
  6357. for i, v in pairs(m:GetChildren()) do
  6358. if v:IsA("Part") then
  6359. v.BrickColor = BrickColor.new("White")
  6360. v.Material = "Neon"
  6361. end
  6362. end
  6363. for i, v in pairs(m2:GetChildren()) do
  6364. if v:IsA("Part") then
  6365. v.BrickColor = BrickColor.random()
  6366. v.Material = "Neon"
  6367. end
  6368. end
  6369. for i, v in pairs(m3:GetChildren()) do
  6370. if v:IsA("Part") then
  6371. v.BrickColor = BrickColor.new("Really red")
  6372. v.Material = "Neon"
  6373. end
  6374. end
  6375. for i, v in pairs(extrawingmod1:GetChildren()) do
  6376. if v:IsA("Part") then
  6377. v.Transparency = 0.6
  6378. v.BrickColor = BrickColor.new("Bright yellow")
  6379. v.Material = "Neon"
  6380. end
  6381. end
  6382. for i, v in pairs(extrawingmod2:GetChildren()) do
  6383. if v:IsA("Part") then
  6384. v.Transparency = 0.6
  6385. v.BrickColor = BrickColor.new("Bright yellow")
  6386. v.Material = "Neon"
  6387. end
  6388. end
  6389. elseif k == "g" and attack == false and ModeOfGlitch == 4 then
  6390. resetmode()
  6391. end
  6392. if k == "j" and attack == false and ModeOfGlitch ~= 5 then
  6393. ModeOfGlitch = 5
  6394.  
  6395. storehumanoidWS = 16
  6396. hum.WalkSpeed = 80
  6397. rainbowmode = false
  6398. chaosmode = false
  6399. RecolorTextAndRename("Ultra Instinct Guest", Color3.new(0, 0, 0.1), Color3.new(1, 1, 1))
  6400. newTheme("rbxassetid://1870463259", 10, 1.1, 3.2)
  6401. ModeOfGlitch = 1
  6402. MAINRUINCOLOR = BrickColor.new("White")
  6403. for i, v in pairs(mw2:GetChildren()) do
  6404. if v:IsA("Part") then
  6405. v.BrickColor = MAINRUINCOLOR
  6406. v.Material = "Neon"
  6407. end
  6408. end
  6409. for i, v in pairs(mw1:GetChildren()) do
  6410. if v:IsA("Part") then
  6411. v.Transparency = 0
  6412. v.BrickColor = MAINRUINCOLOR
  6413. v.Material = "Neon"
  6414. end
  6415. end
  6416. for i, v in pairs(m:GetChildren()) do
  6417. if v:IsA("Part") then
  6418. v.BrickColor = BrickColor.new("White")
  6419. v.Material = "Ice"
  6420. end
  6421. end
  6422. for i, v in pairs(m2:GetChildren()) do
  6423. if v:IsA("Part") then
  6424. v.BrickColor = BrickColor.new("Pearl")
  6425. v.Material = "Ice"
  6426. end
  6427. end
  6428. for i, v in pairs(m3:GetChildren()) do
  6429. if v:IsA("Part") then
  6430. v.BrickColor = BrickColor.new("Pearl")
  6431. v.Material = "Neon"
  6432. end
  6433. end
  6434. for i, v in pairs(extrawingmod1:GetChildren()) do
  6435. if v:IsA("Part") then
  6436. v.Transparency = 0.4
  6437. v.BrickColor = BrickColor.new("White")
  6438. v.Material = "Neon"
  6439. end
  6440. end
  6441. for i, v in pairs(extrawingmod2:GetChildren()) do
  6442. if v:IsA("Part") then
  6443. v.Transparency = 0.9
  6444. v.BrickColor = BrickColor.new("White")
  6445. v.Material = "Neon"
  6446. end
  6447. end
  6448. elseif k == "j" and attack == false and ModeOfGlitch == 5 then
  6449. resetmode()
  6450. end
  6451. if k == "k" and attack == false and ModeOfGlitch ~= 1000000 then
  6452. ModeOfGlitch = 1000000
  6453. storehumanoidWS = 100
  6454. hum.WalkSpeed = 150
  6455. rainbowmode = false
  6456. chaosmode = false
  6457. RecolorTextAndRename("Chaotic Guest", Color3.new(117, 0, 0), Color3.new(117, 0, 0))
  6458. newTheme("rbxassetid://1494452913", 1.1, 1, 1)
  6459. MAINRUINCOLOR = BrickColor.new("Really red")
  6460. for i, v in pairs(mw2:GetChildren()) do
  6461. if v:IsA("Part") then
  6462. v.BrickColor = MAINRUINCOLOR
  6463. v.Material = "Neon"
  6464. end
  6465. end
  6466. for i, v in pairs(mw1:GetChildren()) do
  6467. if v:IsA("Part") then
  6468. v.Transparency = 0
  6469. v.BrickColor = MAINRUINCOLOR
  6470. v.Material = "Neon"
  6471. end
  6472. end
  6473. for i, v in pairs(m:GetChildren()) do
  6474. if v:IsA("Part") then
  6475. v.Color = Color3.new(117, 0, 0)
  6476. v.Material = "Neon"
  6477. end
  6478. end
  6479. for i, v in pairs(m2:GetChildren()) do
  6480. if v:IsA("Part") then
  6481. v.Color = Color3.new(117, 0, 0)
  6482. v.Material = "Neon"
  6483. end
  6484. end
  6485. for i, v in pairs(m3:GetChildren()) do
  6486. if v:IsA("Part") then
  6487. v.Color = Color3.new(117, 0, 0)
  6488. v.Material = "Neon"
  6489. end
  6490. end
  6491. for i, v in pairs(extrawingmod1:GetChildren()) do
  6492. if v:IsA("Part") then
  6493. v.Transparency = 0
  6494. v.Color = Color3.new(0, 0, 0.0)
  6495. v.Material = "Neon"
  6496. end
  6497. end
  6498. for i, v in pairs(extrawingmod2:GetChildren()) do
  6499. if v:IsA("Part") then
  6500. v.Transparency = 0
  6501. v.Color = Color3.new(0, 0, 0)
  6502. v.Material = "Neon"
  6503. end
  6504. end
  6505. elseif k == "k" and attack == false and ModeOfGlitch == 1000000 then
  6506. resetmode()
  6507. end
  6508. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 666 then
  6509. newThemeCust("rbxassetid://2087122866",0,1,1)
  6510. attack = true
  6511. hum.WalkSpeed = 0
  6512. MAINRUINCOLOR = BrickColor.new("Crimson")
  6513. for i = 0, 24, 0.1 do
  6514. swait()
  6515. 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)
  6516. 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)
  6517. 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)
  6518. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6519. 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)
  6520. 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)
  6521. end
  6522. CameraEnshaking(1,1)
  6523.  
  6524. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  6525. wait(0.55)
  6526. CameraEnshaking(1,2)
  6527.  
  6528. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  6529. wait(0.55)
  6530. CameraEnshaking(1,3)
  6531.  
  6532. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  6533. wait(0.55)
  6534. CameraEnshaking(10,5)
  6535. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  6536. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  6537. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  6538. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  6539. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  6540.  
  6541. for i = 0, 49 do
  6542.  
  6543. end
  6544. ModeOfGlitch = 666
  6545. storehumanoidWS = 16
  6546. hum.WalkSpeed = 16
  6547. rainbowmode = false
  6548. chaosmode = false
  6549. tl1.Enabled = true
  6550. tl2.Enabled = true
  6551. tl3.Enabled = true
  6552. RecolorTextAndRename("Destruction G U E S T",Color3.new(1,0,0),Color3.new(0.75,0,0))
  6553. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6554. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6555. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6556. for i, v in pairs(mw2:GetChildren()) do
  6557. if v:IsA("Part") then
  6558. v.BrickColor = MAINRUINCOLOR
  6559. v.Material = "Neon"
  6560. end
  6561. end
  6562. for i, v in pairs(mw1:GetChildren()) do
  6563. if v:IsA("Part") then
  6564. v.Transparency = 0
  6565. v.BrickColor = MAINRUINCOLOR
  6566. v.Material = "Neon"
  6567. end
  6568. end
  6569. for i, v in pairs(m:GetChildren()) do
  6570. if v:IsA("Part") then
  6571. v.Color = Color3.new(1,0,0)
  6572. v.Material = "Neon"
  6573. end
  6574. end
  6575. for i, v in pairs(m2:GetChildren()) do
  6576. if v:IsA("Part") then
  6577. v.Color = Color3.new(1,0,0)
  6578. v.Material = "Neon"
  6579. end
  6580. end
  6581. for i, v in pairs(m3:GetChildren()) do
  6582. if v:IsA("Part") then
  6583. v.Color = Color3.new(1,0,0)
  6584. v.Material = "Neon"
  6585. end
  6586. end
  6587. for i, v in pairs(extrawingmod1:GetChildren()) do
  6588. if v:IsA("Part") then
  6589. v.Transparency = 0
  6590. v.Color = Color3.new(1,0,0)
  6591. v.Material = "Neon"
  6592. end
  6593. end
  6594. for i, v in pairs(extrawingmod2:GetChildren()) do
  6595. if v:IsA("Part") then
  6596. v.Transparency = 0
  6597. v.Color = Color3.new(1,0,0)
  6598. v.Material = "Neon"
  6599. end
  6600. attack = false
  6601. end
  6602. elseif k == "b" and attack == false and ModeOfGlitch == 666 then
  6603. resetmode()
  6604. end
  6605. if k == "l" and toggleTag == true then
  6606. toggleTag = true
  6607. text.TextTransparency = 0
  6608. text.TextStrokeTransparency = 0
  6609. elseif k == "l" and toggleTag == true then
  6610. toggleTag = false
  6611. text.TextTransparency = 0.2
  6612. text.TextStrokeTransparency = 0.2
  6613. end
  6614. if k == "z" and attack == false and ModeOfGlitch == 1 then
  6615. ExtinctiveHeartbreak()
  6616. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  6617. PureBomb()
  6618. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  6619. scattercorrupt()
  6620. wait(5)
  6621. ChaosGroundStrike()
  6622. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  6623. ChaosGroundStrike()
  6624. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  6625. ExtinctiveHeartBreak()
  6626. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  6627. UniversalSpark()
  6628. elseif k == "m" and attack == false and ModeOfGlitch == 1000000 then
  6629. scattercorrupt()
  6630. wait(1)
  6631. yinyangi()
  6632. elseif k == "m" and attack == false and ModeOfGlitch == 5 then
  6633. scattercorrupt()
  6634. if k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed < 200 then
  6635. hum.WalkSpeed = 16 + 184
  6636. elseif k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed == 200 then
  6637. hum.WalkSpeed = 200 - 184
  6638. end
  6639. if k == "z" and attack == false and ModeOfGlitch == 666 then
  6640. StarDivision()
  6641. end
  6642. if k == "x" and attack == false and ModeOfGlitch == 666 then
  6643. Starfall()
  6644. end
  6645. if k == "v" and attack == false and ModeOfGlitch == 12345678987654321 then
  6646. UniversalCollapse()
  6647. end
  6648. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  6649. yinyangi()
  6650. elseif k == "b" and attack == false and ModeOfGlitch == 5 then
  6651. Wip()
  6652. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  6653. Wip()
  6654. elseif k == "x" and attack == false and ModeOfGlitch == 1000000 then
  6655. ChaosBegone()
  6656. wait(5)
  6657. ChaosGroundStrike()
  6658.  
  6659. end
  6660. if k == "m" and attack == false and ModeOfGlitch == 4 then
  6661. ChaosBegone()
  6662. end
  6663. end)
  6664. coroutine.resume(coroutine.create(function()
  6665. while true do
  6666. swait(2)
  6667. if rainbowmode == true or ModeOfGlitch == 6 then
  6668. sphereMK(5, 0.15, "Add", root.CFrame * CFrame.new(math.random(-5, 5), -6, math.random(-5, 5)) * CFrame.Angles(math.rad(90), 0, 0), 1.5, 1.5, 10, -0.015, MAINRUINCOLOR, 0)
  6669. end
  6670. end
  6671. end))
  6672. coroutine.resume(coroutine.create(function()
  6673. while true do
  6674. swait(0.5)
  6675. if ModeOfGlitch == 1000000 then
  6676. sphereMK(5, 0.5, "Add", root.CFrame * CFrame.new(math.random(-25, 25), -10, math.random(-25, 25)) * CFrame.Angles(math.rad(90 + math.random(-15, 15)), math.rad(math.random(-15, 15)), 0), 1, 1, 15, -0.01, MAINRUINCOLOR, 0)
  6677. end
  6678. end
  6679. end))
  6680. coroutine.resume(coroutine.create(function()
  6681. while true do
  6682. swait(2)
  6683. if rainbowmode == true or ModeOfGlitch == 6 then
  6684. if eff == true then
  6685. sphereMK(5,0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),-6,math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),1.5,1.5,10,-0.015,MAINRUINCOLOR,0)
  6686. end
  6687. end
  6688. end
  6689. end))
  6690. coroutine.resume(coroutine.create(function()
  6691. while true do
  6692. swait(2)
  6693. if shielding == true then
  6694. end
  6695. end
  6696. end))
  6697.  
  6698.  
  6699. coroutine.resume(coroutine.create(function()
  6700. while true do
  6701. swait(2)
  6702. if chaosmode == true then
  6703. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  6704. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  6705. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  6706. RecolorTextAndRename("cOrRuPteD gUEsT",Color3.new(0,0,0),BrickColor.random().Color)
  6707. for i, v in pairs(mw1:GetChildren()) do
  6708. if v:IsA("Part") then
  6709. v.Transparency = 0.75
  6710. v.BrickColor = BrickColor.random()
  6711. v.Material = "Neon"
  6712. end
  6713. end
  6714. for i, v in pairs(m2:GetChildren()) do
  6715. if v:IsA("Part") then
  6716. v.BrickColor = BrickColor.random()
  6717. v.Material = "Neon"
  6718. end
  6719. end
  6720. for i, v in pairs(secondchar:GetChildren()) do
  6721. if v:IsA("Part") then
  6722. v.BrickColor = BrickColor.random()
  6723. v.Material = "Neon"
  6724. end
  6725. end
  6726. end
  6727. end
  6728. end))
  6729. Humanoid.Name = "GUESTGLITCHER"
  6730. Humanoid.MaxHealth = math.huge
  6731. Humanoid.Health = math.huge
  6732. Instance.new("ForceField",char).Visible = false
  6733. Humanoid.Animator.Parent = nil
  6734. idleanim=.4
  6735. while true do
  6736. if rainbowmode == false then
  6737. tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6738. tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6739. tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6740. for i, v in pairs(secondchar:GetChildren()) do
  6741. if v:IsA("Part") then
  6742. v.BrickColor = MAINRUINCOLOR
  6743. v.Material = "Neon"
  6744. end
  6745. end
  6746. if chaosmode == false then
  6747. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6748. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6749. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6750. for i, v in pairs(secondchar:GetChildren()) do
  6751. if v:IsA("Part") then
  6752. v.BrickColor = MAINRUINCOLOR
  6753. v.Material = "Neon"
  6754. end
  6755. end
  6756. end
  6757. end
  6758. if rainbowmode == true then
  6759. RecolorTextAndRename("Hopeful Guest",Color3.new(r/255,g/255,b/255),Color3.new(r/500,g/500,b/500))
  6760. MAINRUINCOLOR = BrickColor.new("White")
  6761. tr1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6762. tr2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6763. tr3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6764. tl1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6765. tl2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6766. tl3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6767. for i, v in pairs(m:GetChildren()) do
  6768. if v:IsA("Part") then
  6769. v.Color = Color3.new(r/255,g/255,b/255)
  6770. end
  6771. end
  6772. for i, v in pairs(m2:GetChildren()) do
  6773. if v:IsA("Part") then
  6774. v.Color = Color3.new(r/255,g/255,b/255)
  6775. end
  6776. end
  6777. for i, v in pairs(secondchar:GetChildren()) do
  6778. if v:IsA("Part") then
  6779. v.Color = Color3.new(r/255,g/255,b/255)
  6780. v.Material = "Neon"
  6781. end
  6782. end
  6783. for i, v in pairs(m3:GetChildren()) do
  6784. if v:IsA("Part") then
  6785. v.Color = Color3.new(r/255,g/255,b/255)
  6786. end
  6787. end
  6788. for i, v in pairs(mw1:GetChildren()) do
  6789. if v:IsA("Part") then
  6790. v.Color = Color3.new(r/255,g/255,b/255)
  6791. v.Material = "Neon"
  6792. end
  6793. end
  6794. for i, v in pairs(mw2:GetChildren()) do
  6795. if v:IsA("Part") then
  6796. v.Color = Color3.new(r/255,g/255,b/255)
  6797. v.Material = "Neon"
  6798. end
  6799. end
  6800. end
  6801. CameraManager()
  6802. swait()
  6803. 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)
  6804. 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)
  6805. 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)
  6806. 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)
  6807. 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)
  6808. 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)
  6809.  
  6810. if attack == false and ActiveGia == false then
  6811. torsweld.C1=clerp(torsweld.C1,cf(2,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6812. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  6813. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  6814. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6815. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6816. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  6817. elseif attack == false and ActiveGia == true then
  6818. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  6819. torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
  6820. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(20)),0.025)
  6821. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),0.025)
  6822. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6823. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6824. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  6825. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6826. torsweld.C1=clerp(torsweld.C1,cf(0,-25 + 0.5 * math.cos(sine / 32) ,-8)*angles(math.rad(20),math.rad(0),math.rad(0)),.025)
  6827. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(20)),0.025)
  6828. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),0.025)
  6829. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,1.5*8,0.6*8)*angles(math.rad(20),math.rad(0),math.rad(0)),0.025)
  6830. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0.11*8)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  6831. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(5),math.rad(0),math.rad(0)),0.025)
  6832. end
  6833. end
  6834.  
  6835. 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)
  6836. 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)
  6837. 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)
  6838. 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)
  6839. 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)
  6840. 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)
  6841. sine = sine + change
  6842. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  6843. local velderp=RootPart.Velocity.y
  6844. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  6845. if equipped==true or equipped==false then
  6846. if attack==false then
  6847. idle=idle+1
  6848. else
  6849. idle=0
  6850. end
  6851. if idle>=500 then
  6852. if attack==false then
  6853. --Sheath()
  6854. end
  6855. end
  6856. if RootPart.Velocity.y > 1 and hitfloor==nil then
  6857. Anim="Jump"
  6858. if attack==false then
  6859. 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(-5),math.rad(0),math.rad(-20)),.1)
  6860. 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)
  6861. 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)
  6862. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  6863. 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)
  6864. 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)
  6865. end
  6866. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  6867. Anim="Fall"
  6868. if attack==false then
  6869. 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(-5),math.rad(0),math.rad(-20)),.1)
  6870. 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)
  6871. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6872. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6873. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1)
  6874. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1)
  6875. end
  6876. elseif torvel<1 and hitfloor~=nil then
  6877. Anim="Idle"
  6878. if attack==false then
  6879. if ModeOfGlitch == 1 then
  6880. 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(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  6881. 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(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  6882. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  6883. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2.5 * math.cos(sine / 32)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(-20 - 5 * math.cos(sine / 0.465))),.1)
  6884. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1)
  6885. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  6886.  
  6887. elseif ModeOfGlitch == 666 then
  6888. 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(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  6889. 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(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  6890. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  6891. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6892. 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)
  6893. 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)
  6894.  
  6895. elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then
  6896. 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(-7.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  6897. 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)
  6898. 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)
  6899. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  6900. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  6901. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  6902.  
  6903. elseif ModeOfGlitch == 3 then
  6904. 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)
  6905. 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(20),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  6906. 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(-20)),.1)
  6907. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1)
  6908. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1)
  6909. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  6910.  
  6911. elseif ModeOfGlitch == 4 then
  6912. RH.C0=clerp(RH.C0,cf(1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(20)),.1)
  6913. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-20)),.1)
  6914. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.025 * math.cos(sine / 32))*angles(math.rad(20 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  6915. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 - 5 * math.cos(sine / 0.465))),.1)
  6916. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6))),.1)
  6917. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23))),.1)
  6918.  
  6919. elseif ModeOfGlitch == 5 then
  6920. 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)
  6921. 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)
  6922. 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)
  6923. 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)
  6924. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(-30)),.1)
  6925. 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)
  6926.  
  6927. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  6928. 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)
  6929. 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)
  6930. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  6931. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  6932. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(20 + 2.5 * math.cos(sine / 28))),.1)
  6933. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-20 - 2.5 * math.cos(sine / 28))),.1)
  6934.  
  6935. elseif ModeOfGlitch == 12345678987654321 then
  6936. 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)
  6937. 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)
  6938. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-40)),.1)
  6939. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1)
  6940. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  6941. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  6942. end
  6943. end
  6944. elseif torvel>2 and torvel<50 and hitfloor~=nil then
  6945. Anim="Walk"
  6946. if attack==false then
  6947. if ModeOfGlitch == 1 then
  6948. RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 4))*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 + 25 * math.cos(sine / 8))),.1)
  6949. LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 4))*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 + 25 * math.cos(sine / 8))),.1)
  6950. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1)
  6951. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 5 * math.cos(sine / 0.325)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 + 5 * math.cos(sine / 8))),.1)
  6952. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1)
  6953. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  6954.  
  6955. elseif ModeOfGlitch == 4 or ModeOfGlitch == 666 then
  6956. RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 8))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 12)),math.rad(5 + 25 * math.cos(sine / 12))),.1)
  6957. LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 8))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 12)),math.rad(-5 + 25 * math.cos(sine / 12))),.1)
  6958. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 8))*angles(math.rad(12.5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 12))),.1)
  6959. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 - 5 * math.cos(sine / 0.465))),.1)
  6960. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 - 15 * math.cos(sine / 12)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6))),.1)
  6961. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 15 * math.cos(sine / 12)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23))),.1)
  6962.  
  6963. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 or ModeOfGlitch ~= 666 then
  6964. RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 4))*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 + 25 * math.cos(sine / 8))),.1)
  6965. LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 4))*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 + 25 * math.cos(sine / 8))),.1)
  6966. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1)
  6967. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 5 * math.cos(sine / 8))),.1)
  6968. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1)
  6969. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 45 * math.cos(sine / 8)),math.rad(0),math.rad(-10 + 10 * math.cos(sine / 4))),.1)
  6970. end
  6971. end
  6972. elseif torvel>=22 and hitfloor~=nil then
  6973. Anim="Run"
  6974. if attack==false then
  6975. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  6976. RH.C0=clerp(RH.C0,cf(1,-0.75 - 0.25 * math.cos(sine / 3),-0.25 - 0.25 * math.cos(sine / 3))*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)
  6977. LH.C0=clerp(LH.C0,cf(-1,-0.75 + 0.25 * math.cos(sine / 3),-0.25 + 0.25 * math.cos(sine / 3))*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)
  6978. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + 0.125 * math.cos(sine / 3))*angles(math.rad(20),math.rad(0),math.rad(0 - 15 * math.cos(sine / 6))),.1)
  6979. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 15 * math.cos(sine / 6))),.1)
  6980. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 155 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 3))),.1)
  6981. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 155 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1)
  6982. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6983. 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)
  6984. 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)
  6985. 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)
  6986. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  6987. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30 + 2.5 * math.cos(sine / 28))),.2)
  6988. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-30 - 2.5 * math.cos(sine / 28))),.2)
  6989. end
  6990. end
  6991. end
  6992. end
  6993. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement