Advertisement
hjkook

dd

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