Advertisement
soubrhomi

star glitcher edit

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