Advertisement
5sdfsadgaq5465

starglitchershurikeneditv3

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