Advertisement
Otsakuseed

Testtest

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