Advertisement
Dasd5755

Star Glitcher Edit (UNLEAK) EDIT

Jan 5th, 2019
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 225.58 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("Star Edit, by bluebloxguy35")
  3. print("2th Star Edit, by dasd5755")
  4. print("ok cool script yeah shuriken wings are cool")
  5. InternalData = {}
  6. do
  7. script.Parent = owner.Character
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput"
  10. local function NewFakeEvent()
  11. local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  12. return Fake
  13. end
  14. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  15. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  16. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  17. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  18. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  19. local function TriggerEvent(self,Event,...)
  20. local Trigger = Mouse[Event]
  21. if Trigger and Trigger.fakeEvent and Trigger.Function then
  22. Trigger.Function(...)
  23. end
  24. end
  25. Mouse.TrigEvent = TriggerEvent
  26. UserInputService.TrigEvent = TriggerEvent
  27. Event.OnServerEvent:Connect(function(FiredBy,Input)
  28. if FiredBy.Name ~= owner.Name then end
  29. if Input.MouseEvent then
  30. Mouse.Target = Input.Target
  31. Mouse.Hit = Input.Hit
  32. else
  33. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  34. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  35. return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  36. end
  37. for _,Action in pairs(ContextActionService.Actions) do
  38. for _,Key in pairs(Action.Keys) do
  39. if Key==Input.KeyCode then
  40. Action.Function(Action.Name,Input.UserInputState,Input)
  41. end
  42. end
  43. end
  44. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  45. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  46. end
  47. end)
  48. InternalData["Mouse"] = Mouse
  49. InternalData["ContextActionService"] = ContextActionService
  50. InternalData["UserInputService"] = UserInputService
  51. Event.Parent = NLS([[
  52. local Player = owner
  53. local Event = script:WaitForChild("UserInput")
  54. local UserInputService = game:GetService("UserInputService")
  55. local Mouse = Player:GetMouse()
  56. local Input = function(Input,gameProcessedEvent)
  57. if gameProcessedEvent then return end
  58. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  59. end
  60. UserInputService.InputBegan:Connect(Input)
  61. UserInputService.InputEnded:Connect(Input)
  62. local Hit,Target
  63. while wait(1/30) do
  64. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  65. Hit,Target = Mouse.Hit,Mouse.Target
  66. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  67. end
  68. end
  69. ]],owner.Character)
  70. end
  71. RealGame = game;game = setmetatable({},{
  72. __index = function (self,Index)
  73. local Sandbox = function (Thing)
  74. if Thing:IsA("Player") then
  75. local RealPlayer = Thing
  76. return setmetatable({},{
  77. __index = function (self,Index)
  78. local Type = type(RealPlayer[Index])
  79. if Type == "function" then
  80. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  81. return function (self)
  82. return InternalData["Mouse"]
  83. end
  84. end
  85. return function (self,...)
  86. return RealPlayer[Index](RealPlayer,...)
  87. end
  88. else
  89. if Index == "PlrObj" then
  90. return RealPlayer
  91. end
  92. return RealPlayer[Index]
  93. end
  94. end;
  95. __tostring = function(self)
  96. return RealPlayer.Name
  97. end
  98. })
  99. end
  100. end
  101. if RealGame[Index] then
  102. local Type = type(RealGame[Index])
  103. if Type == "function" then
  104. if Index:lower() == "getservice" or Index:lower() == "service" then
  105. return function (self,Service)
  106. if Service:lower() == "players" then
  107. return setmetatable({},{
  108. __index = function (self2,Index2)
  109. local RealService = RealGame:GetService(Service)
  110. local Type2 = type(Index2)
  111. if Type2 == "function" then
  112. return function (self,...)
  113. return RealService[Index2](RealService,...)
  114. end
  115. else
  116. if Index2:lower() == "localplayer" then
  117. return Sandbox(owner)
  118. end
  119. return RealService[Index2]
  120. end
  121. end;
  122. __tostring = function(self)
  123. return RealGame:GetService(Service).Name
  124. end
  125. })
  126. elseif Service:lower() == "contextactionservice" then
  127. return InternalData["ContextActionService"]
  128. elseif Service:lower() == "contextactionservice" then
  129. return InternalData["UserInputService"]
  130. elseif Service:lower() == "runservice" then
  131. return setmetatable({},{
  132. __index = function(self2,Index2)
  133. local RealService = RealGame:GetService(Service)
  134. local Type2 = type(Index2)
  135. if Type2 == "function" then
  136. return function (self,...)
  137. return RealService[Index2](RealService,...)
  138. end
  139. else
  140. if Index2:lower() == "bindtorenderstep" then
  141. return function (self,Name,Priority,Function)
  142. return RealGame:GetService("RunService").Stepped:Connect(Function)
  143. end
  144. end
  145. if Index2:lower() == "renderstepped" then
  146. return RealService["Stepped"]
  147. end
  148. return RealService[Index2]
  149. end
  150. end
  151. })
  152. else
  153. return RealGame:GetService(Service)
  154. end
  155. end
  156. end
  157. return function (self,...)
  158. return RealGame[Index](RealGame,...)
  159. end
  160. else
  161. if game:GetService(Index) then
  162. return game:GetService(Index)
  163. end
  164. return RealGame[Index]
  165. end
  166. else
  167. return nil
  168. end
  169. end
  170. });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
  171. print("Complete! Running...")
  172.  
  173. --//Paste script below this line.
  174. local Player = game:GetService("Players").LocalPLayer
  175. local Mouse,mouse,UserInputService,ContextActionService
  176. do
  177. script.Parent = Player.Character
  178. local CAS = {Actions={}}
  179. local Event = Instance.new("RemoteEvent")
  180. Event.Name = "UserInput_Event"
  181. Event.Parent = Player.Character
  182. local fakeEvent = function()
  183. local t = {_fakeEvent=true}
  184. t.Connect = function(self,f)self.Function=f end
  185. t.connect = t.Connect
  186. return t
  187. end
  188. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  189. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  190. function CAS:BindAction(name,fun,touch,...)
  191. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  192. end
  193. function CAS:UnbindAction(name)
  194. CAS.Actions[name] = nil
  195. end
  196. local function te(self,ev,...)
  197. local t = m[ev]
  198. if t and t._fakeEvent and t.Function then
  199. t.Function(...)
  200. end
  201. end
  202. m.TrigEvent = te
  203. UIS.TrigEvent = te
  204. Event.OnServerEvent:Connect(function(plr,io)
  205. if plr~=Player then return end
  206. if io.isMouse then
  207. m.Target = io.Target
  208. m.Hit = io.Hit
  209. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  210. if io.UserInputState == Enum.UserInputState.Begin then
  211. m:TrigEvent("Button1Down")
  212. else
  213. m:TrigEvent("Button1Up")
  214. end
  215. else
  216. for n,t in pairs(CAS.Actions) do
  217. for _,k in pairs(t.Keys) do
  218. if k==io.KeyCode then
  219. t.Function(t.Name,io.UserInputState,io)
  220. end
  221. end
  222. end
  223. if io.UserInputState == Enum.UserInputState.Begin then
  224. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  225. UIS:TrigEvent("InputBegan",io,false)
  226. else
  227. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  228. UIS:TrigEvent("InputEnded",io,false)
  229. end
  230. end
  231. end)
  232. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  233. end
  234. plr = game.Players.localplayer
  235. char = plr.Character
  236. hum = char.Humanoid
  237. local cam = game.Workspace.CurrentCamera
  238. Camera = cam
  239. local CamInterrupt = false
  240. local TwoD = false
  241. local TargetInfo = {nil, nil}
  242. cam.CameraType = "Custom"
  243. t = char.Torso
  244. h = char.Head
  245. ra = char["Right Arm"]
  246. la = char["Left Arm"]
  247. rl = char["Right Leg"]
  248. ll = char["Left Leg"]
  249. tors = char.Torso
  250. lleg = char["Left Leg"]
  251. root = char.HumanoidRootPart
  252. hed = char.Head
  253. rleg = char["Right Leg"]
  254. rarm = char["Right Arm"]
  255. larm = char["Left Arm"]
  256. radian = math.rad
  257. random = math.random
  258. Vec3 = Vector3.new
  259. Inst = Instance.new
  260. cFrame = CFrame.new
  261. Euler = CFrame.fromEulerAnglesXYZ
  262. vt = Vector3.new
  263. bc = BrickColor.new
  264. br = BrickColor.random
  265. it = Instance.new
  266. cf = CFrame.new
  267. local Booleans = {CamFollow = true, GyroUse = true}
  268. function lerp(object, newCFrame, alpha)
  269. return object:lerp(newCFrame, alpha)
  270. end
  271.  
  272. ff = Instance.new("ForceField", game.Players.localplayer.Character)
  273. ff.Visible = false
  274.  
  275.  
  276. local Directer = Inst("BodyGyro", root)
  277. Directer.MaxTorque = Vec3(0, 0, 0)
  278. Directer.P = 600000
  279. local CPart = Inst("Part")
  280. CPart.Anchored = true
  281. CPart.CanCollide = false
  282. CPart.Locked = true
  283. CPart.Transparency = 1
  284. local rainbowmode = false
  285. local chaosmode = false
  286. kan = Instance.new("Sound", char)
  287. kan.Volume = 1.98
  288. kan.TimePosition = 0
  289. kan.PlaybackSpeed = 1
  290. kan.Pitch = 1
  291. kan.SoundId = "rbxassetid://383448299"
  292. kan.Name = "wrecked"
  293. kan.Looped = true
  294. kan:Play()
  295. function newTheme(ID, timepos, pitch, vol)
  296. local kanz = kan
  297. kanz.PlaybackSpeed = pitch
  298. kanz.Pitch = pitch
  299. kanz.SoundId = ID
  300. kanz.Name = "wrecked"
  301. kanz.Looped = true
  302. end
  303. function CameraShake(Times, Power, PlayerTarget)
  304. coroutine.resume(coroutine.create(function()
  305. FV = Instance.new("BoolValue", PlayerTarget)
  306. FV.Name = "CameraShake"
  307. for ShakeNum = 1, Times do
  308. swait()
  309. local ef = Power
  310. if ef >= 1 then
  311. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef))
  312. else
  313. ef = Power * 10
  314. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10)
  315. end
  316. end
  317. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  318. FV:Destroy()
  319. end))
  320. end
  321. function CameraEnshaking(Length, Intensity)
  322. coroutine.resume(coroutine.create(function()
  323. local intensity = 1 * Intensity
  324. local rotM = 0.01 * Intensity
  325. for i = 0, Length, 0.1 do
  326. swait()
  327. intensity = intensity - 0.05 * Intensity / Length
  328. rotM = rotM - 5.0E-4 * Intensity / Length
  329. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  330. 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)
  331. end
  332. Humanoid.CameraOffset = Vec3(0, 0, 0)
  333. end))
  334. end
  335. function CamShake(Part, Distan, Power, Times)
  336. local de = Part.Position
  337. for i, v in pairs(workspace:children()) do
  338. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  339. for _, c in pairs(v:children()) do
  340. if c.ClassName == "Part" and Distan > (c.Position - de).magnitude then
  341. do
  342. local Noob = v.Humanoid
  343. if Noob ~= nil then
  344. coroutine.resume(coroutine.create(function()
  345. FV = Instance.new("BoolValue", Noob)
  346. FV.Name = "CameraShake"
  347. for ShakeNum = 1, Times do
  348. swait()
  349. local ef = Power
  350. if ef >= 1 then
  351. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef))
  352. else
  353. ef = Power * 10
  354. Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10)
  355. end
  356. end
  357. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  358. FV:Destroy()
  359. end))
  360. CameraShake(Times, Power, Noob)
  361. end
  362. end
  363. end
  364. end
  365. end
  366. end
  367. end
  368. function chatfunc(text, color)
  369. local chat = coroutine.wrap(function()
  370. if Character:FindFirstChild("TalkingBillBoard") ~= nil then
  371. Character:FindFirstChild("TalkingBillBoard"):destroy()
  372. end
  373. local naeeym2 = Instance.new("BillboardGui", Character)
  374. naeeym2.Size = UDim2.new(0, 100, 0, 40)
  375. naeeym2.StudsOffset = Vector3.new(0, 3, 0)
  376. naeeym2.Adornee = Character.Head
  377. naeeym2.Name = "TalkingBillBoard"
  378. local tecks2 = Instance.new("TextLabel", naeeym2)
  379. tecks2.BackgroundTransparency = 1
  380. tecks2.BorderSizePixel = 0
  381. tecks2.Text = ""
  382. tecks2.Font = "SciFi"
  383. tecks2.TextSize = 30
  384. tecks2.TextStrokeTransparency = 0
  385. tecks2.TextColor3 = color
  386. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  387. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  388. local tecks3 = Instance.new("TextLabel", naeeym2)
  389. tecks3.BackgroundTransparency = 1
  390. tecks3.BorderSizePixel = 0
  391. tecks3.Text = ""
  392. tecks3.Font = "SciFi"
  393. tecks3.TextSize = 30
  394. tecks3.TextStrokeTransparency = 0
  395. tecks3.TextColor3 = Color3.new(0, 0, 0)
  396. tecks3.TextStrokeColor3 = color
  397. tecks3.Size = UDim2.new(1, 0, 0.5, 0)
  398. coroutine.resume(coroutine.create(function()
  399. while true do
  400. swait(1)
  401. if chaosmode == true then
  402. tecks2.TextColor3 = BrickColor.random().Color
  403. tecks3.TextStrokeColor3 = BrickColor.random().Color
  404. end
  405. tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
  406. tecks3.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
  407. tecks2.Rotation = math.random(-5, 5)
  408. tecks3.Rotation = math.random(-5, 5)
  409. end
  410. end))
  411. for i = 1, string.len(text) do
  412. CFuncs.Sound.Create("rbxassetid://274118116", char, 0.25, 0.115)
  413. tecks2.Text = string.sub(text, 1, i)
  414. tecks3.Text = string.sub(text, 1, i)
  415. swait(1)
  416. end
  417. wait(1)
  418. local randomrot = math.random(1, 2)
  419. if randomrot == 1 then
  420. for i = 1, 50 do
  421. swait()
  422. tecks2.Rotation = tecks2.Rotation - 0.75
  423. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  424. tecks2.TextTransparency = tecks2.TextTransparency + 0.04
  425. tecks3.Rotation = tecks2.Rotation + 0.75
  426. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  427. tecks3.TextTransparency = tecks2.TextTransparency + 0.04
  428. end
  429. elseif randomrot == 2 then
  430. for i = 1, 50 do
  431. swait()
  432. tecks2.Rotation = tecks2.Rotation + 0.75
  433. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  434. tecks2.TextTransparency = tecks2.TextTransparency + 0.04
  435. tecks3.Rotation = tecks2.Rotation - 0.75
  436. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
  437. tecks3.TextTransparency = tecks2.TextTransparency + 0.04
  438. end
  439. end
  440. naeeym2:Destroy()
  441. end)
  442. chat()
  443. end
  444. local Create = LoadLibrary("RbxUtility").Create
  445. CFuncs = {
  446. Part = {
  447. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  448. local Part = Create("Part")({
  449. Parent = Parent,
  450. Reflectance = Reflectance,
  451. Transparency = Transparency,
  452. CanCollide = false,
  453. Locked = true,
  454. BrickColor = BrickColor.new(tostring(BColor)),
  455. Name = Name,
  456. Size = Size,
  457. Material = Material
  458. })
  459. RemoveOutlines(Part)
  460. return Part
  461. end
  462. },
  463. Mesh = {
  464. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  465. local Msh = Create(Mesh)({
  466. Parent = Part,
  467. Offset = OffSet,
  468. Scale = Scale
  469. })
  470. if Mesh == "SpecialMesh" then
  471. Msh.MeshType = MeshType
  472. Msh.MeshId = MeshId
  473. end
  474. return Msh
  475. end
  476. },
  477. Mesh = {
  478. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  479. local Msh = Create(Mesh)({
  480. Parent = Part,
  481. Offset = OffSet,
  482. Scale = Scale
  483. })
  484. if Mesh == "SpecialMesh" then
  485. Msh.MeshType = MeshType
  486. Msh.MeshId = MeshId
  487. end
  488. return Msh
  489. end
  490. },
  491. Weld = {
  492. Create = function(Parent, Part0, Part1, C0, C1)
  493. local Weld = Create("Weld")({
  494. Parent = Parent,
  495. Part0 = Part0,
  496. Part1 = Part1,
  497. C0 = C0,
  498. C1 = C1
  499. })
  500. return Weld
  501. end
  502. },
  503. Sound = {
  504. Create = function(id, par, vol, pit)
  505. coroutine.resume(coroutine.create(function()
  506. local S = Create("Sound")({
  507. Volume = vol,
  508. Pitch = pit or 1,
  509. SoundId = id,
  510. Parent = par or workspace
  511. })
  512. wait()
  513. S:play()
  514. game:GetService("Debris"):AddItem(S, 10)
  515. end))
  516. end
  517. },
  518. LongSound = {
  519. Create = function(id, par, vol, pit)
  520. coroutine.resume(coroutine.create(function()
  521. local S = Create("Sound")({
  522. Volume = vol,
  523. Pitch = pit or 1,
  524. SoundId = id,
  525. Parent = par or workspace
  526. })
  527. wait()
  528. S:play()
  529. game:GetService("Debris"):AddItem(S, 30)
  530. end))
  531. end
  532. },
  533. ParticleEmitter = {
  534. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  535. local fp = Create("ParticleEmitter")({
  536. Parent = Parent,
  537. Color = ColorSequence.new(Color1, Color2),
  538. LightEmission = LightEmission,
  539. Size = Size,
  540. Texture = Texture,
  541. Transparency = Transparency,
  542. ZOffset = ZOffset,
  543. Acceleration = Accel,
  544. Drag = Drag,
  545. LockedToPart = LockedToPart,
  546. VelocityInheritance = VelocityInheritance,
  547. EmissionDirection = EmissionDirection,
  548. Enabled = Enabled,
  549. Lifetime = LifeTime,
  550. Rate = Rate,
  551. Rotation = Rotation,
  552. RotSpeed = RotSpeed,
  553. Speed = Speed,
  554. VelocitySpread = VelocitySpread
  555. })
  556. return fp
  557. end
  558. },
  559. CreateTemplate = {}
  560. }
  561. function New(Object, Parent, Name, Data)
  562. local Object = Instance.new(Object)
  563. for Index, Value in pairs(Data or {}) do
  564. Object[Index] = Value
  565. end
  566. Object.Parent = Parent
  567. Object.Name = Name
  568. return Object
  569. end
  570. local halocolor = BrickColor.new("Pastel light blue")
  571. local halocolor2 = BrickColor.new("Really black")
  572. local starcolor = BrickColor.new("Really black")
  573. local lunacolor = BrickColor.new("Navy blue")
  574. local lunacolor2 = BrickColor.new("Bright blue")
  575. local wepcolor = BrickColor.new("Really black")
  576. local maincolor = BrickColor.new("Really black")
  577. local m = Instance.new("Model", char)
  578. local m2 = Instance.new("Model", char)
  579. local m3 = Instance.new("Model", char)
  580. local mw1 = Instance.new("Model", char)
  581. local mw2 = Instance.new("Model", char)
  582. local extrawingmod1 = Instance.new("Model", char)
  583. local extrawingmod2 = Instance.new("Model", char)
  584. function CreateParta(parent, transparency, reflectance, material, brickcolor)
  585. local p = Instance.new("Part")
  586. p.TopSurface = 0
  587. p.BottomSurface = 0
  588. p.Parent = parent
  589. p.Size = Vector3.new(0.1, 0.1, 0.1)
  590. p.Transparency = transparency
  591. p.Reflectance = reflectance
  592. p.CanCollide = false
  593. p.Locked = true
  594. p.BrickColor = brickcolor
  595. p.Material = material
  596. return p
  597. end
  598. function CreateMesh(parent, meshtype, x1, y1, z1)
  599. local mesh = Instance.new("SpecialMesh", parent)
  600. mesh.MeshType = meshtype
  601. mesh.Scale = Vector3.new(x1 * 10, y1 * 10, z1 * 10)
  602. return mesh
  603. end
  604. function CreateSpecialMesh(parent, meshid, x1, y1, z1)
  605. local mesh = Instance.new("SpecialMesh", parent)
  606. mesh.MeshType = "FileMesh"
  607. mesh.MeshId = meshid
  608. mesh.Scale = Vector3.new(x1, y1, z1)
  609. return mesh
  610. end
  611. function CreateSpecialGlowMesh(parent, meshid, x1, y1, z1)
  612. local mesh = Instance.new("SpecialMesh", parent)
  613. mesh.MeshType = "FileMesh"
  614. mesh.MeshId = meshid
  615. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  616. mesh.Scale = Vector3.new(x1, y1, z1)
  617. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  618. return mesh
  619. end
  620. function CreateWeld(parent, part0, part1, C1X, C1Y, C1Z, C1Xa, C1Ya, C1Za, C0X, C0Y, C0Z, C0Xa, C0Ya, C0Za)
  621. local weld = Instance.new("Weld")
  622. weld.Parent = parent
  623. weld.Part0 = part0
  624. weld.Part1 = part1
  625. weld.C1 = CFrame.new(C1X, C1Y, C1Z) * CFrame.Angles(C1Xa, C1Ya, C1Za)
  626. weld.C0 = CFrame.new(C0X, C0Y, C0Z) * CFrame.Angles(C0Xa, C0Ya, C0Za)
  627. return weld
  628. end
  629. local handlex = CreateParta(mw2, 1, 1, "Neon", maincolor)
  630. CreateMesh(handle, "Brick", 0, 0, 0)
  631. 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))
  632. local valuaring = 10
  633. for i = 0, 49 do
  634. valuaring = valuaring + 10
  635. rn = CreateParta(mw2, 0, 0, "Neon", halocolor)
  636. CreateMesh(rn, "Brick", 0.25, 0.1, 0.1)
  637. 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))
  638. end
  639. local handle = CreateParta(m, 1, 1, "Neon", maincolor)
  640. CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
  641. 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))
  642. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  643. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  644. 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))
  645.  
  646. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  647. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  648. 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))
  649. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  650. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  651. 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))
  652. A0 = Instance.new('Attachment',wed)
  653. A0.Position = vt(0,0.25,0.25)
  654. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  655. CreateMesh(wed,"Wedge",0.05,0.5,3)
  656. 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))
  657. A1 = Instance.new('Attachment',wed)
  658. A1.Position = vt(0,-0.25,-2)
  659. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  660. CreateMesh(wed,"Wedge",0.05,3,0.5)
  661. 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))
  662.  
  663. tl1 = Instance.new('Trail',wed)
  664. tl1.Attachment0 = A1
  665. tl1.Attachment1 = A0
  666. tl1.Texture = "rbxassetid://2108945559"
  667. tl1.LightEmission = 1
  668. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  669. tl1.Color = ColorSequence.new(BrickColor.new('Dark blue').Color)
  670. tl1.Lifetime = 0.6
  671.  
  672.  
  673. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  674. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  675. 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))
  676.  
  677. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  678. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  679. 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))
  680. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  681. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  682. 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))
  683. A0 = Instance.new('Attachment',wed)
  684. A0.Position = vt(0,0.25,0.25)
  685. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  686. CreateMesh(wed,"Wedge",0.05,0.5,3)
  687. 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))
  688. A1 = Instance.new('Attachment',wed)
  689. A1.Position = vt(0,-0.25,-2)
  690. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  691. CreateMesh(wed,"Wedge",0.05,3,0.5)
  692. 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))
  693.  
  694. tl2 = Instance.new('Trail',wed)
  695. tl2.Attachment0 = A1
  696. tl2.Attachment1 = A0
  697. tl2.Texture = "rbxassetid://2108945559"
  698. tl2.LightEmission = 1
  699. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  700. tl2.Color = ColorSequence.new(BrickColor.new('Dark blue').Color)
  701. tl2.Lifetime = 0.6
  702.  
  703. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  704. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  705. 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))
  706.  
  707. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  708. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  709. 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))
  710. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  711. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  712. 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))
  713. A0 = Instance.new('Attachment',wed)
  714. A0.Position = vt(0,0.25,0.25)
  715. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  716. CreateMesh(wed,"Wedge",0.05,0.5,3)
  717. 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))
  718. A1 = Instance.new('Attachment',wed)
  719. A1.Position = vt(0,-0.25,-2)
  720. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  721. CreateMesh(wed,"Wedge",0.05,3,0.5)
  722. 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))
  723.  
  724. tl3 = Instance.new('Trail',wed)
  725. tl3.Attachment0 = A1
  726. tl3.Attachment1 = A0
  727. tl3.Texture = "rbxassetid://2108945559"
  728. tl3.LightEmission = 1
  729. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  730. tl3.Color = ColorSequence.new(BrickColor.new('Dark blue').Color)
  731. tl3.Lifetime = 0.6
  732. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  733. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  734. 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))
  735.  
  736. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  737. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  738. CreateWeld(wed,lwing4,wed,0,0,0.25*2,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  739. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  740. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  741. CreateWeld(wed,lwing4,wed,0,0,0.25*2,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  742. A0 = Instance.new('Attachment',wed)
  743. A0.Position = vt(0,0.25*2,0.25*2)
  744. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  745. CreateMesh(wed,"Wedge",0.05*2,0.5*2,3*2)
  746. CreateWeld(wed,lwing4,wed,0,-0.25*2,1.75*2,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  747. A1 = Instance.new('Attachment',wed)
  748. A1.Position = vt(0,-0.25*2,-2*2)
  749. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  750. CreateMesh(wed,"Wedge",0.0*25,3*2,0.5*2)
  751. CreateWeld(wed,lwing4,wed,0,-1.75*2,0.25*2,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  752.  
  753. tl4 = Instance.new('Trail',wed)
  754. tl4.Attachment0 = A1
  755. tl4.Attachment1 = A0
  756. tl4.Texture = "rbxassetid://2108945559"
  757. tl4.LightEmission = 1
  758. tl4.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  759. tl4.Color = ColorSequence.new(BrickColor.new('Dark blue').Color)
  760. tl4.Lifetime = 0.6
  761. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  762. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  763. 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))
  764.  
  765. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  766. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  767. CreateWeld(wed,lwing5,wed,0,0,0.25*2,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  768. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  769. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  770. CreateWeld(wed,lwing5,wed,0,0,0.25*2,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  771. A0 = Instance.new('Attachment',wed)
  772. A0.Position = vt(0,0.25*2,0.25*2)
  773. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  774. CreateMesh(wed,"Wedge",0.05*2,0.5*2,3*2)
  775. CreateWeld(wed,lwing5,wed,0,-0.25*2,1.75*2,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  776. A1 = Instance.new('Attachment',wed)
  777. A1.Position = vt(0,-0.25*2,-2*2)
  778. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  779. CreateMesh(wed,"Wedge",0.05*2,3*2,0.5*2)
  780. CreateWeld(wed,lwing5,wed,0,-1.75*2,0.25*2,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  781.  
  782. tl5 = Instance.new('Trail',wed)
  783. tl5.Attachment0 = A1
  784. tl5.Attachment1 = A0
  785. tl5.Texture = "rbxassetid://2108945559"
  786. tl5.LightEmission = 1
  787. tl5.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  788. tl5.Color = ColorSequence.new(BrickColor.new('Dark blue').Color)
  789. tl5.Lifetime = 0.6
  790. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  791. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  792. 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))
  793.  
  794. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  795. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  796. CreateWeld(wed,lwing6,wed,0,0,0.25*2,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  797. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  798. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  799. CreateWeld(wed,lwing6,wed,0,0,0.25*2,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  800. A0 = Instance.new('Attachment',wed)
  801. A0.Position = vt(0,0.25*2,0.25*2)
  802. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  803. CreateMesh(wed,"Wedge",0.05*2,0.5*2,3*2)
  804. CreateWeld(wed,lwing6,wed,0,-0.25*2,1.75*2,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  805. A1 = Instance.new('Attachment',wed)
  806. A1.Position = vt(0,-0.25*2,-2*2)
  807. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  808. CreateMesh(wed,"Wedge",0.05*2,3*2,0.5*2)
  809. CreateWeld(wed,lwing6,wed,0,-1.75*2,0.25*2,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  810. tl6 = Instance.new('Trail',wed)
  811. tl6.Attachment0 = A1
  812. tl6.Attachment1 = A0
  813. tl6.Texture = "rbxassetid://2108945559"
  814. tl6.LightEmission = 1
  815. tl6.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  816. tl6.Color = ColorSequence.new(BrickColor.new('Dark blue').Color)
  817. tl6.Lifetime = 0.6
  818.  
  819. tl1.Enabled = false
  820. tl2.Enabled = false
  821. tl3.Enabled = false
  822. tl4.Enabled = false
  823. tl5.Enabled = false
  824. tl6.Enabled = false
  825. -- Right wing.
  826.  
  827. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  828. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  829. 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))
  830.  
  831. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  832. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  833. 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))
  834. A0 = Instance.new('Attachment',wed)
  835. A0.Position = vt(0,0.25,0.25)
  836. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  837. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  838. 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))
  839. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  840. CreateMesh(wed,"Wedge",0.05,0.5,3)
  841. 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))
  842. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  843. CreateMesh(wed,"Wedge",0.05,3,0.5)
  844. 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))
  845. A1 = Instance.new('Attachment',wed)
  846. A1.Position = vt(0,2,0.25)
  847.  
  848. tr1 = Instance.new('Trail',wed)
  849. tr1.Attachment0 = A1
  850. tr1.Attachment1 = A0
  851. tr1.Texture = "rbxassetid://2108945559"
  852. tr1.LightEmission = 1
  853. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  854. tr1.Color = ColorSequence.new(BrickColor.new('Dark blue').Color)
  855. tr1.Lifetime = 0.6
  856.  
  857. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  858. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  859. 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))
  860.  
  861. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  862. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  863. 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))
  864. A0 = Instance.new('Attachment',wed)
  865. A0.Position = vt(0,0.25,0.25)
  866. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  867. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  868. 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))
  869. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  870. CreateMesh(wed,"Wedge",0.05,0.5,3)
  871. 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))
  872. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  873. CreateMesh(wed,"Wedge",0.05,3,0.5)
  874. 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))
  875. A1 = Instance.new('Attachment',wed)
  876. A1.Position = vt(0,2,0.25)
  877.  
  878. tr2 = Instance.new('Trail',wed)
  879. tr2.Attachment0 = A1
  880. tr2.Attachment1 = A0
  881. tr2.Texture = "rbxassetid://2108945559"
  882. tr2.LightEmission = 1
  883. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  884. tr2.Color = ColorSequence.new(BrickColor.new('Dark blue').Color)
  885. tr2.Lifetime = 0.6
  886.  
  887. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  888. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  889. 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))
  890.  
  891. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  892. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  893. 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))
  894. A0 = Instance.new('Attachment',wed)
  895. A0.Position = vt(0,0.25,0.25)
  896. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  897. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  898. 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))
  899. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  900. CreateMesh(wed,"Wedge",0.05,0.5,3)
  901. 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))
  902. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  903. CreateMesh(wed,"Wedge",0.05,3,0.5)
  904. 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))
  905. A1 = Instance.new('Attachment',wed)
  906. A1.Position = vt(0,2,0.25)
  907.  
  908. tr3 = Instance.new('Trail',wed)
  909. tr3.Attachment0 = A1
  910. tr3.Attachment1 = A0
  911. tr3.Texture = "rbxassetid://2108945559"
  912. tr3.LightEmission = 1
  913. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  914. tr3.Color = ColorSequence.new(BrickColor.new('Dark blue').Color)
  915. tr3.Lifetime = 0.6
  916.  
  917.  
  918. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  919. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  920. local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  921.  
  922. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  923. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  924. CreateWeld(wed,rwing4,wed,0,0,0.25*2,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  925. A0 = Instance.new('Attachment',wed)
  926. A0.Position = vt(0,0.25*2,0.25*2)
  927. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  928. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  929. CreateWeld(wed,rwing4,wed,0,0,0.25*2,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  930. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  931. CreateMesh(wed,"Wedge",0.05*2,0.5*2,3*2)
  932. CreateWeld(wed,rwing4,wed,0,-0.25*2,1.75*2,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  933. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  934. CreateMesh(wed,"Wedge",0.05*2,3*2,0.5*2)
  935. CreateWeld(wed,rwing4,wed,0,-1.75*2,0.25*2,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  936. A1 = Instance.new('Attachment',wed)
  937. A1.Position = vt(0,2,0.25)
  938.  
  939. tr4 = Instance.new('Trail',wed)
  940. tr4.Attachment0 = A1
  941. tr4.Attachment1 = A0
  942. tr4.Texture = "rbxassetid://2108945559"
  943. tr4.LightEmission = 1
  944. tr4.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  945. tr4.Color = ColorSequence.new(BrickColor.new('Dark blue').Color)
  946. tr4.Lifetime = 0.6
  947.  
  948. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  949. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  950. 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))
  951.  
  952. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  953. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  954. CreateWeld(wed,rwing5,wed,0,0,0.25*2,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  955. A0 = Instance.new('Attachment',wed)
  956. A0.Position = vt(0,0.25*2,0.25*2)
  957. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  958. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  959. CreateWeld(wed,rwing5,wed,0,0,0.25*2,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  960. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  961. CreateMesh(wed,"Wedge",0.05*2,0.5*2,3*2)
  962. CreateWeld(wed,rwing5,wed,0,-0.25*2,1.75*2,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  963. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  964. CreateMesh(wed,"Wedge",0.05*2,3*2,0.5*2)
  965. CreateWeld(wed,rwing5,wed,0,-1.75*2,0.25*2,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  966. A1 = Instance.new('Attachment',wed)
  967. A1.Position = vt(0,2,0.25)
  968.  
  969. tr5 = Instance.new('Trail',wed)
  970. tr5.Attachment0 = A1
  971. tr5.Attachment1 = A0
  972. tr5.Texture = "rbxassetid://2108945559"
  973. tr5.LightEmission = 1
  974. tr5.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  975. tr5.Color = ColorSequence.new(BrickColor.new('dark blue').Color)
  976. tr5.Lifetime = 0.6
  977.  
  978. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  979. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  980. 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))
  981.  
  982. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  983. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  984. CreateWeld(wed,rwing6,wed,0,0,0.25*2,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  985. A0 = Instance.new('Attachment',wed)
  986. A0.Position = vt(0,0.25*2,0.25*2)
  987. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  988. CreateMesh(wed,"Wedge",0.05*2,0.5*2,0.5*2)
  989. CreateWeld(wed,rwing6,wed,0,0,0.25*2,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*2,0.5*2,3*2)
  992. CreateWeld(wed,rwing6,wed,0,-0.25*2,1.75*2,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*2,3*2,0.5*2)
  995. CreateWeld(wed,rwing6,wed,0,-1.75*2,0.25*2,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  996. A1 = Instance.new('Attachment',wed)
  997. A1.Position = vt(0,2,0.25)
  998.  
  999. tr6 = Instance.new('Trail',wed)
  1000. tr6.Attachment0 = A1
  1001. tr6.Attachment1 = A0
  1002. tr6.Texture = "rbxassetid://2108945559"
  1003. tr6.LightEmission = 1
  1004. tr6.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1005. tr6.Color = ColorSequence.new(BrickColor.new('Dark blue').Color)
  1006. tr6.Lifetime = 0.6
  1007.  
  1008. tr4.Enabled = false
  1009. tr5.Enabled = false
  1010. tr6.Enabled = false
  1011. ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor)
  1012. CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02)
  1013. 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))
  1014. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1015. CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025)
  1016. 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))
  1017. ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1018. CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9)
  1019. 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))
  1020. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1021. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  1022. 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))
  1023. gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1024. CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
  1025. 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))
  1026. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  1027. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  1028. 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))
  1029. gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
  1030. CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
  1031. 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))
  1032. gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2)
  1033. CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625)
  1034. 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))
  1035. star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1036. CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5)
  1037. 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))
  1038. starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor)
  1039. CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95)
  1040. 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))
  1041. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  1042. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  1043. CreateWeld(dotsec, larm, dotsec, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1044. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1045. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  1046. CreateWeld(dotseca, larm, dotseca, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1047. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  1048. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  1049. CreateWeld(dotsecb, larm, dotsecb, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1050. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  1051. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  1052. CreateWeld(dotsec, larm, dotsec, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1053. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1054. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  1055. CreateWeld(dotseca, larm, dotseca, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1056. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  1057. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  1058. CreateWeld(dotsecb, larm, dotsecb, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1059. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  1060. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  1061. CreateWeld(dotsec, larm, dotsec, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1062. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1063. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  1064. CreateWeld(dotseca, larm, dotseca, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1065. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  1066. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  1067. CreateWeld(dotsecb, larm, dotsecb, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1068. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  1069. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  1070. CreateWeld(dotsec, larm, dotsec, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1071. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1072. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  1073. CreateWeld(dotseca, larm, dotseca, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1074. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  1075. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  1076. CreateWeld(dotsecb, larm, dotsecb, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1077. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  1078. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  1079. CreateWeld(dotsec, larm, dotsec, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1080. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1081. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  1082. CreateWeld(dotseca, larm, dotseca, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1083. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  1084. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  1085. CreateWeld(dotsecb, larm, dotsecb, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1086. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  1087. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  1088. CreateWeld(dotsec, larm, dotsec, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1089. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1090. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  1091. CreateWeld(dotseca, larm, dotseca, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1092. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  1093. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  1094. CreateWeld(dotsecb, larm, dotsecb, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1095. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  1096. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  1097. CreateWeld(dotsec, larm, dotsec, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1098. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1099. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  1100. CreateWeld(dotseca, larm, dotseca, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1101. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  1102. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  1103. CreateWeld(dotsecb, larm, dotsecb, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1104. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  1105. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  1106. CreateWeld(dotsec, larm, dotsec, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1107. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1108. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  1109. CreateWeld(dotseca, larm, dotseca, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1110. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  1111. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  1112. CreateWeld(dotsecb, larm, dotsecb, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1113. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  1114. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  1115. CreateWeld(dotsec, larm, dotsec, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1116. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1117. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  1118. CreateWeld(dotseca, larm, dotseca, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1119. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  1120. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  1121. CreateWeld(dotsecb, larm, dotsecb, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1122. dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
  1123. CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
  1124. CreateWeld(dotsec, larm, dotsec, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1125. dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
  1126. CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
  1127. CreateWeld(dotseca, larm, dotseca, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1128. dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
  1129. CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
  1130. CreateWeld(dotsecb, larm, dotsecb, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
  1131. ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor)
  1132. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1133. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1134. 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))
  1135.  
  1136. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1137. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1138. 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))
  1139.  
  1140. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1141. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1142. 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))
  1143.  
  1144. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1145. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1146. 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))
  1147. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1148. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1149. 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))
  1150. for i, v in pairs(m:GetChildren()) do
  1151. if v:IsA("Part") then
  1152. v.Transparency = 1
  1153. v.BrickColor = BrickColor.new("Really black")
  1154. v.Material = "Glass"
  1155. end
  1156. end
  1157. for i, v in pairs(m2:GetChildren()) do
  1158. if v:IsA("Part") then
  1159. v.Transparency = 0.90
  1160. v.BrickColor = BrickColor.new("Lime green")
  1161. v.Material = "Granite"
  1162. end
  1163. end
  1164. for i, v in pairs(m3:GetChildren()) do
  1165. if v:IsA("Part") then
  1166. v.Transparency = 0.5
  1167. v.BrickColor = BrickColor.new("Really red")
  1168. v.Material = "Neon"
  1169. end
  1170. end
  1171. for i, v in pairs(mw2:GetChildren()) do
  1172. if v:IsA("Part") then
  1173. v.Transparency = 0.30
  1174. v.BrickColor = BrickColor.new("Really red")
  1175. v.Material = "Neon"
  1176. end
  1177. end
  1178. for i, v in pairs(mw1:GetChildren()) do
  1179. if v:IsA("Part") then
  1180. v.Transparency = 0.75
  1181. v.BrickColor = BrickColor.new("Really red")
  1182. v.Material = "Neon"
  1183. end
  1184. end
  1185. for i, v in pairs(extrawingmod1:GetChildren()) do
  1186. if v:IsA("Part") then
  1187. v.Transparency = 0.95
  1188. v.BrickColor = BrickColor.new("Lime green")
  1189. v.Material = "Neon"
  1190. end
  1191. end
  1192. for i, v in pairs(extrawingmod2:GetChildren()) do
  1193. if v:IsA("Part") then
  1194. v.Transparency = 0.85
  1195. v.BrickColor = BrickColor.new("Camo")
  1196. v.Material = "Neon"
  1197. end
  1198. end
  1199.  
  1200. FHead = New("Part",char,"FHead",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  1201. Mesh = New("SpecialMesh",FHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),})
  1202. Weld = New("Weld",FHead,"mot",{Part0 = FHead,Part1 = char.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  1203. FHead.CanCollide = false
  1204.  
  1205.  
  1206.  
  1207. local MAINRUINCOLOR = BrickColor.new("Really red")
  1208. function RemoveOutlines(part)
  1209. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1210. end
  1211. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1212. local Part = Create("Part")({
  1213. Parent = Parent,
  1214. Reflectance = Reflectance,
  1215. Transparency = Transparency,
  1216. CanCollide = false,
  1217. Locked = true,
  1218. BrickColor = BrickColor.new(tostring(BColor)),
  1219. Name = Name,
  1220. Size = Size,
  1221. Material = Material
  1222. })
  1223. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1224. RemoveOutlines(Part)
  1225. return Part
  1226. end
  1227. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1228. local Msh = Create(Mesh)({
  1229. Parent = Part,
  1230. Offset = OffSet,
  1231. Scale = Scale
  1232. })
  1233. if Mesh == "SpecialMesh" then
  1234. Msh.MeshType = MeshType
  1235. Msh.MeshId = MeshId
  1236. end
  1237. return Msh
  1238. end
  1239. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1240. local Weld = Create("Weld")({
  1241. Parent = Parent,
  1242. Part0 = Part0,
  1243. Part1 = Part1,
  1244. C0 = C0,
  1245. C1 = C1
  1246. })
  1247. return Weld
  1248. end
  1249. Player = game:GetService("Players").localplayer
  1250. Character = Player.Character
  1251. PlayerGui = Player.PlayerGui
  1252. Backpack = Player.Backpack
  1253. Torso = Character.Torso
  1254. Head = Character.Head
  1255. Humanoid = Character.Humanoid
  1256. m = Instance.new("Model", Character)
  1257. LeftArm = Character["Left Arm"]
  1258. LeftLeg = Character["Left Leg"]
  1259. RightArm = Character["Right Arm"]
  1260. RightLeg = Character["Right Leg"]
  1261. LS = Torso["Left Shoulder"]
  1262. LH = Torso["Left Hip"]
  1263. RS = Torso["Right Shoulder"]
  1264. RH = Torso["Right Hip"]
  1265. Face = Head.face
  1266. Neck = Torso.Neck
  1267. it = Instance.new
  1268. attacktype = 1
  1269. vt = Vector3.new
  1270. cf = CFrame.new
  1271. euler = CFrame.fromEulerAnglesXYZ
  1272. angles = CFrame.Angles
  1273. cloaked = false
  1274. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  1275. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  1276. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1277. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1278. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1279. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1280. RootPart = Character.HumanoidRootPart
  1281. RootJoint = RootPart.RootJoint
  1282. RootCF = euler(-1.57, 0, 3.14)
  1283. attack = false
  1284. attackdebounce = false
  1285. deb = false
  1286. equipped = true
  1287. hand = false
  1288. MMouse = nil
  1289. combo = 0
  1290. mana = 0
  1291. trispeed = 0.2
  1292. attackmode = "none"
  1293. local idle = 0
  1294. local Anim = "Idle"
  1295. local Effects = {}
  1296. local gun = false
  1297. local shoot = false
  1298. local sine = 0
  1299. local change = 1
  1300. player = nil
  1301. local toggleTag = true
  1302. local txt = Instance.new("BillboardGui", Head)
  1303. txt.Adornee = nil
  1304. txt.Name = "NameDetect"
  1305. txt.Size = UDim2.new(4, 0, 1.2, 0)
  1306. txt.StudsOffset = Vector3.new(-8, 5.333333333333333, 0)
  1307. local text = Instance.new("TextLabel", txt)
  1308. text.Size = UDim2.new(5, 0, 3.5, 0)
  1309. text.FontSize = "Size8"
  1310. text.TextScaled = true
  1311. text.TextTransparency = 0
  1312. text.BackgroundTransparency = 1
  1313. text.TextTransparency = 0
  1314. text.TextStrokeTransparency = 0
  1315. text.Font = "SciFi"
  1316. text.TextStrokeColor3 = Color3.new(1, 0, 0)
  1317. text.TextColor3 = Color3.new(0, 0, 0)
  1318. text.Text = "Tech"
  1319. function RecolorTextAndRename(name, col1, col2, font)
  1320. text.TextStrokeColor3 = col2
  1321. text.TextColor3 = col1
  1322. text.Font = font
  1323. text.Text = name
  1324. end
  1325. mouse = Player:GetMouse()
  1326. RSH, LSH = nil, nil
  1327. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  1328. RW.Name = "Right Shoulder"
  1329. LW.Name = "Left Shoulder"
  1330. LH = Torso["Left Hip"]
  1331. RH = Torso["Right Hip"]
  1332. TorsoColor = Torso.BrickColor
  1333. function NoOutline(Part)
  1334. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  1335. end
  1336. player = Player
  1337. ch = Character
  1338. RSH = ch.Torso["Right Shoulder"]
  1339. LSH = ch.Torso["Left Shoulder"]
  1340. RSH.Parent = nil
  1341. LSH.Parent = nil
  1342. RW.Name = "Right Shoulder"
  1343. RW.Part0 = ch.Torso
  1344. RW.C0 = cf(1.5, 0.5, 0)
  1345. RW.C1 = cf(0, 0.5, 0)
  1346. RW.Part1 = ch["Right Arm"]
  1347. RW.Parent = ch.Torso
  1348. LW.Name = "Left Shoulder"
  1349. LW.Part0 = ch.Torso
  1350. LW.C0 = cf(-1.5, 0.5, 0)
  1351. LW.C1 = cf(0, 0.5, 0)
  1352. LW.Part1 = ch["Left Arm"]
  1353. LW.Parent = ch.Torso
  1354. local Stats = Instance.new("BoolValue")
  1355. Stats.Name = "Stats"
  1356. Stats.Parent = Character
  1357. local Atk = Instance.new("NumberValue")
  1358. Atk.Name = "Damage"
  1359. Atk.Parent = Stats
  1360. Atk.Value = 1
  1361. local Def = Instance.new("NumberValue")
  1362. Def.Name = "Defense"
  1363. Def.Parent = Stats
  1364. Def.Value = 1
  1365. local Speed = Instance.new("NumberValue")
  1366. Speed.Name = "Speed"
  1367. Speed.Parent = Stats
  1368. Speed.Value = 1
  1369. local Mvmt = Instance.new("NumberValue")
  1370. Mvmt.Name = "Movement"
  1371. Mvmt.Parent = Stats
  1372. Mvmt.Value = 1
  1373. local donum = 0
  1374. function part(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  1375. local fp = it("Part")
  1376. fp.formFactor = formfactor
  1377. fp.Parent = parent
  1378. fp.Reflectance = reflectance
  1379. fp.Transparency = transparency
  1380. fp.CanCollide = false
  1381. fp.Locked = true
  1382. fp.BrickColor = brickcolor
  1383. fp.Name = name
  1384. fp.Size = size
  1385. fp.Position = Torso.Position
  1386. NoOutline(fp)
  1387. fp.Material = "SmoothPlastic"
  1388. fp:BreakJoints()
  1389. return fp
  1390. end
  1391. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  1392. local mesh = it(Mesh)
  1393. mesh.Parent = part
  1394. if Mesh == "SpecialMesh" then
  1395. mesh.MeshType = meshtype
  1396. if meshid ~= "nil" then
  1397. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  1398. end
  1399. end
  1400. mesh.Offset = offset
  1401. mesh.Scale = scale
  1402. return mesh
  1403. end
  1404. function weld(parent, part0, part1, c0)
  1405. local weld = it("Weld")
  1406. weld.Parent = parent
  1407. weld.Part0 = part0
  1408. weld.Part1 = part1
  1409. weld.C0 = c0
  1410. return weld
  1411. end
  1412. local Color1 = Torso.BrickColor
  1413. local bodvel = Instance.new("BodyVelocity")
  1414. local bg = Instance.new("BodyGyro")
  1415. function swait(num)
  1416. if num == 0 or num == nil then
  1417. game:service("RunService").Stepped:wait(0)
  1418. else
  1419. for i = 0, num do
  1420. game:service("RunService").Stepped:wait(0)
  1421. end
  1422. end
  1423. end
  1424. local r = 255
  1425. local g = 0
  1426. local b = 0
  1427. coroutine.resume(coroutine.create(function()
  1428. while wait() do
  1429. for i = 0, 50.8 do
  1430. swait()
  1431. g = g + 5
  1432. end
  1433. for i = 0, 50.8 do
  1434. swait()
  1435. r = r - 5
  1436. end
  1437. for i = 0, 50.8 do
  1438. swait()
  1439. b = b + 5
  1440. end
  1441. for i = 0, 50.8 do
  1442. swait()
  1443. g = g - 5
  1444. end
  1445. for i = 0, 50.8 do
  1446. swait()
  1447. r = r + 5
  1448. end
  1449. for i = 0, 50.8 do
  1450. swait()
  1451. b = b - 5
  1452. end
  1453. end
  1454. end))
  1455. function so(id, par, vol, pit)
  1456. coroutine.resume(coroutine.create(function()
  1457. local sou = Instance.new("Sound", par or workspace)
  1458. sou.Volume = vol
  1459. sou.Pitch = pit or 1
  1460. sou.SoundId = id
  1461. swait()
  1462. sou:play()
  1463. game:GetService("Debris"):AddItem(sou, 6)
  1464. end))
  1465. end
  1466. function clerp(a, b, t)
  1467. local qa = {
  1468. QuaternionFromCFrame(a)
  1469. }
  1470. local qb = {
  1471. QuaternionFromCFrame(b)
  1472. }
  1473. local ax, ay, az = a.x, a.y, a.z
  1474. local bx, by, bz = b.x, b.y, b.z
  1475. local _t = 1 - t
  1476. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1477. end
  1478. function QuaternionFromCFrame(cf)
  1479. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1480. local trace = m00 + m11 + m22
  1481. if trace > 0 then
  1482. local s = math.sqrt(1 + trace)
  1483. local recip = 0.5 / s
  1484. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1485. else
  1486. local i = 0
  1487. if m00 < m11 then
  1488. i = 1
  1489. end
  1490. if m22 > (i == 0 and m00 or m11) then
  1491. i = 2
  1492. end
  1493. if i == 0 then
  1494. local s = math.sqrt(m00 - m11 - m22 + 1)
  1495. local recip = 0.5 / s
  1496. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1497. elseif i == 1 then
  1498. local s = math.sqrt(m11 - m22 - m00 + 1)
  1499. local recip = 0.5 / s
  1500. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1501. elseif i == 2 then
  1502. local s = math.sqrt(m22 - m00 - m11 + 1)
  1503. local recip = 0.5 / s
  1504. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1505. end
  1506. end
  1507. end
  1508. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1509. local xs, ys, zs = x + x, y + y, z + z
  1510. local wx, wy, wz = w * xs, w * ys, w * zs
  1511. local xx = x * xs
  1512. local xy = x * ys
  1513. local xz = x * zs
  1514. local yy = y * ys
  1515. local yz = y * zs
  1516. local zz = z * zs
  1517. 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))
  1518. end
  1519. function QuaternionSlerp(a, b, t)
  1520. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1521. local startInterp, finishInterp
  1522. if cosTheta >= 1.0E-4 then
  1523. if 1 - cosTheta > 1.0E-4 then
  1524. local theta = math.acos(cosTheta)
  1525. local invSinTheta = 1 / math.sin(theta)
  1526. startInterp = math.sin((1 - t) * theta) * invSinTheta
  1527. finishInterp = math.sin(t * theta) * invSinTheta
  1528. else
  1529. startInterp = 1 - t
  1530. finishInterp = t
  1531. end
  1532. elseif 1 + cosTheta > 1.0E-4 then
  1533. local theta = math.acos(-cosTheta)
  1534. local invSinTheta = 1 / math.sin(theta)
  1535. startInterp = math.sin((t - 1) * theta) * invSinTheta
  1536. finishInterp = math.sin(t * theta) * invSinTheta
  1537. else
  1538. startInterp = t - 1
  1539. finishInterp = t
  1540. end
  1541. 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
  1542. end
  1543. local CFrameFromTopBack = function(at, top, back)
  1544. local right = top:Cross(back)
  1545. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  1546. end
  1547. function Triangle(a, b, c)
  1548. local edg1 = (c - a):Dot((b - a).unit)
  1549. local edg2 = (a - b):Dot((c - b).unit)
  1550. local edg3 = (b - c):Dot((a - c).unit)
  1551. if edg1 <= (b - a).magnitude and edg1 >= 0 then
  1552. a, b = a, b
  1553. elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
  1554. a, b, c = b, c, a
  1555. elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
  1556. a, b, c = c, a, b
  1557. else
  1558. assert(false, "unreachable")
  1559. end
  1560. local len1 = (c - a):Dot((b - a).unit)
  1561. local len2 = (b - a).magnitude - len1
  1562. local width = (a + (b - a).unit * len1 - c).magnitude
  1563. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit)
  1564. local list = {}
  1565. if len1 > 0.01 then
  1566. local w1 = Instance.new("WedgePart", m)
  1567. game:GetService("Debris"):AddItem(w1, 5)
  1568. w1.Material = "SmoothPlastic"
  1569. w1.FormFactor = "Custom"
  1570. w1.BrickColor = BrickColor.new("Really red")
  1571. w1.Transparency = 0
  1572. w1.Reflectance = 0
  1573. w1.Material = "SmoothPlastic"
  1574. w1.CanCollide = false
  1575. local l1 = Instance.new("PointLight", w1)
  1576. l1.Color = Color3.new(170, 0, 0)
  1577. NoOutline(w1)
  1578. local sz = Vector3.new(0.2, width, len1)
  1579. w1.Size = sz
  1580. local sp = Instance.new("SpecialMesh", w1)
  1581. sp.MeshType = "Wedge"
  1582. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  1583. w1:BreakJoints()
  1584. w1.Anchored = true
  1585. w1.Parent = workspace
  1586. w1.Transparency = 0.7
  1587. table.insert(Effects, {
  1588. w1,
  1589. "Disappear",
  1590. 0.01
  1591. })
  1592. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  1593. table.insert(list, w1)
  1594. end
  1595. if len2 > 0.01 then
  1596. local w2 = Instance.new("WedgePart", m)
  1597. game:GetService("Debris"):AddItem(w2, 5)
  1598. w2.Material = "SmoothPlastic"
  1599. w2.FormFactor = "Custom"
  1600. w2.BrickColor = BrickColor.new("Really red")
  1601. w2.Transparency = 0
  1602. w2.Reflectance = 0
  1603. w2.Material = "SmoothPlastic"
  1604. w2.CanCollide = false
  1605. local l2 = Instance.new("PointLight", w2)
  1606. l2.Color = Color3.new(170, 0, 0)
  1607. NoOutline(w2)
  1608. local sz = Vector3.new(0.2, width, len2)
  1609. w2.Size = sz
  1610. local sp = Instance.new("SpecialMesh", w2)
  1611. sp.MeshType = "Wedge"
  1612. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  1613. w2:BreakJoints()
  1614. w2.Anchored = true
  1615. w2.Parent = workspace
  1616. w2.Transparency = 0.7
  1617. table.insert(Effects, {
  1618. w2,
  1619. "Disappear",
  1620. 0.01
  1621. })
  1622. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  1623. table.insert(list, w2)
  1624. end
  1625. return unpack(list)
  1626. end
  1627. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1628. if hit.Parent == nil then
  1629. return
  1630. end
  1631. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1632. for _, v in pairs(hit.Parent:children()) do
  1633. if v:IsA("Humanoid") then
  1634. h = v
  1635. end
  1636. end
  1637. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1638. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1639. return
  1640. end
  1641. local c = Create("ObjectValue")({
  1642. Name = "creator",
  1643. Value = RealGame:service("Players")[owner.Name],
  1644. Parent = h
  1645. })
  1646. game:GetService("Debris"):AddItem(c, 0.5)
  1647. if HitSound ~= nil and HitPitch ~= nil then
  1648. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1649. end
  1650. local Damage = math.random(minim, maxim)
  1651. local blocked = false
  1652. local block = hit.Parent:findFirstChild("Block")
  1653. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1654. blocked = true
  1655. block.Value = block.Value - 1
  1656. print(block.Value)
  1657. end
  1658. if blocked == false then
  1659. HitHealth = h.Health
  1660. h.Health = h.Health - Damage
  1661. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1662. print("Tech! kil1 oBeTAineD")
  1663. end
  1664. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1665. else
  1666. h.Health = h.Health - Damage / 2
  1667. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1668. end
  1669. if Type == "Knockdown" then
  1670. local hum = hit.Parent.Humanoid
  1671. hum.PlatformStand = true
  1672. coroutine.resume(coroutine.create(function(HHumanoid)
  1673. swait(1)
  1674. HHumanoid.PlatformStand = false
  1675. end), hum)
  1676. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1677. local bodvol = Create("BodyVelocity")({
  1678. velocity = angle * knockback,
  1679. P = 5000,
  1680. maxForce = Vector3.new(8000, 8000, 8000),
  1681. Parent = hit
  1682. })
  1683. local rl = Create("BodyAngularVelocity")({
  1684. P = 3000,
  1685. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1686. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1687. Parent = hit
  1688. })
  1689. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1690. game:GetService("Debris"):AddItem(rl, 0.5)
  1691. elseif Type == "Normal" then
  1692. local vp = Create("BodyVelocity")({
  1693. P = 500,
  1694. maxForce = Vector3.new(math.huge, 0, math.huge),
  1695. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1696. })
  1697. if knockback > 0 then
  1698. vp.Parent = hit.Parent.Head
  1699. end
  1700. game:GetService("Debris"):AddItem(vp, 0.5)
  1701. elseif Type == "Up" then
  1702. local bodyVelocity = Create("BodyVelocity")({
  1703. velocity = Vector3.new(0, 20, 0),
  1704. P = 5000,
  1705. maxForce = Vector3.new(8000, 8000, 8000),
  1706. Parent = hit
  1707. })
  1708. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1709. local bodyVelocity = Create("BodyVelocity")({
  1710. velocity = Vector3.new(0, 20, 0),
  1711. P = 5000,
  1712. maxForce = Vector3.new(8000, 8000, 8000),
  1713. Parent = hit
  1714. })
  1715. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1716. elseif Type == "Leech" then
  1717. local hum = hit.Parent.Humanoid
  1718. if hum ~= nil then
  1719. for i = 0, 2 do
  1720. 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)
  1721. end
  1722. Humanoid.Health = Humanoid.Health + 10
  1723. end
  1724. elseif Type == "UpKnock" then
  1725. local hum = hit.Parent.Humanoid
  1726. hum.PlatformStand = true
  1727. if hum ~= nil then
  1728. hitr = true
  1729. end
  1730. coroutine.resume(coroutine.create(function(HHumanoid)
  1731. swait(5)
  1732. HHumanoid.PlatformStand = false
  1733. hitr = false
  1734. end), hum)
  1735. local bodyVelocity = Create("BodyVelocity")({
  1736. velocity = Vector3.new(0, 20, 0),
  1737. P = 5000,
  1738. maxForce = Vector3.new(8000, 8000, 8000),
  1739. Parent = hit
  1740. })
  1741. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1742. local bodyVelocity = Create("BodyVelocity")({
  1743. velocity = Vector3.new(0, 20, 0),
  1744. P = 5000,
  1745. maxForce = Vector3.new(8000, 8000, 8000),
  1746. Parent = hit
  1747. })
  1748. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1749. elseif Type == "Snare" then
  1750. local bp = Create("BodyPosition")({
  1751. P = 2000,
  1752. D = 100,
  1753. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1754. position = hit.Parent.Torso.Position,
  1755. Parent = hit.Parent.Torso
  1756. })
  1757. game:GetService("Debris"):AddItem(bp, 1)
  1758. elseif Type == "Slashnare" then
  1759. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 60, 60, 60, 12, 12, 12, 0.07)
  1760. for i = 1, math.random(4, 5) do
  1761. 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)
  1762. end
  1763. local bp = Create("BodyPosition")({
  1764. P = 2000,
  1765. D = 100,
  1766. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1767. position = hit.Parent.Torso.Position,
  1768. Parent = hit.Parent.Torso
  1769. })
  1770. game:GetService("Debris"):AddItem(bp, 1)
  1771. elseif Type == "Spike" then
  1772. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1773. local bp = Create("BodyPosition")({
  1774. P = 2000,
  1775. D = 100,
  1776. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1777. position = hit.Parent.Torso.Position,
  1778. Parent = hit.Parent.Torso
  1779. })
  1780. game:GetService("Debris"):AddItem(bp, 1)
  1781. elseif Type == "Freeze" then
  1782. local BodPos = Create("BodyPosition")({
  1783. P = 50000,
  1784. D = 1000,
  1785. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1786. position = hit.Parent.Torso.Position,
  1787. Parent = hit.Parent.Torso
  1788. })
  1789. local BodGy = Create("BodyGyro")({
  1790. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1791. P = 20000,
  1792. Parent = hit.Parent.Torso,
  1793. cframe = hit.Parent.Torso.CFrame
  1794. })
  1795. hit.Parent.Torso.Anchored = true
  1796. coroutine.resume(coroutine.create(function(Part)
  1797. swait(1.5)
  1798. Part.Anchored = false
  1799. end), hit.Parent.Torso)
  1800. game:GetService("Debris"):AddItem(BodPos, 3)
  1801. game:GetService("Debris"):AddItem(BodGy, 3)
  1802. end
  1803. local debounce = Create("BoolValue")({
  1804. Name = "DebounceHit",
  1805. Parent = hit.Parent,
  1806. Value = true
  1807. })
  1808. game:GetService("Debris"):AddItem(debounce, Delay)
  1809. c = Instance.new("ObjectValue")
  1810. c.Name = "creator"
  1811. c.Value = RealGame:service("Players")[owner.Name];
  1812. c.Parent = h
  1813. game:GetService("Debris"):AddItem(c, 0.5)
  1814. end
  1815. end
  1816. function ShowDamage(Pos, Text, Time, Color)
  1817. local Rate = 0.03333333333333333
  1818. local Pos = Pos or Vector3.new(0, 0, 0)
  1819. local Text = Text or ""
  1820. local Time = Time or 2
  1821. local Color = Color or Color3.new(1, 0, 1)
  1822. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1823. EffectPart.Anchored = true
  1824. local BillboardGui = Create("BillboardGui")({
  1825. Size = UDim2.new(3, 0, 3, 0),
  1826. Adornee = EffectPart,
  1827. Parent = EffectPart
  1828. })
  1829. local TextLabel = Create("TextLabel")({
  1830. BackgroundTransparency = 1,
  1831. Size = UDim2.new(1, 0, 1, 0),
  1832. Text = Text,
  1833. TextColor3 = Color,
  1834. TextScaled = true,
  1835. Font = Enum.Font.ArialBold,
  1836. Parent = BillboardGui
  1837. })
  1838. game.Debris:AddItem(EffectPart, Time + 0.1)
  1839. EffectPart.Parent = game:GetService("Workspace")
  1840. delay(0, function()
  1841. local Frames = Time / Rate
  1842. for Frame = 1, Frames do
  1843. wait(Rate)
  1844. local Percent = Frame / Frames
  1845. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1846. TextLabel.TextTransparency = Percent
  1847. end
  1848. if EffectPart and EffectPart.Parent then
  1849. EffectPart:Destroy()
  1850. end
  1851. end)
  1852. end
  1853. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1854. for _, c in pairs(workspace:children()) do
  1855. local hum = c:findFirstChildOfClass("Humanoid")
  1856. if hum ~= nil then
  1857. local head = c:findFirstChild("Head")
  1858. if head ~= nil then
  1859. local targ = head.Position - Part.Position
  1860. local mag = targ.magnitude
  1861. if magni >= mag and c.Name ~= Player.Name then
  1862. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1863. end
  1864. end
  1865. end
  1866. end
  1867. end
  1868. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1869. for _, c in pairs(workspace:children()) do
  1870. local hum = c:findFirstChild("Humanoid")
  1871. if hum ~= nil then
  1872. local head = c:findFirstChild("Torso")
  1873. if head ~= nil then
  1874. local targ = head.Position - Part.Position
  1875. local mag = targ.magnitude
  1876. if magni >= mag and c.Name ~= Player.Name then
  1877. MagicBlock(BrickColor.new("Pastel light blue"), head.CFrame, 5, 5, 5, 1, 1, 1, 0.05)
  1878. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1879. end
  1880. end
  1881. end
  1882. end
  1883. end
  1884. function rayCast(Pos, Dir, Max, Ignore)
  1885. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1886. end
  1887. function SkullEffect(brickcolor, cframe, x1, y1, z1, delay)
  1888. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1889. prt.Anchored = true
  1890. prt.CFrame = cframe
  1891. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1))
  1892. game:GetService("Debris"):AddItem(prt, 2)
  1893. CF = prt.CFrame
  1894. coroutine.resume(coroutine.create(function(Part, Mesh, TehCF)
  1895. for i = 0, 1, 0.2 do
  1896. wait()
  1897. Part.CFrame = CF * cf(0, 0, -0.4)
  1898. end
  1899. for i = 0, 1, delay do
  1900. wait()
  1901. Mesh.Scale = Mesh.Scale
  1902. end
  1903. for i = 0, 1, 0.1 do
  1904. wait()
  1905. Part.Transparency = i
  1906. end
  1907. Part.Parent = nil
  1908. end), prt, msh, CF)
  1909. end
  1910. function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1911. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1912. prt.Anchored = true
  1913. prt.Material = "Neon"
  1914. prt.CFrame = cframe
  1915. prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1916. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1917. game:GetService("Debris"):AddItem(prt, 5)
  1918. coroutine.resume(coroutine.create(function(Part, Mesh)
  1919. for i = 0, 1, delay do
  1920. swait()
  1921. Part.CFrame = Part.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1922. Part.Transparency = i
  1923. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1924. end
  1925. Part.Parent = nil
  1926. end), prt, msh)
  1927. end
  1928. function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  1929. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1930. prt.Anchored = true
  1931. prt.Material = "Neon"
  1932. prt.CFrame = cframe
  1933. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1934. game:GetService("Debris"):AddItem(prt, 5)
  1935. coroutine.resume(coroutine.create(function(Part, Mesh)
  1936. local rtype = rottype
  1937. for i = 0, 1, delay do
  1938. swait()
  1939. if rtype == 1 then
  1940. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  1941. elseif rtype == 2 then
  1942. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  1943. end
  1944. Part.Transparency = i
  1945. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1946. end
  1947. Part.Parent = nil
  1948. end), prt, msh)
  1949. end
  1950. function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1951. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1952. prt.Anchored = true
  1953. prt.CFrame = cframe
  1954. prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1955. msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1956. game:GetService("Debris"):AddItem(prt, 5)
  1957. coroutine.resume(coroutine.create(function(Part, Mesh)
  1958. for i = 0, 1, delay do
  1959. wait()
  1960. Part.Transparency = i
  1961. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1962. end
  1963. Part.Parent = nil
  1964. end), prt, msh)
  1965. end
  1966. function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  1967. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1968. prt.Anchored = true
  1969. prt.Material = "Neon"
  1970. prt.CFrame = cframe
  1971. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1972. game:GetService("Debris"):AddItem(prt, 5)
  1973. coroutine.resume(coroutine.create(function(Part, Mesh)
  1974. local rtype = rottype
  1975. for i = 0, 1, delay do
  1976. swait()
  1977. if rtype == 1 then
  1978. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  1979. elseif rtype == 2 then
  1980. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  1981. end
  1982. Part.Transparency = i
  1983. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1984. end
  1985. Part.Parent = nil
  1986. end), prt, msh)
  1987. end
  1988. function MagicShock(brickcolor, cframe, x1, y1, x3, y3, delay, rottype)
  1989. local prt = part(3, char, 1, 1, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  1990. prt.Anchored = true
  1991. prt.Material = "Neon"
  1992. prt.CFrame = cframe
  1993. local dec = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt)
  1994. local dec2 = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt)
  1995. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
  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. dec.Transparency = i
  2007. dec2.Transparency = i
  2008. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  2009. end
  2010. Part.Parent = nil
  2011. end), prt, msh)
  2012. end
  2013. function MagicShockAlt(brickcolor, cframe, x1, y1, x3, y3, delay, rottype)
  2014. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2015. prt.Anchored = true
  2016. prt.Material = "Neon"
  2017. prt.CFrame = cframe
  2018. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
  2019. game:GetService("Debris"):AddItem(prt, 5)
  2020. coroutine.resume(coroutine.create(function(Part, Mesh)
  2021. local rtype = rottype
  2022. for i = 0, 1, delay do
  2023. swait()
  2024. if rtype == 1 then
  2025. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  2026. elseif rtype == 2 then
  2027. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  2028. end
  2029. prt.Transparency = i
  2030. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  2031. end
  2032. Part.Parent = nil
  2033. end), prt, msh)
  2034. end
  2035. function MagicShockAltCircle(brickcolor, cframe, x1, z1, x3, z3, delay, rottype)
  2036. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2037. prt.Anchored = true
  2038. prt.Material = "Neon"
  2039. prt.CFrame = cframe
  2040. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, 1, z1))
  2041. game:GetService("Debris"):AddItem(prt, 5)
  2042. coroutine.resume(coroutine.create(function(Part, Mesh)
  2043. local rtype = rottype
  2044. for i = 0, 1, delay do
  2045. swait()
  2046. if rtype == 1 then
  2047. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0.1, 0)
  2048. elseif rtype == 2 then
  2049. prt.CFrame = prt.CFrame * CFrame.Angles(0, -0.1, 0)
  2050. end
  2051. prt.Transparency = i
  2052. Mesh.Scale = Mesh.Scale + vt(x3, 0, z3)
  2053. end
  2054. Part.Parent = nil
  2055. end), prt, msh)
  2056. end
  2057. function MagicShockTrailAlt(brickcolor, cframe, x1, y1, z1, x3, y3, delay, rottype)
  2058. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2059. prt.Anchored = true
  2060. prt.Material = "Neon"
  2061. prt.CFrame = cframe
  2062. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2063. game:GetService("Debris"):AddItem(prt, 5)
  2064. coroutine.resume(coroutine.create(function(Part, Mesh)
  2065. local rtype = rottype
  2066. for i = 0, 1, delay do
  2067. swait()
  2068. if rtype == 1 then
  2069. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  2070. elseif rtype == 2 then
  2071. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  2072. end
  2073. prt.Transparency = i
  2074. Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
  2075. end
  2076. Part.Parent = nil
  2077. end), prt, msh)
  2078. end
  2079. function MagicShockTrailAlt2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
  2080. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2081. prt.Anchored = true
  2082. prt.Material = "Neon"
  2083. prt.CFrame = cframe
  2084. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2085. game:GetService("Debris"):AddItem(prt, 5)
  2086. coroutine.resume(coroutine.create(function(Part, Mesh)
  2087. local rtype = rottype
  2088. for i = 0, 1, delay do
  2089. swait()
  2090. if rtype == 1 then
  2091. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
  2092. elseif rtype == 2 then
  2093. prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
  2094. end
  2095. prt.Transparency = i
  2096. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2097. end
  2098. Part.Parent = nil
  2099. end), prt, msh)
  2100. end
  2101. function MagicBlock2(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay)
  2102. local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2103. prt.Anchored = false
  2104. prt.CFrame = cframe
  2105. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2106. local wld = weld(prt, prt, Parent, cframe)
  2107. game:GetService("Debris"):AddItem(prt, 5)
  2108. coroutine.resume(coroutine.create(function(Part, Mesh, Weld)
  2109. for i = 0, 1, delay do
  2110. wait()
  2111. Weld.C0 = euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cframe
  2112. Part.Transparency = i
  2113. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2114. end
  2115. Part.Parent = nil
  2116. end), prt, msh, wld)
  2117. end
  2118. function MagicBlock3(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay)
  2119. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2120. prt.Anchored = false
  2121. prt.CFrame = cframe
  2122. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2123. local wld = weld(prt, prt, Parent, euler(0, 0, 0) * cf(0, 0, 0))
  2124. game:GetService("Debris"):AddItem(prt, 5)
  2125. coroutine.resume(coroutine.create(function(Part, Mesh, Weld)
  2126. for i = 0, 1, delay do
  2127. wait()
  2128. Weld.C0 = euler(i * 20, 0, 0)
  2129. Part.Transparency = i
  2130. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2131. end
  2132. Part.Parent = nil
  2133. end), prt, msh, wld)
  2134. end
  2135. function MagicCircle2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2136. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2137. prt.Anchored = true
  2138. prt.CFrame = cframe
  2139. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2140. game:GetService("Debris"):AddItem(prt, 2)
  2141. coroutine.resume(coroutine.create(function(Part, Mesh)
  2142. for i = 0, 1, delay do
  2143. wait()
  2144. Part.CFrame = Part.CFrame
  2145. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2146. local prt2 = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2147. prt2.Anchored = true
  2148. prt2.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2149. local msh2 = mesh("SpecialMesh", prt2, "Sphere", "", vt(0, 0, 0), vt(0.5, 0.5, 0.5))
  2150. game:GetService("Debris"):AddItem(prt2, 2)
  2151. coroutine.resume(coroutine.create(function(Part, Mesh)
  2152. for i = 0, 1, 0.1 do
  2153. wait()
  2154. Part.CFrame = Part.CFrame * cf(0, 0.5, 0)
  2155. end
  2156. Part.Parent = nil
  2157. end), prt2, msh2)
  2158. end
  2159. for i = 0, 1, delay * 2 do
  2160. wait()
  2161. Part.CFrame = Part.CFrame
  2162. Mesh.Scale = vt(x1 + x3 - (x1 + x3) * i, y1 + y3 - (y1 + y3) * i, z1 + z3 - (z1 + z3) * i)
  2163. end
  2164. Part.Parent = nil
  2165. end), prt, msh)
  2166. end
  2167. function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2168. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2169. prt.Anchored = true
  2170. prt.CFrame = cframe
  2171. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  2172. game:GetService("Debris"):AddItem(prt, 2)
  2173. coroutine.resume(coroutine.create(function(Part, Mesh)
  2174. for i = 0, 1, delay do
  2175. wait()
  2176. Part.CFrame = Part.CFrame
  2177. Part.Transparency = i
  2178. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2179. end
  2180. Part.Parent = nil
  2181. end), prt, msh)
  2182. end
  2183. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  2184. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2185. prt.Anchored = true
  2186. prt.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2187. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  2188. game:GetService("Debris"):AddItem(prt, 2)
  2189. coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
  2190. CF = Part.CFrame
  2191. Numbb = 0
  2192. randnumb = math.random() / 10
  2193. rand1 = math.random() / 10
  2194. for i = 0, 1, rand1 do
  2195. wait()
  2196. CF = CF * cf(0, math.random() / 2, 0)
  2197. Part.CFrame = CF * euler(Numbb, 0, 0)
  2198. Part.Transparency = i
  2199. Numbb = Numbb + randnumb
  2200. end
  2201. Part.Parent = nil
  2202. end), prt, CF, Numbb, randnumb)
  2203. end
  2204. function MagicWaveThing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2205. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2206. prt.Anchored = true
  2207. prt.CFrame = cframe
  2208. msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1051557", vt(0, 0, 0), vt(x1, y1, z1))
  2209. game:GetService("Debris"):AddItem(prt, 5)
  2210. coroutine.resume(coroutine.create(function(Part, Mesh)
  2211. for i = 0, 1, delay do
  2212. wait()
  2213. Part.CFrame = Part.CFrame * euler(0, 0.7, 0)
  2214. Part.Transparency = i
  2215. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2216. end
  2217. Part.Parent = nil
  2218. end), prt, msh)
  2219. end
  2220. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2221. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2222. prt.Anchored = true
  2223. prt.CFrame = cframe
  2224. msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  2225. game:GetService("Debris"):AddItem(prt, 2)
  2226. coroutine.resume(coroutine.create(function(Part, Mesh)
  2227. for i = 0, 1, delay do
  2228. wait()
  2229. Part.CFrame = Part.CFrame * cf(0, y3 / 2, 0)
  2230. Part.Transparency = i
  2231. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2232. end
  2233. Part.Parent = nil
  2234. end), prt, msh)
  2235. end
  2236. function StravEffect(brickcolor, cframe, x, y, z, x1, y1, z1, delay)
  2237. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2238. prt.Anchored = true
  2239. prt.CFrame = cframe * cf(x, y, z)
  2240. msh = mesh("SpecialMesh", prt, "FileMesh", "rbxassetid://168892363", vt(0, 0, 0), vt(x1, y1, z1))
  2241. game:GetService("Debris"):AddItem(prt, 5)
  2242. coroutine.resume(coroutine.create(function(Part, Mesh, ex, why, zee)
  2243. local num = math.random()
  2244. local num2 = math.random(-3, 2) + math.random()
  2245. local numm = 0
  2246. for i = 0, 1, delay * 2 do
  2247. swait()
  2248. Part.CFrame = cframe * euler(0, numm * num * 10, 0) * cf(ex, why, zee) * cf(-i * 10, num2, 0)
  2249. Part.Transparency = i
  2250. numm = numm + 0.01
  2251. end
  2252. Part.Parent = nil
  2253. Mesh.Parent = nil
  2254. end), prt, msh, x, y, z)
  2255. end
  2256. function dmgstart(dmg, what)
  2257. hitcon = what.Touched:connect(function(hit)
  2258. local hum = hit.Parent:FindFirstChild("Humanoid")
  2259. if hum and not hum:IsDescendantOf(Character) then
  2260. hum:TakeDamage(dmg)
  2261. end
  2262. end)
  2263. end
  2264. function dmgstop()
  2265. hitcon:disconnect()
  2266. end
  2267. function Cloak()
  2268. Face.Parent = nil
  2269. cloaked = true
  2270. for _, v in pairs(Torso.Parent:children()) do
  2271. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  2272. coroutine.resume(coroutine.create(function()
  2273. for i = 0, 1, 0.2 do
  2274. wait()
  2275. v.Transparency = i
  2276. end
  2277. v.Transparency = 1
  2278. end))
  2279. end
  2280. if v.className == "Hat" then
  2281. hatp = v.Handle
  2282. coroutine.resume(coroutine.create(function(derp)
  2283. for i = 0, 1, 0.2 do
  2284. wait()
  2285. derp.Transparency = i
  2286. end
  2287. derp.Transparency = 1
  2288. end), hatp)
  2289. end
  2290. end
  2291. for _, v in pairs(m:children()) do
  2292. if v.className == "Part" then
  2293. coroutine.resume(coroutine.create(function()
  2294. for i = 0, 1, 0.2 do
  2295. wait()
  2296. v.Transparency = i
  2297. end
  2298. v.Transparency = 1
  2299. end))
  2300. end
  2301. end
  2302. end
  2303. function UnCloak()
  2304. so("http://roblox.com/asset/?id=2767090", Torso, 1, 1.1)
  2305. Face.Parent = Head
  2306. cloaked = false
  2307. for _, v in pairs(Torso.Parent:children()) do
  2308. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  2309. coroutine.resume(coroutine.create(function()
  2310. for i = 0, 1, 0.1 do
  2311. wait()
  2312. v.Transparency = v.Transparency - 0.1
  2313. end
  2314. v.Transparency = 0
  2315. end))
  2316. end
  2317. if v.className == "Hat" then
  2318. hatp = v.Handle
  2319. coroutine.resume(coroutine.create(function(derp)
  2320. for i = 0, 1, 0.1 do
  2321. wait()
  2322. derp.Transparency = derp.Transparency - 0.1
  2323. end
  2324. derp.Transparency = 0
  2325. end), hatp)
  2326. end
  2327. end
  2328. for _, v in pairs(m:children()) do
  2329. if v.className == "Part" and v.Name ~= "hitbox" and v.Name ~= "tip" then
  2330. coroutine.resume(coroutine.create(function()
  2331. for i = 0, 1, 0.1 do
  2332. wait()
  2333. v.Transparency = v.Transparency - 0.1
  2334. end
  2335. v.Transparency = 0
  2336. end))
  2337. v.Transparency = 0
  2338. end
  2339. end
  2340. end
  2341. local origcolor = BrickColor.new("Pastel light blue")
  2342. function Explode(rad, par, pitch, vol, mindam, maxdam)
  2343. local expart = Instance.new("Part", char)
  2344. local expart2 = Instance.new("Part", char)
  2345. local rin = Instance.new("Part", char)
  2346. local rin2 = Instance.new("Part", char)
  2347. local partMesh = Instance.new("SpecialMesh", expart)
  2348. partMesh.MeshType = "Sphere"
  2349. local partMesh2 = Instance.new("SpecialMesh", expart2)
  2350. partMesh2.MeshType = "Sphere"
  2351. local partMesh3 = Instance.new("SpecialMesh", rin)
  2352. partMesh3.MeshType = "Brick"
  2353. local partMesh4 = Instance.new("SpecialMesh", rin2)
  2354. partMesh4.MeshType = "Brick"
  2355. CFuncs.Sound.Create("rbxassetid://165970126", expart, vol, pitch)
  2356. partMesh.Scale = vt(rad, rad, rad)
  2357. expart.Size = vt(1, 1, 1)
  2358. expart.Transparency = 0
  2359. expart.Anchored = true
  2360. expart.Material = "Neon"
  2361. expart.BrickColor = bc("White")
  2362. expart.CFrame = par.CFrame
  2363. partMesh2.Scale = vt(rad, rad, rad)
  2364. expart2.Size = vt(1.15, 1.15, 1.15)
  2365. expart2.Transparency = 0.5
  2366. expart2.Anchored = true
  2367. expart2.Material = "Neon"
  2368. expart2.BrickColor = par.BrickColor
  2369. expart2.CFrame = par.CFrame
  2370. rin.Size = vt(1.15, 1.15, 1.15)
  2371. rin.Transparency = 1
  2372. rin.Anchored = true
  2373. rin.Material = "Neon"
  2374. rin.BrickColor = par.BrickColor
  2375. rin.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
  2376. rin2.Size = vt(1.15, 1.15, 1.15)
  2377. rin2.Transparency = 1
  2378. rin2.Anchored = true
  2379. rin2.Material = "Neon"
  2380. rin2.BrickColor = par.BrickColor
  2381. rin2.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
  2382. partMesh3.Scale = vt(0, 1, 0)
  2383. partMesh4.Scale = vt(0, 1, 0)
  2384. local dec2 = Instance.new("Decal", rin)
  2385. dec2.Face = "Top"
  2386. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2387. dec2.Parent = rin
  2388. local dec2b = dec2:Clone()
  2389. dec2b.Face = "Bottom"
  2390. dec2b.Parent = rin
  2391. local dec2a = Instance.new("Decal", rin2)
  2392. dec2a.Face = "Top"
  2393. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  2394. dec2a.Parent = rin2
  2395. local dec2ab = dec2a:Clone()
  2396. dec2ab.Face = "Bottom"
  2397. dec2ab.Parent = rin2
  2398. expart.CanCollide = false
  2399. expart2.CanCollide = false
  2400. rin.CanCollide = false
  2401. rin2.CanCollide = false
  2402. MagniDamage(par, rad * 5, mindam, maxdam, 0, "Normal")
  2403. local value = 1 * rad / 6.5
  2404. for i = 0, 199 do
  2405. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  2406. expart.CFrame = expart.CFrame
  2407. partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
  2408. expart2.CFrame = expart.CFrame
  2409. value = value - 0.035 * rad / 30
  2410. if value < 7.5 then
  2411. partMesh3.Scale = partMesh3.Scale + vt(rad / 5, 0, rad / 5)
  2412. rin.CFrame = rin.CFrame * CFrame.Angles(0, math.rad(1), 0)
  2413. partMesh4.Scale = partMesh4.Scale + vt(rad / 7.5, 0, rad / 7.5)
  2414. rin2.CFrame = rin2.CFrame * CFrame.Angles(0, math.rad(-1), 0)
  2415. end
  2416. if value < 0 then
  2417. dec2.Transparency = dec2.Transparency + 0.025
  2418. dec2a.Transparency = dec2a.Transparency + 0.025
  2419. dec2b.Transparency = dec2b.Transparency + 0.025
  2420. dec2ab.Transparency = dec2ab.Transparency + 0.025
  2421. expart.Transparency = expart.Transparency + 0.025
  2422. expart2.Transparency = expart2.Transparency + 0.025
  2423. rin.Transparency = rin.Transparency + 0.025
  2424. rin2.Transparency = rin2.Transparency + 0.025
  2425. end
  2426. swait()
  2427. end
  2428. game:GetService("Debris"):AddItem(expart, 1)
  2429. game:GetService("Debris"):AddItem(expart2, 1)
  2430. game:GetService("Debris"):AddItem(rin, 1)
  2431. game:GetService("Debris"):AddItem(rin2, 1)
  2432. end
  2433. function ExplodeShort(rad, par, pitch, vol, mindam, maxdam)
  2434. local expart = Instance.new("Part", char)
  2435. local expart2 = Instance.new("Part", char)
  2436. local partMesh = Instance.new("SpecialMesh", expart)
  2437. partMesh.MeshType = "Sphere"
  2438. local partMesh2 = Instance.new("SpecialMesh", expart2)
  2439. partMesh2.MeshType = "Sphere"
  2440. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=142070127", expart, vol, pitch)
  2441. partMesh.Scale = vt(rad, rad, rad)
  2442. expart.Size = vt(1, 1, 1)
  2443. expart.Transparency = 0
  2444. expart.Anchored = true
  2445. expart.Material = "Neon"
  2446. expart.BrickColor = bc("White")
  2447. expart.CFrame = par.CFrame
  2448. partMesh2.Scale = vt(rad, rad, rad)
  2449. expart2.Size = vt(1.15, 1.15, 1.15)
  2450. expart2.Transparency = 0.5
  2451. expart2.Anchored = true
  2452. expart2.Material = "Neon"
  2453. expart2.BrickColor = par.BrickColor
  2454. expart2.CFrame = par.CFrame
  2455. expart.CanCollide = false
  2456. expart2.CanCollide = false
  2457. MagniDamage(par, rad * 2.5, mindam, maxdam, 0, "Normal")
  2458. local value = 1 * rad / 6.5
  2459. for i = 0, 75 do
  2460. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  2461. expart.CFrame = expart.CFrame
  2462. partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
  2463. expart2.CFrame = expart.CFrame
  2464. value = value - 0.035 * rad / 5
  2465. if value < 0 then
  2466. value = 0
  2467. expart.Transparency = expart.Transparency + 0.05
  2468. expart2.Transparency = expart2.Transparency + 0.05
  2469. end
  2470. swait()
  2471. end
  2472. game:GetService("Debris"):AddItem(expart, 1)
  2473. game:GetService("Debris"):AddItem(expart2, 1)
  2474. end
  2475. function AreaDanger(rad, par, mindam, maxdam)
  2476. local expart = Instance.new("Part", char)
  2477. local partMesh = Instance.new("SpecialMesh", expart)
  2478. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
  2479. partMesh.MeshType = "Sphere"
  2480. partMesh.Scale = vt(rad, rad, rad)
  2481. expart.Size = vt(1, 1, 1)
  2482. expart.Transparency = 0.5
  2483. expart.Anchored = true
  2484. expart.Material = "Neon"
  2485. expart.CanCollide = false
  2486. expart.BrickColor = par.BrickColor
  2487. expart.CFrame = par.CFrame
  2488. local value = 1 * rad / 5
  2489. MagicBlock(origcolor, expart.CFrame, 0, 0, 0, rad / 2, rad / 2, rad / 2, 0.1)
  2490. for i = 0, 14 do
  2491. wait()
  2492. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  2493. expart.CFrame = expart.CFrame
  2494. value = value - 0.035 * rad
  2495. if value < 0 then
  2496. value = 0
  2497. end
  2498. end
  2499. wait(0.25)
  2500. CFuncs.Sound.Create("rbxassetid://588738544", expart, 1.5, 1)
  2501. wait(0.5)
  2502. CFuncs.Sound.Create("rbxassetid://588737825", expart, 1.5, 1)
  2503. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 0.75)
  2504. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  2505. MagicBlock(origcolor, expart.CFrame, rad * 2, rad * 2, rad * 2, 0.1, 0.1, 0.1, 0.025)
  2506. for i = 0, 14 do
  2507. wait()
  2508. partMesh.Scale = partMesh.Scale + vt(value, value, value)
  2509. expart.CFrame = expart.CFrame
  2510. value = value - 0.035 * rad / 2
  2511. end
  2512. expart.Transparency = 1
  2513. game:GetService("Debris"):AddItem(expart, 5)
  2514. end
  2515. function Swarmsplosions(negrad, rad, par, mindam, maxdam)
  2516. CFuncs.Sound.Create("rbxassetid://588737825", par, 2.5, 2)
  2517. CFuncs.Sound.Create("rbxassetid://231917784", par, 2.5, 1)
  2518. CFuncs.Sound.Create("rbxassetid://231917744", par, 2.5, 1)
  2519. CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
  2520. MagniDamageWithEffect(par, 25, 5, 10, 0, "Normal")
  2521. MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.025)
  2522. for i = 0, 24 do
  2523. 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))
  2524. end
  2525. for i = 0, 24 do
  2526. local expart = Instance.new("Part", char)
  2527. expart.Transparency = 1
  2528. expart.Anchored = true
  2529. expart.CanCollide = false
  2530. expart.CFrame = par.CFrame * CFrame.new(math.random(negrad, rad), math.random(negrad, rad), math.random(negrad, rad))
  2531. CFuncs.Sound.Create("rbxassetid://588737825", expart, 1, 2)
  2532. CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
  2533. MagniDamage(expart, rad / 2, mindam, maxdam, 0, "Normal")
  2534. MagicBlock(origcolor, expart.CFrame, rad, rad, rad, 0.1, 0.1, 0.1, 0.025)
  2535. for i = 0, 9 do
  2536. 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))
  2537. end
  2538. game:GetService("Debris"):AddItem(expart, 2)
  2539. wait(0.1)
  2540. end
  2541. end
  2542. function EXterPlosion(par)
  2543. CFuncs.Sound.Create("rbxassetid://919941001", par, 10, 1)
  2544. CFuncs.Sound.Create("rbxassetid://138213851", par, 5, 0.85)
  2545. CFuncs.Sound.Create("rbxassetid://157878578", par, 5, 0.2)
  2546. CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
  2547. MagniDamageWithEffect(par, 500, 80, 99, 0, "Normal")
  2548. MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.005)
  2549. MagicBlock(origcolor, par.CFrame, 0, 0, 0, 150, 150, 150, 0.1)
  2550. for i = 0, 24 do
  2551. 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))
  2552. end
  2553. for i = 0, 24 do
  2554. 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))
  2555. end
  2556. end
  2557. function ring(type, pos, scale, value)
  2558. local type = type
  2559. local rng = Instance.new("Part", char)
  2560. rng.Anchored = true
  2561. rng.BrickColor = origcolor
  2562. rng.CanCollide = false
  2563. rng.FormFactor = 3
  2564. rng.Name = "Ring"
  2565. rng.Size = Vector3.new(1, 1, 1)
  2566. rng.Transparency = 0
  2567. rng.TopSurface = 0
  2568. rng.BottomSurface = 0
  2569. rng.CFrame = pos
  2570. local rngm = Instance.new("SpecialMesh", rng)
  2571. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2572. rngm.Scale = scale
  2573. local scaler2 = 1
  2574. if type == "Add" then
  2575. scaler2 = 1 * value
  2576. elseif type == "Divide" then
  2577. scaler2 = 1 / value
  2578. end
  2579. coroutine.resume(coroutine.create(function()
  2580. for i = 0, 10, 0.1 do
  2581. swait()
  2582. if type == "Add" then
  2583. scaler2 = scaler2 - 0.01 * value
  2584. elseif type == "Divide" then
  2585. scaler2 = scaler2 - 0.01 / value
  2586. end
  2587. rng.Transparency = rng.Transparency + 0.01
  2588. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2589. end
  2590. rng:Destroy()
  2591. end))
  2592. end
  2593. function wave(type, pos, scale, value)
  2594. local type = type
  2595. local rng = Instance.new("Part", char)
  2596. rng.Anchored = true
  2597. rng.BrickColor = origcolor
  2598. rng.CanCollide = false
  2599. rng.FormFactor = 3
  2600. rng.Name = "Ring"
  2601. rng.Size = Vector3.new(1, 1, 1)
  2602. rng.Transparency = 0
  2603. rng.TopSurface = 0
  2604. rng.BottomSurface = 0
  2605. rng.CFrame = pos
  2606. local rngm = Instance.new("SpecialMesh", rng)
  2607. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2608. rngm.Scale = scale
  2609. local scaler2 = 1
  2610. if type == "Add" then
  2611. scaler2 = 1 * value
  2612. elseif type == "Divide" then
  2613. scaler2 = 1 / value
  2614. end
  2615. coroutine.resume(coroutine.create(function()
  2616. for i = 0, 10, 0.1 do
  2617. swait()
  2618. if type == "Add" then
  2619. scaler2 = scaler2 - 0.01 * value
  2620. elseif type == "Divide" then
  2621. scaler2 = scaler2 - 0.01 / value
  2622. end
  2623. rng.Transparency = rng.Transparency + 0.01
  2624. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2625. end
  2626. rng:Destroy()
  2627. end))
  2628. end
  2629. function wind(type, pos, scale, value, speed)
  2630. local type = type
  2631. local rng = Instance.new("Part", char)
  2632. rng.Anchored = true
  2633. rng.BrickColor = origcolor
  2634. rng.CanCollide = false
  2635. rng.FormFactor = 3
  2636. rng.Name = "Ring"
  2637. rng.Size = Vector3.new(1, 1, 1)
  2638. rng.Transparency = 0
  2639. rng.TopSurface = 0
  2640. rng.BottomSurface = 0
  2641. rng.CFrame = pos
  2642. local rngm = Instance.new("SpecialMesh", rng)
  2643. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2644. rngm.Scale = scale
  2645. local scaler2 = 1
  2646. if type == "Add" then
  2647. scaler2 = 1 * value
  2648. elseif type == "Divide" then
  2649. scaler2 = 1 / value
  2650. end
  2651. coroutine.resume(coroutine.create(function()
  2652. for i = 0, 10, 0.1 do
  2653. swait()
  2654. if type == "Add" then
  2655. scaler2 = scaler2 - 0.01 * value
  2656. elseif type == "Divide" then
  2657. scaler2 = scaler2 - 0.01 / value
  2658. end
  2659. rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
  2660. rng.Transparency = rng.Transparency + 0.01
  2661. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2662. end
  2663. rng:Destroy()
  2664. end))
  2665. end
  2666. function groundwind(type, pos, scale, value, speed)
  2667. local type = type
  2668. local rng = Instance.new("Part", char)
  2669. rng.Anchored = true
  2670. rng.BrickColor = origcolor
  2671. rng.CanCollide = false
  2672. rng.FormFactor = 3
  2673. rng.Name = "Ring"
  2674. rng.Size = Vector3.new(1, 1, 1)
  2675. rng.Transparency = 0
  2676. rng.TopSurface = 0
  2677. rng.BottomSurface = 0
  2678. rng.CFrame = pos
  2679. local rngm = Instance.new("SpecialMesh", rng)
  2680. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2681. rngm.Scale = scale
  2682. local scaler2 = 1
  2683. if type == "Add" then
  2684. scaler2 = 1 * value
  2685. elseif type == "Divide" then
  2686. scaler2 = 1 / value
  2687. end
  2688. coroutine.resume(coroutine.create(function()
  2689. for i = 0, 10, 0.1 do
  2690. swait()
  2691. if type == "Add" then
  2692. scaler2 = scaler2 - 0.01 * value
  2693. elseif type == "Divide" then
  2694. scaler2 = scaler2 - 0.01 / value
  2695. end
  2696. rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
  2697. rng.Transparency = rng.Transparency + 0.01
  2698. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2 / 5, scaler2)
  2699. end
  2700. rng:Destroy()
  2701. end))
  2702. end
  2703. function CameraManager()
  2704. if TwoD and not CamInterrupt then
  2705. if Humanoid.Health > 0 then
  2706. Camera.CameraSubject = Humanoid
  2707. Camera.CameraType = "Scriptable"
  2708. Humanoid.AutoRotate = false
  2709. if Booleans.GyroUse then
  2710. Directer.MaxTorque = Vec3(0, huge, 0)
  2711. else
  2712. Directer.MaxTorque = Vec3(0, 0, 0)
  2713. end
  2714. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2715. if Booleans.CamFollow then
  2716. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2717. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2718. else
  2719. CPart.Position = RootPart.Position
  2720. end
  2721. else
  2722. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2723. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2724. end
  2725. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2726. else
  2727. Camera.CameraSubject = Humanoid
  2728. Camera.CameraType = "Custom"
  2729. end
  2730. end
  2731. end
  2732. function sphere(bonuspeed, type, pos, scale, value, color)
  2733. local type = type
  2734. local rng = Instance.new("Part", char)
  2735. rng.Anchored = true
  2736. rng.BrickColor = color
  2737. rng.CanCollide = false
  2738. rng.FormFactor = 3
  2739. rng.Name = "Ring"
  2740. rng.Material = "Neon"
  2741. rng.Size = Vector3.new(1, 1, 1)
  2742. rng.Transparency = 0
  2743. rng.TopSurface = 0
  2744. rng.BottomSurface = 0
  2745. rng.CFrame = pos
  2746. local rngm = Instance.new("SpecialMesh", rng)
  2747. rngm.MeshType = "Sphere"
  2748. rngm.Scale = scale
  2749. if rainbowmode == true then
  2750. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2751. end
  2752. local scaler2 = 1
  2753. if type == "Add" then
  2754. scaler2 = 1 * value
  2755. elseif type == "Divide" then
  2756. scaler2 = 1 / value
  2757. end
  2758. end
  2759. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2760. local type = type
  2761. local rng = Instance.new("Part", char)
  2762. rng.Anchored = true
  2763. rng.CanCollide = false
  2764. rng.FormFactor = 3
  2765. rng.Name = "Ring"
  2766. rng.Material = "Neon"
  2767. rng.Size = Vector3.new(1, 1, 1)
  2768. rng.Transparency = 0
  2769. rng.TopSurface = 0
  2770. rng.BottomSurface = 0
  2771. rng.CFrame = pos
  2772. local rngm = Instance.new("SpecialMesh", rng)
  2773. rngm.MeshType = "Sphere"
  2774. rngm.Scale = scale
  2775. local scaler2 = 1
  2776. local scaler2b = 1
  2777. local scaler2c = 1
  2778. if type == "Add" then
  2779. scaler2 = 1*value
  2780. scaler2b = 1*value2
  2781. scaler2c = 1*value3
  2782. elseif type == "Divide" then
  2783. scaler2 = 1/value
  2784. scaler2b = 1/value2
  2785. scaler2c = 1/value3
  2786. end
  2787. coroutine.resume(coroutine.create(function()
  2788. for i = 0, 10 / bonuspeed, 0.1 do
  2789. swait()
  2790. if rainbowmode == true then
  2791. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2792. end
  2793. if type == "Add" then
  2794. scaler2 = scaler2 - 0.01 * value / bonuspeed
  2795. elseif type == "Divide" then
  2796. scaler2 = scaler2 - 0.01 / value * bonuspeed
  2797. end
  2798. if chaosmode == true then
  2799. rng.BrickColor = BrickColor.random()
  2800. end
  2801. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  2802. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  2803. end
  2804. rng:Destroy()
  2805. end))
  2806. end
  2807. function sphereMK(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
  2808. local type = type
  2809. local rng = Instance.new("Part", char)
  2810. rng.Anchored = true
  2811. rng.BrickColor = color
  2812. rng.CanCollide = false
  2813. rng.FormFactor = 3
  2814. rng.Name = "Ring"
  2815. rng.Material = "Neon"
  2816. rng.Size = Vector3.new(1, 1, 1)
  2817. rng.Transparency = 0
  2818. rng.TopSurface = 0
  2819. rng.BottomSurface = 0
  2820. rng.CFrame = pos
  2821. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  2822. local rngm = Instance.new("SpecialMesh", rng)
  2823. rngm.MeshType = "Sphere"
  2824. rngm.Scale = vt(x1, y1, z1)
  2825. if rainbowmode == true then
  2826. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2827. end
  2828. local scaler2 = 1
  2829. local speeder = FastSpeed
  2830. if type == "Add" then
  2831. scaler2 = 1 * value
  2832. elseif type == "Divide" then
  2833. scaler2 = 1 / value
  2834. end
  2835. coroutine.resume(coroutine.create(function()
  2836. for i = 0, 10 / bonuspeed, 0.1 do
  2837. swait()
  2838. if rainbowmode == true then
  2839. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2840. end
  2841. if type == "Add" then
  2842. scaler2 = scaler2 - 0.01 * value / bonuspeed
  2843. elseif type == "Divide" then
  2844. scaler2 = scaler2 - 0.01 / value * bonuspeed
  2845. end
  2846. if chaosmode == true then
  2847. rng.BrickColor = BrickColor.random()
  2848. end
  2849. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  2850. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  2851. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  2852. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  2853. end
  2854. rng:Destroy()
  2855. end))
  2856. end
  2857. function sphereMKCharge(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
  2858. local type = type
  2859. local rng = Instance.new("Part", char)
  2860. rng.Anchored = true
  2861. rng.BrickColor = color
  2862. rng.CanCollide = false
  2863. rng.FormFactor = 3
  2864. rng.Name = "Ring"
  2865. rng.Material = "Neon"
  2866. rng.Size = Vector3.new(1, 1, 1)
  2867. rng.Transparency = 1
  2868. rng.TopSurface = 0
  2869. rng.BottomSurface = 0
  2870. rng.CFrame = pos
  2871. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  2872. local rngm = Instance.new("SpecialMesh", rng)
  2873. rngm.MeshType = "Sphere"
  2874. rngm.Scale = vt(x1, y1, z1)
  2875. if rainbowmode == true then
  2876. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2877. end
  2878. local scaler2 = 1
  2879. local speeder = FastSpeed
  2880. if type == "Add" then
  2881. scaler2 = 1 * value
  2882. elseif type == "Divide" then
  2883. scaler2 = 1 / value
  2884. end
  2885. coroutine.resume(coroutine.create(function()
  2886. for i = 0, 10 / bonuspeed, 0.1 do
  2887. swait()
  2888. if rainbowmode == true then
  2889. rng.Color = Color3.new(r / 255, g / 255, b / 255)
  2890. end
  2891. if type == "Add" then
  2892. scaler2 = scaler2 - 0.01 * value / bonuspeed
  2893. elseif type == "Divide" then
  2894. scaler2 = scaler2 - 0.01 / value * bonuspeed
  2895. end
  2896. if chaosmode == true then
  2897. rng.BrickColor = BrickColor.random()
  2898. end
  2899. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  2900. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  2901. rng.Transparency = rng.Transparency - 0.01 * bonuspeed
  2902. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  2903. end
  2904. rng:Destroy()
  2905. end))
  2906. end
  2907. function dmg(dude)
  2908. if dude.Name ~= Character then
  2909. local bgf = Instance.new("BodyGyro", dude.Head)
  2910. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
  2911. local val = Instance.new("BoolValue", dude)
  2912. val.Name = "IsHit"
  2913. local ds = coroutine.wrap(function()
  2914. dude:WaitForChild("Head"):BreakJoints()
  2915. wait(0.5)
  2916. targetted = nil
  2917. CFuncs.Sound.Create("rbxassetid://62339698", char, 0.5, 0.3)
  2918. coroutine.resume(coroutine.create(function()
  2919. for i, v in pairs(dude:GetChildren()) do
  2920. if v:IsA("Accessory") then
  2921. v:Destroy()
  2922. end
  2923. if v:IsA("Humanoid") then
  2924. v:Destroy()
  2925. end
  2926. if v:IsA("CharacterMesh") then
  2927. v:Destroy()
  2928. end
  2929. if v:IsA("Model") then
  2930. v:Destroy()
  2931. end
  2932. if v:IsA("Part") or v:IsA("MeshPart") then
  2933. for x, o in pairs(v:GetChildren()) do
  2934. if o:IsA("Decal") then
  2935. o:Destroy()
  2936. end
  2937. end
  2938. coroutine.resume(coroutine.create(function()
  2939. v.Material = "Neon"
  2940. v.CanCollide = false
  2941. local bld = Instance.new("ParticleEmitter", v)
  2942. bld.LightEmission = 1
  2943. bld.Texture = "rbxassetid://0"
  2944. bld.Color = ColorSequence.new(Color3.new(1, 1, 1))
  2945. bld.Rate = 50
  2946. bld.Lifetime = NumberRange.new(1)
  2947. bld.Size = NumberSequence.new({
  2948. NumberSequenceKeypoint.new(0, 0.75, 0),
  2949. NumberSequenceKeypoint.new(1, 0, 0)
  2950. })
  2951. bld.Transparency = NumberSequence.new({
  2952. NumberSequenceKeypoint.new(0, 0, 0),
  2953. NumberSequenceKeypoint.new(1, 1, 0)
  2954. })
  2955. bld.Speed = NumberRange.new(0, 0)
  2956. bld.VelocitySpread = 50000
  2957. bld.Rotation = NumberRange.new(-500, 500)
  2958. bld.RotSpeed = NumberRange.new(-500, 500)
  2959. local sbs = Instance.new("BodyPosition", v)
  2960. sbs.P = 3000
  2961. sbs.D = 1000
  2962. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2963. sbs.position = v.Position + Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5))
  2964. v.Color = Color3.new(1, 1, 1)
  2965. coroutine.resume(coroutine.create(function()
  2966. for i = 0, 49 do
  2967. swait(1)
  2968. v.Transparency = v.Transparency + 0.02
  2969. end
  2970. CFuncs.Sound.Create("rbxassetid://1192402877", v, 0.25, 1)
  2971. bld.Speed = NumberRange.new(1, 5)
  2972. bld.Acceleration = vt(0, 10, 0)
  2973. wait(0.5)
  2974. bld.Enabled = false
  2975. wait(3)
  2976. v:Destroy()
  2977. dude:Destroy()
  2978. end))
  2979. end))
  2980. end
  2981. end
  2982. end))
  2983. end)
  2984. ds()
  2985. end
  2986. end
  2987. function FindNearestHead(Position, Distance, SinglePlayer)
  2988. if SinglePlayer then
  2989. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  2990. end
  2991. local List = {}
  2992. for i, v in pairs(workspace:GetChildren()) do
  2993. if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then
  2994. table.insert(List, v)
  2995. end
  2996. end
  2997. return List
  2998. end
  2999. function FaceMouse()
  3000. Cam = workspace.CurrentCamera
  3001. return {
  3002. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3003. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3004. }
  3005. end
  3006. function FaceMouse2()
  3007. Cam = workspace.CurrentCamera
  3008. return {
  3009. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3010. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3011. }
  3012. end
  3013. local ModeOfGlitch = 1
  3014. local storehumanoidWS = 16
  3015. function ExtinctiveHeartbreak()
  3016. local targetted
  3017. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3018. targetted = mouse.Target.Parent
  3019. end
  3020. if targetted ~= nil then
  3021. attack = true
  3022. CFuncs.Sound.Create("rbxassetid://377012339", root, 2.5, 7)
  3023. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  3024. local originalpos = root.CFrame
  3025. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0, -2, 2)
  3026. hum.WalkSpeed = 0
  3027. targetted.Head.Anchored = true
  3028. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  3029. for i = 0, 2, 0.1 do
  3030. swait()
  3031. 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)
  3032. 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)
  3033. 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)
  3034. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8)
  3035. 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)
  3036. 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)
  3037. end
  3038. coroutine.resume(coroutine.create(function()
  3039. bld = Instance.new("ParticleEmitter", targetted:WaitForChild("Torso"))
  3040. bld.LightEmission = 0.1
  3041. bld.Texture = "rbxassetid://0"
  3042. bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
  3043. bld.Rate = 500
  3044. bld.Lifetime = NumberRange.new(1)
  3045. bld.Size = NumberSequence.new({
  3046. NumberSequenceKeypoint.new(0, 2, 0),
  3047. NumberSequenceKeypoint.new(1, 0, 0)
  3048. })
  3049. bld.Acceleration = vt(0, -25, 0)
  3050. bld.Transparency = NumberSequence.new({
  3051. NumberSequenceKeypoint.new(0, 0, 0),
  3052. NumberSequenceKeypoint.new(1, 0, 0)
  3053. })
  3054. bld.Speed = NumberRange.new(10, 50)
  3055. bld.EmissionDirection = "Front"
  3056. bld.VelocitySpread = 25
  3057. bld.Rotation = NumberRange.new(-500, 500)
  3058. bld.RotSpeed = NumberRange.new(-500, 500)
  3059. end))
  3060. coroutine.resume(coroutine.create(function()
  3061. bld = Instance.new("ParticleEmitter", targetted:WaitForChild("UpperTorso"))
  3062. bld.LightEmission = 0.1
  3063. bld.Texture = "rbxassetid://0"
  3064. bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
  3065. bld.Rate = 500
  3066. bld.Lifetime = NumberRange.new(1)
  3067. bld.Size = NumberSequence.new({
  3068. NumberSequenceKeypoint.new(0, 2, 0),
  3069. NumberSequenceKeypoint.new(1, 0, 0)
  3070. })
  3071. bld.Acceleration = vt(0, -25, 0)
  3072. bld.Transparency = NumberSequence.new({
  3073. NumberSequenceKeypoint.new(0, 0, 0),
  3074. NumberSequenceKeypoint.new(1, 0, 0)
  3075. })
  3076. bld.Speed = NumberRange.new(10, 50)
  3077. bld.EmissionDirection = "Front"
  3078. bld.VelocitySpread = 25
  3079. bld.Rotation = NumberRange.new(-500, 500)
  3080. bld.RotSpeed = NumberRange.new(-500, 500)
  3081. end))
  3082. CameraEnshaking(5, 5)
  3083. game:GetService("Debris"):AddItem(bld, 3)
  3084. dmg(targetted)
  3085. CFuncs.Sound.Create("rbxassetid://160715357", targetted.Head, 10, 1)
  3086. for i = 0, 1, 0.1 do
  3087. swait()
  3088. 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)
  3089. 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)
  3090. 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)
  3091. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(80)), 0.8)
  3092. 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)
  3093. 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)
  3094. end
  3095. CFuncs.Sound.Create("rbxassetid://160715357", root, 10, 1)
  3096. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  3097. root.CFrame = originalpos
  3098. sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
  3099. bld.Enabled = false
  3100. attack = false
  3101. hum.WalkSpeed = storehumanoidWS
  3102. end
  3103. end
  3104. function PureBomb()
  3105. attack = true
  3106. local orb = Instance.new("Part", char)
  3107. orb.Anchored = true
  3108. orb.BrickColor = BrickColor.new("Cool yellow")
  3109. orb.CanCollide = false
  3110. orb.FormFactor = 3
  3111. orb.Name = "Ring"
  3112. orb.Material = "Neon"
  3113. orb.Size = Vector3.new(1, 1, 1)
  3114. orb.Transparency = 0
  3115. orb.TopSurface = 0
  3116. orb.BottomSurface = 0
  3117. local orbm = Instance.new("SpecialMesh", orb)
  3118. orbm.MeshType = "Sphere"
  3119. orbm.Name = "SizeMesh"
  3120. orbm.Scale = vt(0, 0, 0)
  3121. local scaled = 0.1
  3122. local posid = 0
  3123. CFuncs.Sound.Create("rbxassetid://136007472", orb, 1, 1)
  3124. for i = 0, 5, 0.1 do
  3125. swait()
  3126. scaled = scaled - 0.001
  3127. posid = posid - scaled
  3128. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  3129. orbm.Scale = orbm.Scale + vt(scaled, scaled, scaled)
  3130. 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("Bright blue"), 10)
  3131. 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)
  3132. 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)
  3133. 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)
  3134. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  3135. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(180), math.rad(20), math.rad(0)), 0.1)
  3136. 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)
  3137. end
  3138. for i = 0, 2, 0.1 do
  3139. swait()
  3140. orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
  3141. 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)
  3142. 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)
  3143. 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)
  3144. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(20)), 0.4)
  3145. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(220), math.rad(20), math.rad(0)), 0.4)
  3146. 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)
  3147. end
  3148. coroutine.resume(coroutine.create(function()
  3149. orb.Anchored = false
  3150. CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
  3151. local a = Instance.new("Part", workspace)
  3152. a.Name = "Direction"
  3153. a.Anchored = true
  3154. a.BrickColor = bc("Bright red")
  3155. a.Material = "Neon"
  3156. a.Transparency = 1
  3157. a.CanCollide = false
  3158. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500)
  3159. local ignore = orb
  3160. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3161. a.BottomSurface = 10
  3162. a.TopSurface = 10
  3163. local distance = (orb.CFrame.p - position).magnitude
  3164. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3165. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3166. orb.CFrame = a.CFrame
  3167. a:Destroy()
  3168. local bv = Instance.new("BodyVelocity")
  3169. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  3170. bv.velocity = orb.CFrame.lookVector * 125
  3171. bv.Parent = orb
  3172. local hitted = false
  3173. game:GetService("Debris"):AddItem(orb, 15)
  3174. wait()
  3175. local hit = orb.Touched:connect(function(hit)
  3176. if hitted == false then
  3177. hitted = true
  3178. CameraEnshaking(10, 2.5)
  3179. CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
  3180. MagniDamage(orb, 65, 65, 90, 0, "Normal")
  3181. sphere(1, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickColor.new("Toothpaste"))
  3182. sphere(2, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickColor.new("Toothpaste"))
  3183. orb.Anchored = true
  3184. orb.Transparency = 1
  3185. wait(8)
  3186. orb:Destroy()
  3187. end
  3188. end)
  3189. end))
  3190. for i = 0, 1, 0.1 do
  3191. swait()
  3192. 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)
  3193. 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)
  3194. 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)
  3195. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.4)
  3196. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(60), math.rad(20), math.rad(50)), 0.4)
  3197. 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)
  3198. end
  3199. attack = false
  3200. end
  3201. function ChaosGroundStrike()
  3202. attack = true
  3203. for i = 0, 2, 0.1 do
  3204. swait()
  3205. 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)
  3206. 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)
  3207. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3208. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3209. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  3210. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  3211. end
  3212. CFuncs.Sound.Create("rbxassetid://438666141", root, 7.5, 1)
  3213. CFuncs.Sound.Create("rbxassetid://1208650519", root, 7.5, 1)
  3214. CameraEnshaking(4, 12)
  3215. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3216. if v:FindFirstChild("Head") then
  3217. dmg(v)
  3218. end
  3219. end
  3220. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1, BrickColor.random())
  3221. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2, BrickColor.random())
  3222. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100, 0.1, 100), 0.01, BrickColor.random())
  3223. for i = 0, 2, 0.1 do
  3224. swait()
  3225. 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)
  3226. 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)
  3227. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3228. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3229. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  3230. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  3231. end
  3232. attack = false
  3233. end
  3234. function ChaosBegone()
  3235. attack = true
  3236. chatfunc("heheheh...", BrickColor.random().Color)
  3237. for i = 0, 10, 0.1 do
  3238. swait()
  3239. 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)
  3240. 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)
  3241. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3242. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3243. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  3244. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  3245. end
  3246. chatfunc("HAHAHAHAHA!!", BrickColor.random().Color)
  3247. CFuncs.Sound.Create("rbxassetid://131961140", char, 7.5, 1)
  3248. CFuncs.Sound.Create("rbxassetid://131961140", char, 7.5, 1)
  3249. CameraEnshaking(5, 25)
  3250. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3251. if v:FindFirstChild("Head") then
  3252. dmg(v)
  3253. end
  3254. end
  3255. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1000, BrickColor.random())
  3256. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2000, BrickColor.random())
  3257. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100000, 0.1, 100000), 0.01, BrickColor.random())
  3258. for i = 0, 3, 0.1 do
  3259. swait()
  3260. 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)
  3261. 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)
  3262. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3263. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  3264. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  3265. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  3266. end
  3267. attack = false
  3268. end
  3269. function orb_spawn_norm(positted, timer, color, MagniBoost, min, max, volEx, ShakePower, volSummon)
  3270. local orb = Instance.new("Part", char)
  3271. orb.Anchored = true
  3272. orb.BrickColor = color
  3273. orb.CanCollide = false
  3274. orb.FormFactor = 3
  3275. orb.Name = "Ring"
  3276. orb.Material = "Neon"
  3277. orb.Size = Vector3.new(1, 1, 1)
  3278. orb.Transparency = 0
  3279. orb.TopSurface = 0
  3280. orb.BottomSurface = 0
  3281. local orbm = Instance.new("SpecialMesh", orb)
  3282. orbm.MeshType = "Sphere"
  3283. orb.CFrame = positted
  3284. orbm.Name = "SizeMesh"
  3285. orbm.Scale = vt(1, 1, 1)
  3286. CFuncs.Sound.Create("rbxassetid://183763506", orb, volSummon, 1)
  3287. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.05, orb.BrickColor)
  3288. coroutine.resume(coroutine.create(function()
  3289. wait(timer)
  3290. CameraEnshaking(3, ShakePower)
  3291. orb.Transparency = 1
  3292. MagniDamage(orb, 3.5 * MagniBoost, min, max, 0, "Normal")
  3293. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.1 * MagniBoost, orb.BrickColor)
  3294. CFuncs.Sound.Create("rbxassetid://192410089", orb, volEx, 0.7)
  3295. wait(3)
  3296. orb:Destroy()
  3297. end))
  3298. end
  3299. function orb_spawn(positted, timer)
  3300. local randomcol = math.random(1, 2)
  3301. local orb = Instance.new("Part", char)
  3302. orb.Anchored = true
  3303. if randomcol == 1 then
  3304. orb.BrickColor = BrickColor.new("White")
  3305. elseif randomcol == 2 then
  3306. orb.BrickColor = BrickColor.new("Really black")
  3307. end
  3308. orb.CanCollide = false
  3309. orb.FormFactor = 3
  3310. orb.Name = "Ring"
  3311. orb.Material = "Neon"
  3312. orb.Size = Vector3.new(1, 1, 1)
  3313. orb.Transparency = 0
  3314. orb.TopSurface = 0
  3315. orb.BottomSurface = 0
  3316. local orbm = Instance.new("SpecialMesh", orb)
  3317. orbm.MeshType = "Sphere"
  3318. orb.CFrame = positted
  3319. orbm.Name = "SizeMesh"
  3320. orbm.Scale = vt(1, 1, 1)
  3321. CFuncs.Sound.Create("rbxassetid://183763506", orb, 1.5, 1)
  3322. sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.025, orb.BrickColor)
  3323. coroutine.resume(coroutine.create(function()
  3324. wait(timer)
  3325. CameraEnshaking(3, 2)
  3326. orb.Transparency = 1
  3327. MagniDamage(orb, 17.5, 10, 50, 0, "Normal")
  3328. sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.5, orb.BrickColor)
  3329. CFuncs.Sound.Create("rbxassetid://192410089", orb, 2, 0.7)
  3330. wait(3)
  3331. orb:Destroy()
  3332. end))
  3333. end
  3334. function scattercorrupt()
  3335. attack = true
  3336. local rot = 0
  3337. local randomrotations = math.random(1, 2)
  3338. local lookv = 2.5
  3339. local power = 5
  3340. sphere(1, "Add", root.CFrame, vt(1, 100000, 1), 0.5, BrickColor.new("Royal purple"))
  3341. sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, BrickColor.new("Royal purple"))
  3342. CFuncs.Sound.Create("rbxassetid://180204650", char, 2.5, 0.6)
  3343. CFuncs.Sound.Create("rbxassetid://233856079", char, 1, 0.5)
  3344. CFuncs.Sound.Create("rbxassetid://1208650519", char, 2.5, 1)
  3345. CFuncs.Sound.Create("rbxassetid://239000203", char, 0.5, 0.75)
  3346. CFuncs.Sound.Create("rbxassetid://579687077", char, 0.5, 0.5)
  3347. local hite = Instance.new("Part", char)
  3348. hite.Anchored = true
  3349. hite.CanCollide = false
  3350. hite.FormFactor = 3
  3351. hite.Name = "Ring"
  3352. hite.Material = "Neon"
  3353. hite.Size = Vector3.new(1, 1, 1)
  3354. hite.Transparency = 1
  3355. hite.TopSurface = 0
  3356. hite.BottomSurface = 0
  3357. hite.CFrame = root.CFrame * CFrame.new(0, -2.5, 0)
  3358. local rem = Instance.new("Part", char)
  3359. rem.Anchored = true
  3360. rem.CanCollide = false
  3361. rem.FormFactor = 3
  3362. rem.Name = "Ring"
  3363. rem.Material = "Neon"
  3364. rem.Size = Vector3.new(1, 1, 1)
  3365. rem.Transparency = 1
  3366. rem.TopSurface = 0
  3367. rem.BottomSurface = 0
  3368. rem.CFrame = hite.CFrame
  3369. local rem2 = rem:Clone()
  3370. rem2.Parent = char
  3371. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3372. local rem3 = rem:Clone()
  3373. rem3.Parent = char
  3374. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  3375. local rem4 = rem:Clone()
  3376. rem4.Parent = char
  3377. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  3378. hite:Destroy()
  3379. coroutine.resume(coroutine.create(function()
  3380. for i = 0, 24 do
  3381. swait(1)
  3382. if randomrotations == 1 then
  3383. rot = rot + 1
  3384. elseif randomrotations == 2 then
  3385. rot = rot - 1
  3386. end
  3387. power = power + 0.5
  3388. lookv = lookv + 7.5
  3389. rem.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(rot), 0)
  3390. rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3391. rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
  3392. rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
  3393. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3394. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3395. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3396. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
  3397. end
  3398. end))
  3399. attack = false
  3400. end
  3401. function yinyangi()
  3402. attack = true
  3403. for i = 0, 2, 0.1 do
  3404. swait()
  3405. 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)
  3406. 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)
  3407. 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)
  3408. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  3409. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.2)
  3410. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
  3411. end
  3412. local bv = Instance.new("BodyVelocity")
  3413. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  3414. bv.velocity = root.CFrame.lookVector * 175
  3415. bv.Parent = root
  3416. for Rotations = 0, 9 do
  3417. for i = 0, 1, 0.5 do
  3418. swait()
  3419. bv.velocity = root.CFrame.lookVector * 175
  3420. 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)
  3421. 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)
  3422. 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)
  3423. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3424. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3425. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3426. end
  3427. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3428. for i = 0, 1, 0.5 do
  3429. swait()
  3430. bv.velocity = root.CFrame.lookVector * 175
  3431. 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)
  3432. 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)
  3433. 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)
  3434. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3435. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3436. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3437. end
  3438. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3439. for i = 0, 1, 0.5 do
  3440. swait()
  3441. bv.velocity = root.CFrame.lookVector * 175
  3442. 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)
  3443. 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)
  3444. 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)
  3445. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3446. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3447. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3448. end
  3449. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3450. for i = 0, 1, 0.5 do
  3451. swait()
  3452. bv.velocity = root.CFrame.lookVector * 175
  3453. 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)
  3454. 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)
  3455. 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)
  3456. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
  3457. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
  3458. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
  3459. end
  3460. orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
  3461. end
  3462. bv:Destroy()
  3463. attack = false
  3464. end
  3465. function Wip()
  3466. attack = true
  3467. local rngb = Instance.new("Part", char)
  3468. rngb.Anchored = true
  3469. rngb.BrickColor = origcolor
  3470. rngb.CanCollide = false
  3471. rngb.FormFactor = 3
  3472. rngb.Name = "Ring"
  3473. rngb.Material = "Neon"
  3474. rngb.Size = Vector3.new(1, 0.05, 1)
  3475. rngb.Transparency = 1
  3476. rngb.TopSurface = 0
  3477. rngb.BottomSurface = 0
  3478. local rngmb = Instance.new("SpecialMesh", rngb)
  3479. rngmb.MeshType = "Brick"
  3480. rngmb.Name = "SizeMesh"
  3481. rngmb.Scale = vt(0, 1, 0)
  3482. local orb = rngb:Clone()
  3483. orb.Parent = char
  3484. orb.Transparency = 0
  3485. orb.BrickColor = BrickColor.new("White")
  3486. orb.Size = vt(1, 1, 1)
  3487. local orbmish = orb.SizeMesh
  3488. orbmish.Scale = vt(0, 0, 0)
  3489. orbmish.MeshType = "Sphere"
  3490. local orbe = rngb:Clone()
  3491. orbe.Parent = char
  3492. orbe.Transparency = 0.5
  3493. orbe.BrickColor = BrickColor.new("New Yeller")
  3494. orbe.Size = vt(1, 1, 1)
  3495. local orbmish2 = orbe.SizeMesh
  3496. orbmish2.Scale = vt(0, 0, 0)
  3497. orbmish2.MeshType = "Sphere"
  3498. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  3499. rngb:Destroy()
  3500. for i = 0, 5, 0.1 do
  3501. swait()
  3502. if rainbowmode == true then
  3503. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  3504. end
  3505. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3506. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3507. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  3508. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  3509. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  3510. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  3511. 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)
  3512. 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)
  3513. RootPart.CFrame = FaceMouse()[1]
  3514. end
  3515. orbe.Transparency = 1
  3516. orb.Transparency = 1
  3517. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
  3518. CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
  3519. local a = Instance.new("Part", Character)
  3520. a.Name = "Direction"
  3521. a.Anchored = true
  3522. a.BrickColor = bc("White")
  3523. a.Material = "Neon"
  3524. a.Transparency = 0
  3525. a.Shape = "Cylinder"
  3526. a.CanCollide = false
  3527. local a2 = Instance.new("Part", Character)
  3528. a2.Name = "Direction"
  3529. a2.Anchored = true
  3530. a2.BrickColor = bc("New Yeller")
  3531. a2.Color = Color3.new(r / 255, g / 255, b / 255)
  3532. a2.Material = "Neon"
  3533. a2.Transparency = 0.5
  3534. a2.Shape = "Cylinder"
  3535. a2.CanCollide = false
  3536. local ba = Instance.new("Part", Character)
  3537. ba.Name = "HitDirect"
  3538. ba.Anchored = true
  3539. ba.BrickColor = bc("Really black")
  3540. ba.Material = "Neon"
  3541. ba.Transparency = 1
  3542. ba.CanCollide = false
  3543. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3544. local ignore = Character
  3545. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3546. a.BottomSurface = 10
  3547. a.TopSurface = 10
  3548. a2.BottomSurface = 10
  3549. a2.TopSurface = 10
  3550. local distance = (orb.CFrame.p - position).magnitude
  3551. a.Size = Vector3.new(distance, 1, 1)
  3552. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3553. a2.Size = Vector3.new(distance, 1, 1)
  3554. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3555. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3556. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3557. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3558. game:GetService("Debris"):AddItem(a, 20)
  3559. game:GetService("Debris"):AddItem(a2, 20)
  3560. game:GetService("Debris"):AddItem(ba, 20)
  3561. local msh = Instance.new("SpecialMesh", a)
  3562. msh.MeshType = "Cylinder"
  3563. msh.Scale = vt(1, 25, 25)
  3564. local msh2 = Instance.new("SpecialMesh", a2)
  3565. msh2.MeshType = "Cylinder"
  3566. msh2.Scale = vt(1, 30, 30)
  3567. for i = 0, 10, 0.1 do
  3568. swait()
  3569. CameraEnshaking(1, 5)
  3570. a2.Color = Color3.new(r / 255, g / 255, b / 255)
  3571. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3572. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3573. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3574. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3575. distance = (orb.CFrame.p - position).magnitude
  3576. if typrot == 1 then
  3577. rotation = rotation + 2.5
  3578. elseif typrot == 2 then
  3579. rotation = rotation - 2.5
  3580. end
  3581. RootPart.CFrame = FaceMouse()[1]
  3582. a.Size = Vector3.new(distance, 1, 1)
  3583. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3584. a2.Size = Vector3.new(distance, 1, 1)
  3585. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3586. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3587. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3588. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3589. msh.Scale = msh.Scale - vt(0, 0.25, 0.25)
  3590. msh2.Scale = msh2.Scale - vt(0, 0.3, 0.3)
  3591. MagniDamage(ba, 30, 500, 60000, 0, "Normal")
  3592. end
  3593. a:Destroy()
  3594. a2:Destroy()
  3595. ba:Destroy()
  3596. orb:Destroy()
  3597. orbe:Destroy()
  3598. attack = false
  3599. end
  3600. function UniversalSpark()
  3601. attack = true
  3602. local rngb = Instance.new("Part", char)
  3603. rngb.Anchored = true
  3604. rngb.BrickColor = origcolor
  3605. rngb.CanCollide = false
  3606. rngb.FormFactor = 3
  3607. rngb.Name = "Ring"
  3608. rngb.Material = "Neon"
  3609. rngb.Size = Vector3.new(1, 0.05, 1)
  3610. rngb.Transparency = 1
  3611. rngb.TopSurface = 0
  3612. rngb.BottomSurface = 0
  3613. local rngmb = Instance.new("SpecialMesh", rngb)
  3614. rngmb.MeshType = "Brick"
  3615. rngmb.Name = "SizeMesh"
  3616. rngmb.Scale = vt(0, 1, 0)
  3617. local orb = rngb:Clone()
  3618. orb.Parent = char
  3619. orb.Transparency = 0
  3620. orb.BrickColor = BrickColor.new("White")
  3621. orb.Size = vt(1, 1, 1)
  3622. local orbmish = orb.SizeMesh
  3623. orbmish.Scale = vt(0, 0, 0)
  3624. orbmish.MeshType = "Sphere"
  3625. local orbe = rngb:Clone()
  3626. orbe.Parent = char
  3627. orbe.Transparency = 0.5
  3628. orbe.BrickColor = BrickColor.new("New Yeller")
  3629. orbe.Size = vt(1, 1, 1)
  3630. local orbmish2 = orbe.SizeMesh
  3631. orbmish2.Scale = vt(0, 0, 0)
  3632. orbmish2.MeshType = "Sphere"
  3633. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  3634. rngb:Destroy()
  3635. for i = 0, 5, 0.1 do
  3636. swait()
  3637. if rainbowmode == true then
  3638. orbe.Color = Color3.new(r / 255, g / 255, b / 255)
  3639. end
  3640. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3641. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
  3642. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  3643. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  3644. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  3645. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  3646. 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)
  3647. 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)
  3648. RootPart.CFrame = FaceMouse()[1]
  3649. end
  3650. orbe.Transparency = 1
  3651. orb.Transparency = 1
  3652. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
  3653. local a = Instance.new("Part", Character)
  3654. a.Name = "Direction"
  3655. a.Anchored = true
  3656. a.BrickColor = bc("Alder")
  3657. a.Color = MAINRUINCOLOR.Color
  3658. a.Material = "Neon"
  3659. a.Transparency = 0.5
  3660. a.Shape = "Cylinder"
  3661. a.CanCollide = false
  3662. local a2 = Instance.new("Part", Character)
  3663. a2.Name = "Direction"
  3664. a2.Anchored = true
  3665. a2.BrickColor = bc("New Yeller")
  3666. a2.Color = MAINRUINCOLOR.Color
  3667. a2.Material = "Neon"
  3668. a2.Transparency = 0.5
  3669. a2.Shape = "Cylinder"
  3670. a2.CanCollide = false
  3671. local ba = Instance.new("Part", Character)
  3672. ba.Name = "HitDirect"
  3673. ba.Anchored = true
  3674. ba.BrickColor = bc("Really black")
  3675. ba.Material = "Neon"
  3676. ba.Transparency = 1
  3677. ba.CanCollide = false
  3678. local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3679. local ignore = Character
  3680. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3681. a.BottomSurface = 10
  3682. a.TopSurface = 10
  3683. a2.BottomSurface = 10
  3684. a2.TopSurface = 10
  3685. local distance = (orb.CFrame.p - position).magnitude
  3686. a.Size = Vector3.new(distance, 1, 1)
  3687. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3688. a2.Size = Vector3.new(distance, 1, 1)
  3689. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3690. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3691. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3692. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3693. game:GetService("Debris"):AddItem(a, 60)
  3694. game:GetService("Debris"):AddItem(a2, 60)
  3695. game:GetService("Debris"):AddItem(ba, 60)
  3696. local outerscale = 0
  3697. local msh = Instance.new("SpecialMesh", a)
  3698. msh.MeshType = "Cylinder"
  3699. msh.Scale = vt(1, 0, 0)
  3700. local msh2 = Instance.new("SpecialMesh", a2)
  3701. msh2.MeshType = "Cylinder"
  3702. msh2.Scale = vt(1, 0, 0)
  3703. for i = 0, 2, 0.1 do
  3704. swait()
  3705. CameraEnshaking(1, 1)
  3706. msh2.Scale = msh2.Scale + vt(0, outerscale * 20, outerscale * 20)
  3707. msh.Scale = msh.Scale + vt(0, outerscale * 15, outerscale * 15)
  3708. outerscale = outerscale - 0.015
  3709. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3710. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3711. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3712. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3713. distance = (orb.CFrame.p - position).magnitude
  3714. if typrot == 1 then
  3715. rotation = rotation + 2.5
  3716. elseif typrot == 2 then
  3717. rotation = rotation - 2.5
  3718. end
  3719. RootPart.CFrame = FaceMouse()[1]
  3720. a.Size = Vector3.new(distance, 1, 1)
  3721. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3722. a2.Size = Vector3.new(distance, 1, 1)
  3723. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3724. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3725. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3726. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3727. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  3728. end
  3729. for z = 0, 2 do
  3730. for i = 0, 4, 0.1 do
  3731. swait()
  3732. CameraEnshaking(1, 1)
  3733. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  3734. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  3735. outerscale = outerscale + 0.015
  3736. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3737. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3738. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3739. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3740. distance = (orb.CFrame.p - position).magnitude
  3741. if typrot == 1 then
  3742. rotation = rotation + 2.5
  3743. elseif typrot == 2 then
  3744. rotation = rotation - 2.5
  3745. end
  3746. RootPart.CFrame = FaceMouse()[1]
  3747. a.Size = Vector3.new(distance, 1, 1)
  3748. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3749. a2.Size = Vector3.new(distance, 1, 1)
  3750. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3751. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3752. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3753. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3754. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  3755. end
  3756. for i = 0, 4, 0.1 do
  3757. swait()
  3758. CameraEnshaking(1, 1)
  3759. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  3760. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  3761. outerscale = outerscale - 0.015
  3762. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3763. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3764. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3765. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3766. distance = (orb.CFrame.p - position).magnitude
  3767. if typrot == 1 then
  3768. rotation = rotation + 2.5
  3769. elseif typrot == 2 then
  3770. rotation = rotation - 2.5
  3771. end
  3772. RootPart.CFrame = FaceMouse()[1]
  3773. a.Size = Vector3.new(distance, 1, 1)
  3774. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3775. a2.Size = Vector3.new(distance, 1, 1)
  3776. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3777. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3778. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3779. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3780. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  3781. end
  3782. end
  3783. for i = 0, 4, 0.1 do
  3784. swait()
  3785. CameraEnshaking(1, 1)
  3786. msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
  3787. msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
  3788. a.Transparency = a.Transparency + 0.025
  3789. a2.Transparency = a2.Transparency + 0.025
  3790. outerscale = outerscale - 0.015
  3791. orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3792. orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
  3793. ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
  3794. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3795. distance = (orb.CFrame.p - position).magnitude
  3796. if typrot == 1 then
  3797. rotation = rotation + 2.5
  3798. elseif typrot == 2 then
  3799. rotation = rotation - 2.5
  3800. end
  3801. RootPart.CFrame = FaceMouse()[1]
  3802. a.Size = Vector3.new(distance, 1, 1)
  3803. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3804. a2.Size = Vector3.new(distance, 1, 1)
  3805. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  3806. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3807. a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3808. a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
  3809. MagniDamage(ba, 100, 500, 60000, 0, "Normal")
  3810. end
  3811. a:Destroy()
  3812. a2:Destroy()
  3813. ba:Destroy()
  3814. orb:Destroy()
  3815. orbe:Destroy()
  3816. attack = false
  3817. end
  3818. function resetmode()
  3819. rainbowmode = false
  3820. chaosmode = false
  3821. flamemode = false
  3822. RecolorTextAndRename("Tech", Color3.new(0, 1, 0), Color3.new(1, 0, 0),"Code")
  3823. ModeOfGlitch = 1
  3824. storehumanoidWS = 50
  3825. for i, v in pairs(mw2:GetChildren()) do
  3826. if v:IsA("Part") then
  3827. v.Transparency = 0.30
  3828. v.BrickColor = BrickColor.new("Really red")
  3829. v.Material = "Neon"
  3830. end
  3831. end
  3832. for i, v in pairs(mw1:GetChildren()) do
  3833. if v:IsA("Part") then
  3834. v.Transparency = 0.75
  3835. v.BrickColor = BrickColor.new("Really red")
  3836. v.Material = "Neon"
  3837. end
  3838. end
  3839. MAINRUINCOLOR = BrickColor.new("Really red")
  3840. hum.WalkSpeed = 50
  3841. newTheme("rbxassetid://383448299", 0, 1, 10)
  3842. for i, v in pairs(m:GetChildren()) do
  3843. if v:IsA("Part") then
  3844. v.Transparency = 1
  3845. v.BrickColor = BrickColor.new("Really black")
  3846. v.Material = "Glass"
  3847. end
  3848. end
  3849. for i, v in pairs(m2:GetChildren()) do
  3850. if v:IsA("Part") then
  3851. v.Transparency = 0.90
  3852. v.BrickColor = BrickColor.new("Lime green")
  3853. v.Material = "Granite"
  3854. end
  3855. end
  3856. for i, v in pairs(m3:GetChildren()) do
  3857. if v:IsA("Part") then
  3858. v.Transparency = 0.5
  3859. v.BrickColor = BrickColor.new("Really red")
  3860. v.Material = "Neon"
  3861. end
  3862. end
  3863. for i, v in pairs(extrawingmod1:GetChildren()) do
  3864. if v:IsA("Part") then
  3865. v.Transparency = 0.95
  3866. v.BrickColor = BrickColor.new("Lime green")
  3867. v.Material = "Neon"
  3868. end
  3869. end
  3870. for i, v in pairs(extrawingmod2:GetChildren()) do
  3871. if v:IsA("Part") then
  3872. v.Transparency = 0.85
  3873. v.BrickColor = BrickColor.new("Camo")
  3874. v.Material = "Neon"
  3875. end
  3876. end
  3877. end
  3878. function attackone()
  3879. attack = true
  3880. for i = 0, 1, 0.1 do
  3881. swait()
  3882. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(-40)), 0.2)
  3883. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40)), 0.2)
  3884. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  3885. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  3886. 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)
  3887. 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)
  3888. end
  3889. CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1.1)
  3890. local hitb = Instance.new("Part", char)
  3891. hitb.Anchored = true
  3892. hitb.CanCollide = false
  3893. hitb.FormFactor = 3
  3894. hitb.Name = "Ring"
  3895. hitb.Material = "Neon"
  3896. hitb.Size = Vector3.new(1, 1, 1)
  3897. hitb.Transparency = 1
  3898. hitb.TopSurface = 0
  3899. hitb.BottomSurface = 0
  3900. hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
  3901. MagniDamage(hitb, 3, 10, 30, 0, "Normal")
  3902. hitb:Destroy()
  3903. for i = 0, 1, 0.1 do
  3904. swait()
  3905. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(70)), 0.4)
  3906. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-70)), 0.4)
  3907. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  3908. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  3909. 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)
  3910. 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)
  3911. end
  3912. attack = false
  3913. end
  3914. function attacktwo()
  3915. attack = true
  3916. for i = 0, 1, 0.1 do
  3917. swait()
  3918. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(40)), 0.2)
  3919. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  3920. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  3921. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  3922. 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)
  3923. 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)
  3924. end
  3925. CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1)
  3926. local hitb = Instance.new("Part", char)
  3927. hitb.Anchored = true
  3928. hitb.CanCollide = false
  3929. hitb.FormFactor = 3
  3930. hitb.Name = "Ring"
  3931. hitb.Material = "Neon"
  3932. hitb.Size = Vector3.new(1, 1, 1)
  3933. hitb.Transparency = 1
  3934. hitb.TopSurface = 0
  3935. hitb.BottomSurface = 0
  3936. hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
  3937. MagniDamage(hitb, 3, 10, 30, 0, "Normal")
  3938. hitb:Destroy()
  3939. for i = 0, 1, 0.1 do
  3940. swait()
  3941. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-70)), 0.4)
  3942. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(70)), 0.4)
  3943. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  3944. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  3945. 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)
  3946. 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)
  3947. end
  3948. attack = false
  3949. end
  3950. function attackthree()
  3951. attack = true
  3952. for i = 0, 1, 0.1 do
  3953. swait()
  3954. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  3955. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3)
  3956. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  3957. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  3958. 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)
  3959. 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)
  3960. end
  3961. local distlook = 5
  3962. for i = 0, 4 do
  3963. swait(2)
  3964. CameraEnshaking(2, 3)
  3965. local hite = Instance.new("Part", char)
  3966. hite.Anchored = true
  3967. hite.CanCollide = false
  3968. hite.FormFactor = 3
  3969. hite.Name = "Ring"
  3970. hite.Material = "Neon"
  3971. hite.Size = Vector3.new(1, 1, 1)
  3972. hite.Transparency = 1
  3973. hite.TopSurface = 0
  3974. hite.BottomSurface = 0
  3975. hite.CFrame = root.CFrame + root.CFrame.lookVector * distlook
  3976. sphere(3, "Add", hite.CFrame, vt(0, 0, 0), 0.15, MAINRUINCOLOR)
  3977. sphere(6, "Add", hite.CFrame, vt(0, 0, 0), 0.3, MAINRUINCOLOR)
  3978. MagniDamage(hite, 10, 15, 35, 0, "Normal")
  3979. CFuncs.Sound.Create("rbxassetid://183763506", hite, 2.5, 1)
  3980. CFuncs.Sound.Create("rbxassetid://178452221", hite, 0.25, 0.6)
  3981. game:GetService("Debris"):AddItem(hite, 5)
  3982. distlook = distlook + 10
  3983. end
  3984. attack = false
  3985. end
  3986. local attacktype = 1
  3987. mouse.Button1Down:connect(function()
  3988. if attack == false and attacktype == 1 then
  3989. attacktype = 2
  3990. attackone()
  3991. elseif attack == false and attacktype == 2 then
  3992. attacktype = 3
  3993. attacktwo()
  3994. elseif attack == false and attacktype == 3 then
  3995. attacktype = 1
  3996. attackthree()
  3997. elseif attack == false and attacktype == 4 then
  3998. attacktype = 1
  3999. end
  4000. end)
  4001. mouse.KeyDown:connect(function(k)
  4002. if k == "q" and attack == false and ModeOfGlitch ~= 2 then
  4003. ModeOfGlitch = 1000000
  4004. storehumanoidWS = 16
  4005. hum.WalkSpeed = 16
  4006. rainbowmode = false
  4007. chaosmode = false
  4008. flamemode = false
  4009. RecolorTextAndRename("Equal", Color3.new(0, 0, 0), Color3.new(0, 0, 0),"Arial")
  4010. newTheme("rbxassetid://1117396305", 20.25, 1, 1)
  4011. MAINRUINCOLOR = BrickColor.new("Really black")
  4012. for i, v in pairs(mw2:GetChildren()) do
  4013. if v:IsA("Part") then
  4014. v.Transparency = 0
  4015. v.BrickColor = BrickColor.new("White")
  4016. v.Material = "Neon"
  4017. end
  4018. end
  4019. for i, v in pairs(mw1:GetChildren()) do
  4020. if v:IsA("Part") then
  4021. v.Transparency = 0
  4022. v.BrickColor = MAINRUINCOLOR
  4023. v.Material = "Neon"
  4024. end
  4025. end
  4026. for i, v in pairs(m:GetChildren()) do
  4027. if v:IsA("Part") then
  4028. v.Transparency = 0
  4029. v.BrickColor = BrickColor.new("Really black")
  4030. v.Material = "Ice"
  4031. end
  4032. end
  4033. for i, v in pairs(m2:GetChildren()) do
  4034. if v:IsA("Part") then
  4035. v.Transparency = 0
  4036. v.BrickColor = BrickColor.new("Royal purple")
  4037. v.Material = "Glass"
  4038. end
  4039. end
  4040. for i, v in pairs(m3:GetChildren()) do
  4041. if v:IsA("Part") then
  4042. v.Transparency = 0
  4043. v.BrickColor = BrickColor.new("Really black")
  4044. v.Material = "Neon"
  4045. end
  4046. end
  4047. for i, v in pairs(extrawingmod1:GetChildren()) do
  4048. if v:IsA("Part") then
  4049. v.Transparency = 0
  4050. v.BrickColor = BrickColor.new("Royal Purple")
  4051. v.Material = "Neon"
  4052. end
  4053. end
  4054. for i, v in pairs(extrawingmod2:GetChildren()) do
  4055. if v:IsA("Part") then
  4056. v.Transparency = 0
  4057. v.BrickColor = BrickColor.new("Really black")
  4058. v.Material = "Neon"
  4059. end
  4060. end
  4061. elseif k == "q" and attack == false and ModeOfGlitch == 2 then
  4062. resetmode()
  4063. end
  4064. if k == "e" and attack == false and ModeOfGlitch ~= 3 then
  4065. ModeOfGlitch = 3
  4066. storehumanoidWS = 16
  4067. hum.WalkSpeed = 16
  4068. rainbowmode = false
  4069. chaosmode = false
  4070. flamemode = false
  4071. RecolorTextAndRename("Hybrid", Color3.new(0, 0, 0), Color3.new(0, 0, 0),"ArialBold")
  4072. newTheme("rbxassetid://751167162", 58.15, 1,2)
  4073. MAINRUINCOLOR = BrickColor.new("Really red")
  4074. for i, v in pairs(mw2:GetChildren()) do
  4075. if v:IsA("Part") then
  4076. v.Transparency = 0
  4077. v.BrickColor = BrickColor.new("Really blue")
  4078. v.Material = "Neon"
  4079. end
  4080. end
  4081. for i, v in pairs(mw1:GetChildren()) do
  4082. if v:IsA("Part") then
  4083. v.Transparency = 0
  4084. v.BrickColor = BrickColor.new("Really red")
  4085. v.Material = "Neon"
  4086. end
  4087. end
  4088. for i, v in pairs(m:GetChildren()) do
  4089. if v:IsA("Part") then
  4090. v.Transparency = 0
  4091. v.BrickColor = BrickColor.new("Really blue")
  4092. v.Material = "Ice"
  4093. end
  4094. end
  4095. for i, v in pairs(m2:GetChildren()) do
  4096. if v:IsA("Part") then
  4097. v.Transparency = 0
  4098. v.BrickColor = BrickColor.new("Really red")
  4099. v.Material = "Glass"
  4100. end
  4101. end
  4102. for i, v in pairs(m3:GetChildren()) do
  4103. if v:IsA("Part") then
  4104. v.Transparency = 0
  4105. v.BrickColor = BrickColor.new("Really blue")
  4106. v.Material = "Neon"
  4107. end
  4108. end
  4109. for i, v in pairs(extrawingmod1:GetChildren()) do
  4110. if v:IsA("Part") then
  4111. v.Transparency = 1
  4112. v.BrickColor = BrickColor.new("White")
  4113. v.Material = "Neon"
  4114. end
  4115. end
  4116. for i, v in pairs(extrawingmod2:GetChildren()) do
  4117. if v:IsA("Part") then
  4118. v.Transparency = 1
  4119. v.BrickColor = BrickColor.new("White")
  4120. v.Material = "Neon"
  4121. end
  4122. end
  4123. elseif k == "e" and attack == false and ModeOfGlitch == 3 then
  4124. resetmode()
  4125. end
  4126. if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 22 then
  4127. hum.WalkSpeed = 0
  4128. attack = true
  4129. for i = 0,1,0.1 do
  4130. swait()
  4131. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  4132. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  4133. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3)
  4134. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3)
  4135. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  4136. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  4137. end
  4138. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4139. for i = 0,3,0.1 do
  4140. sphereMK(2.5,-1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,MAINRUINCOLOR,0)
  4141. end
  4142. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  4143. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  4144. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  4145. hum.WalkSpeed = storehumanoidWS
  4146. attack = false
  4147. ModeOfGlitch = 66
  4148. storehumanoidWS = 16
  4149. hum.WalkSpeed = 16
  4150. rainbowmode = false
  4151. chaosmode = false
  4152. flamemode = false
  4153. newTheme("rbxassetid://1430790805", 0, 1, 1)
  4154. MAINRUINCOLOR = BrickColor.new("Really black")
  4155. for i, v in pairs(mw2:GetChildren()) do
  4156. if v:IsA("Part") then
  4157. v.BrickColor = BrickColor.random()
  4158. v.Material = "Neon"
  4159. end
  4160. end
  4161. for i, v in pairs(mw1:GetChildren()) do
  4162. if v:IsA("Part") then
  4163. v.Transparency = 0.75
  4164. v.BrickColor = BrickColor.random()
  4165. v.Material = "Neon"
  4166. end
  4167. end
  4168. for i, v in pairs(m:GetChildren()) do
  4169. if v:IsA("Part") then
  4170. v.BrickColor = BrickColor.random()
  4171. v.Material = "Neon"
  4172. end
  4173. end
  4174. for i, v in pairs(m2:GetChildren()) do
  4175. if v:IsA("Part") then
  4176. v.BrickColor = BrickColor.random()
  4177. v.Material = "Neon"
  4178. end
  4179. end
  4180. for i, v in pairs(m3:GetChildren()) do
  4181. if v:IsA("Part") then
  4182. v.BrickColor = BrickColor.random()
  4183. v.Material = "Neon"
  4184. end
  4185. end
  4186. for i, v in pairs(extrawingmod1:GetChildren()) do
  4187. if v:IsA("Part") then
  4188. v.Transparency = 0.75
  4189. v.BrickColor = BrickColor.random()
  4190. v.Material = "Neon"
  4191. end
  4192. end
  4193. for i, v in pairs(extrawingmod2:GetChildren()) do
  4194. if v:IsA("Part") then
  4195. v.Transparency = 0.75
  4196. v.BrickColor = BrickColor.random()
  4197. v.Material = "Neon"
  4198. end
  4199. end
  4200. for i = 0,2,0.1 do
  4201. swait()
  4202. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  4203. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  4204. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  4205. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  4206. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  4207. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  4208. end
  4209. end
  4210. if k == "h" and attack == false and ModeOfGlitch ~= 34101 then
  4211. rainbowmode = false
  4212. chaosmode = false
  4213. flamemode = false
  4214. hum.WalkSpeed = 0
  4215. storehumanoidWS = 75
  4216. hum.JumpPower = 0
  4217. newTheme("rbxassetid://1158205562",0,1,3)
  4218. kan.TimePosition = 0
  4219. ModeOfGlitch = 34101
  4220. repeat swait() until kan.IsLoaded
  4221. chatfunc("I have found the answer.",Color3.new(1,1,1))
  4222. for i = 0, 16, .1 do
  4223. swait()
  4224. RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1)
  4225. LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  4226. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1)
  4227. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25),0,0),.1)
  4228. RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1)
  4229. LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1)
  4230. end
  4231. CFuncs["Sound"].Create("rbxassetid://604650009", root, 2.5,1)
  4232. wait(0.3)
  4233. CFuncs["Sound"].Create("rbxassetid://604650009", root, 5,1)
  4234. wait(0.3)
  4235. CFuncs["Sound"].Create("rbxassetid://604650009", root, 7.5,1)
  4236. wait(0.3)
  4237. CFuncs["Sound"].Create("rbxassetid://604650009", root, 10,1)
  4238. pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'Black' end)
  4239. pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'Black' end)
  4240. RecolorTextAndRename("DEEP THOUGHTS...",Color3.new(255,255,255),Color3.new(255,255,255),"Highway")
  4241. CameraEnshaking(5,2.5)
  4242. MAINRUINCOLOR = BrickColor.new("White")
  4243. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4244.  
  4245. for i, v in pairs(mw2:GetChildren()) do
  4246. if v:IsA("Part") then
  4247. v.BrickColor = BrickColor.new("White")
  4248. v.Material = "Glass"
  4249. end
  4250. end
  4251. for i, v in pairs(mw1:GetChildren()) do
  4252. if v:IsA("Part") then
  4253. v.Transparency = 0
  4254. v.BrickColor = BrickColor.new("White")
  4255. v.Material = "Glass"
  4256. end
  4257. end
  4258. for i, v in pairs(m:GetChildren()) do
  4259. if v:IsA("Part") then
  4260. v.BrickColor = BrickColor.new("White")
  4261. v.Material = "Glass"
  4262. end
  4263. end
  4264. for i, v in pairs(m2:GetChildren()) do
  4265. if v:IsA("Part") then
  4266. v.BrickColor = BrickColor.new("White")
  4267. v.Material = "Granite"
  4268. end
  4269. end
  4270. for i, v in pairs(m3:GetChildren()) do
  4271. if v:IsA("Part") then
  4272. v.BrickColor = BrickColor.new("White")
  4273. v.Material = "Glass"
  4274. end
  4275. end
  4276. for i, v in pairs(extrawingmod1:GetChildren()) do
  4277. if v:IsA("Part") then
  4278. v.Transparency = 0
  4279. v.BrickColor = BrickColor.new("White")
  4280. v.Material = "Glass"
  4281. end
  4282. end
  4283. for i, v in pairs(extrawingmod2:GetChildren()) do
  4284. if v:IsA("Part") then
  4285. v.Transparency = 0
  4286. v.BrickColor = BrickColor.new("White")
  4287. v.Material = "Glass"
  4288. end
  4289. end
  4290. for i = 0,2,0.1 do
  4291. swait()
  4292. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.2)
  4293. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.2)
  4294. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.2)
  4295. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.2)
  4296. RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.2)
  4297. LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.2)
  4298. end
  4299. hum.JumpPower = 50
  4300. hum.WalkSpeed = storehumanoidWS
  4301. attack = false
  4302. end
  4303. if k == "j" and attack == false and ModeOfGlitch ~= 8787 then
  4304. ModeOfGlitch = 8787
  4305. storehumanoidWS = 16
  4306. hum.WalkSpeed = 16
  4307. rainbowmode = false
  4308. chaosmode = false
  4309. flamemode = false
  4310. RecolorTextAndRename("Sinister Blue", Color3.new(1, 0, 0), Color3.new(0, 0, 0),"Bodoni")
  4311. newTheme("rbxassetid://193889412", 58.15, 1,2)
  4312. MAINRUINCOLOR = BrickColor.new("Really red")
  4313. for i, v in pairs(mw2:GetChildren()) do
  4314. if v:IsA("Part") then
  4315. v.Transparency = 0
  4316. v.BrickColor = BrickColor.new("Really black")
  4317. v.Material = "Neon"
  4318. end
  4319. end
  4320. for i, v in pairs(mw1:GetChildren()) do
  4321. if v:IsA("Part") then
  4322. v.Transparency = 0
  4323. v.BrickColor = BrickColor.new("Really red")
  4324. v.Material = "Neon"
  4325. end
  4326. end
  4327. for i, v in pairs(m:GetChildren()) do
  4328. if v:IsA("Part") then
  4329. v.Transparency = 0
  4330. v.BrickColor = BrickColor.new("Really black")
  4331. v.Material = "Ice"
  4332. end
  4333. end
  4334. for i, v in pairs(m2:GetChildren()) do
  4335. if v:IsA("Part") then
  4336. v.Transparency = 0
  4337. v.BrickColor = BrickColor.new("Really red")
  4338. v.Material = "Glass"
  4339. end
  4340. end
  4341. for i, v in pairs(m3:GetChildren()) do
  4342. if v:IsA("Part") then
  4343. v.Transparency = 0
  4344. v.BrickColor = BrickColor.new("Really black")
  4345. v.Material = "Neon"
  4346. end
  4347. end
  4348. for i, v in pairs(extrawingmod1:GetChildren()) do
  4349. if v:IsA("Part") then
  4350. v.Transparency = 1
  4351. v.BrickColor = BrickColor.new("White")
  4352. v.Material = "Neon"
  4353. end
  4354. end
  4355. for i, v in pairs(extrawingmod2:GetChildren()) do
  4356. if v:IsA("Part") then
  4357. v.Transparency = 1
  4358. v.BrickColor = BrickColor.new("White")
  4359. v.Material = "Neon"
  4360. end
  4361. end
  4362. elseif k == "j" and attack == false and ModeOfGlitch == 8787 then
  4363. resetmode()
  4364. end
  4365. if k == "r" and attack == false and ModeOfGlitch ~= 4 then
  4366. ModeOfGlitch = 4
  4367. storehumanoidWS = 16
  4368. hum.WalkSpeed = 16
  4369. rainbowmode = false
  4370. chaosmode = true
  4371. flamemode = false
  4372. RecolorTextAndRename("Ender", Color3.new(0, 0, 0), BrickColor.random().Color,"Fantasy")
  4373. newTheme("rbxassetid://570556587", 0, 1, 10)
  4374. MAINRUINCOLOR = BrickColor.new("Black")
  4375. for i, v in pairs(mw2:GetChildren()) do
  4376. if v:IsA("Part") then
  4377. v.BrickColor = MAINRUINCOLOR
  4378. v.Material = "Neon"
  4379. end
  4380. end
  4381. for i, v in pairs(mw1:GetChildren()) do
  4382. if v:IsA("Part") then
  4383. v.Transparency = 0.75
  4384. v.BrickColor = BrickColor.random()
  4385. v.Material = "Neon"
  4386. end
  4387. end
  4388. for i, v in pairs(m:GetChildren()) do
  4389. if v:IsA("Part") then
  4390. v.BrickColor = BrickColor.new("Black")
  4391. v.Material = "Neon"
  4392. end
  4393. end
  4394. for i, v in pairs(m2:GetChildren()) do
  4395. if v:IsA("Part") then
  4396. v.BrickColor = BrickColor.random()
  4397. v.Material = "Neon"
  4398. end
  4399. end
  4400. for i, v in pairs(m3:GetChildren()) do
  4401. if v:IsA("Part") then
  4402. v.BrickColor = BrickColor.new("Black")
  4403. v.Material = "Neon"
  4404. end
  4405. end
  4406. for i, v in pairs(extrawingmod1:GetChildren()) do
  4407. if v:IsA("Part") then
  4408. v.Transparency = 0.75
  4409. v.BrickColor = BrickColor.new("White")
  4410. v.Material = "Neon"
  4411. end
  4412. end
  4413. for i, v in pairs(extrawingmod2:GetChildren()) do
  4414. if v:IsA("Part") then
  4415. v.Transparency = 0
  4416. v.BrickColor = BrickColor.new("Black")
  4417. v.Material = "Neon"
  4418. end
  4419. end
  4420. elseif k == "r" and attack == false and ModeOfGlitch == 4 then
  4421. resetmode()
  4422. end
  4423. if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 66 then
  4424. hum.WalkSpeed = 0
  4425. attack = true
  4426. for i = 0,1,0.1 do
  4427. swait()
  4428. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  4429. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  4430. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3)
  4431. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3)
  4432. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  4433. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  4434. end
  4435. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4436. for i = 0,3,0.1 do
  4437. sphereMK(2.5,-1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,MAINRUINCOLOR,0)
  4438. end
  4439. CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
  4440. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
  4441. CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
  4442. hum.WalkSpeed = storehumanoidWS
  4443. attack = false
  4444. ModeOfGlitch = 66
  4445. storehumanoidWS = 16
  4446. hum.WalkSpeed = 16
  4447. rainbowmode = false
  4448. chaosmode = false
  4449. flamemode = false
  4450. newTheme("rbxassetid://1430790805", 0, 1, 1)
  4451. MAINRUINCOLOR = BrickColor.new("Really black")
  4452. for i, v in pairs(mw2:GetChildren()) do
  4453. if v:IsA("Part") then
  4454. v.BrickColor = BrickColor.random()
  4455. v.Material = "Neon"
  4456. end
  4457. end
  4458. for i, v in pairs(mw1:GetChildren()) do
  4459. if v:IsA("Part") then
  4460. v.Transparency = 0.75
  4461. v.BrickColor = BrickColor.random()
  4462. v.Material = "Neon"
  4463. end
  4464. end
  4465. for i, v in pairs(m:GetChildren()) do
  4466. if v:IsA("Part") then
  4467. v.BrickColor = BrickColor.random()
  4468. v.Material = "Neon"
  4469. end
  4470. end
  4471. for i, v in pairs(m2:GetChildren()) do
  4472. if v:IsA("Part") then
  4473. v.BrickColor = BrickColor.random()
  4474. v.Material = "Neon"
  4475. end
  4476. end
  4477. for i, v in pairs(m3:GetChildren()) do
  4478. if v:IsA("Part") then
  4479. v.BrickColor = BrickColor.random()
  4480. v.Material = "Neon"
  4481. end
  4482. end
  4483. for i, v in pairs(extrawingmod1:GetChildren()) do
  4484. if v:IsA("Part") then
  4485. v.Transparency = 0.75
  4486. v.BrickColor = BrickColor.random()
  4487. v.Material = "Neon"
  4488. end
  4489. end
  4490. for i, v in pairs(extrawingmod2:GetChildren()) do
  4491. if v:IsA("Part") then
  4492. v.Transparency = 0.75
  4493. v.BrickColor = BrickColor.random()
  4494. v.Material = "Neon"
  4495. end
  4496. end
  4497. for i = 0,2,0.1 do
  4498. swait()
  4499. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  4500. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  4501. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  4502. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  4503. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
  4504. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
  4505. end
  4506. end
  4507. if k == "t" and attack == false and ModeOfGlitch ~= 5 then
  4508. ModeOfGlitch = 2
  4509.  
  4510. storehumanoidWS = 16
  4511. hum.WalkSpeed = 16
  4512. rainbowmode = false
  4513. chaosmode = false
  4514. flamemode = false
  4515. RecolorTextAndRename("Somewhat blue", Color3.new(0, 0, 0), Color3.new(255, 255, 255),"Cartoon")
  4516. newTheme("rbxassetid://1138145518", 10, 1, 3.2)
  4517. MAINRUINCOLOR = BrickColor.new("Cool yellow")
  4518. for i, v in pairs(mw2:GetChildren()) do
  4519. if v:IsA("Part") then
  4520. v.BrickColor = BrickColor.new("Bright blue")
  4521. v.Material = "Neon"
  4522. end
  4523. end
  4524. for i, v in pairs(mw1:GetChildren()) do
  4525. if v:IsA("Part") then
  4526. v.Transparency = 0
  4527. v.BrickColor = BrickColor.new("Cool yellow")
  4528. v.Material = "Neon"
  4529. end
  4530. end
  4531. for i, v in pairs(m:GetChildren()) do
  4532. if v:IsA("Part") then
  4533. v.BrickColor = BrickColor.new("Bright green")
  4534. v.Material = "Ice"
  4535. end
  4536. end
  4537. for i, v in pairs(m2:GetChildren()) do
  4538. if v:IsA("Part") then
  4539. v.BrickColor = BrickColor.new("Cool yellow")
  4540. v.Material = "Ice"
  4541. end
  4542. end
  4543. for i, v in pairs(m3:GetChildren()) do
  4544. if v:IsA("Part") then
  4545. v.BrickColor = BrickColor.new("Bright green")
  4546. v.Material = "Neon"
  4547. end
  4548. end
  4549. for i, v in pairs(extrawingmod1:GetChildren()) do
  4550. if v:IsA("Part") then
  4551. v.Transparency = 1
  4552. v.BrickColor = BrickColor.new("White")
  4553. v.Material = "Neon"
  4554. end
  4555. end
  4556. for i, v in pairs(extrawingmod2:GetChildren()) do
  4557. if v:IsA("Part") then
  4558. v.Transparency = 1
  4559. v.BrickColor = BrickColor.new("White")
  4560. v.Material = "Neon"
  4561. end
  4562. end
  4563. elseif k == "t" and attack == false and ModeOfGlitch == 5 then
  4564. resetmode()
  4565. end
  4566. if k == "y" and attack == false and ModeOfGlitch ~= 6 then
  4567. ModeOfGlitch = 5
  4568. storehumanoidWS = 75
  4569. hum.WalkSpeed = 75
  4570. rainbowmode = false
  4571. chaosmode = false
  4572. flamemode = false
  4573. RecolorTextAndRename("Alone", Color3.new(0, 0, 0), Color3.new(1, 1, 1),"Antique")
  4574. newTheme("rbxassetid://1264384183", 0, 1, 1)
  4575. MAINRUINCOLOR = BrickColor.new("Really black")
  4576. for i, v in pairs(mw2:GetChildren()) do
  4577. if v:IsA("Part") then
  4578. v.BrickColor = BrickColor.new("Really black")
  4579. v.Material = "Neon"
  4580. end
  4581. end
  4582. for i, v in pairs(mw1:GetChildren()) do
  4583. if v:IsA("Part") then
  4584. v.Transparency = 0
  4585. v.BrickColor = BrickColor.new("Really black")
  4586. v.Material = "Neon"
  4587. end
  4588. end
  4589. for i, v in pairs(m:GetChildren()) do
  4590. if v:IsA("Part") then
  4591. v.BrickColor = BrickColor.new("Really black")
  4592. v.Material = "Ice"
  4593. end
  4594. end
  4595. for i, v in pairs(m2:GetChildren()) do
  4596. if v:IsA("Part") then
  4597. v.BrickColor = BrickColor.new("Really black")
  4598. v.Material = "Ice"
  4599. end
  4600. end
  4601. for i, v in pairs(m3:GetChildren()) do
  4602. if v:IsA("Part") then
  4603. v.BrickColor = BrickColor.new("Really black")
  4604. v.Material = "Neon"
  4605. end
  4606. end
  4607. for i, v in pairs(extrawingmod1:GetChildren()) do
  4608. if v:IsA("Part") then
  4609. v.Transparency = 1
  4610. v.BrickColor = BrickColor.new("White")
  4611. v.Material = "Neon"
  4612. end
  4613. end
  4614. for i, v in pairs(extrawingmod2:GetChildren()) do
  4615. if v:IsA("Part") then
  4616. v.Transparency = 1
  4617. v.BrickColor = BrickColor.new("White")
  4618. v.Material = "Neon"
  4619. end
  4620. end
  4621.  
  4622.  
  4623. elseif k == "y" and attack == false and ModeOfGlitch == 6 then
  4624. resetmode()
  4625. end
  4626. if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
  4627. ModeOfGlitch = 5
  4628. storehumanoidWS = 50
  4629. hum.WalkSpeed = 50
  4630. rainbowmode = true
  4631. chaosmode = false
  4632. flamemode = false
  4633. RecolorTextAndRename("Rainer", Color3.new(1, 1, 1), Color3.new(1, 1, 1),"Legacy")
  4634. newTheme("rbxassetid://1890957836", 0, 1, 1)
  4635. MAINRUINCOLOR = BrickColor.new("White")
  4636. for i, v in pairs(mw2:GetChildren()) do
  4637. if v:IsA("Part") then
  4638. v.BrickColor = MAINRUINCOLOR
  4639. v.Material = "Neon"
  4640. end
  4641. end
  4642. for i, v in pairs(mw1:GetChildren()) do
  4643. if v:IsA("Part") then
  4644. v.Transparency = 0
  4645. v.BrickColor = MAINRUINCOLOR
  4646. v.Material = "Neon"
  4647. end
  4648. end
  4649. for i, v in pairs(m:GetChildren()) do
  4650. if v:IsA("Part") then
  4651. v.BrickColor = BrickColor.new("White")
  4652. v.Material = "Neon"
  4653. end
  4654. end
  4655. for i, v in pairs(m2:GetChildren()) do
  4656. if v:IsA("Part") then
  4657. v.BrickColor = BrickColor.new("White")
  4658. v.Material = "Neon"
  4659. end
  4660. end
  4661. for i, v in pairs(m3:GetChildren()) do
  4662. if v:IsA("Part") then
  4663. v.BrickColor = BrickColor.new("White")
  4664. v.Material = "Neon"
  4665. end
  4666. end
  4667. for i, v in pairs(extrawingmod1:GetChildren()) do
  4668. if v:IsA("Part") then
  4669. v.Transparency = 1
  4670. v.BrickColor = BrickColor.new("White")
  4671. v.Material = "Neon"
  4672. end
  4673. end
  4674. for i, v in pairs(extrawingmod2:GetChildren()) do
  4675. if v:IsA("Part") then
  4676. v.Transparency = 1
  4677. v.BrickColor = BrickColor.new("White")
  4678. v.Material = "Neon"
  4679. end
  4680. end
  4681. elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
  4682. resetmode()
  4683. end
  4684. if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
  4685. ModeOfGlitch = 2
  4686. storehumanoidWS = 100
  4687. hum.WalkSpeed = 100
  4688. rainbowmode = false
  4689. chaosmode = false
  4690. flamemode = false
  4691. RecolorTextAndRename("Baslio", Color3.new(0, 0, 0), Color3.new(255, 255, 255),"Antique")
  4692. newTheme("rbxassetid://318812395", 0, 1, 1)
  4693. MAINRUINCOLOR = BrickColor.new("Really black")
  4694. for i, v in pairs(mw2:GetChildren()) do
  4695. if v:IsA("Part") then
  4696. v.BrickColor = BrickColor.new("White")
  4697. v.Material = "Neon"
  4698. end
  4699. end
  4700. for i, v in pairs(mw1:GetChildren()) do
  4701. if v:IsA("Part") then
  4702. v.Transparency = 0
  4703. v.BrickColor = BrickColor.new("Really black")
  4704. v.Material = "Neon"
  4705. end
  4706. end
  4707. for i, v in pairs(m:GetChildren()) do
  4708. if v:IsA("Part") then
  4709. v.BrickColor = BrickColor.new("White")
  4710. v.Material = "Neon"
  4711. end
  4712. end
  4713. for i, v in pairs(m2:GetChildren()) do
  4714. if v:IsA("Part") then
  4715. v.BrickColor = BrickColor.new("Really black")
  4716. v.Material = "Neon"
  4717. end
  4718. end
  4719. for i, v in pairs(m3:GetChildren()) do
  4720. if v:IsA("Part") then
  4721. v.BrickColor = BrickColor.new("White")
  4722. v.Material = "Neon"
  4723. end
  4724. end
  4725. for i, v in pairs(extrawingmod1:GetChildren()) do
  4726. if v:IsA("Part") then
  4727. v.Transparency = 0
  4728. v.BrickColor = BrickColor.new("Really black")
  4729. v.Material = "Neon"
  4730. end
  4731. end
  4732. for i, v in pairs(extrawingmod2:GetChildren()) do
  4733. if v:IsA("Part") then
  4734. v.Transparency = 0
  4735. v.BrickColor = BrickColor.new("White")
  4736. v.Material = "Neon"
  4737. end
  4738. end
  4739. elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
  4740. resetmode()
  4741. end
  4742. if k == "k" and attack == false and ModeOfGlitch ~= 101909 then
  4743. ModeOfGlitch = 101909
  4744. storehumanoidWS = 100
  4745. hum.WalkSpeed = 100
  4746. rainbowmode = false
  4747. chaosmode = false
  4748. flamemode = true
  4749. RecolorTextAndRename("Blazer",BrickColor.new("Really red").Color,BrickColor.new("Deep Orange").Color,"Antique")
  4750. newTheme("rbxassetid://243281095", 0, 1, 1)
  4751. MAINRUINCOLOR = BrickColor.new("Deep orange")
  4752. for i, v in pairs(mw2:GetChildren()) do
  4753. if v:IsA("Part") then
  4754. v.BrickColor = BrickColor.new("Deep orange")
  4755. v.Material = "Neon"
  4756. end
  4757. end
  4758. for i, v in pairs(mw1:GetChildren()) do
  4759. if v:IsA("Part") then
  4760. v.Transparency = 0
  4761. v.BrickColor = BrickColor.new("Deep orange")
  4762. v.Material = "Neon"
  4763. end
  4764. end
  4765. for i, v in pairs(m:GetChildren()) do
  4766. if v:IsA("Part") then
  4767. v.BrickColor = BrickColor.new("Really red")
  4768. v.Material = "Neon"
  4769. end
  4770. end
  4771. for i, v in pairs(m2:GetChildren()) do
  4772. if v:IsA("Part") then
  4773. v.BrickColor = BrickColor.new("Deep orange")
  4774. v.Material = "Neon"
  4775. end
  4776. end
  4777. for i, v in pairs(m3:GetChildren()) do
  4778. if v:IsA("Part") then
  4779. v.BrickColor = BrickColor.new("Deep orange")
  4780. v.Material = "Neon"
  4781. end
  4782. end
  4783. for i, v in pairs(extrawingmod1:GetChildren()) do
  4784. if v:IsA("Part") then
  4785. v.Transparency = 0
  4786. v.BrickColor = BrickColor.new("Really red")
  4787. v.Material = "Neon"
  4788. end
  4789. end
  4790. for i, v in pairs(extrawingmod2:GetChildren()) do
  4791. if v:IsA("Part") then
  4792. v.Transparency = 0
  4793. v.BrickColor = BrickColor.new("Really red")
  4794. v.Material = "Neon"
  4795. end
  4796. end
  4797. elseif k == "k" and attack == false and ModeOfGlitch == 101909 then
  4798. resetmode()
  4799. end
  4800. if k == "f" and attack == false and ModeOfGlitch ~= 101 then
  4801. ModeOfGlitch = 101
  4802. storehumanoidWS = 100
  4803. hum.WalkSpeed = 100
  4804. rainbowmode = false
  4805. chaosmode = false
  4806. flamemode = false
  4807. RecolorTextAndRename("R.E.M.I.X Dasd5755",Color3.new(1,1,1),BrickColor.new("White").Color,"Bodoni")
  4808. newTheme("rbxassetid://1408646136",0,1,1.25)
  4809. MAINRUINCOLOR = BrickColor.new("Black")
  4810. for i, v in pairs(mw2:GetChildren()) do
  4811. if v:IsA("Part") then
  4812. v.BrickColor = BrickColor.new("White")
  4813. v.Material = "Neon"
  4814. end
  4815. end
  4816. for i, v in pairs(mw1:GetChildren()) do
  4817. if v:IsA("Part") then
  4818. v.Transparency = 0
  4819. v.BrickColor = BrickColor.new("Black")
  4820. v.Material = "Neon"
  4821. end
  4822. end
  4823. for i, v in pairs(m:GetChildren()) do
  4824. if v:IsA("Part") then
  4825. v.BrickColor = BrickColor.new("White")
  4826. v.Material = "Neon"
  4827. end
  4828. end
  4829. for i, v in pairs(m2:GetChildren()) do
  4830. if v:IsA("Part") then
  4831. v.BrickColor = BrickColor.new("White")
  4832. v.Material = "Neon"
  4833. end
  4834. end
  4835. for i, v in pairs(m3:GetChildren()) do
  4836. if v:IsA("Part") then
  4837. v.BrickColor = BrickColor.new("Really Black")
  4838. v.Material = "Neon"
  4839. end
  4840. end
  4841. for i, v in pairs(extrawingmod1:GetChildren()) do
  4842. if v:IsA("Part") then
  4843. v.Transparency = 0
  4844. v.BrickColor = BrickColor.new("White")
  4845. v.Material = "Neon"
  4846. end
  4847. end
  4848. for i, v in pairs(extrawingmod2:GetChildren()) do
  4849. if v:IsA("Part") then
  4850. v.Transparency = 0
  4851. v.BrickColor = BrickColor.new("Black")
  4852. v.Material = "Neon"
  4853. end
  4854. end
  4855. elseif k == "f" and attack == false and ModeOfGlitch == 10134 then
  4856. resetmode()
  4857. end
  4858. if k == "g" and attack == false and ModeOfGlitch ~= 10134 then
  4859. ModeOfGlitch = 10134
  4860. storehumanoidWS = 35
  4861. hum.WalkSpeed = 35
  4862. rainbowmode = false
  4863. chaosmode = false
  4864. flamemode = false
  4865. RecolorTextAndRename("Shapeshifter",BrickColor.new("White").Color,BrickColor.new("White").Color,"Antique")
  4866. newTheme("rbxassetid://745717581", 0, 1, 2)
  4867. MAINRUINCOLOR = BrickColor.new("White")
  4868. for i, v in pairs(mw2:GetChildren()) do
  4869. if v:IsA("Part") then
  4870. v.BrickColor = BrickColor.new("White")
  4871. v.Material = "Neon"
  4872. end
  4873. end
  4874. for i, v in pairs(mw1:GetChildren()) do
  4875. if v:IsA("Part") then
  4876. v.Transparency = 0
  4877. v.BrickColor = BrickColor.new("White")
  4878. v.Material = "Neon"
  4879. end
  4880. end
  4881. for i, v in pairs(m:GetChildren()) do
  4882. if v:IsA("Part") then
  4883. v.BrickColor = BrickColor.new("White")
  4884. v.Material = "Neon"
  4885. end
  4886. end
  4887. for i, v in pairs(m2:GetChildren()) do
  4888. if v:IsA("Part") then
  4889. v.BrickColor = BrickColor.new("White")
  4890. v.Material = "Neon"
  4891. end
  4892. end
  4893. for i, v in pairs(m3:GetChildren()) do
  4894. if v:IsA("Part") then
  4895. v.BrickColor = BrickColor.new("White")
  4896. v.Material = "Neon"
  4897. end
  4898. end
  4899. for i, v in pairs(extrawingmod1:GetChildren()) do
  4900. if v:IsA("Part") then
  4901. v.Transparency = 0
  4902. v.BrickColor = BrickColor.new("White")
  4903. v.Material = "Neon"
  4904. end
  4905. end
  4906. for i, v in pairs(extrawingmod2:GetChildren()) do
  4907. if v:IsA("Part") then
  4908. v.Transparency = 0
  4909. v.BrickColor = BrickColor.new("White")
  4910. v.Material = "Neon"
  4911. end
  4912. end
  4913. elseif k == "g" and attack == false and ModeOfGlitch == 10134 then
  4914. resetmode()
  4915. end
  4916. if ModeOfGlitch == 10134 then
  4917. sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
  4918. sphere2(8,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.new("White"),Color3.new(0,1,0))
  4919. sphereMK(2,-0.5,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),8)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,0.5,20,-0.0075,MAINRUINCOLOR,0)
  4920. end
  4921. if k == "l" and toggleTag == false then
  4922. toggleTag = true
  4923. text.TextTransparency = 0
  4924. text.TextStrokeTransparency = 0
  4925. elseif k == "l" and toggleTag == true then
  4926. toggleTag = false
  4927. text.TextTransparency = 1
  4928. text.TextStrokeTransparency = 1
  4929. end
  4930. if k == "z" and attack == false and ModeOfGlitch == 1 then
  4931. ExtinctiveHeartbreak()
  4932. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  4933. PureBomb()
  4934. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  4935. scattercorrupt()
  4936. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  4937. ChaosGroundStrike()
  4938. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  4939. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  4940. UniversalSpark()
  4941. elseif k == "l" and attack == false and ModeOfGlitch == 1000000 then
  4942. scattercorrupt()
  4943. wait(1)
  4944. yinyangi()
  4945. elseif k == "l" and attack == false and ModeOfGlitch == 5 then
  4946. scattercorrupt()
  4947. scattercorrupt()
  4948. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  4949. yinyangi()
  4950. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  4951. Wip()
  4952. end
  4953. if k == "l" and attack == false and ModeOfGlitch == 4 then
  4954. ChaosBegone()
  4955. end
  4956. end)
  4957. coroutine.resume(coroutine.create(function()
  4958. while true do
  4959. swait(2)
  4960. if rainbowmode == true or ModeOfGlitch == 6 then
  4961. sphereMK(1, 1, "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)
  4962. end
  4963. end
  4964. end))
  4965. coroutine.resume(coroutine.create(function()
  4966. while true do
  4967. swait(0.5)
  4968. if ModeOfGlitch == 1000000 then
  4969. sphereMK(5, 1, "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)
  4970. end
  4971. end
  4972. end))
  4973. coroutine.resume(coroutine.create(function()
  4974. while true do
  4975. swait()
  4976. if chaosmode == true then
  4977. lolwut = {"Ender","eNdER","ENDER","enDer","ENdEr","eNdEr","EnDeR","EnDER",}
  4978. Sanicz = lolwut[math.random(1,#lolwut)]
  4979. RecolorTextAndRename(Sanicz,BrickColor.Random().Color,BrickColor.Random().Color,"Fantasy")
  4980. MAINRUINCOLOR = BrickColor.Random()
  4981. end
  4982. end
  4983. end))
  4984. coroutine.resume(coroutine.create(function()
  4985. while true do
  4986. swait(2)
  4987. if chaosmode == true then
  4988. RecolorTextAndRename("Ender", Color3.new(0, 0, 0), BrickColor.random().Color,"Fantasy")
  4989. for i, v in pairs(mw1:GetChildren()) do
  4990. if v:IsA("Part") then
  4991. v.Transparency = 0.75
  4992. v.BrickColor = BrickColor.random()
  4993. v.Material = "Neon"
  4994. end
  4995. end
  4996. for i, v in pairs(m2:GetChildren()) do
  4997. if v:IsA("Part") then
  4998. v.BrickColor = BrickColor.random()
  4999. v.Material = "Neon"
  5000. for i, v in pairs(extrawingmod1:GetChildren()) do
  5001. if v:IsA("Part") then
  5002. v.Transparency = 0.75
  5003. v.BrickColor = BrickColor.random()
  5004. v.Material = "Neon"
  5005. end
  5006. end
  5007. for i, v in pairs(extrawingmod2:GetChildren()) do
  5008. if v:IsA("Part") then
  5009. v.Transparency = 0.75
  5010. v.BrickColor = BrickColor.new("Really black")
  5011. v.Material = "Neon"
  5012. end
  5013. end
  5014. end
  5015. end
  5016. end
  5017. end
  5018. end))
  5019. coroutine.resume(coroutine.create(function()
  5020. while true do
  5021. swait(2)
  5022. if ModeOfGlitch == 66 then
  5023. RecolorTextAndRename("ENDED", Color3.new(0, 0, 0), BrickColor.random().Color,"Arial")
  5024. for i, v in pairs(mw2:GetChildren()) do
  5025. if v:IsA("Part") then
  5026. v.Transparency = 0.75
  5027. v.BrickColor = BrickColor.random()
  5028. v.Material = "Neon"
  5029. end
  5030. end
  5031. for i, v in pairs(mw1:GetChildren()) do
  5032. if v:IsA("Part") then
  5033. v.Transparency = 0.75
  5034. v.BrickColor = BrickColor.random()
  5035. v.Material = "Neon"
  5036. end
  5037. end
  5038. for i, v in pairs(m:GetChildren()) do
  5039. if v:IsA("Part") then
  5040. v.Transparency = 0.75
  5041. v.BrickColor = BrickColor.random()
  5042. v.Material = "Neon"
  5043. end
  5044. end
  5045. for i, v in pairs(m2:GetChildren()) do
  5046. if v:IsA("Part") then
  5047. v.Transparency = 0.75
  5048. v.BrickColor = BrickColor.random()
  5049. v.Material = "Neon"
  5050. end
  5051. end
  5052. for i, v in pairs(m3:GetChildren()) do
  5053. if v:IsA("Part") then
  5054. v.Transparency = 0.75
  5055. v.BrickColor = BrickColor.random()
  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.75
  5062. v.BrickColor = BrickColor.random()
  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.75
  5069. v.BrickColor = BrickColor.random()
  5070. v.Material = "Neon"
  5071. end
  5072. end
  5073. end
  5074. end
  5075. end))
  5076. Humanoid.Name = "STARGLITCHER"
  5077. Humanoid.MaxHealth = math.huge
  5078. Humanoid.Health = math.huge
  5079. Instance.new("ForceField", char).Visible = false
  5080. Humanoid.Animator.Parent = nil
  5081. idleanim = 0.4
  5082. while true do
  5083. if rainbowmode == true then
  5084. RecolorTextAndRename("Rainer", Color3.new(r / 255, g / 255, b / 255), Color3.new(r / 500, g / 500, b / 500),"Legacy")
  5085. MAINRUINCOLOR = BrickColor.new("White")
  5086. for i, v in pairs(m:GetChildren()) do
  5087. if v:IsA("Part") then
  5088. v.Color = Color3.new(r / 255, g / 255, b / 255)
  5089. end
  5090. end
  5091. for i, v in pairs(m2:GetChildren()) do
  5092. if v:IsA("Part") then
  5093. v.Color = Color3.new(r / 255, g / 255, b / 255)
  5094. end
  5095. end
  5096. for i, v in pairs(m3:GetChildren()) do
  5097. if v:IsA("Part") then
  5098. v.Color = Color3.new(r / 255, g / 255, b / 255)
  5099. end
  5100. end
  5101. for i, v in pairs(mw1:GetChildren()) do
  5102. if v:IsA("Part") then
  5103. v.Color = Color3.new(r / 255, g / 255, b / 255)
  5104. v.Material = "Neon"
  5105. end
  5106. end
  5107. for i, v in pairs(mw2:GetChildren()) do
  5108. if v:IsA("Part") then
  5109. v.Color = Color3.new(r / 255, g / 255, b / 255)
  5110. v.Material = "Neon"
  5111. end
  5112. end
  5113. end
  5114. CameraManager()
  5115. swait()
  5116. if ModeOfGlitch ~= 1 and ModeOfGlitch ~= 2 and ModeOfGlitch ~= 3 and ModeOfGlitch ~= 4 and ModeOfGlitch ~= 5 and ModeOfGlitch ~= 6 and ModeOfGlitch ~= 7 and ModeOfGlitch ~= 10134 and ModeOfGlitch ~= 34101 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 66 and ModeOfGlitch ~= 8787 and ModeOfGlitch ~= 6127843 and ModeOfGlitch ~= 6127843 and ModeOfGlitch ~= 101909 and ModeOfGlitch ~= 101 then
  5117. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.11)
  5118. handlexweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.11)
  5119. lwing1weld.C1=clerp(lwing1weld.C1,cf(0 + 9.1 * math.cos(sine / 170),1.4 + 0.35 * math.cos(sine / 21),0)*angles(math.rad(0 + 3 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 35)),math.rad(90 + 3600 * math.cos(sine / 360))),.3)
  5120. lwing2weld.C1=clerp(lwing2weld.C1,cf(0 + 9.1 * math.cos(sine / 170),1.4 + 0.35 * math.cos(sine / 21),0)*angles(math.rad(0 + 3 * math.cos(sine / 90)),math.rad(0 - 2 * math.cos(sine / 41)),math.rad(147.5 + 3600 * math.cos(sine / 360))),.3)
  5121. lwing3weld.C1=clerp(lwing3weld.C1,cf(0 + 9.1 * math.cos(sine / 170),1.4 + 0.35 * math.cos(sine / 21),0)*angles(math.rad(0 + 3 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 55)),math.rad(32.5 + 3600 * math.cos(sine / 360))),.3)
  5122. rwing1weld.C1=clerp(rwing1weld.C1,cf(0 + 9.1 * math.cos(sine / 170),1.4 + 0.35 * math.cos(sine / 21),0)*angles(math.rad(0 + 3 * math.cos(sine / 30)),math.rad(0 - 2 * math.cos(sine / 38)),math.rad(-90 + 3600 * math.cos(sine / 360))),.3)
  5123. rwing2weld.C1=clerp(rwing2weld.C1,cf(0 + 9.1 * math.cos(sine / 170),1.4 + 0.35 * math.cos(sine / 21),0)*angles(math.rad(0 + 3 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 39)),math.rad(-147.5 + 3600 * math.cos(sine / 360))),.3)
  5124. rwing3weld.C1=clerp(rwing3weld.C1,cf(0 + 9.1 * math.cos(sine / 170),1.4 + 0.35 * math.cos(sine / 21),0)*angles(math.rad(0 + 3 * math.cos(sine / 80)),math.rad(0 - 2 * math.cos(sine / 60)),math.rad(-35.5 + 3600 * math.cos(sine / 360))),.3)
  5125. elseif ModeOfGlitch == 34101 or ModeOfGlitch == 8787 then
  5126. handleweld.C0=clerp(handleweld.C0,cf(0,-1,-0.4)*angles(math.rad(32),math.rad(0),math.rad(0)),.3)
  5127. lwing1weld.C1=clerp(lwing1weld.C1,cf(0 + 12 * math.cos(sine / 210),0.50 + 9 * math.cos(sine / 25),0)*angles(math.rad(0 + 3 * math.cos(sine / 80)),math.rad(0 - 3 * math.cos(sine / 40)),math.rad(0 + 5000 * math.cos(sine / 360))),.3)
  5128. lwing2weld.C1=clerp(lwing2weld.C1,cf(0 + 12 * math.cos(sine / 210),0.50 + 9 * math.cos(sine / 25),0)*angles(math.rad(0 + 3 * math.cos(sine / 120)),math.rad(0 - 3 * math.cos(sine / 59)),math.rad(200 + 5000 * math.cos(sine / 360))),.3)
  5129. lwing3weld.C1=clerp(lwing3weld.C1,cf(0 + 12 * math.cos(sine / 210),0.50 + 9 * math.cos(sine / 25),0)*angles(math.rad(0 + 3 * math.cos(sine / 50)),math.rad(0 - 3 * math.cos(sine / 86)),math.rad(-200 + 5000 * math.cos(sine / 360))),.3)
  5130. rwing1weld.C1=clerp(rwing1weld.C1,cf(0 + 12 * math.cos(sine / 380),-0.50 - 1 * math.cos(sine / 25),0)*angles(math.rad(0 + 3 * math.cos(sine / 80)),math.rad(0 - 3 * math.cos(sine / 40)),math.rad(0 - 5000 * math.cos(sine / 720))),.3)
  5131. rwing2weld.C1=clerp(rwing2weld.C1,cf(0 + 12 * math.cos(sine / 380),-0.50 - 1 * math.cos(sine / 25),0)*angles(math.rad(0 + 3 * math.cos(sine / 120)),math.rad(0 - 3 * math.cos(sine / 59)),math.rad(200 - 5000 * math.cos(sine / 720))),.3)
  5132. rwing3weld.C1=clerp(rwing3weld.C1,cf(0 + 12 * math.cos(sine / 380),-0.50 - 1 * math.cos(sine / 25),0)*angles(math.rad(0 + 3 * math.cos(sine / 50)),math.rad(0 - 3 * math.cos(sine / 86)),math.rad(-200 - 5000 * math.cos(sine / 720))),.3)
  5133. lwing4weld.C1=clerp(lwing4weld.C1,cf(0 - 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 0.75 * math.cos(sine / 50)),math.rad(0 - 0.75 * math.cos(sine / 36)),math.rad(90 - 3600 * math.cos(sine / 50))),.3)
  5134. lwing5weld.C1=clerp(lwing5weld.C1,cf(0 - 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 0.75 * math.cos(sine / 70)),math.rad(0 - 0.75 * math.cos(sine / 37)),math.rad(147.5 - 3600 * math.cos(sine / 70))),.3)
  5135. lwing6weld.C1=clerp(lwing6weld.C1,cf(0 - 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 0.75 * math.cos(sine / 60)),math.rad(0 - 0.75 * math.cos(sine / 51)),math.rad(32.5 - 3600 * math.cos(sine / 60))),.3)
  5136. rwing4weld.C1=clerp(rwing4weld.C1,cf(0 - 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 0.75 * math.cos(sine / 50)),math.rad(0 - 0.75 * math.cos(sine / 36)),math.rad(-90 - 3600 * math.cos(sine / 50))),.3)
  5137. rwing5weld.C1=clerp(rwing5weld.C1,cf(0 - 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 0.75 * math.cos(sine / 70)),math.rad(0 - 0.75 * math.cos(sine / 37)),math.rad(-147.5 - 3600 * math.cos(sine / 70))),.3)
  5138. rwing6weld.C1=clerp(rwing6weld.C1,cf(0 - 2.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 0.75 * math.cos(sine / 60)),math.rad(0 - 0.75 * math.cos(sine / 51)),math.rad(-32.5 - 3600 * math.cos(sine / 60))),.3)
  5139. elseif ModeOfGlitch == 5 or ModeOfGlitch == 3 then
  5140. handlexweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.12)
  5141. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.12)
  5142. lwing1weld.C1=clerp(lwing1weld.C1,cf(0,5.5 + 0.75 * math.cos(sine / 21),1)*angles(math.rad(0 + 5 + 5 * math.cos(sine / 3)),math.rad(0 - 1),1 + 1),.3)
  5143. lwing2weld.C1=clerp(lwing2weld.C1,cf(0,5.5 + 0.75 * math.cos(sine / 21),1)*angles(math.rad(0 + 5 * math.cos(sine / 3)),math.rad(0 - 2),1 + 2),.3)
  5144. lwing3weld.C1=clerp(lwing3weld.C1,cf(0,5.5 + 0.75 * math.cos(sine / 21),1)*angles(math.rad(0 + 5 * math.cos(sine / 3)),math.rad(0 - 3),1 + 3),.3)
  5145. rwing1weld.C1=clerp(rwing1weld.C1,cf(0,5.5 + 0.75 * math.cos(sine / 21),1)*angles(math.rad(0 + 5 * math.cos(sine / 3)),math.rad(0 - 4),1 + 4),.3)
  5146. rwing2weld.C1=clerp(rwing2weld.C1,cf(0,5.5 + 0.75 * math.cos(sine / 21),1)*angles(math.rad(0 + 5 * math.cos(sine / 3)),math.rad(0 - 5),1 + 5),.3)
  5147. rwing3weld.C1=clerp(rwing3weld.C1,cf(0,5.5 + 0.75 * math.cos(sine / 21),1)*angles(math.rad(0 + 5 * math.cos(sine / 3)),math.rad(0 - 6),1 + 6),.3)
  5148. lwing4weld.C1=clerp(lwing4weld.C1,cf(2 - 7.5 * math.cos(sine / 380),1.5 + 0.85 * math.cos(sine / 27),-3)*angles(math.rad(0 + 1 * math.cos(sine / 1)),math.rad(0 - 7),1 + 7),.3)
  5149. lwing5weld.C1=clerp(lwing5weld.C1,cf(2 - 7.5 * math.cos(sine / 380),1.5 + 0.85 * math.cos(sine / 28),-3)*angles(math.rad(0 + 1 * math.cos(sine / 1)),math.rad(0 - 8),1 + 8),.3)
  5150. lwing6weld.C1=clerp(lwing6weld.C1,cf(2 - 7.5 * math.cos(sine / 380),1.5 + 0.85 * math.cos(sine / 29),-3)*angles(math.rad(0 + 1 * math.cos(sine / 1)),math.rad(0 - 9),1 + 9),.3)
  5151. rwing4weld.C1=clerp(rwing4weld.C1,cf(2 - 7.5 * math.cos(sine / 380),1.5 + 0.85 * math.cos(sine / 30),-3)*angles(math.rad(0 + 1 * math.cos(sine / 1)),math.rad(0 - 10),1 + 10),.3)
  5152. rwing5weld.C1=clerp(rwing5weld.C1,cf(2 - 7.5 * math.cos(sine / 380),1.5 + 0.85 * math.cos(sine / 31),-3)*angles(math.rad(0 + 1 * math.cos(sine / 1)),math.rad(0 - 11),1 + 11),.3)
  5153. rwing6weld.C1=clerp(rwing6weld.C1,cf(2 - 7.5 * math.cos(sine / 380),1.5 + 0.85 * math.cos(sine / 32),-3)*angles(math.rad(0 + 1 * math.cos(sine / 1)),math.rad(0 - 12),1 + 12),.3)
  5154. elseif ModeOfGlitch == 10134 or ModeOfGlitch == 4 or ModeOfGlitch == 1 or ModeOfGlitch == 101909 or ModeOfGlitch == 2 or ModeOfGlitch == 1000000 or ModeOfGlitch == 101 then
  5155. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.12)
  5156. handlexweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.12)
  5157. lwing1weld.C1=clerp(lwing1weld.C1,cf(0 + 32 * math.cos(sine / 250),0.50 + 12 * math.cos(sine / 25),0)*angles(math.rad(0 + 3 * math.cos(sine / 80)),math.rad(0 - 3 * math.cos(sine / 40)),math.rad(0 + 5000 * math.cos(sine / 360))),.3)
  5158. lwing2weld.C1=clerp(lwing2weld.C1,cf(0 + 32 * math.cos(sine / 250),0.50 + 12 * math.cos(sine / 25),0)*angles(math.rad(0 + 3 * math.cos(sine / 120)),math.rad(0 - 3 * math.cos(sine / 59)),math.rad(200 + 5000 * math.cos(sine / 360))),.3)
  5159. lwing3weld.C1=clerp(lwing3weld.C1,cf(0 + 32 * math.cos(sine / 250),0.50 + 12 * math.cos(sine / 25),0)*angles(math.rad(0 + 3 * math.cos(sine / 50)),math.rad(0 - 3 * math.cos(sine / 86)),math.rad(-200 + 5000 * math.cos(sine / 360))),.3)
  5160. rwing1weld.C1=clerp(rwing1weld.C1,cf(0 + 32 * math.cos(sine / 390),-0.50 - 4 * math.cos(sine / 25),0)*angles(math.rad(0 + 3 * math.cos(sine / 80)),math.rad(0 - 3 * math.cos(sine / 40)),math.rad(0 - 5000 * math.cos(sine / 720))),.3)
  5161. rwing2weld.C1=clerp(rwing2weld.C1,cf(0 + 32 * math.cos(sine / 390),-0.50 - 4 * math.cos(sine / 25),0)*angles(math.rad(0 + 3 * math.cos(sine / 120)),math.rad(0 - 3 * math.cos(sine / 59)),math.rad(200 - 5000 * math.cos(sine / 720))),.3)
  5162. rwing3weld.C1=clerp(rwing3weld.C1,cf(0 + 32 * math.cos(sine / 390),-0.50 - 4 * math.cos(sine / 25),0)*angles(math.rad(0 + 3 * math.cos(sine / 50)),math.rad(0 - 3 * math.cos(sine / 86)),math.rad(-200 - 5000 * math.cos(sine / 720))),.3)
  5163. lwing4weld.C1=clerp(lwing4weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(90 - 3600 * math.cos(sine / 360))),.3)
  5164. lwing5weld.C1=clerp(lwing5weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(147.5 - 3600 * math.cos(sine / 360))),.3)
  5165. lwing6weld.C1=clerp(lwing6weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(32.5 - 3600 * math.cos(sine / 360))),.3)
  5166. rwing4weld.C1=clerp(rwing4weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(-90 - 3600 * math.cos(sine / 360))),.3)
  5167. rwing5weld.C1=clerp(rwing5weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(-147.5 - 3600 * math.cos(sine / 360))),.3)
  5168. rwing6weld.C1=clerp(rwing6weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(-32.5 - 3600 * math.cos(sine / 360))),.3)
  5169. end
  5170. sine = sine + change
  5171. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  5172. local velderp = RootPart.Velocity.y
  5173. hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  5174. if equipped == true or equipped == false then
  5175. if attack == false then
  5176. idle = idle + 1
  5177. else
  5178. idle = 0
  5179. end
  5180. if not (idle >= 500) or attack == false then
  5181. end
  5182. if RootPart.Velocity.y > 1 and hitfloor == nil then
  5183. Anim = "Jump"
  5184. if attack == false then
  5185. 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)), 0.1)
  5186. 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)), 0.1)
  5187. 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)), 0.1)
  5188. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.1)
  5189. 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)), 0.1)
  5190. 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)), 0.1)
  5191. end
  5192. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  5193. Anim = "Fall"
  5194. if attack == false then
  5195. 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)), 0.1)
  5196. 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)), 0.1)
  5197. 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)), 0.1)
  5198. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  5199. 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)), 0.1)
  5200. 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)), 0.1)
  5201. end
  5202. elseif torvel < 1 and hitfloor ~= nil then
  5203. Anim = "Idle"
  5204. if attack == false then
  5205. if ModeOfGlitch == 1 then
  5206. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(32 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1)
  5207. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-4 - 7 * math.cos(sine / 39))),.1)
  5208. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(15 + 8 * math.cos(sine / 31))),.1)
  5209. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(32 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  5210. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  5211. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(32 + 6 * math.cos(sine / 72)),math.rad(2 - 4 * math.cos(sine / 58)),math.rad(14 + 1 * math.cos(sine / 45))),.1)
  5212. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(32 - 7 * math.cos(sine / 66)),math.rad(6 - 5 * math.cos(sine / 59)),math.rad(-9 - 3 * math.cos(sine / 45))),.1)
  5213. elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 or ModeOfGlitch == 101 then
  5214. 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))), 0.1)
  5215. 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))), 0.1)
  5216. 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)), 0.1)
  5217. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(0)), 0.1)
  5218. 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))), 0.1)
  5219. 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))), 0.1)
  5220. elseif ModeOfGlitch == 3 then
  5221. 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))), 0.1)
  5222. 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))), 0.1)
  5223. 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)), 0.1)
  5224. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(25 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(20)), 0.1)
  5225. 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))), 0.1)
  5226. LW.C0 = clerp(LW.C0, cf(-1.5, 0.75, 0) * angles(math.rad(170), math.rad(-20), math.rad(20)), 0.1)
  5227. elseif ModeOfGlitch == 4 then
  5228. 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)), 0.1)
  5229. 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)), 0.1)
  5230. 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)), 0.1)
  5231. 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))), 0.1)
  5232. 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))), 0.1)
  5233. 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))), 0.1)
  5234. elseif ModeOfGlitch == 5 then
  5235. 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))), 0.1)
  5236. 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))), 0.1)
  5237. 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)), 0.1)
  5238. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(0)), 0.1)
  5239. 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)), 0.1)
  5240. 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)), 0.1)
  5241. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  5242. 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)), 0.1)
  5243. 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)), 0.1)
  5244. 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)), 0.1)
  5245. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15), math.rad(0), math.rad(0)), 0.1)
  5246. 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))), 0.1)
  5247. 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))), 0.1)
  5248. elseif ModeOfGlitch == 101909 then
  5249. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(8 - 6 * math.cos(sine / 67)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-18 - 5 * math.cos(sine / 32))),.1)
  5250. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-15 - 8 * math.cos(sine / 74)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(31 + 8 * math.cos(sine / 38))),.1)
  5251. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(-21 - 2 * math.cos(sine / 32)),math.rad(8),math.rad(0)),.1)
  5252. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 6 * math.cos(sine / 37)),math.rad(-14 + 5 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  5253. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-24 + 9 * math.cos(sine / 72)),math.rad(3 - 5 * math.cos(sine / 58)),math.rad(38 + 7 * math.cos(sine / 45))),.1)
  5254. LW.C0=clerp(LW.C0,cf(-0.8,0.35 + 0.025 * math.cos(sine / 45),-0.75)*angles(math.rad(160 - 2 * math.cos(sine / 66)),math.rad(5 - 8 * math.cos(sine / 59)),math.rad(87 - 3 * math.cos(sine / 45))),.1)
  5255. elseif ModeOfGlitch == 8787 then
  5256. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) - 0.03 * math.cos(sine / 45),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5 + 3 * math.cos(sine / 45)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1)
  5257. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) + 0.03 * math.cos(sine / 45),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 3 * math.cos(sine / 45)),math.rad(5),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  5258. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.03 * math.cos(sine / 45),0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0 + 3 * math.cos(sine / 45)),math.rad(0)),.1)
  5259. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 2.5 * math.cos(sine / 28)),math.rad(0 + 5 * math.cos(sine / 99)),math.rad(0 + 10 * math.cos(sine / 78))),.1)
  5260. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15 + 5 * math.cos(sine / 33)),math.rad(15 + 6 * math.cos(sine / 38)),math.rad(-10 - 3 * math.cos(sine / 42))),.1)
  5261. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.05 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 5 * math.cos(sine / 28))),.1)
  5262. elseif ModeOfGlitch == 34101 then
  5263. RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(0,0,math.rad(0+5*math.cos(sine/16)))*RootCF,.1)
  5264. Torso.Neck.C0 = Torso.Neck.C0:lerp(necko*angles(0,0,-math.rad(0+5*math.cos(sine/16))),.1)
  5265. LH.C0 = LH.C0:lerp(cf(-1-math.rad(0+5*math.cos(sine/16)),-1+math.rad(0+5*math.cos(sine/16)),0)*angles(0,0,-math.rad(0+5*math.cos(sine/16)))*angles(math.rad(-15),math.rad(25),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1)
  5266. RH.C0 = RH.C0:lerp(cf(1-math.rad(0+5*math.cos(sine/16)),-1-math.rad(0+5*math.cos(sine/16)),0)*angles(0,0,-math.rad(0+5*math.cos(sine/16)))*angles(math.rad(0),math.rad(90),math.rad(0)),.1)
  5267. LW.C0 = LW.C0:lerp(cf(-1.5,0.5,0)*cf(0,-.15,0)*angles(math.rad(15),0,math.rad(20)),.1)
  5268. RW.C0 = RW.C0:lerp(cf(1.5,0.5,0)*angles(0,0,math.rad(5+5*math.sin(sine/16))),.1)
  5269. elseif ModeOfGlitch == 10134 then
  5270. sphere2(8,"Add",rleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.new("White"),BrickColor.new("White").Color)
  5271. sphere2(8,"Add",lleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.new("Really black"),BrickColor.new("Really black").Color)
  5272. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1)
  5273. RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1)
  5274. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1)
  5275. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.25 * math.cos(sine / 50),0 + 0.25 * math.cos(sine / 43),6 + 1 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  5276. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  5277. RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(2 - 4 * math.cos(sine / 58)),math.rad(-65 + 1 * math.cos(sine / 45))),.1)
  5278. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(6 - 5 * math.cos(sine / 59)),math.rad(73 - 3 * math.cos(sine / 45))),.1)
  5279. elseif ModeOfGlitch == 66 then
  5280. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),0.6)
  5281. RW.C0=clerp(RW.C0,cf(1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74) + math.random(-1,1)),math.rad(1 - 3 * math.cos(sine / 53) + math.random(-1,1)),math.rad(-15 + 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
  5282. LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(sine / 55) + math.random(-1,1)),math.rad(15 - 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
  5283. RH.C0=clerp(RH.C0,cf(1,0.35 - 0.05 * math.cos(sine / 32),-0.7)*angles(math.rad(-20),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(25 - 2 * math.cos(sine / 32))),.1)
  5284. LH.C0=clerp(LH.C0,cf(-1,-1.125 - 0.05 * math.cos(sine / 32),-0.6)*angles(math.rad(-105),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-25 + 2 * math.cos(sine / 32))),.1)
  5285. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3 + 0.05 * math.cos(sine / 32))*angles(math.rad(7.5 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  5286. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  5287. RW.C0=clerp(RW.C0,cf(1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-15 + 3 * math.cos(sine / 45))),.1)
  5288. LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(15 - 3 * math.cos(sine / 45))),.1)
  5289.  
  5290. end
  5291. end
  5292. elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
  5293. Anim = "Walk"
  5294. if attack == false then
  5295. if ModeOfGlitch == 4 then
  5296. 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))), 0.1)
  5297. 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))), 0.1)
  5298. 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))), 0.1)
  5299. 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))), 0.1)
  5300. 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))), 0.1)
  5301. 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))), 0.1)
  5302. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 or ModeOfGlitch ~= 101 then
  5303. 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))), 0.1)
  5304. 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))), 0.1)
  5305. 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))), 0.1)
  5306. 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))), 0.1)
  5307. 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))), 0.1)
  5308. 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))), 0.1)
  5309. elseif ModeOfGlitch == 66 then
  5310. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
  5311. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1)
  5312. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
  5313. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
  5314. RW.C0=clerp(RW.C0,cf(1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-15 + 3 * math.cos(sine / 45))),.1)
  5315. LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(15 - 3 * math.cos(sine / 45))),.1)
  5316. end
  5317. end
  5318. elseif torvel >= 22 and hitfloor ~= nil then
  5319. Anim = "Run"
  5320. if attack == false then
  5321. if ModeOfGlitch == 1 then
  5322. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2)
  5323. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2)
  5324. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(70),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
  5325. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2)
  5326. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-8 - 4 * math.cos(sine / 59)),math.rad(-20 + 7 * math.cos(sine / 62)),math.rad(20 + 5 * math.cos(sine / 50))),.2)
  5327. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-8 - 3 * math.cos(sine / 55)),math.rad(20 + 8 * math.cos(sine / 67)),math.rad(-20 - 4 * math.cos(sine / 29))),.2)
  5328. elseif ModeOfGlitch == 10134 and ModeOfGlitch ~= 101 then
  5329. sphere2(8,"Add",rleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.new("White"),BrickColor.new("White").Color)
  5330. sphere2(8,"Add",lleg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.new("Really black"),BrickColor.new("Really black").Color)
  5331. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2)
  5332. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2)
  5333. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(70),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
  5334. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2)
  5335. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-8 - 4 * math.cos(sine / 59)),math.rad(-20 + 7 * math.cos(sine / 62)),math.rad(20 + 5 * math.cos(sine / 50))),.2)
  5336. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-8 - 3 * math.cos(sine / 55)),math.rad(20 + 8 * math.cos(sine / 67)),math.rad(-20 - 4 * math.cos(sine / 29))),.2)
  5337. elseif ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 then
  5338. 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))), 0.1)
  5339. 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))), 0.1)
  5340. 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))), 0.1)
  5341. 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))), 0.1)
  5342. 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))), 0.1)
  5343. 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))), 0.1)
  5344. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  5345. 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)
  5346. 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)
  5347. 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)
  5348. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  5349. 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))), 0.2)
  5350. 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))), 0.2)
  5351.  
  5352. elseif ModeOfGlitch == 101909 then
  5353. RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  5354. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  5355. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(25 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 1 * math.cos(sine / 6))),.1)
  5356. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-6 + 2 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 1 * math.cos(sine / 6))),.1)
  5357. RW.C0=clerp(RW.C0,cf(1.5,0.5,0.3)*angles(math.rad(-50 + 10 * math.cos(sine / 3)),math.rad(-10),math.rad(7 + 5 * math.cos(sine / 6))),.1)
  5358. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.3)*angles(math.rad(-50 + 10 * math.cos(sine / 3)),math.rad(10),math.rad(-7 - 5 * math.cos(sine / 6))),.1)
  5359. end
  5360. end
  5361. end
  5362. end
  5363. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement