Advertisement
Destroy666j

Untitled

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