Advertisement
Vintage-Furry

N O B O D U

Sep 7th, 2018
904
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 231.05 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. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1893. for _, c in pairs(workspace:children()) do
  1894. local hum = c:findFirstChild("Humanoid")
  1895. if hum ~= nil then
  1896. local head = c:findFirstChild("Torso")
  1897. if head ~= nil then
  1898. local targ = head.Position - Part.Position
  1899. local mag = targ.magnitude
  1900. if magni >= mag and c.Name ~= Player.Name then
  1901. MagicBlock(BrickColor.new("Pastel light blue"), head.CFrame, 5, 5, 5, 1, 1, 1, 0.05)
  1902. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1903. end
  1904. end
  1905. end
  1906. end
  1907. end
  1908. function rayCast(Pos, Dir, Max, Ignore)
  1909. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1910. end
  1911. function SkullEffect(brickcolor, cframe, x1, y1, z1, delay)
  1912. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1913. prt.Anchored = true
  1914. prt.CFrame = cframe
  1915. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1))
  1916. game:GetService("Debris"):AddItem(prt, 2)
  1917. CF = prt.CFrame
  1918. coroutine.resume(coroutine.create(function(Part, Mesh, TehCF)
  1919. for i = 0, 1, 0.2 do
  1920. wait()
  1921. Part.CFrame = CF * cf(0, 0, -0.4)
  1922. end
  1923. for i = 0, 1, delay do
  1924. wait()
  1925. Mesh.Scale = Mesh.Scale
  1926. end
  1927. for i = 0, 1, 0.1 do
  1928. wait()
  1929. Part.Transparency = i
  1930. end
  1931. Part.Parent = nil
  1932. end), prt, msh, CF)
  1933. end
  1934. function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1935. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1936. prt.Anchored = true
  1937. prt.Material = "Neon"
  1938. prt.CFrame = cframe
  1939. prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1940. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1941. game:GetService("Debris"):AddItem(prt, 5)
  1942. coroutine.resume(coroutine.create(function(Part, Mesh)
  1943. for i = 0, 1, delay do
  1944. swait()
  1945. Part.CFrame = Part.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1946. Part.Transparency = i
  1947. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1948. end
  1949. Part.Parent = nil
  1950. end), prt, msh)
  1951. end
  1952. function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  1953. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1954. prt.Anchored = true
  1955. prt.Material = "Neon"
  1956. prt.CFrame = cframe
  1957. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1958. game:GetService("Debris"):AddItem(prt, 5)
  1959. coroutine.resume(coroutine.create(function(Part, Mesh)
  1960. local rtype = rottype
  1961. for i = 0, 1, delay do
  1962. swait()
  1963. if rtype == 1 then
  1964. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  1965. elseif rtype == 2 then
  1966. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  1967. end
  1968. Part.Transparency = i
  1969. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1970. end
  1971. Part.Parent = nil
  1972. end), prt, msh)
  1973. end
  1974. function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1975. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1976. prt.Anchored = true
  1977. prt.CFrame = cframe
  1978. prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1979. msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1980. game:GetService("Debris"):AddItem(prt, 5)
  1981. coroutine.resume(coroutine.create(function(Part, Mesh)
  1982. for i = 0, 1, delay do
  1983. wait()
  1984. Part.Transparency = i
  1985. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1986. end
  1987. Part.Parent = nil
  1988. end), prt, msh)
  1989. end
  1990. function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  1991. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1992. prt.Anchored = true
  1993. prt.Material = "Neon"
  1994. prt.CFrame = cframe
  1995. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1996. game:GetService("Debris"):AddItem(prt, 5)
  1997. coroutine.resume(coroutine.create(function(Part, Mesh)
  1998. local rtype = rottype
  1999. for i = 0, 1, delay do
  2000. swait()
  2001. if rtype == 1 then
  2002. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  2003. elseif rtype == 2 then
  2004. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  2005. end
  2006. Part.Transparency = i
  2007. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2008. end
  2009. Part.Parent = nil
  2010. end), prt, msh)
  2011. end
  2012. function MagicShock(brickcolor, cframe, x1, y1, x3, y3, delay, rottype)
  2013. local prt = part(3, char, 1, 1, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2014. prt.Anchored = true
  2015. prt.Material = "Neon"
  2016. prt.CFrame = cframe
  2017. local dec = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt)
  2018. local dec2 = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt)
  2019. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
  2020. game:GetService("Debris"):AddItem(prt, 5)
  2021. coroutine.resume(coroutine.create(function(Part, Mesh)
  2022. local rtype = rottype
  2023. for i = 0, 1, delay do
  2024. swait()
  2025. if rtype == 1 then
  2026. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  2027. elseif rtype == 2 then
  2028. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  2029. end
  2030. dec.Transparency = i
  2031. dec2.Transparency = i
  2032. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  2033. end
  2034. Part.Parent = nil
  2035. end), prt, msh)
  2036. end
  2037. function MagicShockAlt(brickcolor, cframe, x1, y1, x3, y3, delay, rottype)
  2038. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2039. prt.Anchored = true
  2040. prt.Material = "Neon"
  2041. prt.CFrame = cframe
  2042. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
  2043. game:GetService("Debris"):AddItem(prt, 5)
  2044. coroutine.resume(coroutine.create(function(Part, Mesh)
  2045. local rtype = rottype
  2046. for i = 0, 1, delay do
  2047. swait()
  2048. if rtype == 1 then
  2049. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  2050. elseif rtype == 2 then
  2051. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  2052. end
  2053. prt.Transparency = i
  2054. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  2055. end
  2056. Part.Parent = nil
  2057. end), prt, msh)
  2058. end
  2059. function MagicShockAltCircle(brickcolor, cframe, x1, z1, x3, z3, delay, rottype)
  2060. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2061. prt.Anchored = true
  2062. prt.Material = "Neon"
  2063. prt.CFrame = cframe
  2064. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, 1, z1))
  2065. game:GetService("Debris"):AddItem(prt, 5)
  2066. coroutine.resume(coroutine.create(function(Part, Mesh)
  2067. local rtype = rottype
  2068. for i = 0, 1, delay do
  2069. swait()
  2070. if rtype == 1 then
  2071. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0.1, 0)
  2072. elseif rtype == 2 then
  2073. prt.CFrame = prt.CFrame * CFrame.Angles(0, -0.1, 0)
  2074. end
  2075. prt.Transparency = i
  2076. Mesh.Scale = Mesh.Scale + vt(x3, 0, z3)
  2077. end
  2078. Part.Parent = nil
  2079. end), prt, msh)
  2080. end
  2081. function MagicShockTrailAlt(brickcolor, cframe, x1, y1, z1, x3, y3, delay, rottype)
  2082. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2083. prt.Anchored = true
  2084. prt.Material = "Neon"
  2085. prt.CFrame = cframe
  2086. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2087. game:GetService("Debris"):AddItem(prt, 5)
  2088. coroutine.resume(coroutine.create(function(Part, Mesh)
  2089. local rtype = rottype
  2090. for i = 0, 1, delay do
  2091. swait()
  2092. if rtype == 1 then
  2093. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  2094. elseif rtype == 2 then
  2095. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  2096. end
  2097. prt.Transparency = i
  2098. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  2099. end
  2100. Part.Parent = nil
  2101. end), prt, msh)
  2102. end
  2103. function MagicShockTrailAlt2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  2104. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2105. prt.Anchored = true
  2106. prt.Material = "Neon"
  2107. prt.CFrame = cframe
  2108. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2109. game:GetService("Debris"):AddItem(prt, 5)
  2110. coroutine.resume(coroutine.create(function(Part, Mesh)
  2111. local rtype = rottype
  2112. for i = 0, 1, delay do
  2113. swait()
  2114. if rtype == 1 then
  2115. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  2116. elseif rtype == 2 then
  2117. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  2118. end
  2119. prt.Transparency = i
  2120. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2121. end
  2122. Part.Parent = nil
  2123. end), prt, msh)
  2124. end
  2125. function MagicBlock2(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay)
  2126. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2127. prt.Anchored = false
  2128. prt.CFrame = cframe
  2129. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2130. local wld = weld(prt, prt, Parent, cframe)
  2131. game:GetService("Debris"):AddItem(prt, 5)
  2132. coroutine.resume(coroutine.create(function(Part, Mesh, Weld)
  2133. for i = 0, 1, delay do
  2134. wait()
  2135. Weld.C0 = euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cframe
  2136. Part.Transparency = i
  2137. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2138. end
  2139. Part.Parent = nil
  2140. end), prt, msh, wld)
  2141. end
  2142. function MagicBlock3(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay)
  2143. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2144. prt.Anchored = false
  2145. prt.CFrame = cframe
  2146. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2147. local wld = weld(prt, prt, Parent, euler(0, 0, 0) * cf(0, 0, 0))
  2148. game:GetService("Debris"):AddItem(prt, 5)
  2149. coroutine.resume(coroutine.create(function(Part, Mesh, Weld)
  2150. for i = 0, 1, delay do
  2151. wait()
  2152. Weld.C0 = euler(i * 20, 0, 0)
  2153. Part.Transparency = i
  2154. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2155. end
  2156. Part.Parent = nil
  2157. end), prt, msh, wld)
  2158. end
  2159. function MagicCircle2(brickcolor, cframe, 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 = true
  2162. prt.CFrame = cframe
  2163. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2164. game:GetService("Debris"):AddItem(prt, 2)
  2165. coroutine.resume(coroutine.create(function(Part, Mesh)
  2166. for i = 0, 1, delay do
  2167. wait()
  2168. Part.CFrame = Part.CFrame
  2169. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2170. local prt2 = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2171. prt2.Anchored = true
  2172. prt2.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2173. local msh2 = mesh("SpecialMesh", prt2, "Sphere", "", vt(0, 0, 0), vt(0.5, 0.5, 0.5))
  2174. game:GetService("Debris"):AddItem(prt2, 2)
  2175. coroutine.resume(coroutine.create(function(Part, Mesh)
  2176. for i = 0, 1, 0.1 do
  2177. wait()
  2178. Part.CFrame = Part.CFrame * cf(0, 0.5, 0)
  2179. end
  2180. Part.Parent = nil
  2181. end), prt2, msh2)
  2182. end
  2183. for i = 0, 1, delay * 2 do
  2184. wait()
  2185. Part.CFrame = Part.CFrame
  2186. Mesh.Scale = vt(x1 + x3 - (x1 + x3) * i, y1 + y3 - (y1 + y3) * i, z1 + z3 - (z1 + z3) * i)
  2187. end
  2188. Part.Parent = nil
  2189. end), prt, msh)
  2190. end
  2191. function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2192. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2193. prt.Anchored = true
  2194. prt.CFrame = cframe
  2195. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  2196. game:GetService("Debris"):AddItem(prt, 2)
  2197. coroutine.resume(coroutine.create(function(Part, Mesh)
  2198. for i = 0, 1, delay do
  2199. wait()
  2200. Part.CFrame = Part.CFrame
  2201. Part.Transparency = i
  2202. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2203. end
  2204. Part.Parent = nil
  2205. end), prt, msh)
  2206. end
  2207. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  2208. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2209. prt.Anchored = true
  2210. prt.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2211. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  2212. game:GetService("Debris"):AddItem(prt, 2)
  2213. coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
  2214. CF = Part.CFrame
  2215. Numbb = 0
  2216. randnumb = math.random() / 10
  2217. rand1 = math.random() / 10
  2218. for i = 0, 1, rand1 do
  2219. wait()
  2220. CF = CF * cf(0, math.random() / 2, 0)
  2221. Part.CFrame = CF * euler(Numbb, 0, 0)
  2222. Part.Transparency = i
  2223. Numbb = Numbb + randnumb
  2224. end
  2225. Part.Parent = nil
  2226. end), prt, CF, Numbb, randnumb)
  2227. end
  2228. function MagicWaveThing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  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
  2232. msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1051557", vt(0, 0, 0), vt(x1, y1, z1))
  2233. game:GetService("Debris"):AddItem(prt, 5)
  2234. coroutine.resume(coroutine.create(function(Part, Mesh)
  2235. for i = 0, 1, delay do
  2236. wait()
  2237. Part.CFrame = Part.CFrame * euler(0, 0.7, 0)
  2238. Part.Transparency = i
  2239. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2240. end
  2241. Part.Parent = nil
  2242. end), prt, msh)
  2243. end
  2244. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2245. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2246. prt.Anchored = true
  2247. prt.CFrame = cframe
  2248. msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  2249. game:GetService("Debris"):AddItem(prt, 2)
  2250. coroutine.resume(coroutine.create(function(Part, Mesh)
  2251. for i = 0, 1, delay do
  2252. wait()
  2253. Part.CFrame = Part.CFrame * cf(0, y3 / 2, 0)
  2254. Part.Transparency = i
  2255. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2256. end
  2257. Part.Parent = nil
  2258. end), prt, msh)
  2259. end
  2260. function StravEffect(brickcolor, cframe, x, y, z, x1, y1, z1, delay)
  2261. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2262. prt.Anchored = true
  2263. prt.CFrame = cframe * cf(x, y, z)
  2264. msh = mesh("SpecialMesh", prt, "FileMesh", "rbxassetid://168892363", vt(0, 0, 0), vt(x1, y1, z1))
  2265. game:GetService("Debris"):AddItem(prt, 5)
  2266. coroutine.resume(coroutine.create(function(Part, Mesh, ex, why, zee)
  2267. local num = math.random()
  2268. local num2 = math.random(-3, 2) + math.random()
  2269. local numm = 0
  2270. for i = 0, 1, delay * 2 do
  2271. swait()
  2272. Part.CFrame = cframe * euler(0, numm * num * 10, 0) * cf(ex, why, zee) * cf(-i * 10, num2, 0)
  2273. Part.Transparency = i
  2274. numm = numm + 0.01
  2275. end
  2276. Part.Parent = nil
  2277. Mesh.Parent = nil
  2278. end), prt, msh, x, y, z)
  2279. end
  2280. function dmgstart(dmg, what)
  2281. hitcon = what.Touched:connect(function(hit)
  2282. local hum = hit.Parent:FindFirstChild("Humanoid")
  2283. if hum and not hum:IsDescendantOf(Character) then
  2284. hum:TakeDamage(dmg)
  2285. end
  2286. end)
  2287. end
  2288. function dmgstop()
  2289. hitcon:disconnect()
  2290. end
  2291. function Cloak()
  2292. Face.Parent = nil
  2293. cloaked = true
  2294. for _, v in pairs(Torso.Parent:children()) do
  2295. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  2296. coroutine.resume(coroutine.create(function()
  2297. for i = 0, 1, 0.2 do
  2298. wait()
  2299. v.Transparency = i
  2300. end
  2301. v.Transparency = 1
  2302. end))
  2303. end
  2304. if v.className == "Hat" then
  2305. hatp = v.Handle
  2306. coroutine.resume(coroutine.create(function(derp)
  2307. for i = 0, 1, 0.2 do
  2308. wait()
  2309. derp.Transparency = i
  2310. end
  2311. derp.Transparency = 1
  2312. end), hatp)
  2313. end
  2314. end
  2315. for _, v in pairs(m:children()) do
  2316. if v.className == "Part" then
  2317. coroutine.resume(coroutine.create(function()
  2318. for i = 0, 1, 0.2 do
  2319. wait()
  2320. v.Transparency = i
  2321. end
  2322. v.Transparency = 1
  2323. end))
  2324. end
  2325. end
  2326. end
  2327. function UnCloak()
  2328. so("http://roblox.com/asset/?id=2767090", Torso, 1, 1.1)
  2329. Face.Parent = Head
  2330. cloaked = false
  2331. for _, v in pairs(Torso.Parent:children()) do
  2332. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  2333. coroutine.resume(coroutine.create(function()
  2334. for i = 0, 1, 0.1 do
  2335. wait()
  2336. v.Transparency = v.Transparency - 0.1
  2337. end
  2338. v.Transparency = 0
  2339. end))
  2340. end
  2341. if v.className == "Hat" then
  2342. hatp = v.Handle
  2343. coroutine.resume(coroutine.create(function(derp)
  2344. for i = 0, 1, 0.1 do
  2345. wait()
  2346. derp.Transparency = derp.Transparency - 0.1
  2347. end
  2348. derp.Transparency = 0
  2349. end), hatp)
  2350. end
  2351. end
  2352. for _, v in pairs(m:children()) do
  2353. if v.className == "Part" and v.Name ~= "hitbox" and v.Name ~= "tip" then
  2354. coroutine.resume(coroutine.create(function()
  2355. for i = 0, 1, 0.1 do
  2356. wait()
  2357. v.Transparency = v.Transparency - 0.1
  2358. end
  2359. v.Transparency = 0
  2360. end))
  2361. v.Transparency = 0
  2362. end
  2363. end
  2364. end
  2365. local origcolor = BrickColor.new("Pastel light blue")
  2366. function Explode(rad, par, pitch, vol, mindam, maxdam)
  2367. local expart = Instance.new("Part", char)
  2368. local expart2 = Instance.new("Part", char)
  2369. local rin = Instance.new("Part", char)
  2370. local rin2 = Instance.new("Part", char)
  2371. local partMesh = Instance.new("SpecialMesh", expart)
  2372. partMesh.MeshType = "Sphere"
  2373. local partMesh2 = Instance.new("SpecialMesh", expart2)
  2374. partMesh2.MeshType = "Sphere"
  2375. local partMesh3 = Instance.new("SpecialMesh", rin)
  2376. partMesh3.MeshType = "Brick"
  2377. local partMesh4 = Instance.new("SpecialMesh", rin2)
  2378. partMesh4.MeshType = "Brick"
  2379. CFuncs.Sound.Create("rbxassetid://165970126", expart, vol, pitch)
  2380. partMesh.Scale = vt(rad, rad, rad)
  2381. expart.Size = vt(1, 1, 1)
  2382. expart.Transparency = 0
  2383. expart.Anchored = true
  2384. expart.Material = "Neon"
  2385. expart.BrickColor = bc("White")
  2386. expart.CFrame = par.CFrame
  2387. partMesh2.Scale = vt(rad, rad, rad)
  2388. expart2.Size = vt(1.15, 1.15, 1.15)
  2389. expart2.Transparency = 0.5
  2390. expart2.Anchored = true
  2391. expart2.Material = "Neon"
  2392. expart2.BrickColor = par.BrickColor
  2393. expart2.CFrame = par.CFrame
  2394. rin.Size = vt(1.15, 1.15, 1.15)
  2395. rin.Transparency = 1
  2396. rin.Anchored = true
  2397. rin.Material = "Neon"
  2398. rin.BrickColor = par.BrickColor
  2399. rin.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
  2400. rin2.Size = vt(1.15, 1.15, 1.15)
  2401. rin2.Transparency = 1
  2402. rin2.Anchored = true
  2403. rin2.Material = "Neon"
  2404. rin2.BrickColor = par.BrickColor
  2405. rin2.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
  2406. partMesh3.Scale = vt(0, 1, 0)
  2407. partMesh4.Scale = vt(0, 1, 0)
  2408. local dec2 = Instance.new("Decal", rin)
  2409. dec2.Face = "Top"
  2410. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2411. dec2.Parent = rin
  2412. local dec2b = dec2:Clone()
  2413. dec2b.Face = "Bottom"
  2414. dec2b.Parent = rin
  2415. local dec2a = Instance.new("Decal", rin2)
  2416. dec2a.Face = "Top"
  2417. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  2418. dec2a.Parent = rin2
  2419. local dec2ab = dec2a:Clone()
  2420. dec2ab.Face = "Bottom"
  2421. dec2ab.Parent = rin2
  2422. expart.CanCollide = false
  2423. expart2.CanCollide = false
  2424. rin.CanCollide = false
  2425. rin2.CanCollide = false
  2426. MagniDamage(par, rad * 5, mindam, maxdam, 0, "Normal")
  2427. local value = 1 * rad / 6.5
  2428. for i = 0, 199 do
  2429. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  2430. expart.CFrame = expart.CFrame
  2431. partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
  2432. expart2.CFrame = expart.CFrame
  2433. value = value - 0.035 * rad / 30
  2434. if value < 7.5 then
  2435. partMesh3.Scale = partMesh3.Scale + vt(rad / 5, 0, rad / 5)
  2436. rin.CFrame = rin.CFrame * CFrame.Angles(0, math.rad(1), 0)
  2437. partMesh4.Scale = partMesh4.Scale + vt(rad / 7.5, 0, rad / 7.5)
  2438. rin2.CFrame = rin2.CFrame * CFrame.Angles(0, math.rad(-1), 0)
  2439. end
  2440. if value < 0 then
  2441. dec2.Transparency = dec2.Transparency + 0.025
  2442. dec2a.Transparency = dec2a.Transparency + 0.025
  2443. dec2b.Transparency = dec2b.Transparency + 0.025
  2444. dec2ab.Transparency = dec2ab.Transparency + 0.025
  2445. expart.Transparency = expart.Transparency + 0.025
  2446. expart2.Transparency = expart2.Transparency + 0.025
  2447. rin.Transparency = rin.Transparency + 0.025
  2448. rin2.Transparency = rin2.Transparency + 0.025
  2449. end
  2450. swait()
  2451. end
  2452. game:GetService("Debris"):AddItem(expart, 1)
  2453. game:GetService("Debris"):AddItem(expart2, 1)
  2454. game:GetService("Debris"):AddItem(rin, 1)
  2455. game:GetService("Debris"):AddItem(rin2, 1)
  2456. end
  2457. function ExplodeShort(rad, par, pitch, vol, mindam, maxdam)
  2458. local expart = Instance.new("Part", char)
  2459. local expart2 = Instance.new("Part", char)
  2460. local partMesh = Instance.new("SpecialMesh", expart)
  2461. partMesh.MeshType = "Sphere"
  2462. local partMesh2 = Instance.new("SpecialMesh", expart2)
  2463. partMesh2.MeshType = "Sphere"
  2464. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=142070127", expart, vol, pitch)
  2465. partMesh.Scale = vt(rad, rad, rad)
  2466. expart.Size = vt(1, 1, 1)
  2467. expart.Transparency = 0
  2468. expart.Anchored = true
  2469. expart.Material = "Neon"
  2470. expart.BrickColor = bc("White")
  2471. expart.CFrame = par.CFrame
  2472. partMesh2.Scale = vt(rad, rad, rad)
  2473. expart2.Size = vt(1.15, 1.15, 1.15)
  2474. expart2.Transparency = 0.5
  2475. expart2.Anchored = true
  2476. expart2.Material = "Neon"
  2477. expart2.BrickColor = par.BrickColor
  2478. expart2.CFrame = par.CFrame
  2479. expart.CanCollide = false
  2480. expart2.CanCollide = false
  2481. MagniDamage(par, rad * 2.5, mindam, maxdam, 0, "Normal")
  2482. local value = 1 * rad / 6.5
  2483. for i = 0, 75 do
  2484. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  2485. expart.CFrame = expart.CFrame
  2486. partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
  2487. expart2.CFrame = expart.CFrame
  2488. value = value - 0.035 * rad / 5
  2489. if value < 0 then
  2490. value = 0
  2491. expart.Transparency = expart.Transparency + 0.05
  2492. expart2.Transparency = expart2.Transparency + 0.05
  2493. end
  2494. swait()
  2495. end
  2496. game:GetService("Debris"):AddItem(expart, 1)
  2497. game:GetService("Debris"):AddItem(expart2, 1)
  2498. end
  2499. function AreaDanger(rad, par, mindam, maxdam)
  2500. local expart = Instance.new("Part", char)
  2501. local partMesh = Instance.new("SpecialMesh", expart)
  2502. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
  2503. partMesh.MeshType = "Sphere"
  2504. partMesh.Scale = vt(rad, rad, rad)
  2505. expart.Size = vt(1, 1, 1)
  2506. expart.Transparency = 0.5
  2507. expart.Anchored = true
  2508. expart.Material = "Neon"
  2509. expart.CanCollide = false
  2510. expart.BrickColor = par.BrickColor
  2511. expart.CFrame = par.CFrame
  2512. local value = 1 * rad / 5
  2513. MagicBlock(origcolor, expart.CFrame, 0, 0, 0, rad / 2, rad / 2, rad / 2, 0.1)
  2514. for i = 0, 14 do
  2515. wait()
  2516. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  2517. expart.CFrame = expart.CFrame
  2518. value = value - 0.035 * rad
  2519. if value < 0 then
  2520. value = 0
  2521. end
  2522. end
  2523. wait(0.25)
  2524. CFuncs.Sound.Create("rbxassetid://588738544", expart, 1.5, 1)
  2525. wait(0.5)
  2526. CFuncs.Sound.Create("rbxassetid://588737825", expart, 1.5, 1)
  2527. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 0.75)
  2528. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  2529. MagicBlock(origcolor, expart.CFrame, rad * 2, rad * 2, rad * 2, 0.1, 0.1, 0.1, 0.025)
  2530. for i = 0, 14 do
  2531. wait()
  2532. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  2533. expart.CFrame = expart.CFrame
  2534. value = value - 0.035 * rad / 2
  2535. end
  2536. expart.Transparency = 1
  2537. game:GetService("Debris"):AddItem(expart, 5)
  2538. end
  2539. function Swarmsplosions(negrad, rad, par, mindam, maxdam)
  2540. CFuncs.Sound.Create("rbxassetid://588737825", par, 2.5, 2)
  2541. CFuncs.Sound.Create("rbxassetid://231917784", par, 2.5, 1)
  2542. CFuncs.Sound.Create("rbxassetid://231917744", par, 2.5, 1)
  2543. CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
  2544. MagniDamageWithEffect(par, 25, 5, 10, 0, "Normal")
  2545. MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.025)
  2546. for i = 0, 24 do
  2547. 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))
  2548. end
  2549. for i = 0, 24 do
  2550. local expart = Instance.new("Part", char)
  2551. expart.Transparency = 1
  2552. expart.Anchored = true
  2553. expart.CanCollide = false
  2554. expart.CFrame = par.CFrame * CFrame.new(math.random(negrad, rad), math.random(negrad, rad), math.random(negrad, rad))
  2555. CFuncs.Sound.Create("rbxassetid://588737825", expart, 1, 2)
  2556. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
  2557. MagniDamage(expart, rad / 2, mindam, maxdam, 0, "Normal")
  2558. MagicBlock(origcolor, expart.CFrame, rad, rad, rad, 0.1, 0.1, 0.1, 0.025)
  2559. for i = 0, 9 do
  2560. 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))
  2561. end
  2562. game:GetService("Debris"):AddItem(expart, 2)
  2563. wait(0.1)
  2564. end
  2565. end
  2566. function EXterPlosion(par)
  2567. CFuncs.Sound.Create("rbxassetid://919941001", par, 10, 1)
  2568. CFuncs.Sound.Create("rbxassetid://138213851", par, 5, 0.85)
  2569. CFuncs.Sound.Create("rbxassetid://157878578", par, 5, 0.2)
  2570. CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
  2571. MagniDamageWithEffect(par, 500, 80, 99, 0, "Normal")
  2572. MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.005)
  2573. MagicBlock(origcolor, par.CFrame, 0, 0, 0, 150, 150, 150, 0.1)
  2574. for i = 0, 24 do
  2575. 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))
  2576. end
  2577. for i = 0, 24 do
  2578. 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))
  2579. end
  2580. end
  2581. function ring(type, pos, scale, value)
  2582. local type = type
  2583. local rng = Instance.new("Part", char)
  2584. rng.Anchored = true
  2585. rng.BrickColor = origcolor
  2586. rng.CanCollide = false
  2587. rng.FormFactor = 3
  2588. rng.Name = "Ring"
  2589. rng.Size = Vector3.new(1, 1, 1)
  2590. rng.Transparency = 0
  2591. rng.TopSurface = 0
  2592. rng.BottomSurface = 0
  2593. rng.CFrame = pos
  2594. local rngm = Instance.new("SpecialMesh", rng)
  2595. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2596. rngm.Scale = scale
  2597. local scaler2 = 1
  2598. if type == "Add" then
  2599. scaler2 = 1 * value
  2600. elseif type == "Divide" then
  2601. scaler2 = 1 / value
  2602. end
  2603. coroutine.resume(coroutine.create(function()
  2604. for i = 0, 10, 0.1 do
  2605. swait()
  2606. if type == "Add" then
  2607. scaler2 = scaler2 - 0.01 * value
  2608. elseif type == "Divide" then
  2609. scaler2 = scaler2 - 0.01 / value
  2610. end
  2611. rng.Transparency = rng.Transparency + 0.01
  2612. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2613. end
  2614. rng:Destroy()
  2615. end))
  2616. end
  2617. function wave(type, pos, scale, value)
  2618. local type = type
  2619. local rng = Instance.new("Part", char)
  2620. rng.Anchored = true
  2621. rng.BrickColor = origcolor
  2622. rng.CanCollide = false
  2623. rng.FormFactor = 3
  2624. rng.Name = "Ring"
  2625. rng.Size = Vector3.new(1, 1, 1)
  2626. rng.Transparency = 0
  2627. rng.TopSurface = 0
  2628. rng.BottomSurface = 0
  2629. rng.CFrame = pos
  2630. local rngm = Instance.new("SpecialMesh", rng)
  2631. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2632. rngm.Scale = scale
  2633. local scaler2 = 1
  2634. if type == "Add" then
  2635. scaler2 = 1 * value
  2636. elseif type == "Divide" then
  2637. scaler2 = 1 / value
  2638. end
  2639. coroutine.resume(coroutine.create(function()
  2640. for i = 0, 10, 0.1 do
  2641. swait()
  2642. if type == "Add" then
  2643. scaler2 = scaler2 - 0.01 * value
  2644. elseif type == "Divide" then
  2645. scaler2 = scaler2 - 0.01 / value
  2646. end
  2647. rng.Transparency = rng.Transparency + 0.01
  2648. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2649. end
  2650. rng:Destroy()
  2651. end))
  2652. end
  2653. function wind(type, pos, scale, value, speed)
  2654. local type = type
  2655. local rng = Instance.new("Part", char)
  2656. rng.Anchored = true
  2657. rng.BrickColor = origcolor
  2658. rng.CanCollide = false
  2659. rng.FormFactor = 3
  2660. rng.Name = "Ring"
  2661. rng.Size = Vector3.new(1, 1, 1)
  2662. rng.Transparency = 0
  2663. rng.TopSurface = 0
  2664. rng.BottomSurface = 0
  2665. rng.CFrame = pos
  2666. local rngm = Instance.new("SpecialMesh", rng)
  2667. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2668. rngm.Scale = scale
  2669. local scaler2 = 1
  2670. if type == "Add" then
  2671. scaler2 = 1 * value
  2672. elseif type == "Divide" then
  2673. scaler2 = 1 / value
  2674. end
  2675. coroutine.resume(coroutine.create(function()
  2676. for i = 0, 10, 0.1 do
  2677. swait()
  2678. if type == "Add" then
  2679. scaler2 = scaler2 - 0.01 * value
  2680. elseif type == "Divide" then
  2681. scaler2 = scaler2 - 0.01 / value
  2682. end
  2683. rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
  2684. rng.Transparency = rng.Transparency + 0.01
  2685. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2686. end
  2687. rng:Destroy()
  2688. end))
  2689. end
  2690. function groundwind(type, pos, scale, value, speed)
  2691. local type = type
  2692. local rng = Instance.new("Part", char)
  2693. rng.Anchored = true
  2694. rng.BrickColor = origcolor
  2695. rng.CanCollide = false
  2696. rng.FormFactor = 3
  2697. rng.Name = "Ring"
  2698. rng.Size = Vector3.new(1, 1, 1)
  2699. rng.Transparency = 0
  2700. rng.TopSurface = 0
  2701. rng.BottomSurface = 0
  2702. rng.CFrame = pos
  2703. local rngm = Instance.new("SpecialMesh", rng)
  2704. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2705. rngm.Scale = scale
  2706. local scaler2 = 1
  2707. if type == "Add" then
  2708. scaler2 = 1 * value
  2709. elseif type == "Divide" then
  2710. scaler2 = 1 / value
  2711. end
  2712. coroutine.resume(coroutine.create(function()
  2713. for i = 0, 10, 0.1 do
  2714. swait()
  2715. if type == "Add" then
  2716. scaler2 = scaler2 - 0.01 * value
  2717. elseif type == "Divide" then
  2718. scaler2 = scaler2 - 0.01 / value
  2719. end
  2720. rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
  2721. rng.Transparency = rng.Transparency + 0.01
  2722. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2 / 5, scaler2)
  2723. end
  2724. rng:Destroy()
  2725. end))
  2726. end
  2727. function CameraManager()
  2728. if TwoD and not CamInterrupt then
  2729. if Humanoid.Health > 0 then
  2730. Camera.CameraSubject = Humanoid
  2731. Camera.CameraType = "Scriptable"
  2732. Humanoid.AutoRotate = false
  2733. if Booleans.GyroUse then
  2734. Directer.MaxTorque = Vec3(0, huge, 0)
  2735. else
  2736. Directer.MaxTorque = Vec3(0, 0, 0)
  2737. end
  2738. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2739. if Booleans.CamFollow then
  2740. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2741. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2742. else
  2743. CPart.Position = RootPart.Position
  2744. end
  2745. else
  2746. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2747. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2748. end
  2749. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2750. else
  2751. Camera.CameraSubject = Humanoid
  2752. Camera.CameraType = "Custom"
  2753. end
  2754. end
  2755. end
  2756. function sphere(bonuspeed, type, pos, scale, value, color)
  2757. local type = type
  2758. local rng = Instance.new("Part", char)
  2759. rng.Anchored = true
  2760. rng.BrickColor = color
  2761. rng.CanCollide = false
  2762. rng.FormFactor = 3
  2763. rng.Name = "Ring"
  2764. rng.Material = "Neon"
  2765. rng.Size = Vector3.new(1, 1, 1)
  2766. rng.Transparency = 0
  2767. rng.TopSurface = 0
  2768. rng.BottomSurface = 0
  2769. rng.CFrame = pos
  2770. local rngm = Instance.new("SpecialMesh", rng)
  2771. rngm.MeshType = "Sphere"
  2772. rngm.Scale = scale
  2773. if rainbowmode == true then
  2774. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2775. end
  2776. local scaler2 = 1
  2777. if type == "Add" then
  2778. scaler2 = 1 * value
  2779. elseif type == "Divide" then
  2780. scaler2 = 1 / value
  2781. end
  2782. coroutine.resume(coroutine.create(function()
  2783. for i = 0, 10 / bonuspeed, 0.1 do
  2784. swait()
  2785. if rainbowmode == true then
  2786. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2787. end
  2788. if type == "Add" then
  2789. scaler2 = scaler2 - 0.01 * value / bonuspeed
  2790. elseif type == "Divide" then
  2791. scaler2 = scaler2 - 0.01 / value * bonuspeed
  2792. end
  2793. if chaosmode == true then
  2794. rng.BrickColor = BrickColor.random()
  2795. end
  2796. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  2797. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  2798. end
  2799. rng:Destroy()
  2800. end))
  2801. end
  2802. function sphereMK(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
  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. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  2817. local rngm = Instance.new("SpecialMesh", rng)
  2818. rngm.MeshType = "Sphere"
  2819. rngm.Scale = vt(x1, y1, z1)
  2820. if rainbowmode == true then
  2821. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2822. end
  2823. local scaler2 = 1
  2824. local speeder = FastSpeed
  2825. if type == "Add" then
  2826. scaler2 = 1 * value
  2827. elseif type == "Divide" then
  2828. scaler2 = 1 / value
  2829. end
  2830. coroutine.resume(coroutine.create(function()
  2831. for i = 0, 10 / bonuspeed, 0.1 do
  2832. swait()
  2833. if rainbowmode == true then
  2834. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2835. end
  2836. if type == "Add" then
  2837. scaler2 = scaler2 - 0.01 * value / bonuspeed
  2838. elseif type == "Divide" then
  2839. scaler2 = scaler2 - 0.01 / value * bonuspeed
  2840. end
  2841. if chaosmode == true then
  2842. rng.BrickColor = BrickColor.random()
  2843. end
  2844. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  2845. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  2846. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  2847. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  2848. end
  2849. rng:Destroy()
  2850. end))
  2851. end
  2852. function sphereMKCharge(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
  2853. local type = type
  2854. local rng = Instance.new("Part", char)
  2855. rng.Anchored = true
  2856. rng.BrickColor = color
  2857. rng.CanCollide = false
  2858. rng.FormFactor = 3
  2859. rng.Name = "Ring"
  2860. rng.Material = "Neon"
  2861. rng.Size = Vector3.new(1, 1, 1)
  2862. rng.Transparency = 1
  2863. rng.TopSurface = 0
  2864. rng.BottomSurface = 0
  2865. rng.CFrame = pos
  2866. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  2867. local rngm = Instance.new("SpecialMesh", rng)
  2868. rngm.MeshType = "Sphere"
  2869. rngm.Scale = vt(x1, y1, z1)
  2870. if rainbowmode == true then
  2871. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2872. end
  2873. local scaler2 = 1
  2874. local speeder = FastSpeed
  2875. if type == "Add" then
  2876. scaler2 = 1 * value
  2877. elseif type == "Divide" then
  2878. scaler2 = 1 / value
  2879. end
  2880. coroutine.resume(coroutine.create(function()
  2881. for i = 0, 10 / bonuspeed, 0.1 do
  2882. swait()
  2883. if rainbowmode == true then
  2884. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2885. end
  2886. if type == "Add" then
  2887. scaler2 = scaler2 - 0.01 * value / bonuspeed
  2888. elseif type == "Divide" then
  2889. scaler2 = scaler2 - 0.01 / value * bonuspeed
  2890. end
  2891. if chaosmode == true then
  2892. rng.BrickColor = BrickColor.random()
  2893. end
  2894. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  2895. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  2896. rng.Transparency = rng.Transparency - 0.01 * bonuspeed
  2897. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  2898. end
  2899. rng:Destroy()
  2900. end))
  2901. end
  2902. function dmg(dude)
  2903. if dude.Name ~= Character then
  2904. local bgf = Instance.new("BodyGyro", dude.Head)
  2905. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
  2906. local val = Instance.new("BoolValue", dude)
  2907. val.Name = "IsHit"
  2908. local ds = coroutine.wrap(function()
  2909. dude:WaitForChild("Head"):BreakJoints()
  2910. wait(0.5)
  2911. targetted = nil
  2912. CFuncs.Sound.Create("rbxassetid://62339698", char, 0.5, 0.3)
  2913. coroutine.resume(coroutine.create(function()
  2914. for i, v in pairs(dude:GetChildren()) do
  2915. if v:IsA("Accessory") then
  2916. v:Destroy()
  2917. end
  2918. if v:IsA("Humanoid") then
  2919. v:Destroy()
  2920. end
  2921. if v:IsA("CharacterMesh") then
  2922. v:Destroy()
  2923. end
  2924. if v:IsA("Model") then
  2925. v:Destroy()
  2926. end
  2927. if v:IsA("Part") or v:IsA("MeshPart") then
  2928. for x, o in pairs(v:GetChildren()) do
  2929. if o:IsA("Decal") then
  2930. o:Destroy()
  2931. end
  2932. end
  2933. coroutine.resume(coroutine.create(function()
  2934. v.Material = "Neon"
  2935. v.CanCollide = false
  2936. local bld = Instance.new("ParticleEmitter", v)
  2937. bld.LightEmission = 1
  2938. bld.Texture = "rbxassetid://284205403"
  2939. bld.Color = ColorSequence.new(Color3.new(1, 1, 1))
  2940. bld.Rate = 50
  2941. bld.Lifetime = NumberRange.new(1)
  2942. bld.Size = NumberSequence.new({
  2943. NumberSequenceKeypoint.new(0, 0.75, 0),
  2944. NumberSequenceKeypoint.new(1, 0, 0)
  2945. })
  2946. bld.Transparency = NumberSequence.new({
  2947. NumberSequenceKeypoint.new(0, 0, 0),
  2948. NumberSequenceKeypoint.new(1, 1, 0)
  2949. })
  2950. bld.Speed = NumberRange.new(0, 0)
  2951. bld.VelocitySpread = 50000
  2952. bld.Rotation = NumberRange.new(-500, 500)
  2953. bld.RotSpeed = NumberRange.new(-500, 500)
  2954. local sbs = Instance.new("BodyPosition", v)
  2955. sbs.P = 3000
  2956. sbs.D = 1000
  2957. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2958. sbs.position = v.Position + Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5))
  2959. v.Color = Color3.new(1, 1, 1)
  2960. coroutine.resume(coroutine.create(function()
  2961. for i = 0, 49 do
  2962. swait(1)
  2963. v.Transparency = v.Transparency + 0.02
  2964. end
  2965. CFuncs.Sound.Create("rbxassetid://1192402877", v, 0.25, 1)
  2966. bld.Speed = NumberRange.new(1, 5)
  2967. bld.Acceleration = vt(0, 10, 0)
  2968. wait(0.5)
  2969. bld.Enabled = false
  2970. wait(3)
  2971. v:Destroy()
  2972. dude:Destroy()
  2973. end))
  2974. end))
  2975. end
  2976. end
  2977. end))
  2978. end)
  2979. ds()
  2980. end
  2981. end
  2982. function FindNearestHead(Position, Distance, SinglePlayer)
  2983. if SinglePlayer then
  2984. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  2985. end
  2986. local List = {}
  2987. for i, v in pairs(workspace:GetChildren()) do
  2988. if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then
  2989. table.insert(List, v)
  2990. end
  2991. end
  2992. return List
  2993. end
  2994. function FaceMouse()
  2995. Cam = workspace.CurrentCamera
  2996. return {
  2997. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  2998. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2999. }
  3000. end
  3001. function FaceMouse2()
  3002. Cam = workspace.CurrentCamera
  3003. return {
  3004. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3005. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3006. }
  3007. end
  3008. local ModeOfGlitch = 1
  3009. local storehumanoidWS = 16
  3010. function ExtinctiveHeartbreak()
  3011. local targetted
  3012. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3013. targetted = mouse.Target.Parent
  3014. end
  3015. if targetted ~= nil then
  3016. attack = true
  3017. CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
  3018. for i = 0, 9 do
  3019. 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)
  3020. end
  3021. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  3022. local originalpos = root.CFrame
  3023. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0, -2, 2)
  3024. for i = 0, 9 do
  3025. 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)
  3026. end
  3027. hum.WalkSpeed = 0
  3028. targetted.Head.Anchored = true
  3029. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  3030. for i = 0, 2, 0.1 do
  3031. swait()
  3032. 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)
  3033. 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)
  3034. 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)
  3035. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8)
  3036. 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)
  3037. 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)
  3038. end
  3039. coroutine.resume(coroutine.create(function()
  3040. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
  3041. bld.LightEmission = 0.1
  3042. bld.Texture = "rbxassetid://284205403"
  3043. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3044. bld.Rate = 500
  3045. bld.Lifetime = NumberRange.new(1)
  3046. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3047. bld.Acceleration = vt(0,-25,0)
  3048. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3049. bld.Speed = NumberRange.new(10,50)
  3050. bld.EmissionDirection = "Front"
  3051. bld.VelocitySpread = 25
  3052. bld.Rotation = NumberRange.new(-500,500)
  3053. bld.RotSpeed = NumberRange.new(-500,500)
  3054. end))
  3055. coroutine.resume(coroutine.create(function()
  3056. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("UpperTorso"))
  3057. bld.LightEmission = 0.1
  3058. bld.Texture = "rbxassetid://284205403"
  3059. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3060. bld.Rate = 500
  3061. bld.Lifetime = NumberRange.new(1)
  3062. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3063. bld.Acceleration = vt(0,-25,0)
  3064. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3065. bld.Speed = NumberRange.new(10,50)
  3066. bld.EmissionDirection = "Front"
  3067. bld.VelocitySpread = 25
  3068. bld.Rotation = NumberRange.new(-500,500)
  3069. bld.RotSpeed = NumberRange.new(-500,500)
  3070. end))
  3071. CameraEnshaking(5, 5)
  3072. game:GetService("Debris"):AddItem(bld, 3)
  3073. dmg(targetted)
  3074. CFuncs.Sound.Create("rbxassetid://429400881", targetted.Head, 1, 1)
  3075. for i = 0, 1, 0.1 do
  3076. swait()
  3077. 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)
  3078. 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)
  3079. 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)
  3080. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(80)), 0.8)
  3081. 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)
  3082. 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)
  3083. end
  3084. CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
  3085. for i = 0, 9 do
  3086. 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)
  3087. end
  3088. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  3089. root.CFrame = originalpos
  3090. for i = 0, 9 do
  3091. 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)
  3092. end
  3093. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  3094. bld.Enabled = false
  3095. attack = false
  3096. hum.WalkSpeed = storehumanoidWS
  3097. end
  3098. end
  3099. function PureBomb()
  3100. attack = true
  3101. local orb = Instance.new("Part", char)
  3102. orb.Anchored = true
  3103. orb.BrickColor = BrickColor.new("Toothpaste")
  3104. orb.CanCollide = false
  3105. orb.FormFactor = 3
  3106. orb.Name = "Ring"
  3107. orb.Material = "Neon"
  3108. orb.Size = Vector3.new(1, 1, 1)
  3109. orb.Transparency = 0
  3110. orb.TopSurface = 0
  3111. orb.BottomSurface = 0
  3112. local orbm = Instance.new("SpecialMesh", orb)
  3113. orbm.MeshType = "Sphere"
  3114. orbm.Name = "SizeMesh"
  3115. orbm.Scale = vt(0, 0, 0)
  3116. local scaled = 0.1
  3117. local posid = 0
  3118. CFuncs.Sound.Create("rbxassetid://136007472", orb, 1, 1)
  3119. for i = 0, 5, 0.1 do
  3120. swait()
  3121. scaled = scaled - 0.001
  3122. posid = posid - scaled
  3123. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  3124. orbm.Scale = orbm.Scale + vt(scaled, scaled, scaled)
  3125. 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)
  3126. 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)
  3127. 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)
  3128. 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)
  3129. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  3130. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(180), math.rad(20), math.rad(0)), 0.1)
  3131. 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)
  3132. end
  3133. for i = 0, 2, 0.1 do
  3134. swait()
  3135. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  3136. 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)
  3137. 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)
  3138. 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)
  3139. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(20)), 0.4)
  3140. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(220), math.rad(20), math.rad(0)), 0.4)
  3141. 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)
  3142. end
  3143. coroutine.resume(coroutine.create(function()
  3144. orb.Anchored = false
  3145. CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
  3146. local a = Instance.new("Part", workspace)
  3147. a.Name = "Direction"
  3148. a.Anchored = true
  3149. a.BrickColor = bc("Bright red")
  3150. a.Material = "Neon"
  3151. a.Transparency = 1
  3152. a.CanCollide = false
  3153. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500)
  3154. local ignore = orb
  3155. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3156. a.BottomSurface = 10
  3157. a.TopSurface = 10
  3158. local distance = (orb.CFrame.p - position).magnitude
  3159. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3160. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3161. orb.CFrame = a.CFrame
  3162. a:Destroy()
  3163. local bv = Instance.new("BodyVelocity")
  3164. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  3165. bv.velocity = orb.CFrame.lookVector * 125
  3166. bv.Parent = orb
  3167. local hitted = false
  3168. game:GetService("Debris"):AddItem(orb, 15)
  3169. wait()
  3170. local hit = orb.Touched:connect(function(hit)
  3171. if hitted == false then
  3172. hitted = true
  3173. CameraEnshaking(10, 2.5)
  3174. CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
  3175. MagniDamage(orb, 65, 65, 90, 0, "Normal")
  3176. sphere(1, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickColor.new("Toothpaste"))
  3177. sphere(2, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickColor.new("Toothpaste"))
  3178. for i = 0, 9 do
  3179. 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)
  3180. 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)
  3181. end
  3182. orb.Anchored = true
  3183. orb.Transparency = 1
  3184. wait(8)
  3185. orb:Destroy()
  3186. end
  3187. end)
  3188. end))
  3189. for i = 0, 1, 0.1 do
  3190. swait()
  3191. 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)
  3192. 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)
  3193. 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)
  3194. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.4)
  3195. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(60), math.rad(20), math.rad(50)), 0.4)
  3196. 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)
  3197. end
  3198. attack = false
  3199. end
  3200. function ChaosGroundStrike()
  3201. attack = true
  3202. for i = 0, 2, 0.1 do
  3203. swait()
  3204. 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)
  3205. 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)
  3206. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3207. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3208. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  3209. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  3210. end
  3211. CFuncs.Sound.Create("rbxassetid://438666141", root, 7.5, 1)
  3212. CFuncs.Sound.Create("rbxassetid://1208650519", root, 7.5, 1)
  3213. CameraEnshaking(4, 12)
  3214. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3215. if v:FindFirstChild("Head") then
  3216. dmg(v)
  3217. end
  3218. end
  3219. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1, BrickColor.random())
  3220. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2, BrickColor.random())
  3221. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100, 0.1, 100), 0.01, BrickColor.random())
  3222. for i = 0, 2, 0.1 do
  3223. swait()
  3224. 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)
  3225. 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)
  3226. 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)
  3227. 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)
  3228. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3229. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3230. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  3231. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  3232. end
  3233. attack = false
  3234. end
  3235. function ChaosBegone()
  3236. attack = true
  3237. chatfunc("Why Won't You People...", BrickColor.random().Color)
  3238. for i = 0, 10, 0.1 do
  3239. swait()
  3240. 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)
  3241. 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)
  3242. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3243. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3244. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  3245. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  3246. end
  3247. chatfunc("B U R N I N H E L L ? !", BrickColor.random().Color)
  3248. CFuncs.Sound.Create("rbxassetid://438666141", char, 7.5, 1)
  3249. CFuncs.Sound.Create("rbxassetid://1208650519", char, 7.5, 1)
  3250. CameraEnshaking(5, 25)
  3251. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3252. if v:FindFirstChild("Head") then
  3253. dmg(v)
  3254. end
  3255. end
  3256. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1000, BrickColor.random())
  3257. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2000, BrickColor.random())
  3258. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100000, 0.1, 100000), 0.01, BrickColor.random())
  3259. for i = 0, 3, 0.1 do
  3260. swait()
  3261. 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)
  3262. 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)
  3263. 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)
  3264. 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)
  3265. 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)
  3266. 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)
  3267. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3268. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3269. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  3270. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  3271. end
  3272. attack = false
  3273. end
  3274. function orb_spawn_norm(positted, timer, color, MagniBoost, min, max, volEx, ShakePower, volSummon)
  3275. local orb = Instance.new("Part", char)
  3276. orb.Anchored = true
  3277. orb.BrickColor = color
  3278. orb.CanCollide = false
  3279. orb.FormFactor = 3
  3280. orb.Name = "Ring"
  3281. orb.Material = "Neon"
  3282. orb.Size = Vector3.new(1, 1, 1)
  3283. orb.Transparency = 0
  3284. orb.TopSurface = 0
  3285. orb.BottomSurface = 0
  3286. local orbm = Instance.new("SpecialMesh", orb)
  3287. orbm.MeshType = "Sphere"
  3288. orb.CFrame = positted
  3289. orbm.Name = "SizeMesh"
  3290. orbm.Scale = vt(1, 1, 1)
  3291. CFuncs.Sound.Create("rbxassetid://183763506", orb, volSummon, 1)
  3292. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.05, orb.BrickColor)
  3293. coroutine.resume(coroutine.create(function()
  3294. wait(timer)
  3295. CameraEnshaking(3, ShakePower)
  3296. orb.Transparency = 1
  3297. MagniDamage(orb, 3.5 * MagniBoost, min, max, 0, "Normal")
  3298. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.1 * MagniBoost, orb.BrickColor)
  3299. CFuncs.Sound.Create("rbxassetid://192410089", orb, volEx, 0.7)
  3300. wait(3)
  3301. orb:Destroy()
  3302. end))
  3303. end
  3304. function orb_spawn(positted, timer)
  3305. local randomcol = math.random(1, 2)
  3306. local orb = Instance.new("Part", char)
  3307. orb.Anchored = true
  3308. if randomcol == 1 then
  3309. orb.BrickColor = BrickColor.new("White")
  3310. elseif randomcol == 2 then
  3311. orb.BrickColor = BrickColor.new("Really black")
  3312. end
  3313. orb.CanCollide = false
  3314. orb.FormFactor = 3
  3315. orb.Name = "Ring"
  3316. orb.Material = "Neon"
  3317. orb.Size = Vector3.new(1, 1, 1)
  3318. orb.Transparency = 0
  3319. orb.TopSurface = 0
  3320. orb.BottomSurface = 0
  3321. local orbm = Instance.new("SpecialMesh", orb)
  3322. orbm.MeshType = "Sphere"
  3323. orb.CFrame = positted
  3324. orbm.Name = "SizeMesh"
  3325. orbm.Scale = vt(1, 1, 1)
  3326. CFuncs.Sound.Create("rbxassetid://183763506", orb, 1.5, 1)
  3327. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.025, orb.BrickColor)
  3328. for i = 0, 2 do
  3329. 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)
  3330. end
  3331. coroutine.resume(coroutine.create(function()
  3332. wait(timer)
  3333. CameraEnshaking(3, 2)
  3334. orb.Transparency = 1
  3335. MagniDamage(orb, 17.5, 10, 50, 0, "Normal")
  3336. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.5, orb.BrickColor)
  3337. for i = 0, 4 do
  3338. 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)
  3339. end
  3340. CFuncs.Sound.Create("rbxassetid://192410089", orb, 2, 0.7)
  3341. wait(3)
  3342. orb:Destroy()
  3343. end))
  3344. end
  3345. function scattercorrupt()
  3346. attack = true
  3347. local rot = 0
  3348. local randomrotations = math.random(1, 2)
  3349. local lookv = 2.5
  3350. local power = 5
  3351. sphere(1, "Add", root.CFrame, vt(1, 100000, 1), 0.5, BrickColor.new("Royal purple"))
  3352. sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, BrickColor.new("Royal purple"))
  3353. for i = 0, 9 do
  3354. 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)
  3355. end
  3356. CFuncs.Sound.Create("rbxassetid://180204650", char, 2.5, 0.6)
  3357. CFuncs.Sound.Create("rbxassetid://233856079", char, 1, 0.5)
  3358. CFuncs.Sound.Create("rbxassetid://1208650519", char, 2.5, 1)
  3359. CFuncs.Sound.Create("rbxassetid://239000203", char, 0.5, 0.75)
  3360. CFuncs.Sound.Create("rbxassetid://579687077", char, 0.5, 0.5)
  3361. local hite = Instance.new("Part", char)
  3362. hite.Anchored = true
  3363. hite.CanCollide = false
  3364. hite.FormFactor = 3
  3365. hite.Name = "Ring"
  3366. hite.Material = "Neon"
  3367. hite.Size = Vector3.new(1, 1, 1)
  3368. hite.Transparency = 1
  3369. hite.TopSurface = 0
  3370. hite.BottomSurface = 0
  3371. hite.CFrame = root.CFrame * CFrame.new(0, -2.5, 0)
  3372. local rem = Instance.new("Part", char)
  3373. rem.Anchored = true
  3374. rem.CanCollide = false
  3375. rem.FormFactor = 3
  3376. rem.Name = "Ring"
  3377. rem.Material = "Neon"
  3378. rem.Size = Vector3.new(1, 1, 1)
  3379. rem.Transparency = 1
  3380. rem.TopSurface = 0
  3381. rem.BottomSurface = 0
  3382. rem.CFrame = hite.CFrame
  3383. local rem2 = rem:Clone()
  3384. rem2.Parent = char
  3385. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3386. local rem3 = rem:Clone()
  3387. rem3.Parent = char
  3388. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  3389. local rem4 = rem:Clone()
  3390. rem4.Parent = char
  3391. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  3392. hite:Destroy()
  3393. coroutine.resume(coroutine.create(function()
  3394. for i = 0, 24 do
  3395. swait(1)
  3396. if randomrotations == 1 then
  3397. rot = rot + 1
  3398. elseif randomrotations == 2 then
  3399. rot = rot - 1
  3400. end
  3401. power = power + 0.5
  3402. lookv = lookv + 7.5
  3403. rem.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(rot), 0)
  3404. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3405. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  3406. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  3407. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3408. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3409. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3410. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3411. end
  3412. end))
  3413. attack = false
  3414. end
  3415. function yinyangi()
  3416. attack = true
  3417. for i = 0, 2, 0.1 do
  3418. swait()
  3419. 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)
  3420. 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)
  3421. 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)
  3422. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3423. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.2)
  3424. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  3425. end
  3426. local bv = Instance.new("BodyVelocity")
  3427. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  3428. bv.velocity = root.CFrame.lookVector * 175
  3429. bv.Parent = root
  3430. for Rotations = 0, 9 do
  3431. for i = 0, 1, 0.5 do
  3432. swait()
  3433. bv.velocity = root.CFrame.lookVector * 175
  3434. 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)
  3435. 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)
  3436. 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)
  3437. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3438. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3439. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3440. end
  3441. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3442. for i = 0, 1, 0.5 do
  3443. swait()
  3444. bv.velocity = root.CFrame.lookVector * 175
  3445. 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)
  3446. 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)
  3447. 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)
  3448. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3449. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3450. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3451. end
  3452. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3453. for i = 0, 1, 0.5 do
  3454. swait()
  3455. bv.velocity = root.CFrame.lookVector * 175
  3456. 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)
  3457. 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)
  3458. 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)
  3459. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3460. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3461. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3462. end
  3463. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3464. for i = 0, 1, 0.5 do
  3465. swait()
  3466. bv.velocity = root.CFrame.lookVector * 175
  3467. 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)
  3468. 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)
  3469. 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)
  3470. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3471. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3472. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3473. end
  3474. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3475. end
  3476. bv:Destroy()
  3477. attack = false
  3478. end
  3479. function StarDivision()
  3480. attack = true
  3481. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  3482. for i = 0, 2, 0.1 do
  3483. swait()
  3484. 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)
  3485. 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)
  3486. 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)
  3487. 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)
  3488. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-90)),.6)
  3489. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  3490. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.6)
  3491. end
  3492. local orb = Instance.new("Part", char)
  3493. orb.BrickColor = MAINRUINCOLOR
  3494. orb.CanCollide = false
  3495. orb.FormFactor = 3
  3496. orb.Name = "Ring"
  3497. orb.Material = "Neon"
  3498. orb.Size = Vector3.new(1, 1, 1)
  3499. orb.Transparency = 0
  3500. orb.TopSurface = 0
  3501. orb.BottomSurface = 0
  3502. local orbm = Instance.new("SpecialMesh", orb)
  3503. orbm.MeshType = "Sphere"
  3504. orbm.Name = "SizeMesh"
  3505. orbm.Scale = vt(2,2,2)
  3506. local a = Instance.new("Part",workspace)
  3507. a.Name = "Direction"
  3508. a.Anchored = true
  3509. a.BrickColor = bc("Bright red")
  3510. a.Material = "Neon"
  3511. a.Transparency = 1
  3512. a.CanCollide = false
  3513. local ray = Ray.new(
  3514. sorb.CFrame.p, -- origin
  3515. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  3516. )
  3517. local ignore = sorb
  3518. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3519. a.BottomSurface = 10
  3520. a.TopSurface = 10
  3521. local distance = (sorb.CFrame.p - position).magnitude
  3522. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3523. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3524. orb.CFrame = a.CFrame
  3525. a:Destroy()
  3526. local bv = Instance.new("BodyVelocity")
  3527. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3528. bv.velocity = orb.CFrame.lookVector*100
  3529. bv.Parent = orb
  3530. local hitted = false
  3531. game:GetService("Debris"):AddItem(orb, 10)
  3532. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  3533. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  3534. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  3535. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  3536. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  3537. coroutine.resume(coroutine.create(function()
  3538. while true do
  3539. swait(1)
  3540. if orb.Parent ~= nil and hitted == false then
  3541. 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)
  3542. elseif orb.Parent == nil then
  3543. break
  3544. end
  3545. end
  3546. end))
  3547. coroutine.resume(coroutine.create(function()
  3548. swait(1)
  3549. orb.Touched:connect(function(hit)
  3550. if hitted == false then
  3551. hitted = true
  3552. game:GetService("Debris"):AddItem(orb, 5)
  3553. orb.Transparency = 1
  3554. orb.Anchored = true
  3555. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3556. elocacenter.Anchored = true
  3557. elocacenter.CFrame = orb.CFrame
  3558. elocacenter.Orientation = vt(0,0,0)
  3559. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3560. eloca1.Anchored = true
  3561. eloca1.CFrame = elocacenter.CFrame
  3562. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3563. eloca2.Anchored = true
  3564. eloca2.CFrame = elocacenter.CFrame
  3565. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3566. eloca3.Anchored = true
  3567. eloca3.CFrame = elocacenter.CFrame
  3568. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3569. eloca4.Anchored = true
  3570. eloca4.CFrame = elocacenter.CFrame
  3571. local lookavec = 0
  3572. local speeds = 0
  3573. CameraEnshaking(1,1)
  3574. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  3575. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3576. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3577. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3578. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3579. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3580. for i = 0, 99 do
  3581. swait()
  3582. lookavec = lookavec + 1
  3583. speeds = speeds + 0.1
  3584. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3585. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3586. 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)
  3587.  
  3588. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3589. 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)
  3590.  
  3591. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3592. 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)
  3593.  
  3594. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3595. 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)
  3596. end
  3597.  
  3598. for i = 0, 149 do
  3599. swait()
  3600. speeds = speeds + 0.1
  3601. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3602. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3603. 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)
  3604.  
  3605. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3606. 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)
  3607.  
  3608. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3609. 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)
  3610.  
  3611. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3612. 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)
  3613. end
  3614. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  3615. if v:FindFirstChild('Head') then
  3616. dmg(v)
  3617. end
  3618. end
  3619. CameraEnshaking(7,30)
  3620. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  3621. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  3622. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  3623. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  3624. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  3625. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  3626. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  3627. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3628. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3629. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3630. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3631. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3632. for i = 0, 24 do
  3633. 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)
  3634. 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)
  3635. 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)
  3636. 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)
  3637. end
  3638. coroutine.resume(coroutine.create(function()
  3639. for i = 0, 499 do
  3640. swait(1)
  3641. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  3642. 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)
  3643. end
  3644. elocacenter:Destroy()
  3645. eloca1:Destroy()
  3646. eloca2:Destroy()
  3647. eloca3:Destroy()
  3648. eloca4:Destroy()
  3649. end))
  3650. end
  3651. end)
  3652. end))
  3653. attack = false
  3654. end
  3655. function Starfall()
  3656. attack = true
  3657. hum.WalkSpeed = 0
  3658. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3659. for i = 0, 5, 0.1 do
  3660. swait()
  3661. 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)
  3662. 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)
  3663. 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)
  3664. 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)
  3665. 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)
  3666. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3667. 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)
  3668. 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)
  3669. end
  3670. local Overed = false
  3671. CameraEnshaking(2,20)
  3672. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3673. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3674. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3675. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3676. local orb = Instance.new("Part", char)
  3677. orb.Anchored = true
  3678. orb.BrickColor = BrickColor.new("Toothpaste")
  3679. orb.CanCollide = false
  3680. orb.FormFactor = 3
  3681. orb.Name = "Remenant"
  3682. orb.Material = "Neon"
  3683. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3684. orb.Size = Vector3.new(1, 1, 1)
  3685. orb.Transparency = 1
  3686. orb.TopSurface = 0
  3687. orb.BottomSurface = 0
  3688. hum.WalkSpeed = storehumanoidWS
  3689. coroutine.resume(coroutine.create(function()
  3690. for i = 0, 9 do
  3691. swait(10)
  3692. local lb = Instance.new("Part")
  3693. lb.Color = MAINRUINCOLOR.Color
  3694. lb.CanCollide = false
  3695. lb.Material = "Neon"
  3696. lb.Anchored = true
  3697. lb.TopSurface = 0
  3698. lb.BottomSurface = 0
  3699. lb.Transparency = 0
  3700. lb.Size = vt(1,1,1)
  3701. 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)))
  3702. lb.Anchored = false
  3703. lb.Parent = char
  3704. local thingery = Instance.new("SpecialMesh",lb)
  3705. thingery.MeshType = "Sphere"
  3706. thingery.Scale = vt(20,20,20)
  3707. game:GetService("Debris"):AddItem(lb, 10)
  3708. local bv = Instance.new("BodyVelocity")
  3709. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3710. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3711. bv.Parent = lb
  3712. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3713. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3714. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3715. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3716. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3717. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3718. local hitted = false
  3719. coroutine.resume(coroutine.create(function()
  3720. while true do
  3721. swait(1)
  3722. if lb.Parent ~= nil and hitted == false then
  3723. 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)
  3724. elseif lb.Parent == nil then
  3725. break
  3726. end
  3727. end
  3728. end))
  3729.  
  3730. game:GetService("Debris"):AddItem(a, 0.1)
  3731.  
  3732. coroutine.resume(coroutine.create(function()
  3733. swait(1)
  3734. lb.Touched:connect(function(hit)
  3735. if hitted == false then
  3736. hitted = true
  3737. lb.Transparency = 1
  3738. lb.Anchored = true
  3739. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3740. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3741. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3742. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3743. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3744. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3745. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3746. CameraEnshaking(1,5)
  3747. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3748. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3749. for i = 0, 9 do
  3750. 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)
  3751. end
  3752. for i = 0, 49 do
  3753. swait()
  3754. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3755. 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)
  3756. end
  3757. end
  3758. end)
  3759. end))
  3760. end
  3761. Overed = true
  3762. orb:Destroy()
  3763. end))
  3764.  
  3765. attack = false
  3766. end
  3767. function UniversalCollapse()
  3768. attack = true
  3769. local speedearn = 0
  3770. hum.WalkSpeed = 0
  3771. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  3772. for i = 0, 10, 0.1 do
  3773. swait()
  3774. speedearn = speedearn + 0.1
  3775. 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)
  3776. 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)
  3777. 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)
  3778. 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)
  3779. 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)
  3780. 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)
  3781. 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)
  3782. 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)
  3783. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  3784. 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)
  3785. 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)
  3786. end
  3787. CameraEnshaking(5,45)
  3788. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  3789. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  3790. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3791. if v:FindFirstChild('Head') then
  3792. dmg(v)
  3793. end
  3794. end
  3795. hum.WalkSpeed = storehumanoidWS
  3796. attack = false
  3797. end
  3798. function ChaosBegone()
  3799. attack = true
  3800. local speedearn = 0
  3801. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75)
  3802. for i = 0, 10, 0.1 do
  3803. swait()
  3804. speedearn = speedearn + 0.1
  3805.  
  3806. 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)
  3807. 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)
  3808. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3809. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3810. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3811. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3812. end
  3813. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  3814. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1)
  3815. CameraEnshaking(5,25)
  3816. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3817. if v:FindFirstChild('Head') then
  3818. dmg(v)
  3819. end
  3820. end
  3821. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  3822. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  3823. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  3824. for i = 0, 3, 0.1 do
  3825. swait()
  3826.  
  3827. 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)
  3828. 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)
  3829. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3830. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3831. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3832. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3833. end
  3834. attack = false
  3835. end
  3836.  
  3837. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  3838. local orb = Instance.new("Part", char)
  3839. orb.Anchored = true
  3840. orb.BrickColor = color
  3841. orb.CanCollide = false
  3842. orb.FormFactor = 3
  3843. orb.Name = "Ring"
  3844. orb.Material = "Neon"
  3845. orb.Size = Vector3.new(1, 1, 1)
  3846. orb.Transparency = 0
  3847. orb.TopSurface = 0
  3848. orb.BottomSurface = 0
  3849. local orbm = Instance.new("SpecialMesh", orb)
  3850. orbm.MeshType = "Sphere"
  3851. orb.CFrame = positted
  3852. orbm.Name = "SizeMesh"
  3853. orbm.Scale = vt(1,1,1)
  3854. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  3855. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  3856. --[[for i = 0, 2 do
  3857. 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)
  3858. end]]--
  3859. coroutine.resume(coroutine.create(function()
  3860. wait(timer)
  3861. CameraEnshaking(3,ShakePower)
  3862. orb.Transparency = 1
  3863. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  3864. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  3865. --[[for i = 0, 4 do
  3866. 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)
  3867. end]]--
  3868. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  3869. wait(3)
  3870. orb:Destroy()
  3871. end))
  3872. end
  3873.  
  3874. function orb_spawn(positted,timer)
  3875. local randomcol = math.random(1,2)
  3876. local orb = Instance.new("Part", char)
  3877. orb.Anchored = true
  3878. if randomcol == 1 then
  3879. orb.BrickColor = BrickColor.new("White")
  3880. elseif randomcol == 2 then
  3881. orb.BrickColor = BrickColor.new("Really black")
  3882. end
  3883. orb.CanCollide = false
  3884. orb.FormFactor = 3
  3885. orb.Name = "Ring"
  3886. orb.Material = "Neon"
  3887. orb.Size = Vector3.new(1, 1, 1)
  3888. orb.Transparency = 0
  3889. orb.TopSurface = 0
  3890. orb.BottomSurface = 0
  3891. local orbm = Instance.new("SpecialMesh", orb)
  3892. orbm.MeshType = "Sphere"
  3893. orb.CFrame = positted
  3894. orbm.Name = "SizeMesh"
  3895. orbm.Scale = vt(1,1,1)
  3896. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  3897. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  3898. for i = 0, 2 do
  3899. 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)
  3900. end
  3901. coroutine.resume(coroutine.create(function()
  3902. wait(timer)
  3903. CameraEnshaking(3,2)
  3904. orb.Transparency = 1
  3905. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  3906. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  3907. for i = 0, 4 do
  3908. 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)
  3909. end
  3910. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  3911. wait(3)
  3912. orb:Destroy()
  3913. end))
  3914. end
  3915. function Wip()
  3916. attack = true
  3917. local rngb = Instance.new("Part", char)
  3918. rngb.Anchored = true
  3919. rngb.BrickColor = origcolor
  3920. rngb.CanCollide = false
  3921. rngb.FormFactor = 3
  3922. rngb.Name = "Ring"
  3923. rngb.Material = "Neon"
  3924. rngb.Size = Vector3.new(1, 0.05, 1)
  3925. rngb.Transparency = 1
  3926. rngb.TopSurface = 0
  3927. rngb.BottomSurface = 0
  3928. local rngmb = Instance.new("SpecialMesh", rngb)
  3929. rngmb.MeshType = "Brick"
  3930. rngmb.Name = "SizeMesh"
  3931. rngmb.Scale = vt(0, 1, 0)
  3932. local orb = rngb:Clone()
  3933. orb.Parent = char
  3934. orb.Transparency = 0
  3935. orb.BrickColor = BrickColor.new("White")
  3936. orb.Size = vt(1, 1, 1)
  3937. local orbmish = orb.SizeMesh
  3938. orbmish.Scale = vt(0, 0, 0)
  3939. orbmish.MeshType = "Sphere"
  3940. local orbe = rngb:Clone()
  3941. orbe.Parent = char
  3942. orbe.Transparency = 0.5
  3943. orbe.BrickColor = BrickColor.new("New Yeller")
  3944. orbe.Size = vt(1, 1, 1)
  3945. local orbmish2 = orbe.SizeMesh
  3946. orbmish2.Scale = vt(0, 0, 0)
  3947. orbmish2.MeshType = "Sphere"
  3948. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  3949. rngb:Destroy()
  3950. for i = 0, 5, 0.1 do
  3951. swait()
  3952. if rainbowmode == true then
  3953. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  3954. end
  3955. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3956. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3957. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  3958. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  3959. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  3960. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  3961. 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)
  3962. 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)
  3963. RootPart.CFrame = FaceMouse()[1]
  3964. end
  3965. orbe.Transparency = 1
  3966. orb.Transparency = 1
  3967. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
  3968. CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
  3969. local a = Instance.new("Part", Character)
  3970. a.Name = "Direction"
  3971. a.Anchored = true
  3972. a.BrickColor = bc("White")
  3973. a.Material = "Neon"
  3974. a.Transparency = 0
  3975. a.Shape = "Cylinder"
  3976. a.CanCollide = false
  3977. local a2 = Instance.new("Part", Character)
  3978. a2.Name = "Direction"
  3979. a2.Anchored = true
  3980. a2.BrickColor = bc("New Yeller")
  3981. a2.Color = Color3.new(r / 255, g / 255, b / 255)
  3982. a2.Material = "Neon"
  3983. a2.Transparency = 0.5
  3984. a2.Shape = "Cylinder"
  3985. a2.CanCollide = false
  3986. local ba = Instance.new("Part", Character)
  3987. ba.Name = "HitDirect"
  3988. ba.Anchored = true
  3989. ba.BrickColor = bc("Really black")
  3990. ba.Material = "Neon"
  3991. ba.Transparency = 1
  3992. ba.CanCollide = false
  3993. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3994. local ignore = Character
  3995. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3996. a.BottomSurface = 10
  3997. a.TopSurface = 10
  3998. a2.BottomSurface = 10
  3999. a2.TopSurface = 10
  4000. local distance = (orb.CFrame.p - position).magnitude
  4001. a.Size = Vector3.new(distance, 1, 1)
  4002. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  4003. a2.Size = Vector3.new(distance, 1, 1)
  4004. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  4005. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4006. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4007. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4008. game:GetService("Debris"):AddItem(a, 20)
  4009. game:GetService("Debris"):AddItem(a2, 20)
  4010. game:GetService("Debris"):AddItem(ba, 20)
  4011. local msh = Instance.new("SpecialMesh", a)
  4012. msh.MeshType = "Cylinder"
  4013. msh.Scale = vt(1, 25, 25)
  4014. local msh2 = Instance.new("SpecialMesh", a2)
  4015. msh2.MeshType = "Cylinder"
  4016. msh2.Scale = vt(1, 30, 30)
  4017. for i = 0, 10, 0.1 do
  4018. swait()
  4019. CameraEnshaking(1, 5)
  4020. a2.Color = Color3.new(r / 255, g / 255, b / 255)
  4021. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  4022. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  4023. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  4024. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4025. distance = (orb.CFrame.p - position).magnitude
  4026. if typrot == 1 then
  4027. rotation = rotation + 2.5
  4028. elseif typrot == 2 then
  4029. rotation = rotation - 2.5
  4030. end
  4031. RootPart.CFrame = FaceMouse()[1]
  4032. a.Size = Vector3.new(distance, 1, 1)
  4033. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  4034. a2.Size = Vector3.new(distance, 1, 1)
  4035. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  4036. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4037. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4038. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4039. msh.Scale = msh.Scale - vt(0, 0.25, 0.25)
  4040. msh2.Scale = msh2.Scale - vt(0, 0.3, 0.3)
  4041. 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)
  4042. 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)
  4043. MagniDamage(ba, 30, 500, 60000, 0, "Normal")
  4044. end
  4045. a:Destroy()
  4046. a2:Destroy()
  4047. ba:Destroy()
  4048. orb:Destroy()
  4049. orbe:Destroy()
  4050. attack = false
  4051. end
  4052. function UniversalSpark()
  4053. attack = true
  4054. local rngb = Instance.new("Part", char)
  4055. rngb.Anchored = true
  4056. rngb.BrickColor = origcolor
  4057. rngb.CanCollide = false
  4058. rngb.FormFactor = 3
  4059. rngb.Name = "Ring"
  4060. rngb.Material = "Neon"
  4061. rngb.Size = Vector3.new(1, 0.05, 1)
  4062. rngb.Transparency = 1
  4063. rngb.TopSurface = 0
  4064. rngb.BottomSurface = 0
  4065. local rngmb = Instance.new("SpecialMesh", rngb)
  4066. rngmb.MeshType = "Brick"
  4067. rngmb.Name = "SizeMesh"
  4068. rngmb.Scale = vt(0, 1, 0)
  4069. local orb = rngb:Clone()
  4070. orb.Parent = char
  4071. orb.Transparency = 0
  4072. orb.BrickColor = BrickColor.new("White")
  4073. orb.Size = vt(1, 1, 1)
  4074. local orbmish = orb.SizeMesh
  4075. orbmish.Scale = vt(0, 0, 0)
  4076. orbmish.MeshType = "Sphere"
  4077. local orbe = rngb:Clone()
  4078. orbe.Parent = char
  4079. orbe.Transparency = 0.5
  4080. orbe.BrickColor = BrickColor.new("New Yeller")
  4081. orbe.Size = vt(1, 1, 1)
  4082. local orbmish2 = orbe.SizeMesh
  4083. orbmish2.Scale = vt(0, 0, 0)
  4084. orbmish2.MeshType = "Sphere"
  4085. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  4086. rngb:Destroy()
  4087. for i = 0, 5, 0.1 do
  4088. swait()
  4089. if rainbowmode == true then
  4090. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  4091. end
  4092. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  4093. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  4094. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  4095. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  4096. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4097. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4098. 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)
  4099. 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)
  4100. RootPart.CFrame = FaceMouse()[1]
  4101. end
  4102. orbe.Transparency = 1
  4103. orb.Transparency = 1
  4104. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
  4105. CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
  4106. CFuncs.Sound.Create("rbxassetid://741272936", char, 0.75, 1)
  4107. CFuncs.Sound.Create("rbxassetid://1192402877", char, 1, 1)
  4108. CFuncs.Sound.Create("rbxassetid://1208650519", char, 0.75, 1)
  4109. CFuncs.Sound.Create("rbxassetid://164881112", char, 0.75, 1)
  4110. CFuncs.Sound.Create("rbxassetid://429123896", char, 1, 0.85)
  4111. CFuncs.Sound.Create("rbxassetid://164178927", char, 1, 1)
  4112. local xd = Instance.new("Sound", char)
  4113. xd.SoundId = "rbxassetid://445796828"
  4114. xd.Pitch = 0.75
  4115. xd.Looped = true
  4116. xd.Volume = 1.25
  4117. xd:Play()
  4118. local a = Instance.new("Part", Character)
  4119. a.Name = "Direction"
  4120. a.Anchored = true
  4121. a.BrickColor = bc("Alder")
  4122. a.Color = MAINRUINCOLOR.Color
  4123. a.Material = "Neon"
  4124. a.Transparency = 0.5
  4125. a.Shape = "Cylinder"
  4126. a.CanCollide = false
  4127. local a2 = Instance.new("Part", Character)
  4128. a2.Name = "Direction"
  4129. a2.Anchored = true
  4130. a2.BrickColor = bc("New Yeller")
  4131. a2.Color = MAINRUINCOLOR.Color
  4132. a2.Material = "Neon"
  4133. a2.Transparency = 0.5
  4134. a2.Shape = "Cylinder"
  4135. a2.CanCollide = false
  4136. local ba = Instance.new("Part", Character)
  4137. ba.Name = "HitDirect"
  4138. ba.Anchored = true
  4139. ba.BrickColor = bc("Really black")
  4140. ba.Material = "Neon"
  4141. ba.Transparency = 1
  4142. ba.CanCollide = false
  4143. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  4144. local ignore = Character
  4145. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4146. a.BottomSurface = 10
  4147. a.TopSurface = 10
  4148. a2.BottomSurface = 10
  4149. a2.TopSurface = 10
  4150. local distance = (orb.CFrame.p - position).magnitude
  4151. a.Size = Vector3.new(distance, 1, 1)
  4152. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  4153. a2.Size = Vector3.new(distance, 1, 1)
  4154. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  4155. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4156. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4157. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4158. game:GetService("Debris"):AddItem(a, 60)
  4159. game:GetService("Debris"):AddItem(a2, 60)
  4160. game:GetService("Debris"):AddItem(ba, 60)
  4161. local outerscale = 0
  4162. local msh = Instance.new("SpecialMesh", a)
  4163. msh.MeshType = "Cylinder"
  4164. msh.Scale = vt(1, 0, 0)
  4165. local msh2 = Instance.new("SpecialMesh", a2)
  4166. msh2.MeshType = "Cylinder"
  4167. msh2.Scale = vt(1, 0, 0)
  4168. for i = 0, 2, 0.1 do
  4169. swait()
  4170. CameraEnshaking(1, 1)
  4171. msh2.Scale = msh2.Scale + vt(0, outerscale * 20, outerscale * 20)
  4172. msh.Scale = msh.Scale + vt(0, outerscale * 15, outerscale * 15)
  4173. outerscale = outerscale - 0.015
  4174. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  4175. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  4176. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  4177. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4178. distance = (orb.CFrame.p - position).magnitude
  4179. if typrot == 1 then
  4180. rotation = rotation + 2.5
  4181. elseif typrot == 2 then
  4182. rotation = rotation - 2.5
  4183. end
  4184. RootPart.CFrame = FaceMouse()[1]
  4185. a.Size = Vector3.new(distance, 1, 1)
  4186. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  4187. a2.Size = Vector3.new(distance, 1, 1)
  4188. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  4189. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4190. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4191. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4192. 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)
  4193. 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)
  4194. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  4195. end
  4196. for z = 0, 2 do
  4197. for i = 0, 4, 0.1 do
  4198. swait()
  4199. CameraEnshaking(1, 1)
  4200. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  4201. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  4202. outerscale = outerscale + 0.015
  4203. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  4204. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  4205. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  4206. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4207. distance = (orb.CFrame.p - position).magnitude
  4208. if typrot == 1 then
  4209. rotation = rotation + 2.5
  4210. elseif typrot == 2 then
  4211. rotation = rotation - 2.5
  4212. end
  4213. RootPart.CFrame = FaceMouse()[1]
  4214. a.Size = Vector3.new(distance, 1, 1)
  4215. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  4216. a2.Size = Vector3.new(distance, 1, 1)
  4217. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  4218. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4219. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4220. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4221. 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)
  4222. 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)
  4223. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  4224. end
  4225. for i = 0, 4, 0.1 do
  4226. swait()
  4227. CameraEnshaking(1, 1)
  4228. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  4229. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  4230. outerscale = outerscale - 0.015
  4231. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  4232. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  4233. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  4234. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4235. distance = (orb.CFrame.p - position).magnitude
  4236. if typrot == 1 then
  4237. rotation = rotation + 2.5
  4238. elseif typrot == 2 then
  4239. rotation = rotation - 2.5
  4240. end
  4241. RootPart.CFrame = FaceMouse()[1]
  4242. a.Size = Vector3.new(distance, 1, 1)
  4243. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  4244. a2.Size = Vector3.new(distance, 1, 1)
  4245. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  4246. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4247. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4248. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4249. 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)
  4250. 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)
  4251. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  4252. end
  4253. end
  4254. for i = 0, 4, 0.1 do
  4255. swait()
  4256. CameraEnshaking(1, 1)
  4257. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  4258. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  4259. xd.Volume = xd.Volume - 0.025
  4260. a.Transparency = a.Transparency + 0.025
  4261. a2.Transparency = a2.Transparency + 0.025
  4262. outerscale = outerscale - 0.015
  4263. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  4264. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  4265. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  4266. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4267. distance = (orb.CFrame.p - position).magnitude
  4268. if typrot == 1 then
  4269. rotation = rotation + 2.5
  4270. elseif typrot == 2 then
  4271. rotation = rotation - 2.5
  4272. end
  4273. RootPart.CFrame = FaceMouse()[1]
  4274. a.Size = Vector3.new(distance, 1, 1)
  4275. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  4276. a2.Size = Vector3.new(distance, 1, 1)
  4277. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  4278. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4279. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4280. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  4281. 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)
  4282. 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)
  4283. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  4284. end
  4285. xd:Destroy()
  4286. a:Destroy()
  4287. a2:Destroy()
  4288. ba:Destroy()
  4289. orb:Destroy()
  4290. orbe:Destroy()
  4291. attack = false
  4292. end
  4293. function resetmode()
  4294. rainbowmode = false
  4295. chaosmode = false
  4296. RecolorTextAndRename("Unknown Guest", Color3.new(0, 0, 0), Color3.new(0, 0, 0.4))
  4297. ModeOfGlitch = 1
  4298. storehumanoidWS = 16
  4299. for i, v in pairs(mw2:GetChildren()) do
  4300. if v:IsA("Part") then
  4301. v.BrickColor = BrickColor.new("Really black")
  4302. v.Material = "Neon"
  4303. end
  4304. end
  4305. for i, v in pairs(mw1:GetChildren()) do
  4306. if v:IsA("Part") then
  4307. v.Transparency = 1
  4308. v.BrickColor = BrickColor.new("Really red")
  4309. v.Material = "Neon"
  4310. end
  4311. end
  4312. MAINRUINCOLOR = BrickColor.new("Really blue")
  4313. hum.WalkSpeed = 16
  4314. newTheme("rbxassetid://919231299", 0, 1.1, 10)
  4315. for i, v in pairs(m:GetChildren()) do
  4316. if v:IsA("Part") then
  4317. v.BrickColor = BrickColor.new("Navy blue")
  4318. v.Material = "Glass"
  4319. end
  4320. end
  4321. for i, v in pairs(m2:GetChildren()) do
  4322. if v:IsA("Part") then
  4323. v.BrickColor = BrickColor.new("Crimson")
  4324. v.Material = "Granite"
  4325. end
  4326. end
  4327. for i, v in pairs(m3:GetChildren()) do
  4328. if v:IsA("Part") then
  4329. v.BrickColor = BrickColor.new("Navy blue")
  4330. v.Material = "Neon"
  4331. end
  4332. end
  4333. for i, v in pairs(extrawingmod1:GetChildren()) do
  4334. if v:IsA("Part") then
  4335. v.Transparency = 0.5
  4336. v.BrickColor = BrickColor.new("Crimson")
  4337. v.Material = "Neon"
  4338. end
  4339. end
  4340. for i, v in pairs(extrawingmod2:GetChildren()) do
  4341. if v:IsA("Part") then
  4342. v.Transparency = 1
  4343. v.BrickColor = BrickColor.new("White")
  4344. v.Material = "Neon"
  4345. end
  4346. end
  4347. end
  4348. function attackone()
  4349. attack = true
  4350. for i = 0, 1, 0.1 do
  4351. swait()
  4352. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(-40)), 0.2)
  4353. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40)), 0.2)
  4354. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  4355. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  4356. 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)
  4357. 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)
  4358. end
  4359. CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1.1)
  4360. local hitb = Instance.new("Part", char)
  4361. hitb.Anchored = true
  4362. hitb.CanCollide = false
  4363. hitb.FormFactor = 3
  4364. hitb.Name = "Ring"
  4365. hitb.Material = "Neon"
  4366. hitb.Size = Vector3.new(1, 1, 1)
  4367. hitb.Transparency = 1
  4368. hitb.TopSurface = 0
  4369. hitb.BottomSurface = 0
  4370. hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
  4371. MagniDamage(hitb, 3, 10, 30, 0, "Normal")
  4372. hitb:Destroy()
  4373. for i = 0, 1, 0.1 do
  4374. swait()
  4375. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(70)), 0.4)
  4376. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-70)), 0.4)
  4377. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  4378. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  4379. 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)
  4380. 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)
  4381. end
  4382. attack = false
  4383. end
  4384. function attacktwo()
  4385. attack = true
  4386. for i = 0, 1, 0.1 do
  4387. swait()
  4388. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(40)), 0.2)
  4389. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  4390. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  4391. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  4392. 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)
  4393. 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)
  4394. end
  4395. CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1)
  4396. local hitb = Instance.new("Part", char)
  4397. hitb.Anchored = true
  4398. hitb.CanCollide = false
  4399. hitb.FormFactor = 3
  4400. hitb.Name = "Ring"
  4401. hitb.Material = "Neon"
  4402. hitb.Size = Vector3.new(1, 1, 1)
  4403. hitb.Transparency = 1
  4404. hitb.TopSurface = 0
  4405. hitb.BottomSurface = 0
  4406. hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
  4407. MagniDamage(hitb, 3, 10, 30, 0, "Normal")
  4408. hitb:Destroy()
  4409. for i = 0, 1, 0.1 do
  4410. swait()
  4411. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-70)), 0.4)
  4412. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(70)), 0.4)
  4413. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  4414. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  4415. 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)
  4416. 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)
  4417. end
  4418. attack = false
  4419. end
  4420. function attackthree()
  4421. attack = true
  4422. for i = 0, 1, 0.1 do
  4423. swait()
  4424. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  4425. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3)
  4426. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  4427. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4428. 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)
  4429. 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)
  4430. end
  4431. local distlook = 5
  4432. for i = 0, 4 do
  4433. swait(2)
  4434. CameraEnshaking(2, 3)
  4435. local hite = Instance.new("Part", char)
  4436. hite.Anchored = true
  4437. hite.CanCollide = false
  4438. hite.FormFactor = 3
  4439. hite.Name = "Ring"
  4440. hite.Material = "Neon"
  4441. hite.Size = Vector3.new(1, 1, 1)
  4442. hite.Transparency = 1
  4443. hite.TopSurface = 0
  4444. hite.BottomSurface = 0
  4445. hite.CFrame = root.CFrame + root.CFrame.lookVector * distlook
  4446. sphere(3, "Add", hite.CFrame, vt(0, 0, 0), 0.15, MAINRUINCOLOR)
  4447. sphere(6, "Add", hite.CFrame, vt(0, 0, 0), 0.3, MAINRUINCOLOR)
  4448. MagniDamage(hite, 10, 15, 35, 0, "Normal")
  4449. for i = 0, 2 do
  4450. 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)
  4451. 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)
  4452. 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)
  4453. end
  4454. CFuncs.Sound.Create("rbxassetid://183763506", hite, 2.5, 1)
  4455. CFuncs.Sound.Create("rbxassetid://178452221", hite, 0.25, 0.6)
  4456. game:GetService("Debris"):AddItem(hite, 5)
  4457. distlook = distlook + 10
  4458. end
  4459. attack = false
  4460. end
  4461. local attacktype = 1
  4462. mouse.Button1Down:connect(function()
  4463. if attack == false and attacktype == 1 then
  4464. attacktype = 2
  4465. attackone()
  4466. elseif attack == false and attacktype == 2 then
  4467. attacktype = 3
  4468. attacktwo()
  4469. elseif attack == false and attacktype == 3 then
  4470. attacktype = 1
  4471. attackthree()
  4472. elseif attack == false and attacktype == 4 then
  4473. attacktype = 1
  4474. end
  4475. end)
  4476. mouse.KeyDown:connect(function(k)
  4477. if k == "q" and attack == false and ModeOfGlitch ~= 2 then
  4478. ModeOfGlitch = 2
  4479. storehumanoidWS = 16
  4480. hum.WalkSpeed = 16
  4481. rainbowmode = false
  4482. chaosmode = false
  4483. RecolorTextAndRename("Starry Guest", Color3.new(1, 1, 1), Color3.new(0, 1, 1))
  4484. newTheme("rbxassetid://621367124", 20.25, 1.1, 1)
  4485. MAINRUINCOLOR = BrickColor.new("Deep blue")
  4486. for i, v in pairs(mw2:GetChildren()) do
  4487. if v:IsA("Part") then
  4488. v.BrickColor = MAINRUINCOLOR
  4489. v.Material = "Neon"
  4490. end
  4491. end
  4492. for i, v in pairs(mw1:GetChildren()) do
  4493. if v:IsA("Part") then
  4494. v.Transparency = 0.5
  4495. v.BrickColor = BrickColor.new("Toothpaste")
  4496. v.Material = "Neon"
  4497. end
  4498. end
  4499. for i, v in pairs(m:GetChildren()) do
  4500. if v:IsA("Part") then
  4501. v.BrickColor = BrickColor.new("White")
  4502. v.Material = "Ice"
  4503. end
  4504. end
  4505. for i, v in pairs(m2:GetChildren()) do
  4506. if v:IsA("Part") then
  4507. v.BrickColor = BrickColor.new("Deep blue")
  4508. v.Material = "Glass"
  4509. end
  4510. end
  4511. for i, v in pairs(m3:GetChildren()) do
  4512. if v:IsA("Part") then
  4513. v.BrickColor = BrickColor.new("Really blue")
  4514. v.Material = "Neon"
  4515. end
  4516. end
  4517. for i, v in pairs(extrawingmod1:GetChildren()) do
  4518. if v:IsA("Part") then
  4519. v.Transparency = 1
  4520. v.BrickColor = BrickColor.new("White")
  4521. v.Material = "Neon"
  4522. end
  4523. end
  4524. for i, v in pairs(extrawingmod2:GetChildren()) do
  4525. if v:IsA("Part") then
  4526. v.Transparency = 1
  4527. v.BrickColor = BrickColor.new("White")
  4528. v.Material = "Neon"
  4529. end
  4530. end
  4531. elseif k == "q" and attack == false and ModeOfGlitch == 2 then
  4532. resetmode()
  4533. end
  4534. if k == "e" and attack == false and ModeOfGlitch ~= 3 then
  4535. ModeOfGlitch = 3
  4536. storehumanoidWS = 100
  4537. hum.WalkSpeed = 80
  4538. rainbowmode = false
  4539. chaosmode = false
  4540. RecolorTextAndRename("Controlled Guest", Color3.new(0.4, 0, 0), Color3.new(0, 0, 0.4))
  4541. newTheme("rbxassetid://879189331", 0.8, 1, 0.8)
  4542. MAINRUINCOLOR = BrickColor.new("Really red")
  4543. for i, v in pairs(mw2:GetChildren()) do
  4544. if v:IsA("Part") then
  4545. v.BrickColor = MAINRUINCOLOR
  4546. v.Material = "Neon"
  4547. end
  4548. end
  4549. for i, v in pairs(mw1:GetChildren()) do
  4550. if v:IsA("Part") then
  4551. v.Transparency = 0
  4552. v.BrickColor = MAINRUINCOLOR
  4553. v.Material = "Neon"
  4554. end
  4555. end
  4556. for i, v in pairs(m:GetChildren()) do
  4557. if v:IsA("Part") then
  4558. v.BrickColor = BrickColor.new("Black")
  4559. v.Material = "Ice"
  4560. end
  4561. end
  4562. for i, v in pairs(m2:GetChildren()) do
  4563. if v:IsA("Part") then
  4564. v.BrickColor = BrickColor.new("Crimson")
  4565. v.Material = "Glass"
  4566. end
  4567. end
  4568. for i, v in pairs(m3:GetChildren()) do
  4569. if v:IsA("Part") then
  4570. v.BrickColor = BrickColor.new("Crimson")
  4571. v.Material = "Neon"
  4572. end
  4573. end
  4574. for i, v in pairs(extrawingmod1:GetChildren()) do
  4575. if v:IsA("Part") then
  4576. v.Transparency = 0.4
  4577. v.BrickColor = BrickColor.new("Really red")
  4578. v.Material = "Neon"
  4579. end
  4580. end
  4581. for i, v in pairs(extrawingmod2:GetChildren()) do
  4582. if v:IsA("Part") then
  4583. v.Transparency = 0
  4584. v.BrickColor = BrickColor.new("White")
  4585. v.Material = "Neon"
  4586. end
  4587. end
  4588. elseif k == "e" and attack == false and ModeOfGlitch == 3 then
  4589. resetmode()
  4590. end
  4591. if k == "r" and attack == false and ModeOfGlitch ~= 4 then
  4592. ModeOfGlitch = 4
  4593. storehumanoidWS = 16
  4594. hum.WalkSpeed = 16
  4595. rainbowmode = false
  4596. chaosmode = true
  4597. tl1.Enabled = true
  4598. tl2.Enabled = true
  4599. tl3.Enabled = true
  4600. RecolorTextAndRename("cOrRuPtEd gUeSt",Color3.new(0,0,0),BrickColor.random().Color)
  4601. newTheme("rbxassetid://480746068",0,1,1)
  4602. MAINRUINCOLOR = BrickColor.new("Black")
  4603. for i, v in pairs(mw2:GetChildren()) do
  4604. if v:IsA("Part") then
  4605. v.BrickColor = MAINRUINCOLOR
  4606. v.Material = "Neon"
  4607. end
  4608. end
  4609. for i, v in pairs(mw1:GetChildren()) do
  4610. if v:IsA("Part") then
  4611. v.Transparency = 0.75
  4612. v.BrickColor = BrickColor.random()
  4613. v.Material = "Neon"
  4614. end
  4615. end
  4616. for i, v in pairs(m:GetChildren()) do
  4617. if v:IsA("Part") then
  4618. v.BrickColor = BrickColor.new("Black")
  4619. v.Material = "Neon"
  4620. end
  4621. end
  4622. for i, v in pairs(m2:GetChildren()) do
  4623. if v:IsA("Part") then
  4624. v.BrickColor = BrickColor.random()
  4625. v.Material = "Neon"
  4626. end
  4627. end
  4628. for i, v in pairs(m3:GetChildren()) do
  4629. if v:IsA("Part") then
  4630. v.BrickColor = BrickColor.new("Black")
  4631. v.Material = "Neon"
  4632. end
  4633. end
  4634. for i, v in pairs(extrawingmod1:GetChildren()) do
  4635. if v:IsA("Part") then
  4636. v.Transparency = 1
  4637. v.BrickColor = BrickColor.new("White")
  4638. v.Material = "Neon"
  4639. end
  4640. end
  4641. for i, v in pairs(extrawingmod2:GetChildren()) do
  4642. if v:IsA("Part") then
  4643. v.Transparency = 1
  4644. v.BrickColor = BrickColor.new("White")
  4645. v.Material = "Neon"
  4646. end
  4647. end
  4648. elseif k == "r" and attack == false and ModeOfGlitch == 4 then
  4649. resetmode()
  4650. end
  4651. if k == "v" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 666 then
  4652. newThemeCust("rbxassetid://964435618",0,1,1)
  4653. attack = true
  4654. hum.WalkSpeed = 0
  4655. MAINRUINCOLOR = BrickColor.new("Really black")
  4656. for i = 0, 24, 0.1 do
  4657. swait()
  4658. 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)
  4659. 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)
  4660. 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)
  4661. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4662. 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)
  4663. 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)
  4664. end
  4665. CameraEnshaking(1,1)
  4666.  
  4667. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  4668. wait(0.55)
  4669. CameraEnshaking(1,2)
  4670.  
  4671. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  4672. wait(0.55)
  4673. CameraEnshaking(1,3)
  4674.  
  4675. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  4676. wait(0.55)
  4677. CameraEnshaking(10,5)
  4678. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  4679. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  4680. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  4681. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  4682. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  4683.  
  4684. for i = 0, 49 do
  4685.  
  4686. end
  4687. ModeOfGlitch = 666
  4688. storehumanoidWS = 16
  4689. hum.WalkSpeed = 16
  4690. rainbowmode = false
  4691. chaosmode = false
  4692. tl1.Enabled = true
  4693. tl2.Enabled = true
  4694. tl3.Enabled = true
  4695. RecolorTextAndRename("Glitched Hateful Guest",Color3.new(1,0,0),Color3.new(0.75,0,0))
  4696. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  4697. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  4698. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  4699. for i, v in pairs(mw2:GetChildren()) do
  4700. if v:IsA("Part") then
  4701. v.BrickColor = MAINRUINCOLOR
  4702. v.Material = "Neon"
  4703. end
  4704. end
  4705. for i, v in pairs(mw1:GetChildren()) do
  4706. if v:IsA("Part") then
  4707. v.Transparency = 0
  4708. v.BrickColor = MAINRUINCOLOR
  4709. v.Material = "Neon"
  4710. end
  4711. end
  4712. for i, v in pairs(m:GetChildren()) do
  4713. if v:IsA("Part") then
  4714. v.Color = Color3.new(1,0,0)
  4715. v.Material = "Neon"
  4716. end
  4717. end
  4718. for i, v in pairs(m2:GetChildren()) do
  4719. if v:IsA("Part") then
  4720. v.Color = Color3.new(1,0,0)
  4721. v.Material = "Neon"
  4722. end
  4723. end
  4724. for i, v in pairs(m3:GetChildren()) do
  4725. if v:IsA("Part") then
  4726. v.Color = Color3.new(1,0,0)
  4727. v.Material = "Neon"
  4728. end
  4729. end
  4730. for i, v in pairs(extrawingmod1:GetChildren()) do
  4731. if v:IsA("Part") then
  4732. v.Transparency = 0
  4733. v.Color = Color3.new(1,0,0)
  4734. v.Material = "Neon"
  4735. end
  4736. end
  4737. for i, v in pairs(extrawingmod2:GetChildren()) do
  4738. if v:IsA("Part") then
  4739. v.Transparency = 0
  4740. v.Color = Color3.new(1,0,0)
  4741. v.Material = "Neon"
  4742. end
  4743. attack = false
  4744. end
  4745. elseif k == "v" and attack == false and ModeOfGlitch == 666 then
  4746. resetmode()
  4747. end
  4748. if k == "t" and attack == false and ModeOfGlitch ~= 5 then
  4749. ModeOfGlitch = 5
  4750.  
  4751. storehumanoidWS = 16
  4752. hum.WalkSpeed = 16
  4753. rainbowmode = false
  4754. chaosmode = false
  4755. RecolorTextAndRename("Guest Commando", Color3.new(0, 0, 0), Color3.new(0, 0, 0))
  4756. newTheme("rbxassetid://1377737338", 0, 0.9, 11)
  4757. ModeOfGlitch = 1
  4758. MAINRUINCOLOR = BrickColor.new("White")
  4759. for i, v in pairs(mw2:GetChildren()) do
  4760. if v:IsA("Part") then
  4761. v.BrickColor = MAINRUINCOLOR
  4762. v.Material = "Neon"
  4763. end
  4764. end
  4765. for i, v in pairs(mw1:GetChildren()) do
  4766. if v:IsA("Part") then
  4767. v.Transparency = 0
  4768. v.BrickColor = MAINRUINCOLOR
  4769. v.Material = "Neon"
  4770. end
  4771. end
  4772. for i, v in pairs(m:GetChildren()) do
  4773. if v:IsA("Part") then
  4774. v.BrickColor = BrickColor.new("Really black")
  4775. v.Material = "Ice"
  4776. end
  4777. end
  4778. for i, v in pairs(m2:GetChildren()) do
  4779. if v:IsA("Part") then
  4780. v.BrickColor = BrickColor.new("Really black")
  4781. v.Material = "Ice"
  4782. end
  4783. end
  4784. for i, v in pairs(m3:GetChildren()) do
  4785. if v:IsA("Part") then
  4786. v.BrickColor = BrickColor.new("Really black")
  4787. v.Material = "Neon"
  4788. end
  4789. end
  4790. for i, v in pairs(extrawingmod1:GetChildren()) do
  4791. if v:IsA("Part") then
  4792. v.Transparency = 0.4
  4793. v.BrickColor = BrickColor.new("Really black")
  4794. v.Material = "Neon"
  4795. end
  4796. end
  4797. for i, v in pairs(extrawingmod2:GetChildren()) do
  4798. if v:IsA("Part") then
  4799. v.Transparency = 0.4
  4800. v.BrickColor = BrickColor.new("Really black")
  4801. v.Material = "Neon"
  4802. end
  4803. end
  4804. elseif k == "t" and attack == false and ModeOfGlitch == 5 then
  4805. resetmode()
  4806. end
  4807. if k == "y" and attack == false and ModeOfGlitch ~= 6 then
  4808. ModeOfGlitch = 6
  4809. storehumanoidWS = 75
  4810. hum.WalkSpeed = 75
  4811. rainbowmode = false
  4812. chaosmode = false
  4813. RecolorTextAndRename("Justice Guest", Color3.new(0, 0, 0.1), Color3.new(0, 0, 1))
  4814. newTheme("rbxassetid://1146120545", 0, 1.2, 1)
  4815. MAINRUINCOLOR = BrickColor.new("Really black")
  4816. for i, v in pairs(mw2:GetChildren()) do
  4817. if v:IsA("Part") then
  4818. v.BrickColor = BrickColor.new("Navy blue")
  4819. v.Material = "Neon"
  4820. end
  4821. end
  4822. for i, v in pairs(mw1:GetChildren()) do
  4823. if v:IsA("Part") then
  4824. v.Transparency = 0
  4825. v.BrickColor = BrickColor.new("Deep blue")
  4826. v.Material = "Neon"
  4827. end
  4828. end
  4829. for i, v in pairs(m:GetChildren()) do
  4830. if v:IsA("Part") then
  4831. v.BrickColor = BrickColor.new("Navy blue")
  4832. v.Material = "Ice"
  4833. end
  4834. end
  4835. for i, v in pairs(m2:GetChildren()) do
  4836. if v:IsA("Part") then
  4837. v.BrickColor = BrickColor.new("Deep blue")
  4838. v.Material = "Ice"
  4839. end
  4840. end
  4841. for i, v in pairs(m3:GetChildren()) do
  4842. if v:IsA("Part") then
  4843. v.BrickColor = BrickColor.new("Navy blue")
  4844. v.Material = "Neon"
  4845. end
  4846. end
  4847. for i, v in pairs(extrawingmod1:GetChildren()) do
  4848. if v:IsA("Part") then
  4849. v.Transparency = 0.7
  4850. v.BrickColor = BrickColor.new("Deep blue")
  4851. v.Material = "Neon"
  4852. end
  4853. end
  4854. for i, v in pairs(extrawingmod2:GetChildren()) do
  4855. if v:IsA("Part") then
  4856. v.Transparency = 0.7
  4857. v.BrickColor = BrickColor.new("Navy blue")
  4858. v.Material = "Neon"
  4859. end
  4860. end
  4861.  
  4862.  
  4863. elseif k == "y" and attack == false and ModeOfGlitch == 6 then
  4864. resetmode()
  4865. end
  4866. if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
  4867. ModeOfGlitch = 6127843
  4868. storehumanoidWS = 50
  4869. hum.WalkSpeed = 50
  4870. rainbowmode = true
  4871. chaosmode = false
  4872. RecolorTextAndRename("The Last Hope", Color3.new(1, 1, 1), Color3.new(1, 1, 1))
  4873. newTheme("rbxassetid://1504604335", 0, 1.25, 1)
  4874. MAINRUINCOLOR = BrickColor.new("White")
  4875. for i, v in pairs(mw2:GetChildren()) do
  4876. if v:IsA("Part") then
  4877. v.BrickColor = MAINRUINCOLOR
  4878. v.Material = "Neon"
  4879. end
  4880. end
  4881. for i, v in pairs(mw1:GetChildren()) do
  4882. if v:IsA("Part") then
  4883. v.Transparency = 0
  4884. v.BrickColor = MAINRUINCOLOR
  4885. v.Material = "Neon"
  4886. end
  4887. end
  4888. for i, v in pairs(m:GetChildren()) do
  4889. if v:IsA("Part") then
  4890. v.BrickColor = BrickColor.new("White")
  4891. v.Material = "Neon"
  4892. end
  4893. end
  4894. for i, v in pairs(m2:GetChildren()) do
  4895. if v:IsA("Part") then
  4896. v.BrickColor = BrickColor.new("White")
  4897. v.Material = "Neon"
  4898. end
  4899. end
  4900. for i, v in pairs(m3:GetChildren()) do
  4901. if v:IsA("Part") then
  4902. v.BrickColor = BrickColor.new("White")
  4903. v.Material = "Neon"
  4904. end
  4905. end
  4906. for i, v in pairs(extrawingmod1:GetChildren()) do
  4907. if v:IsA("Part") then
  4908. v.Transparency = 1
  4909. v.BrickColor = BrickColor.new("White")
  4910. v.Material = "Neon"
  4911. end
  4912. end
  4913. for i, v in pairs(extrawingmod2:GetChildren()) do
  4914. if v:IsA("Part") then
  4915. v.Transparency = 1
  4916. v.BrickColor = BrickColor.new("White")
  4917. v.Material = "Neon"
  4918. end
  4919. end
  4920. elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
  4921. resetmode()
  4922. end
  4923. if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
  4924. ModeOfGlitch = 1000000
  4925. storehumanoidWS = 100
  4926. hum.WalkSpeed = 100
  4927. rainbowmode = false
  4928. chaosmode = false
  4929. RecolorTextAndRename("The L A S T Guest", Color3.new(0.25, 0, 1), Color3.new(0.5, 0, 1))
  4930. newTheme("rbxassetid://361039297", 0, 1.2, 1)
  4931. MAINRUINCOLOR = BrickColor.new("Navy blue")
  4932. for i, v in pairs(mw2:GetChildren()) do
  4933. if v:IsA("Part") then
  4934. v.BrickColor = MAINRUINCOLOR
  4935. v.Material = "Neon"
  4936. end
  4937. end
  4938. for i, v in pairs(mw1:GetChildren()) do
  4939. if v:IsA("Part") then
  4940. v.Transparency = 0
  4941. v.BrickColor = MAINRUINCOLOR
  4942. v.Material = "Neon"
  4943. end
  4944. end
  4945. for i, v in pairs(m:GetChildren()) do
  4946. if v:IsA("Part") then
  4947. v.Color = Color3.new(0, 0, 0.3)
  4948. v.Material = "Neon"
  4949. end
  4950. end
  4951. for i, v in pairs(m2:GetChildren()) do
  4952. if v:IsA("Part") then
  4953. v.Color = Color3.new(0, 0, 0.5)
  4954. v.Material = "Neon"
  4955. end
  4956. end
  4957. for i, v in pairs(m3:GetChildren()) do
  4958. if v:IsA("Part") then
  4959. v.Color = Color3.new(0, 0, 0.7)
  4960. v.Material = "Neon"
  4961. end
  4962. end
  4963. for i, v in pairs(extrawingmod1:GetChildren()) do
  4964. if v:IsA("Part") then
  4965. v.Transparency = 0
  4966. v.Color = Color3.new(0, 0, 0.9)
  4967. v.Material = "Neon"
  4968. end
  4969. end
  4970. for i, v in pairs(extrawingmod2:GetChildren()) do
  4971. if v:IsA("Part") then
  4972. v.Transparency = 0
  4973. v.Color = Color3.new(0.6, 0, 0)
  4974. v.Material = "Neon"
  4975. end
  4976. end
  4977. elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
  4978. resetmode()
  4979. end
  4980. if k == "m" and attack == false and ModeOfGlitch == 1000000 and ModeOfGlitch ~= 12345678987654321 then
  4981. newThemeCust("rbxassetid://1465505939",0,1,1)
  4982. attack = true
  4983. hum.WalkSpeed = 0
  4984. MAINRUINCOLOR = BrickColor.new("Crimson")
  4985. for i = 0, 24, 0.1 do
  4986. swait()
  4987. 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)
  4988. 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)
  4989. 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)
  4990. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4991. 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)
  4992. 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)
  4993. end
  4994. CameraEnshaking(1,1)
  4995.  
  4996. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  4997. wait(0.55)
  4998. CameraEnshaking(1,2)
  4999.  
  5000. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5001. wait(0.55)
  5002. CameraEnshaking(1,3)
  5003.  
  5004. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5005. wait(0.55)
  5006. CameraEnshaking(10,5)
  5007. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5008. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5009. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5010. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5011. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5012.  
  5013. for i = 0, 49 do
  5014.  
  5015. end
  5016. ModeOfGlitch = 12345678987654321
  5017. storehumanoidWS = 200
  5018. hum.WalkSpeed = 200
  5019. rainbowmode = false
  5020. chaosmode = false
  5021. tl1.Enabled = true
  5022. tl2.Enabled = true
  5023. tl3.Enabled = true
  5024. RecolorTextAndRename("Guests Final Act",Color3.new(0.5,0,1),Color3.new(0.75,0,1))
  5025. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5026. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5027. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5028. for i, v in pairs(mw2:GetChildren()) do
  5029. if v:IsA("Part") then
  5030. v.BrickColor = MAINRUINCOLOR
  5031. v.Material = "Neon"
  5032. end
  5033. end
  5034. for i, v in pairs(mw1:GetChildren()) do
  5035. if v:IsA("Part") then
  5036. v.Transparency = 0
  5037. v.BrickColor = MAINRUINCOLOR
  5038. v.Material = "Neon"
  5039. end
  5040. end
  5041. for i, v in pairs(m:GetChildren()) do
  5042. if v:IsA("Part") then
  5043. v.Color = Color3.new(0.5,0,1)
  5044. v.Material = "Neon"
  5045. end
  5046. end
  5047. for i, v in pairs(m2:GetChildren()) do
  5048. if v:IsA("Part") then
  5049. v.Color = Color3.new(0.5,0,1)
  5050. v.Material = "Neon"
  5051. end
  5052. end
  5053. for i, v in pairs(m3:GetChildren()) do
  5054. if v:IsA("Part") then
  5055. v.Color = Color3.new(0.5,0,1)
  5056. v.Material = "Neon"
  5057. end
  5058. end
  5059. for i, v in pairs(extrawingmod1:GetChildren()) do
  5060. if v:IsA("Part") then
  5061. v.Transparency = 0
  5062. v.Color = Color3.new(0.5,0,1)
  5063. v.Material = "Neon"
  5064. end
  5065. end
  5066. for i, v in pairs(extrawingmod2:GetChildren()) do
  5067. if v:IsA("Part") then
  5068. v.Transparency = 0
  5069. v.Color = Color3.new(0.5,0,1)
  5070. v.Material = "Neon"
  5071. end
  5072. attack = false
  5073. end
  5074. elseif k == "m" and attack == false and ModeOfGlitch == 12345678987654321 then
  5075. resetmode()
  5076. end
  5077. if k == "h" and attack == false and ModeOfGlitch ~= 1000000 then
  5078. ModeOfGlitch = 1000000
  5079. storehumanoidWS = 100
  5080. hum.WalkSpeed = 100
  5081. rainbowmode = false
  5082. chaosmode = false
  5083. RecolorTextAndRename("The Godly Guest", Color3.new(85, 25, 1), Color3.new(26, 27, 60))
  5084. newTheme("rbxassetid://614032233", 0, 1.2, 1)
  5085. MAINRUINCOLOR = BrickColor.new("Crimson")
  5086. for i, v in pairs(mw2:GetChildren()) do
  5087. if v:IsA("Part") then
  5088. v.BrickColor = MAINRUINCOLOR
  5089. v.Material = "Neon"
  5090. end
  5091. end
  5092. for i, v in pairs(mw1:GetChildren()) do
  5093. if v:IsA("Part") then
  5094. v.Transparency = 0
  5095. v.BrickColor = MAINRUINCOLOR
  5096. v.Material = "Neon"
  5097. end
  5098. end
  5099. for i, v in pairs(m:GetChildren()) do
  5100. if v:IsA("Part") then
  5101. v.Color = Color3.new(0, 0, 0.6)
  5102. v.Material = "Neon"
  5103. end
  5104. end
  5105. for i, v in pairs(m2:GetChildren()) do
  5106. if v:IsA("Part") then
  5107. v.Color = Color3.new(0, 0, 0.5)
  5108. v.Material = "Neon"
  5109. end
  5110. end
  5111. for i, v in pairs(m3:GetChildren()) do
  5112. if v:IsA("Part") then
  5113. v.Color = Color3.new(0, 0, 0.7)
  5114. v.Material = "Neon"
  5115. end
  5116. end
  5117. for i, v in pairs(extrawingmod1:GetChildren()) do
  5118. if v:IsA("Part") then
  5119. v.Transparency = 0
  5120. v.Color = Color3.new(0, 0, 0.9)
  5121. v.Material = "Neon"
  5122. end
  5123. end
  5124. for i, v in pairs(extrawingmod2:GetChildren()) do
  5125. if v:IsA("Part") then
  5126. v.Transparency = 0
  5127. v.Color = Color3.new(0.6, 0, 0)
  5128. v.Material = "Neon"
  5129. end
  5130. end
  5131. elseif k == "h" and attack == false and ModeOfGlitch == 1000000 then
  5132. resetmode()
  5133. end
  5134. if k == "n" and attack == false and ModeOfGlitch ~= 3 then
  5135. ModeOfGlitch = 2
  5136. storehumanoidWS = 16
  5137. hum.WalkSpeed = 60
  5138. rainbowmode = false
  5139. chaosmode = false
  5140. RecolorTextAndRename("Silly Guest", Color3.new(0.4, 0, 0), Color3.new(0, 0, 0.4))
  5141. newTheme("rbxassetid://621367124", 58.15, 1.2,2)
  5142. MAINRUINCOLOR = BrickColor.new("Navy blue")
  5143. for i, v in pairs(mw2:GetChildren()) do
  5144. if v:IsA("Part") then
  5145. v.BrickColor = MAINRUINCOLOR
  5146. v.Material = "Neon"
  5147. end
  5148. end
  5149. for i, v in pairs(mw1:GetChildren()) do
  5150. if v:IsA("Part") then
  5151. v.Transparency = 0
  5152. v.BrickColor = MAINRUINCOLOR
  5153. v.Material = "Neon"
  5154. end
  5155. end
  5156. for i, v in pairs(m:GetChildren()) do
  5157. if v:IsA("Part") then
  5158. v.BrickColor = BrickColor.new("Black")
  5159. v.Material = "Ice"
  5160. end
  5161. end
  5162. for i, v in pairs(m2:GetChildren()) do
  5163. if v:IsA("Part") then
  5164. v.BrickColor = BrickColor.new("Navy blue")
  5165. v.Material = "Glass"
  5166. end
  5167. end
  5168. for i, v in pairs(m3:GetChildren()) do
  5169. if v:IsA("Part") then
  5170. v.BrickColor = BrickColor.new("Navy blue")
  5171. v.Material = "Neon"
  5172. end
  5173. end
  5174. for i, v in pairs(extrawingmod1:GetChildren()) do
  5175. if v:IsA("Part") then
  5176. v.Transparency = 0
  5177. v.BrickColor = BrickColor.new("Royal blue")
  5178. v.Material = "Neon"
  5179. end
  5180. end
  5181. for i, v in pairs(extrawingmod2:GetChildren()) do
  5182. if v:IsA("Part") then
  5183. v.Transparency = 0
  5184. v.BrickColor = BrickColor.new("White")
  5185. v.Material = "Neon"
  5186. end
  5187. end
  5188. elseif k == "n" and attack == false and ModeOfGlitch == 3 then
  5189. resetmode()
  5190. end
  5191. if k == "f" and attack == false and ModeOfGlitch ~= 5 then
  5192. ModeOfGlitch = 5
  5193.  
  5194. storehumanoidWS = 16
  5195. hum.WalkSpeed = 16
  5196. rainbowmode = false
  5197. chaosmode = false
  5198. RecolorTextAndRename("Distorted Guest", Color3.new(0, 0, 0.1), Color3.new(1, 1, 1))
  5199. newTheme("rbxassetid://660801673", 10, 1.1, 3.2)
  5200. ModeOfGlitch = 1
  5201. MAINRUINCOLOR = BrickColor.new("Crimson")
  5202. for i, v in pairs(mw2:GetChildren()) do
  5203. if v:IsA("Part") then
  5204. v.BrickColor = MAINRUINCOLOR
  5205. v.Material = "Neon"
  5206. end
  5207. end
  5208. for i, v in pairs(mw1:GetChildren()) do
  5209. if v:IsA("Part") then
  5210. v.Transparency = 0
  5211. v.BrickColor = MAINRUINCOLOR
  5212. v.Material = "Neon"
  5213. end
  5214. end
  5215. for i, v in pairs(m:GetChildren()) do
  5216. if v:IsA("Part") then
  5217. v.BrickColor = BrickColor.new("Black")
  5218. v.Material = "Ice"
  5219. end
  5220. end
  5221. for i, v in pairs(m2:GetChildren()) do
  5222. if v:IsA("Part") then
  5223. v.BrickColor = BrickColor.new("Really black")
  5224. v.Material = "Ice"
  5225. end
  5226. end
  5227. for i, v in pairs(m3:GetChildren()) do
  5228. if v:IsA("Part") then
  5229. v.BrickColor = BrickColor.new("Really black")
  5230. v.Material = "Neon"
  5231. end
  5232. end
  5233. for i, v in pairs(extrawingmod1:GetChildren()) do
  5234. if v:IsA("Part") then
  5235. v.Transparency = 0.4
  5236. v.BrickColor = BrickColor.new("Dark stone gray")
  5237. v.Material = "Neon"
  5238. end
  5239. end
  5240. for i, v in pairs(extrawingmod2:GetChildren()) do
  5241. if v:IsA("Part") then
  5242. v.Transparency = 0.9
  5243. v.BrickColor = BrickColor.new("Dark stone gray")
  5244. v.Material = "Neon"
  5245. end
  5246. end
  5247. elseif k == "f" and attack == false and ModeOfGlitch == 5 then
  5248. resetmode()
  5249. end
  5250. if k == "g" and attack == false and ModeOfGlitch ~= 4 then
  5251. ModeOfGlitch = 4
  5252. storehumanoidWS = 16
  5253. hum.WalkSpeed = 18
  5254. rainbowmode = false
  5255. chaosmode = false
  5256. RecolorTextAndRename("Solar Guest", Color3.new(0, 0, 0), BrickColor.random().Color)
  5257. newTheme("rbxassetid://486598641", 0, 0.8, 10)
  5258. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  5259. for i, v in pairs(mw2:GetChildren()) do
  5260. if v:IsA("Part") then
  5261. v.BrickColor = MAINRUINCOLOR
  5262. v.Material = "Neon"
  5263. end
  5264. end
  5265. for i, v in pairs(mw1:GetChildren()) do
  5266. if v:IsA("Part") then
  5267. v.Transparency = 0.75
  5268. v.BrickColor = BrickColor.random()
  5269. v.Material = "Neon"
  5270. end
  5271. end
  5272. for i, v in pairs(m:GetChildren()) do
  5273. if v:IsA("Part") then
  5274. v.BrickColor = BrickColor.new("White")
  5275. v.Material = "Neon"
  5276. end
  5277. end
  5278. for i, v in pairs(m2:GetChildren()) do
  5279. if v:IsA("Part") then
  5280. v.BrickColor = BrickColor.random()
  5281. v.Material = "Neon"
  5282. end
  5283. end
  5284. for i, v in pairs(m3:GetChildren()) do
  5285. if v:IsA("Part") then
  5286. v.BrickColor = BrickColor.new("Really red")
  5287. v.Material = "Neon"
  5288. end
  5289. end
  5290. for i, v in pairs(extrawingmod1:GetChildren()) do
  5291. if v:IsA("Part") then
  5292. v.Transparency = 0.6
  5293. v.BrickColor = BrickColor.new("Bright yellow")
  5294. v.Material = "Neon"
  5295. end
  5296. end
  5297. for i, v in pairs(extrawingmod2:GetChildren()) do
  5298. if v:IsA("Part") then
  5299. v.Transparency = 0.6
  5300. v.BrickColor = BrickColor.new("Bright yellow")
  5301. v.Material = "Neon"
  5302. end
  5303. end
  5304. elseif k == "g" and attack == false and ModeOfGlitch == 4 then
  5305. resetmode()
  5306. end
  5307. if k == "j" and attack == false and ModeOfGlitch ~= 5 then
  5308. ModeOfGlitch = 5
  5309.  
  5310. storehumanoidWS = 16
  5311. hum.WalkSpeed = 80
  5312. rainbowmode = false
  5313. chaosmode = false
  5314. RecolorTextAndRename("Ultra Instinct Guest", Color3.new(0, 0, 0.1), Color3.new(1, 1, 1))
  5315. newTheme("rbxassetid://1870463259", 10, 1.1, 3.2)
  5316. ModeOfGlitch = 1
  5317. MAINRUINCOLOR = BrickColor.new("White")
  5318. for i, v in pairs(mw2:GetChildren()) do
  5319. if v:IsA("Part") then
  5320. v.BrickColor = MAINRUINCOLOR
  5321. v.Material = "Neon"
  5322. end
  5323. end
  5324. for i, v in pairs(mw1:GetChildren()) do
  5325. if v:IsA("Part") then
  5326. v.Transparency = 0
  5327. v.BrickColor = MAINRUINCOLOR
  5328. v.Material = "Neon"
  5329. end
  5330. end
  5331. for i, v in pairs(m:GetChildren()) do
  5332. if v:IsA("Part") then
  5333. v.BrickColor = BrickColor.new("White")
  5334. v.Material = "Ice"
  5335. end
  5336. end
  5337. for i, v in pairs(m2:GetChildren()) do
  5338. if v:IsA("Part") then
  5339. v.BrickColor = BrickColor.new("Pearl")
  5340. v.Material = "Ice"
  5341. end
  5342. end
  5343. for i, v in pairs(m3:GetChildren()) do
  5344. if v:IsA("Part") then
  5345. v.BrickColor = BrickColor.new("Pearl")
  5346. v.Material = "Neon"
  5347. end
  5348. end
  5349. for i, v in pairs(extrawingmod1:GetChildren()) do
  5350. if v:IsA("Part") then
  5351. v.Transparency = 0.4
  5352. v.BrickColor = BrickColor.new("White")
  5353. v.Material = "Neon"
  5354. end
  5355. end
  5356. for i, v in pairs(extrawingmod2:GetChildren()) do
  5357. if v:IsA("Part") then
  5358. v.Transparency = 0.9
  5359. v.BrickColor = BrickColor.new("White")
  5360. v.Material = "Neon"
  5361. end
  5362. end
  5363. elseif k == "j" and attack == false and ModeOfGlitch == 5 then
  5364. resetmode()
  5365. end
  5366. if k == "k" and attack == false and ModeOfGlitch ~= 1000000 then
  5367. ModeOfGlitch = 1000000
  5368. storehumanoidWS = 100
  5369. hum.WalkSpeed = 150
  5370. rainbowmode = false
  5371. chaosmode = false
  5372. RecolorTextAndRename("Chaotic Guest", Color3.new(117, 0, 0), Color3.new(117, 0, 0))
  5373. newTheme("rbxassetid://1494452913", 1.1, 1, 1)
  5374. MAINRUINCOLOR = BrickColor.new("Really red")
  5375. for i, v in pairs(mw2:GetChildren()) do
  5376. if v:IsA("Part") then
  5377. v.BrickColor = MAINRUINCOLOR
  5378. v.Material = "Neon"
  5379. end
  5380. end
  5381. for i, v in pairs(mw1:GetChildren()) do
  5382. if v:IsA("Part") then
  5383. v.Transparency = 0
  5384. v.BrickColor = MAINRUINCOLOR
  5385. v.Material = "Neon"
  5386. end
  5387. end
  5388. for i, v in pairs(m:GetChildren()) do
  5389. if v:IsA("Part") then
  5390. v.Color = Color3.new(117, 0, 0)
  5391. v.Material = "Neon"
  5392. end
  5393. end
  5394. for i, v in pairs(m2:GetChildren()) do
  5395. if v:IsA("Part") then
  5396. v.Color = Color3.new(117, 0, 0)
  5397. v.Material = "Neon"
  5398. end
  5399. end
  5400. for i, v in pairs(m3:GetChildren()) do
  5401. if v:IsA("Part") then
  5402. v.Color = Color3.new(117, 0, 0)
  5403. v.Material = "Neon"
  5404. end
  5405. end
  5406. for i, v in pairs(extrawingmod1:GetChildren()) do
  5407. if v:IsA("Part") then
  5408. v.Transparency = 0
  5409. v.Color = Color3.new(0, 0, 0.0)
  5410. v.Material = "Neon"
  5411. end
  5412. end
  5413. for i, v in pairs(extrawingmod2:GetChildren()) do
  5414. if v:IsA("Part") then
  5415. v.Transparency = 0
  5416. v.Color = Color3.new(0, 0, 0)
  5417. v.Material = "Neon"
  5418. end
  5419. end
  5420. elseif k == "k" and attack == false and ModeOfGlitch == 1000000 then
  5421. resetmode()
  5422. end
  5423. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 666 then
  5424. newThemeCust("rbxassetid://1331833145",0,1,1)
  5425. attack = true
  5426. hum.WalkSpeed = 0
  5427. MAINRUINCOLOR = BrickColor.new("Crimson")
  5428. for i = 0, 24, 0.1 do
  5429. swait()
  5430. 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)
  5431. 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)
  5432. 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)
  5433. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5434. 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)
  5435. 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)
  5436. end
  5437. CameraEnshaking(1,1)
  5438.  
  5439. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5440. wait(0.55)
  5441. CameraEnshaking(1,2)
  5442.  
  5443. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5444. wait(0.55)
  5445. CameraEnshaking(1,3)
  5446.  
  5447. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5448. wait(0.55)
  5449. CameraEnshaking(10,5)
  5450. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5451. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5452. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5453. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5454. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5455.  
  5456. for i = 0, 49 do
  5457.  
  5458. end
  5459. ModeOfGlitch = 666
  5460. storehumanoidWS = 16
  5461. hum.WalkSpeed = 16
  5462. rainbowmode = false
  5463. chaosmode = false
  5464. tl1.Enabled = true
  5465. tl2.Enabled = true
  5466. tl3.Enabled = true
  5467. RecolorTextAndRename("DeStRuCtIoN GuEsT",Color3.new(1,0,0),Color3.new(0.75,0,0))
  5468. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5469. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5470. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5471. for i, v in pairs(mw2:GetChildren()) do
  5472. if v:IsA("Part") then
  5473. v.BrickColor = MAINRUINCOLOR
  5474. v.Material = "Neon"
  5475. end
  5476. end
  5477. for i, v in pairs(mw1:GetChildren()) do
  5478. if v:IsA("Part") then
  5479. v.Transparency = 0
  5480. v.BrickColor = MAINRUINCOLOR
  5481. v.Material = "Neon"
  5482. end
  5483. end
  5484. for i, v in pairs(m:GetChildren()) do
  5485. if v:IsA("Part") then
  5486. v.Color = Color3.new(1,0,0)
  5487. v.Material = "Neon"
  5488. end
  5489. end
  5490. for i, v in pairs(m2:GetChildren()) do
  5491. if v:IsA("Part") then
  5492. v.Color = Color3.new(1,0,0)
  5493. v.Material = "Neon"
  5494. end
  5495. end
  5496. for i, v in pairs(m3:GetChildren()) do
  5497. if v:IsA("Part") then
  5498. v.Color = Color3.new(1,0,0)
  5499. v.Material = "Neon"
  5500. end
  5501. end
  5502. for i, v in pairs(extrawingmod1:GetChildren()) do
  5503. if v:IsA("Part") then
  5504. v.Transparency = 0
  5505. v.Color = Color3.new(1,0,0)
  5506. v.Material = "Neon"
  5507. end
  5508. end
  5509. for i, v in pairs(extrawingmod2:GetChildren()) do
  5510. if v:IsA("Part") then
  5511. v.Transparency = 0
  5512. v.Color = Color3.new(1,0,0)
  5513. v.Material = "Neon"
  5514. end
  5515. attack = false
  5516. end
  5517. elseif k == "b" and attack == false and ModeOfGlitch == 666 then
  5518. resetmode()
  5519. end
  5520. if k == "l" and toggleTag == true then
  5521. toggleTag = true
  5522. text.TextTransparency = 0
  5523. text.TextStrokeTransparency = 0
  5524. elseif k == "l" and toggleTag == true then
  5525. toggleTag = false
  5526. text.TextTransparency = 0.2
  5527. text.TextStrokeTransparency = 0.2
  5528. end
  5529. if k == "z" and attack == false and ModeOfGlitch == 1 then
  5530. ExtinctiveHeartbreak()
  5531. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  5532. PureBomb()
  5533. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  5534. scattercorrupt()
  5535. wait(5)
  5536. ChaosGroundStrike()
  5537. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  5538. ChaosGroundStrike()
  5539. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  5540. ExtinctiveHeartBreak()
  5541. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  5542. UniversalSpark()
  5543. elseif k == "m" and attack == false and ModeOfGlitch == 1000000 then
  5544. scattercorrupt()
  5545. wait(1)
  5546. yinyangi()
  5547. elseif k == "m" and attack == false and ModeOfGlitch == 5 then
  5548. scattercorrupt()
  5549. if k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed < 200 then
  5550. hum.WalkSpeed = 16 + 184
  5551. elseif k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed == 200 then
  5552. hum.WalkSpeed = 200 - 184
  5553. end
  5554. if k == "z" and attack == false and ModeOfGlitch == 666 then
  5555. StarDivision()
  5556. end
  5557. if k == "x" and attack == false and ModeOfGlitch == 666 then
  5558. Starfall()
  5559. end
  5560. if k == "v" and attack == false and ModeOfGlitch == 12345678987654321 then
  5561. UniversalCollapse()
  5562. end
  5563. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  5564. yinyangi()
  5565. elseif k == "b" and attack == false and ModeOfGlitch == 5 then
  5566. Wip()
  5567. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  5568. Wip()
  5569. elseif k == "x" and attack == false and ModeOfGlitch == 1000000 then
  5570. ChaosBegone()
  5571. wait(5)
  5572. ChaosGroundStrike()
  5573.  
  5574. end
  5575. if k == "m" and attack == false and ModeOfGlitch == 4 then
  5576. ChaosBegone()
  5577. end
  5578. end)
  5579. coroutine.resume(coroutine.create(function()
  5580. while true do
  5581. swait(2)
  5582. if rainbowmode == true or ModeOfGlitch == 6 then
  5583. 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)
  5584. end
  5585. end
  5586. end))
  5587. coroutine.resume(coroutine.create(function()
  5588. while true do
  5589. swait(0.5)
  5590. if ModeOfGlitch == 1000000 then
  5591. 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)
  5592. end
  5593. end
  5594. end))
  5595. coroutine.resume(coroutine.create(function()
  5596. while true do
  5597. swait(2)
  5598. if rainbowmode == true or ModeOfGlitch == 6 then
  5599. if eff == true then
  5600. 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)
  5601. end
  5602. end
  5603. end
  5604. end))
  5605. coroutine.resume(coroutine.create(function()
  5606. while true do
  5607. swait(2)
  5608. if shielding == true then
  5609. end
  5610. end
  5611. end))
  5612.  
  5613.  
  5614. coroutine.resume(coroutine.create(function()
  5615. while true do
  5616. swait(2)
  5617. if chaosmode == true then
  5618. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  5619. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  5620. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  5621. RecolorTextAndRename("Corrupted Guest",Color3.new(0,0,0),BrickColor.random().Color)
  5622. for i, v in pairs(mw1:GetChildren()) do
  5623. if v:IsA("Part") then
  5624. v.Transparency = 0.75
  5625. v.BrickColor = BrickColor.random()
  5626. v.Material = "Neon"
  5627. end
  5628. end
  5629. for i, v in pairs(m2:GetChildren()) do
  5630. if v:IsA("Part") then
  5631. v.BrickColor = BrickColor.random()
  5632. v.Material = "Neon"
  5633. end
  5634. end
  5635. for i, v in pairs(secondchar:GetChildren()) do
  5636. if v:IsA("Part") then
  5637. v.BrickColor = BrickColor.random()
  5638. v.Material = "Neon"
  5639. end
  5640. end
  5641. end
  5642. end
  5643. end))
  5644. Humanoid.Name = "GUESTGLITCHER"
  5645. Humanoid.MaxHealth = math.huge
  5646. Humanoid.Health = math.huge
  5647. Instance.new("ForceField",char).Visible = false
  5648. Humanoid.Animator.Parent = nil
  5649. idleanim=.4
  5650. while true do
  5651. if rainbowmode == false then
  5652. tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5653. tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5654. tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5655. for i, v in pairs(secondchar:GetChildren()) do
  5656. if v:IsA("Part") then
  5657. v.BrickColor = MAINRUINCOLOR
  5658. v.Material = "Neon"
  5659. end
  5660. end
  5661. if chaosmode == false then
  5662. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5663. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5664. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5665. for i, v in pairs(secondchar:GetChildren()) do
  5666. if v:IsA("Part") then
  5667. v.BrickColor = MAINRUINCOLOR
  5668. v.Material = "Neon"
  5669. end
  5670. end
  5671. end
  5672. end
  5673. if rainbowmode == true then
  5674. RecolorTextAndRename("Hopeful Guest",Color3.new(r/255,g/255,b/255),Color3.new(r/500,g/500,b/500))
  5675. MAINRUINCOLOR = BrickColor.new("White")
  5676. tr1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  5677. tr2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  5678. tr3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  5679. tl1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  5680. tl2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  5681. tl3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  5682. for i, v in pairs(m:GetChildren()) do
  5683. if v:IsA("Part") then
  5684. v.Color = Color3.new(r/255,g/255,b/255)
  5685. end
  5686. end
  5687. for i, v in pairs(m2:GetChildren()) do
  5688. if v:IsA("Part") then
  5689. v.Color = Color3.new(r/255,g/255,b/255)
  5690. end
  5691. end
  5692. for i, v in pairs(secondchar:GetChildren()) do
  5693. if v:IsA("Part") then
  5694. v.Color = Color3.new(r/255,g/255,b/255)
  5695. v.Material = "Neon"
  5696. end
  5697. end
  5698. for i, v in pairs(m3:GetChildren()) do
  5699. if v:IsA("Part") then
  5700. v.Color = Color3.new(r/255,g/255,b/255)
  5701. end
  5702. end
  5703. for i, v in pairs(mw1:GetChildren()) do
  5704. if v:IsA("Part") then
  5705. v.Color = Color3.new(r/255,g/255,b/255)
  5706. v.Material = "Neon"
  5707. end
  5708. end
  5709. for i, v in pairs(mw2:GetChildren()) do
  5710. if v:IsA("Part") then
  5711. v.Color = Color3.new(r/255,g/255,b/255)
  5712. v.Material = "Neon"
  5713. end
  5714. end
  5715. end
  5716. CameraManager()
  5717. swait()
  5718. 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)
  5719. 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)
  5720. 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)
  5721. 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)
  5722. 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)
  5723. 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)
  5724.  
  5725. if attack == false and ActiveGia == false then
  5726. torsweld.C1=clerp(torsweld.C1,cf(2,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5727. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  5728. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  5729. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5730. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5731. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  5732. elseif attack == false and ActiveGia == true then
  5733. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  5734. 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)
  5735. 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)
  5736. 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)
  5737. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5738. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5739. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  5740. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  5741. 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)
  5742. 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)
  5743. 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)
  5744. 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)
  5745. 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)
  5746. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(5),math.rad(0),math.rad(0)),0.025)
  5747. end
  5748. end
  5749.  
  5750. 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)
  5751. 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)
  5752. 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)
  5753. 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)
  5754. 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)
  5755. 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)
  5756. sine = sine + change
  5757. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  5758. local velderp=RootPart.Velocity.y
  5759. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  5760. if equipped==true or equipped==false then
  5761. if attack==false then
  5762. idle=idle+1
  5763. else
  5764. idle=0
  5765. end
  5766. if idle>=500 then
  5767. if attack==false then
  5768. --Sheath()
  5769. end
  5770. end
  5771. if RootPart.Velocity.y > 1 and hitfloor==nil then
  5772. Anim="Jump"
  5773. if attack==false then
  5774. 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)
  5775. 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)
  5776. 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)
  5777. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  5778. 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)
  5779. 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)
  5780. end
  5781. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  5782. Anim="Fall"
  5783. if attack==false then
  5784. 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)
  5785. 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)
  5786. 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)
  5787. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  5788. 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)
  5789. 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)
  5790. end
  5791. elseif torvel<1 and hitfloor~=nil then
  5792. Anim="Idle"
  5793. if attack==false then
  5794. if ModeOfGlitch == 1 then
  5795. 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)
  5796. 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)
  5797. 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)
  5798. 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)
  5799. 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)
  5800. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  5801.  
  5802. elseif ModeOfGlitch == 666 then
  5803. 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)
  5804. 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)
  5805. 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)
  5806. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5807. 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)
  5808. 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)
  5809.  
  5810. elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then
  5811. 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)
  5812. 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)
  5813. 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)
  5814. 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)
  5815. 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)
  5816. 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)
  5817.  
  5818. elseif ModeOfGlitch == 3 then
  5819. 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)
  5820. 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)
  5821. 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)
  5822. 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)
  5823. 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)
  5824. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  5825.  
  5826. elseif ModeOfGlitch == 4 then
  5827. 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)
  5828. 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)
  5829. 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)
  5830. 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)
  5831. 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)
  5832. 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)
  5833.  
  5834. elseif ModeOfGlitch == 5 then
  5835. 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)
  5836. 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)
  5837. 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)
  5838. 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)
  5839. 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)
  5840. 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)
  5841.  
  5842. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  5843. 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)
  5844. 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)
  5845. 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)
  5846. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  5847. 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)
  5848. 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)
  5849.  
  5850. elseif ModeOfGlitch == 12345678987654321 then
  5851. 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)
  5852. 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)
  5853. 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)
  5854. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1)
  5855. 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)
  5856. 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)
  5857. end
  5858. end
  5859. elseif torvel>2 and torvel<50 and hitfloor~=nil then
  5860. Anim="Walk"
  5861. if attack==false then
  5862. if ModeOfGlitch == 1 then
  5863. 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)
  5864. 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)
  5865. 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)
  5866. 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)
  5867. 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)
  5868. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  5869.  
  5870. elseif ModeOfGlitch == 4 or ModeOfGlitch == 666 then
  5871. 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)
  5872. 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)
  5873. 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)
  5874. 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)
  5875. 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)
  5876. 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)
  5877.  
  5878. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 or ModeOfGlitch ~= 666 then
  5879. 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)
  5880. 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)
  5881. 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)
  5882. 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)
  5883. 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)
  5884. 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)
  5885. end
  5886. end
  5887. elseif torvel>=22 and hitfloor~=nil then
  5888. Anim="Run"
  5889. if attack==false then
  5890. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  5891. 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)
  5892. 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)
  5893. 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)
  5894. 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)
  5895. 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)
  5896. 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)
  5897. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  5898. 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)
  5899. 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)
  5900. 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)
  5901. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  5902. 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)
  5903. 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)
  5904. end
  5905. end
  5906. end
  5907. end
  5908. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement