Advertisement
MastequinGlitcherM0d

????????????????????!>?

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