Advertisement
boyinahouse

Untitled

Jun 15th, 2022
7
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 91.23 KB | None | 0 0
  1.  
  2. for i,v in next, game:GetService("Players").LocalPlayer.Character:GetDescendants() do
  3. if v:IsA("BasePart") then
  4. game:GetService("RunService").Heartbeat:connect(function()
  5. v.Velocity = Vector3.new(30,0,0)
  6. end)
  7. end
  8. end
  9.  
  10. Bypass = "death"
  11. loadstring(game:GetObjects("rbxassetid://5325226148")[1].Source)()
  12. local IsDead = false
  13. local StateMover = true
  14. local playerss = workspace.non
  15. local bbv,bullet
  16. if Bypass == "death" then
  17. bullet = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  18. bullet.Transparency = 0
  19. bullet.Massless = true
  20. if bullet:FindFirstChildOfClass("Attachment") then
  21. for _,v in pairs(bullet:GetChildren()) do
  22. if v:IsA("Attachment") then
  23. v:Destroy()
  24. end
  25. end
  26. end
  27.  
  28. bbv = Instance.new("BodyPosition",bullet)
  29. bbv.Position = playerss.Torso.CFrame.p
  30. end
  31.  
  32. if Bypass == "death" then
  33. coroutine.wrap(function()
  34. while true do
  35. if not playerss or not playerss:FindFirstChildOfClass("Humanoid") or playerss:FindFirstChildOfClass("Humanoid").Health <= 0 then IsDead = true; return end
  36. if StateMover then
  37. bbv.Position = playerss.Torso.CFrame.p
  38. bullet.Position = playerss.Torso.CFrame.p
  39. end
  40. game:GetService("RunService").RenderStepped:wait()
  41. end
  42. end)()
  43. end
  44.  
  45. local CDDF = {}
  46. local DamageFling = function(DmgPer)
  47. if IsDead or Bypass ~= "death" or (DmgPer.Name == playerss.Name and DmgPer.Name == "non") or CDDF[DmgPer] or not DmgPer or not DmgPer:FindFirstChildOfClass("Humanoid") or DmgPer:FindFirstChildOfClass("Humanoid").Health <= 0 then return end
  48. CDDF[DmgPer] = true; StateMover = false
  49. bbav = Instance.new("BodyAngularVelocity",bullet)
  50. bbav.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  51. bbav.P = 1000000000000000000000000000
  52. bbav.AngularVelocity = Vector3.new(10000000000000000000000000000000,100000000000000000000000000,100000000000000000)
  53. game:GetService("Debris"):AddItem(bbav,0.1)
  54. bullet.Rotation = playerss.Torso.Rotation
  55. for _=1,15 do
  56. bbv.Position = (DmgPer:FindFirstChild("HumanoidRootPart") and DmgPer:FindFirstChild("HumanoidRootPart") .CFrame.p) or (DmgPer:FindFirstChildOfClass("Part") and DmgPer:FindFirstChildOfClass("Part").CFrame.p)
  57. bullet.Position = (DmgPer:FindFirstChild("HumanoidRootPart") and DmgPer:FindFirstChild("HumanoidRootPart") .CFrame.p) or (DmgPer:FindFirstChildOfClass("Part") and DmgPer:FindFirstChildOfClass("Part").CFrame.p)
  58. wait(0.03)
  59. end
  60. bbv.Position = playerss.Torso.CFrame.p
  61. bullet.Position = playerss.Torso.CFrame.p
  62. CDDF[DmgPer] = false; StateMover = true
  63. end
  64. local script = game:GetObjects("rbxassetid://8344850360")[1]
  65. Player = game:GetService("Players").LocalPlayer
  66. PlayerGui = Player.PlayerGui
  67. Cam = workspace.CurrentCamera
  68. Backpack = Player.Backpack
  69. Character = workspace.non
  70. char = Character
  71. Humanoid = Character.Humanoid
  72. Mouse = Player:GetMouse()
  73. RootPart = Character["HumanoidRootPart"]
  74. Torso = Character["Torso"]
  75. Head = Character["Head"]
  76. RightArm = Character["Right Arm"]
  77. LeftArm = Character["Left Arm"]
  78. RightLeg = Character["Right Leg"]
  79. LeftLeg = Character["Left Leg"]
  80. RootJoint = RootPart["RootJoint"]
  81. Neck = Torso["Neck"]
  82. RightShoulder = Torso["Right Shoulder"]
  83. LeftShoulder = Torso["Left Shoulder"]
  84. RightHip = Torso["Right Hip"]
  85. LeftHip = Torso["Left Hip"]
  86. local TIME = 0
  87. local sick = Instance.new("Sound",Torso)
  88. local ISFLYING = false
  89. sick.Parent = Torso
  90. sick:Play()
  91. sick.Volume = 8.2
  92. sick.Pitch = 1
  93. sick.SoundId = "rbxassetid://6049110238"
  94. sick.Name = "Dead"
  95. sick.Looped = true
  96. IT = Instance.new
  97. CF = CFrame.new
  98. VT = Vector3.new
  99. RAD = math.rad
  100. C3 = Color3.new
  101. UD2 = UDim2.new
  102. BRICKC = BrickColor.new
  103. ANGLES = CFrame.Angles
  104. EULER = CFrame.fromEulerAnglesXYZ
  105. COS = math.cos
  106. ACOS = math.acos
  107. SIN = math.sin
  108. ASIN = math.asin
  109. ABS = math.abs
  110. MRANDOM = math.random
  111. FLOOR = math.floor
  112. local sine = 5
  113. local stopeverything = false
  114.  
  115. --//=================================\\
  116. --|| USEFUL VALUES
  117. --\\=================================//
  118.  
  119. --
  120.  
  121. for i,v in pairs(char:GetChildren()) do -- gets all ur characters children
  122. if v:IsA("Accessory") and v.Name == "MeshPartAccessory" then -- dex name for the hat
  123. v.Name = "MeshPartAccessory" -- name it whatever you want
  124. end
  125. end
  126.  
  127. char["MeshPartAccessory"].Handle.AccessoryWeld:Destroy() -- destroys the accessoryweld
  128.  
  129.  
  130. att0 = Instance.new("Attachment",char["MeshPartAccessory"].Handle) -- creates a attachment into the hat
  131. att0.Orientation = Vector3.new(50, 90, 0) -- rotation
  132. att0.Position = Vector3.new(2.7, 1.9, 0) -- position -- position
  133.  
  134. att1 = Instance.new("Attachment",char["Right Arm"]) -- what body part that the hat should be attached to (to make it work with r15 go down
  135. -- make it a r15 body part name or just do humanoidroopart
  136.  
  137. ap = Instance.new("AlignPosition",char["MeshPartAccessory"].Handle) -- align position
  138. ap.Attachment0 = att0
  139. ap.Attachment1 = att1
  140. ap.RigidityEnabled = true -- if its false it will make the hat be wobbly
  141.  
  142.  
  143. ao = Instance.new("AlignOrientation",char["MeshPartAccessory"].Handle) -- align rotation
  144. ao.Attachment0 = att0
  145. ao.Attachment1 = att1
  146. ao.RigidityEnabled = true -- if its false it will make the hat be wobbly
  147. local Torsovelocity = (RootPart.Velocity * Vector3.new(1,0,1)).Magnitude
  148. local antivoid = nil
  149. local alreadyfixing = false
  150. local NeckSnap = false
  151. Animation_Speed = 2--You can change the animation speed. But i reccomend 3
  152. local FORCERESET = false
  153. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  154. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  155. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  156. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  157. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  158. local DAMAGEMULTIPLIER = 1
  159. local ANIM = "Idle"
  160. local ATTACK = false
  161. local EQUIPPED = false
  162. local HOLD = true
  163. local COMBO = 3
  164. local Rooted = false
  165. local SINE = 5
  166. local KEYHOLD = false
  167. local CHANGE = 2 / Animation_Speed
  168. local WALKINGANIM = false
  169. local VALUE1 = false
  170. local VALUE2 = false
  171. local ROBLOXIDLEANIMATION = IT("Animation")
  172. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  173. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  174. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  175. local Effects = IT("Folder", Character)
  176. Effects.Name = "Effects"
  177. local ANIMATOR = Humanoid.Animator
  178. local ANIMATE = Character:FindFirstChild("Animate")
  179. local UNANCHOR = true
  180. local TOBANISH = {}
  181. script.Parent = PlayerGui
  182. WalkSpeed= 16
  183. local mde = "LC"
  184. local Sine = 5
  185. local antivoid = nil
  186. local Flying = false
  187. local Falling = false
  188. local W = false
  189. local A = false
  190. local S = false
  191. local D = false
  192. local Services = {"RunService","GuiService","Stats","SoundService","LogService","ContentProvider","KeyframeSequenceProvider","Chat","MarketplaceService","Players","PointsService","AdService","NotificationService","ReplicatedFirst","HttpRbxApiService","TweenService","TextService","StarterPlayer","StarterPack","StarterGui","LocalizationService","PolicyService","TeleportService","JointsService","CollectionService","PhysicsService","BadgeService","Geometry","FriendService","InsertService","GamePassService","Debris","TimerService","CookiesService","UserInputService","KeyboardService","MouseService","VRService","ContextActionService","ScriptService","AssetService","TouchInputService","BrowserService","AnalyticsService","ScriptContext","Selection","HttpService","MeshContentProvider","Lighting","SolidModelContentProvider","GamepadService","ControllerService","RuntimeScriptService","HapticService","NetworkClient","ChangeHistoryService","Visit","GuidRegistryService","PermissionsService","Teams","ReplicatedStorage","TestService","SocialService","MemStorageService","GroupService","PathfindingService","VirtualUser"}
  193. local AntiFat = false
  194. local ROOTC02 = CFrame.new(0,0,2 * math.cos(sine/15)) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(180))
  195. local change = 1
  196. local rc0 = CFrame.new() * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(180))
  197. local nc0 = CFrame.new(0,1,0) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(180))
  198. local rscp = CFrame.new(-.5,0,0) * CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
  199. local lscp = CFrame.new(.5,0,0) * CFrame.Angles(math.rad(0),math.rad(-90),math.rad(0))
  200. local targetted = nil
  201. for index, CHILD in pairs(Character:GetChildren()) do
  202. if CHILD:IsA("Shirt") or CHILD:IsA("Pants") then
  203. CHILD:Remove()
  204. end
  205. end
  206. script.Shirt.Parent = Character
  207. script.Pants.Parent = Character
  208.  
  209. --//=================================\\
  210. --\\=================================//
  211.  
  212.  
  213. --//=================================\\
  214. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  215. --\\=================================//
  216.  
  217. ArtificialHB = Instance.new("BindableEvent", script)
  218. ArtificialHB.Name = "ArtificialHB"
  219.  
  220. script:WaitForChild("ArtificialHB")
  221.  
  222. frame = Frame_Speed
  223. tf = 0
  224. allowframeloss = false
  225. tossremainder = false
  226. lastframe = tick()
  227. script.ArtificialHB:Fire()
  228.  
  229. game:GetService("RunService").Heartbeat:connect(function(s, p)
  230. tf = tf + s
  231. if tf >= frame then
  232. if allowframeloss then
  233. script.ArtificialHB:Fire()
  234. lastframe = tick()
  235. else
  236. for i = 1, math.floor(tf / frame) do
  237. script.ArtificialHB:Fire()
  238. end
  239. lastframe = tick()
  240. end
  241. if tossremainder then
  242. tf = 0
  243. else
  244. tf = tf - frame * math.floor(tf / frame)
  245. end
  246. end
  247. end)
  248.  
  249. --//=================================\\
  250. --\\=================================//
  251.  
  252. --//=================================\\
  253. --|| SOME FUNCTIONS
  254. --\\=================================//
  255.  
  256. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  257. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  258. end
  259.  
  260. function PositiveAngle(NUMBER)
  261. if NUMBER >= 0 then
  262. NUMBER = 0
  263. end
  264. return NUMBER
  265. end
  266.  
  267. function NegativeAngle(NUMBER)
  268. if NUMBER <= 0 then
  269. NUMBER = 0
  270. end
  271. return NUMBER
  272. end
  273.  
  274. function Swait(NUMBER)
  275. if NUMBER == 0 or NUMBER == nil then
  276. ArtificialHB.Event:wait()
  277. else
  278. for i = 1, NUMBER do
  279. ArtificialHB.Event:wait()
  280. end
  281. end
  282. end
  283.  
  284. function swait(NUMBER)
  285. if NUMBER == 0 or NUMBER == nil then
  286. ArtificialHB.Event:wait()
  287. else
  288. for i = 1, NUMBER do
  289. ArtificialHB.Event:wait()
  290. end
  291. end
  292. end
  293.  
  294. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  295. local NEWMESH = IT(MESH)
  296. if MESH == "SpecialMesh" then
  297. NEWMESH.MeshType = MESHTYPE
  298. if MESHID ~= "nil" and MESHID ~= "" then
  299. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  300. end
  301. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  302. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  303. end
  304. end
  305. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  306. NEWMESH.Scale = SCALE
  307. NEWMESH.Parent = PARENT
  308. return NEWMESH
  309. end
  310.  
  311. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  312. local NEWPART = IT("Part")
  313. NEWPART.formFactor = FORMFACTOR
  314. NEWPART.Reflectance = REFLECTANCE
  315. NEWPART.Transparency = TRANSPARENCY
  316. NEWPART.CanCollide = false
  317. NEWPART.Locked = true
  318. NEWPART.Anchored = true
  319. if ANCHOR == false then
  320. NEWPART.Anchored = false
  321. end
  322. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  323. NEWPART.Name = NAME
  324. NEWPART.Size = SIZE
  325. NEWPART.Position = Torso.Position
  326. NEWPART.Material = MATERIAL
  327. NEWPART:BreakJoints()
  328. NEWPART.Parent = PARENT
  329. return NEWPART
  330. end
  331.  
  332. local function weldBetween(a, b)
  333. local weldd = Instance.new("ManualWeld")
  334. weldd.Part0 = a
  335. weldd.Part1 = b
  336. weldd.C0 = CFrame.new()
  337. weldd.C1 = b.CFrame:inverse() * a.CFrame
  338. weldd.Parent = a
  339. return weldd
  340. end
  341.  
  342. function QuaternionFromCFrame(cf)
  343. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  344. local trace = m00 + m11 + m22
  345. if trace > 0 then
  346. local s = math.sqrt(1 + trace)
  347. local recip = 0.5 / s
  348. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  349. else
  350. local i = 0
  351. if m11 > m00 then
  352. i = 1
  353. end
  354. if m22 > (i == 0 and m00 or m11) then
  355. i = 2
  356. end
  357. if i == 0 then
  358. local s = math.sqrt(m00 - m11 - m22 + 1)
  359. local recip = 0.5 / s
  360. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  361. elseif i == 1 then
  362. local s = math.sqrt(m11 - m22 - m00 + 1)
  363. local recip = 0.5 / s
  364. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  365. elseif i == 2 then
  366. local s = math.sqrt(m22 - m00 - m11 + 1)
  367. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  368. end
  369. end
  370. end
  371.  
  372. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  373. local xs, ys, zs = x + x, y + y, z + z
  374. local wx, wy, wz = w * xs, w * ys, w * zs
  375. local xx = x * xs
  376. local xy = x * ys
  377. local xz = x * zs
  378. local yy = y * ys
  379. local yz = y * zs
  380. local zz = z * zs
  381. 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))
  382. end
  383.  
  384. function Serv(Name)
  385. return game:GetService(Name)
  386. end
  387.  
  388. function Debris(Instance,Delay)
  389. Serv("Debris"):AddItem(Instance,Delay)
  390. end
  391.  
  392. function QuaternionSlerp(a, b, t)
  393. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  394. local startInterp, finishInterp;
  395. if cosTheta >= 0.0001 then
  396. if (1 - cosTheta) > 0.0001 then
  397. local theta = ACOS(cosTheta)
  398. local invSinTheta = 1 / SIN(theta)
  399. startInterp = SIN((1 - t) * theta) * invSinTheta
  400. finishInterp = SIN(t * theta) * invSinTheta
  401. else
  402. startInterp = 1 - t
  403. finishInterp = t
  404. end
  405. else
  406. if (1 + cosTheta) > 0.0001 then
  407. local theta = ACOS(-cosTheta)
  408. local invSinTheta = 1 / SIN(theta)
  409. startInterp = SIN((t - 1) * theta) * invSinTheta
  410. finishInterp = SIN(t * theta) * invSinTheta
  411. else
  412. startInterp = t - 1
  413. finishInterp = t
  414. end
  415. end
  416. 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
  417. end
  418.  
  419. function Clerp(a, b, t)
  420. local qa = {QuaternionFromCFrame(a)}
  421. local qb = {QuaternionFromCFrame(b)}
  422. local ax, ay, az = a.x, a.y, a.z
  423. local bx, by, bz = b.x, b.y, b.z
  424. local _t = 1 - t
  425. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  426. end
  427.  
  428. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  429. local frame = IT("Frame")
  430. frame.BackgroundTransparency = TRANSPARENCY
  431. frame.BorderSizePixel = BORDERSIZEPIXEL
  432. frame.Position = POSITION
  433. frame.Size = SIZE
  434. frame.BackgroundColor3 = COLOR
  435. frame.BorderColor3 = BORDERCOLOR
  436. frame.Name = NAME
  437. frame.Parent = PARENT
  438. return frame
  439. end
  440.  
  441. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  442. local label = IT("TextLabel")
  443. label.BackgroundTransparency = 1
  444. label.Size = UD2(1, 0, 1, 0)
  445. label.Position = UD2(0, 0, 0, 0)
  446. label.TextColor3 = TEXTCOLOR
  447. label.TextStrokeTransparency = STROKETRANSPARENCY
  448. label.TextTransparency = TRANSPARENCY
  449. label.FontSize = TEXTFONTSIZE
  450. label.Font = TEXTFONT
  451. label.BorderSizePixel = BORDERSIZEPIXEL
  452. label.TextScaled = false
  453. label.Text = TEXT
  454. label.Name = NAME
  455. label.Parent = PARENT
  456. return label
  457. end
  458.  
  459. function NoOutlines(PART)
  460. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  461. end
  462.  
  463. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  464. local NEWWELD = IT(TYPE)
  465. NEWWELD.Part0 = PART0
  466. NEWWELD.Part1 = PART1
  467. NEWWELD.C0 = C0
  468. NEWWELD.C1 = C1
  469. NEWWELD.Parent = PARENT
  470. return NEWWELD
  471. end
  472.  
  473. local S = IT("Sound")
  474. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  475. local NEWSOUND = nil
  476. coroutine.resume(coroutine.create(function()
  477. NEWSOUND = S:Clone()
  478. NEWSOUND.Parent = PARENT
  479. NEWSOUND.Volume = VOLUME
  480. NEWSOUND.Pitch = PITCH
  481. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  482. NEWSOUND:play()
  483. if DOESLOOP == true then
  484. NEWSOUND.Looped = true
  485. else
  486. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  487. NEWSOUND:remove()
  488. end
  489. end))
  490. return NEWSOUND
  491. end
  492.  
  493. function CFrameFromTopBack(at, top, back)
  494. local right = top:Cross(back)
  495. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  496. end
  497.  
  498. function WACKYEFFECT(Table)
  499. local TYPE = (Table.EffectType or "Sphere")
  500. local SIZE = (Table.Size or VT(1,1,1))
  501. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  502. local TRANSPARENCY = (Table.Transparency or 0)
  503. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  504. local CFRAME = (Table.CFrame or Torso.CFrame)
  505. local MOVEDIRECTION = (Table.MoveToPos or nil)
  506. local ROTATION1 = (Table.RotationX or 0)
  507. local ROTATION2 = (Table.RotationY or 0)
  508. local ROTATION3 = (Table.RotationZ or 0)
  509. local MATERIAL = (Table.Material or "Neon")
  510. local COLOR = (Table.Color or C3(1,1,1))
  511. local TIME = (Table.Time or 45)
  512. local SOUNDID = (Table.SoundID or nil)
  513. local SOUNDPITCH = (Table.SoundPitch or nil)
  514. local SOUNDVOLUME = (Table.SoundVolume or nil)
  515. coroutine.resume(coroutine.create(function()
  516. local PLAYSSOUND = false
  517. local SOUND = nil
  518. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  519. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  520. PLAYSSOUND = true
  521. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  522. end
  523. EFFECT.Color = COLOR
  524. local MSH = nil
  525. if TYPE == "Sphere" then
  526. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  527. elseif TYPE == "Block" then
  528. MSH = IT("BlockMesh",EFFECT)
  529. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  530. elseif TYPE == "Wave" then
  531. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  532. elseif TYPE == "Ring" then
  533. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  534. elseif TYPE == "Slash" then
  535. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  536. elseif TYPE == "Round Slash" then
  537. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  538. elseif TYPE == "Swirl" then
  539. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  540. elseif TYPE == "Skull" then
  541. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  542. elseif TYPE == "Crystal" then
  543. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  544. end
  545. if MSH ~= nil then
  546. local MOVESPEED = nil
  547. if MOVEDIRECTION ~= nil then
  548. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  549. end
  550. local GROWTH = SIZE - ENDSIZE
  551. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  552. if TYPE == "Block" then
  553. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  554. else
  555. EFFECT.CFrame = CFRAME
  556. end
  557. for LOOP = 1, TIME+1 do
  558. Swait()
  559. MSH.Scale = MSH.Scale - GROWTH/TIME
  560. if TYPE == "Wave" then
  561. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  562. end
  563. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  564. if TYPE == "Block" then
  565. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  566. else
  567. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  568. end
  569. if MOVEDIRECTION ~= nil then
  570. local ORI = EFFECT.Orientation
  571. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  572. EFFECT.Orientation = ORI
  573. end
  574. end
  575. if PLAYSSOUND == false then
  576. EFFECT:remove()
  577. else
  578. SOUND.Stopped:Connect(function()
  579. EFFECT:remove()
  580. end)
  581. end
  582. else
  583. if PLAYSSOUND == false then
  584. EFFECT:remove()
  585. else
  586. repeat Swait() until SOUND.Playing == false
  587. EFFECT:remove()
  588. end
  589. end
  590. end))
  591. end
  592.  
  593. function MakeForm(PART,TYPE)
  594. if TYPE == "Cyl" then
  595. local MSH = IT("CylinderMesh",PART)
  596. elseif TYPE == "Ball" then
  597. local MSH = IT("SpecialMesh",PART)
  598. MSH.MeshType = "Sphere"
  599. elseif TYPE == "Wedge" then
  600. local MSH = IT("SpecialMesh",PART)
  601. MSH.MeshType = "Wedge"
  602. end
  603. end
  604.  
  605. function SpawnTrail(FROM,TO,BIG)
  606. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  607. MakeForm(TRAIL,"Cyl")
  608. local DIST = (FROM - TO).Magnitude
  609. if BIG == true then
  610. TRAIL.Size = VT(0.5,DIST,0.5)
  611. else
  612. TRAIL.Size = VT(0.25,DIST,0.25)
  613. end
  614. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  615. coroutine.resume(coroutine.create(function()
  616. for i = 1, 5 do
  617. Swait()
  618. TRAIL.Transparency = TRAIL.Transparency + 0.1
  619. end
  620. TRAIL:remove()
  621. end))
  622. end
  623.  
  624. Debris = game:GetService("Debris")
  625.  
  626. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  627. local DIRECTION = CF(StartPos,EndPos).lookVector
  628. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  629. end
  630.  
  631. function turnto(position)
  632. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  633. end
  634.  
  635. local function Notify(StarterText,Text)
  636. for _,v in pairs(game:GetService("Players"):GetPlayers()) do
  637. local ClientMessage = script.Message:Clone()
  638. ClientMessage.Name = StarterText
  639. local ClientText = Instance.new("StringValue")
  640. ClientText.Value = Text
  641. ClientText.Parent = ClientMessage
  642. ClientMessage.Disabled = false
  643. ClientMessage.Parent = v:FindFirstChildOfClass("PlayerGui") or v:FindFirstChildOfClass("Backpack") or Instance.new("Backpack",v)
  644. game:GetService("Debris"):AddItem(ClientMessage,5)
  645. end
  646. end
  647.  
  648. local Chatted = Player.Chatted:Connect(function(Message)
  649. local Message,Message_ = Message,Message
  650. if string.sub(Message,1,3) == "/e " then
  651. Message = string.sub(Message,4)
  652. end
  653. if string.sub(string.lower(Message),1,3) == "lc/" then
  654. Message = string.sub(Message,4)
  655. end
  656. if Message == Message_ then
  657. Notify("[Lightning Cannon V3]: ",Message)
  658. end
  659. end)
  660.  
  661. function onChatted(msg)
  662. Chatted(msg)
  663. end
  664. Player.Chatted:connect(onChatted)
  665.  
  666. local GUN = script.DarkMegaGunnModel
  667. local GUN = GUN:Clone()
  668. GUN.Parent = Character
  669. local GunJoint = CreateWeldOrSnapOrMotor("Weld", GUN.Handle, RightArm, GUN.Handle, CF(.05,-1,-.15)*ANGLES(RAD(-90),RAD(0),RAD(0)), CF(0, 0, 0))
  670. local Hole = GUN.Hole
  671. local Holetwo = GUN.Hole2
  672.  
  673. function Effect(Table)
  674. local TYPE = (Table.EffectType or "Sphere")
  675. local SIZE = (Table.Size or Vector3.new(1,1,1))
  676. local ENDSIZE = (Table.Size2 or Vector3.new())
  677. local TRANSPARENCY = (Table.Transparency or 0)
  678. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  679. local CFRAME = (Table.CFrame or Torso.CFrame)
  680. local MOVEDIRECTION = (Table.MoveToPos or nil)
  681. local ROTATION1 = (Table.RotationX or 0)
  682. local ROTATION2 = (Table.RotationY or 0)
  683. local ROTATION3 = (Table.RotationZ or 0)
  684. local MATERIAL = (Table.Material or "Neon")
  685. local COLOR = (Table.Color or GUN.NeonParts.Color)
  686. local hOK,sOK,vOK = Color3.toHSV(COLOR)
  687. local RAINBOWPART = false
  688. if sOK > .1 then
  689. RAINBOWPART = true
  690. end
  691. local TIME = (Table.Time or 45)
  692. local SOUNDID = (Table.SoundID or nil)
  693. local SOUNDPITCH = (Table.SoundPitch or nil)
  694. local SOUNDVOLUME = (Table.SoundVolume or nil)
  695. local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
  696. local BOOMERANG = (Table.Boomerang or 0)
  697. local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
  698. coroutine.resume(coroutine.create(function()
  699. local PLAYSSOUND = false
  700. local SOUND = nil
  701. local EFFECT = CreatePart(3,Effects,MATERIAL,0,TRANSPARENCY,Color3.new(0,1,1),"Effect",Vector3.new(1,1,1),true)
  702. if RAINBOWPART then
  703. coroutine.resume(coroutine.create(function()
  704. while not stopeverything and EFFECT:IsDescendantOf(game) do
  705. EFFECT.Color = Color3.new(0,1,1)
  706. Swait()
  707. end
  708. end))
  709. end
  710. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  711. PLAYSSOUND = true
  712. SOUND = CreateSound(SOUNDID,EFFECT,SOUNDVOLUME,SOUNDPITCH,false)
  713. end
  714. EFFECT.Color = COLOR
  715. local MSH = nil
  716. if TYPE == "Sphere" then
  717. MSH = CreateMesh("SpecialMesh",EFFECT,"Sphere","","",SIZE,Vector3.new())
  718. elseif TYPE == "Block" or TYPE == "Box" then
  719. MSH = Instance.new("BlockMesh",EFFECT)
  720. MSH.Scale = SIZE
  721. elseif TYPE == "Wave" then
  722. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","20329976","",SIZE,Vector3.new(0,0,-SIZE.X/8))
  723. elseif TYPE == "Ring" then
  724. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","559831844","",Vector3.new(SIZE.X,SIZE.X,.1),Vector3.new())
  725. elseif TYPE == "Slash" then
  726. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","662586858","",Vector3.new(SIZE.X/10,0,SIZE.X/10),Vector3.new())
  727. elseif TYPE == "Round Slash" then
  728. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","662585058","",Vector3.new(SIZE.X/10,0,SIZE.X/10),Vector3.new())
  729. elseif TYPE == "Swirl" then
  730. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","168892432","",SIZE,Vector3.new())
  731. elseif TYPE == "Skull" then
  732. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","4770583","",SIZE,Vector3.new())
  733. elseif TYPE == "Crystal" then
  734. MSH = CreateMesh("SpecialMesh",EFFECT,"FileMesh","9756362","",SIZE,Vector3.new())
  735. end
  736. if MSH ~= nil then
  737. local BOOMR1 = 1+BOOMERANG/50
  738. local BOOMR2 = 1+SIZEBOOMERANG/50
  739. local MOVESPEED = nil
  740. if MOVEDIRECTION ~= nil then
  741. if USEBOOMERANGMATH == true then
  742. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
  743. else
  744. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
  745. end
  746. end
  747. local GROWTH = nil
  748. if USEBOOMERANGMATH == true then
  749. GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
  750. else
  751. GROWTH = (SIZE - ENDSIZE)
  752. end
  753. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  754. if TYPE == "Block" then
  755. EFFECT.CFrame = CFRAME*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  756. else
  757. EFFECT.CFrame = CFRAME
  758. end
  759. if USEBOOMERANGMATH == true then
  760. for LOOP = 1,TIME+1 do
  761. Swait()
  762. MSH.Scale = MSH.Scale - (Vector3.new((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME
  763. if TYPE == "Wave" then
  764. MSH.Offset = Vector3.new(0,0,-MSH.Scale.Z/8)
  765. end
  766. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  767. if TYPE == "Block" then
  768. EFFECT.CFrame = CFRAME*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  769. else
  770. EFFECT.CFrame = EFFECT.CFrame*CFrame.Angles(math.rad(ROTATION1),math.rad(ROTATION2),math.rad(ROTATION3))
  771. end
  772. if MOVEDIRECTION ~= nil then
  773. local ORI = EFFECT.Orientation
  774. EFFECT.CFrame = CFrame.new(EFFECT.Position,MOVEDIRECTION)*CFrame.new(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1)))
  775. EFFECT.Orientation = ORI
  776. end
  777. end
  778. else
  779. for LOOP = 1,TIME+1 do
  780. Swait()
  781. MSH.Scale = MSH.Scale - GROWTH/TIME
  782. if TYPE == "Wave" then
  783. MSH.Offset = Vector3.new(0,0,-MSH.Scale.Z/8)
  784. end
  785. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  786. if TYPE == "Block" then
  787. EFFECT.CFrame = CFRAME*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  788. else
  789. EFFECT.CFrame = EFFECT.CFrame*CFrame.Angles(math.rad(ROTATION1),math.rad(ROTATION2),math.rad(ROTATION3))
  790. end
  791. if MOVEDIRECTION ~= nil then
  792. local ORI = EFFECT.Orientation
  793. EFFECT.CFrame = CFrame.new(EFFECT.Position,MOVEDIRECTION)*CFrame.new(0,0,-MOVESPEED)
  794. EFFECT.Orientation = ORI
  795. end
  796. end
  797. end
  798. EFFECT.Transparency = 1
  799. if PLAYSSOUND == false then
  800. EFFECT:Destroy()
  801. else
  802. repeat if stopeverything then wait(math.huge) end Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  803. EFFECT:Destroy()
  804. end
  805. else
  806. if PLAYSSOUND == false then
  807. EFFECT:Destroy()
  808. else
  809. repeat if stopeverything then wait(math.huge) end Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  810. EFFECT:Destroy()
  811. end
  812. end
  813. end))
  814. end
  815.  
  816. function Lightning(Part0,Part1,Timess,Offset,Color,Timer,sSize,eSize,Trans,Boomer,sBoomer,Trans2)
  817. local magz = (Part0 - Part1).Magnitude
  818. local Times = math.floor(math.clamp(magz/10,1,20))
  819. local curpos = Part0
  820. local trz = {
  821. -Offset,
  822. Offset
  823. }
  824. for i = 1,Times do
  825. local li = Instance.new("Part",Effects)
  826. li.TopSurface = 0
  827. li.Material = "Neon"
  828. li.BottomSurface = 0
  829. li.Anchored = true
  830. li.Locked = true
  831. li.Transparency = 0
  832. li.Color = Color
  833. li.formFactor = "Custom"
  834. li.CanCollide = false
  835. li.Size = Vector3.new(.1,.1,magz/Times)
  836. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  837. local trolpos = CFrame.new(curpos,Part1) * CFrame.new(0,0,magz/Times).p + Offzet
  838. if Times == i then
  839. local magz2 = (curpos - Part1).Magnitude
  840. li.Size = Vector3.new(.1,.1,magz2)
  841. li.CFrame = CFrame.new(curpos,Part1) * CFrame.new(0,0,-magz2/2)
  842. else
  843. li.CFrame = CFrame.new(curpos,trolpos) * CFrame.new(0,0,magz/Times/2)
  844. end
  845. curpos = li.CFrame * CFrame.new(0,0,magz/Times/2).p
  846. li:Destroy()
  847. Effect({Time = Timer,EffectType = "Box",Size = Vector3.new(sSize,sSize,li.Size.Z),Size2 = Vector3.new(eSize,eSize,li.Size.Z),Transparency = Trans,Transparency2 = Trans2 or 1,CFrame = li.CFrame,MoveToPos = nil,RotationX = nil,RotationY = nil,RotationZ = nil,Material = "Neon",Color = li.Color,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = Boomer,Boomerang = 0,SizeBoomerang = sBoomer})
  848. Swait()
  849. end
  850. end
  851.  
  852. local FLYING = false
  853. iyflyspeed = 1
  854. function sFLY()
  855. if not ISFLYING then
  856. FLYING = false
  857. Falling = true
  858. else
  859. local CONTROL = {F = 0,B = 0,L = 0,R = 0,Q = 0,E = 0}
  860. local lCONTROL = {F = 0,B = 0,L = 0,R = 0,Q = 0,E = 0}
  861. local SPEED = 0
  862. local function FLY()
  863. Falling = false
  864. FLYING = true
  865. BG = Instance.new('BodyGyro',RootPart)
  866. BG.Name = "NOC"
  867. BV = Instance.new('BodyVelocity',RootPart)
  868. BV.Name = "NOC"
  869. BG.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  870. BG.P = 1e4
  871. BG.CFrame = RootPart.CFrame
  872. BV.Velocity = Vector3.new()
  873. BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  874. coroutine.resume(coroutine.create(function()
  875. repeat if stopeverything then wait(math.huge) end
  876. game:GetService("RunService").RenderStepped:Wait()
  877. if not alreadyfixing then
  878. if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 or CONTROL.Q + CONTROL.E ~= 0 then
  879. SPEED = 50
  880. elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 or CONTROL.Q + CONTROL.E ~= 0) and SPEED ~= 0 then
  881. SPEED = 0
  882. end
  883. if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 or (CONTROL.Q + CONTROL.E) ~= 0 then
  884. BV.Velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (CONTROL.F + CONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(CONTROL.L + CONTROL.R,(CONTROL.F + CONTROL.B + CONTROL.Q + CONTROL.E) * .2,0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  885. lCONTROL = {F = CONTROL.F,B = CONTROL.B,L = CONTROL.L,R = CONTROL.R}
  886. elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and (CONTROL.Q + CONTROL.E) == 0 and SPEED ~= 0 then
  887. BV.Velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (lCONTROL.F + lCONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(lCONTROL.L + lCONTROL.R,(lCONTROL.F + lCONTROL.B + CONTROL.Q + CONTROL.E) * .2,0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  888. else
  889. BV.Velocity = Vector3.new()
  890. end
  891. BG.CFrame = workspace.CurrentCamera.CoordinateFrame
  892. end
  893. until not FLYING
  894. CONTROL = {F = 0,B = 0,L = 0,R = 0,Q = 0,E = 0}
  895. lCONTROL = {F = 0,B = 0,L = 0,R = 0,Q = 0,E = 0}
  896. SPEED = 0
  897. if not alreadyfixing then
  898. for i,v in pairs(Character:GetDescendants()) do
  899. if v.Name == "NOC" then
  900. v:Destroy()
  901. end
  902. end
  903. RootPart.CFrame = CFrame.new(RootPart.Position)
  904. end
  905. end))
  906. end
  907. local IYMouse = Mouse
  908. IYMouse.KeyDown:connect(function(KEY)
  909. if stopeverything then wait(math.huge) end
  910. if KEY:lower() == 'w' then
  911. CONTROL.F = iyflyspeed
  912. elseif KEY:lower() == 's' then
  913. CONTROL.B = - iyflyspeed
  914. elseif KEY:lower() == 'a' then
  915. CONTROL.L = - iyflyspeed
  916. elseif KEY:lower() == 'd' then
  917. CONTROL.R = iyflyspeed
  918. elseif KEY:lower() == 'e' then
  919. CONTROL.Q = iyflyspeed*2
  920. elseif KEY:lower() == 'q' then
  921. CONTROL.E = -iyflyspeed*2
  922. end
  923. end)
  924. IYMouse.KeyUp:connect(function(KEY)
  925. if stopeverything then wait(math.huge) end
  926. if KEY:lower() == 'w' then
  927. CONTROL.F = 0
  928. elseif KEY:lower() == 's' then
  929. CONTROL.B = 0
  930. elseif KEY:lower() == 'a' then
  931. CONTROL.L = 0
  932. elseif KEY:lower() == 'd' then
  933. CONTROL.R = 0
  934. elseif KEY:lower() == 'e' then
  935. CONTROL.Q = 0
  936. elseif KEY:lower() == 'q' then
  937. CONTROL.E = 0
  938. end
  939. end)
  940. FLY()
  941. end
  942. end
  943.  
  944. function AttackGyro()
  945. local GYRO = Instance.new("BodyGyro",RootPart)
  946. GYRO.D = 25
  947. GYRO.P = 20000
  948. GYRO.MaxTorque = Vector3.new(0,4000000,0)
  949. GYRO.CFrame = CFrame.new(RootPart.Position,Mouse.Hit.p)
  950. coroutine.resume(coroutine.create(function()
  951. repeat if stopeverything then wait(math.huge) end
  952. swait()
  953. GYRO.CFrame = CFrame.new(RootPart.Position,Mouse.Hit.p)
  954. until not ATTACK
  955. GYRO:Destroy()
  956. end))
  957. end
  958.  
  959. --//=================================\\
  960. --|| WEAPON CREATION
  961. --\\=================================//
  962.  
  963.  
  964. function Part(parent, color, material, size, cframe, anchored, cancollide)
  965. local part = IT("Part")
  966. part.Parent = parent or Character
  967. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3(0, 0, 0)
  968. part.Material = material or Enum.Material.SmoothPlastic
  969. part.TopSurface, part.BottomSurface = 10, 10
  970. part.Size = size or VT(1,1,1)
  971. part.CFrame = cframe or CF(0,0,0)
  972. part.CanCollide = cancollide or false
  973. part.Anchored = anchored or false
  974. return part
  975. end
  976.  
  977. function MoveCharacter(X,Z)
  978. Torso.PotentialCFrame = Torso.PotentialCFrame*CFrame.new(X,0,Z)
  979. W = true
  980. A = true
  981. S = true
  982. D = true
  983. end
  984.  
  985. function Weld(part0, part1, c0, c1)
  986. local weld = IT("Weld")
  987. weld.Parent = part0
  988. weld.Part0 = part0
  989. weld.Part1 = part1
  990. weld.C0 = c0 or CF()
  991. weld.C1 = c1 or CF()
  992. return weld
  993. end
  994.  
  995. function Mesh(parent, meshtype, meshid, textid, scale, offset)
  996. local part = IT("SpecialMesh")
  997. part.MeshId = meshid or ""
  998. part.TextureId = textid or ""
  999. part.Scale = scale or VT(1, 1, 1)
  1000. part.Offset = offset or VT(0, 0, 0)
  1001. part.MeshType = meshtype or Enum.MeshType.Sphere
  1002. part.Parent = parent
  1003. return part
  1004. end
  1005.  
  1006.  
  1007.  
  1008. local Head1 = script:FindFirstChild("Head")
  1009. local Head2 = Head1:Clone()
  1010. Head2.Parent = Character
  1011. local HeadHandle = CreateWeldOrSnapOrMotor("Weld", Head2.Handle, Head, Head2.Handle, CF(0, 0, 0)*ANGLES(RAD(0),RAD(-90),RAD(0)), CF(0, 0, 0))
  1012.  
  1013. local Wingskinda = script.Base:Clone()
  1014. Wingskinda.Parent = Character
  1015. CreateWeldOrSnapOrMotor("Weld", Wingskinda.Handle, Torso, Wingskinda.Handle, CF(0, 0, 0)*ANGLES(RAD(0),RAD(0),RAD(0)), CF(0, 0, 0))
  1016.  
  1017. local BC = Character["Body Colors"]
  1018. BC.HeadColor = BrickColor.new("Really black")
  1019. BC.LeftArmColor = BrickColor.new("Really black")
  1020. BC.LeftLegColor = BrickColor.new("Really black")
  1021. BC.RightArmColor = BrickColor.new("Really black")
  1022. BC.RightLegColor = BrickColor.new("Really black")
  1023. BC.TorsoColor = BrickColor.new("Really black")
  1024.  
  1025. local plr = game:service'Players'.LocalPlayer
  1026. local char = plr.Character
  1027. local hum = char.Humanoid
  1028. local hed = char.Head
  1029. Character = char
  1030. Torso = Character["Torso"]
  1031. Head = Character["Head"]
  1032. RightArm = Character["Right Arm"]
  1033. LeftArm = Character["Left Arm"]
  1034. RightLeg = Character["Right Leg"]
  1035. LeftLeg = Character["Left Leg"]
  1036.  
  1037. local SWORD = script:FindFirstChild("Sword")
  1038.  
  1039. local Blade = SWORD:Clone()
  1040. Blade.Parent = nil
  1041. local SwordJoint = CreateWeldOrSnapOrMotor("Weld", Blade.Handle, RightArm, Blade.Handle, CF(0, -1, 0)*ANGLES(RAD(90),RAD(0),RAD(0)), CF(0, 0, 0))
  1042. local BLADEAAAA = Blade.SlashPart
  1043.  
  1044. coroutine.resume(coroutine.create(function()
  1045. while not stopeverything do
  1046. for i = 0,1,(1/60) do
  1047. swait()
  1048. if not alreadyfixing then
  1049. if mde == "LC" then
  1050. GUN.NeonParts.Color = Color3.new(1,1,1)
  1051. elseif mde == "Insane" then
  1052. GUN.NeonParts.Color = Color3.new(1,1,1)
  1053. elseif mde == "Error" then
  1054. GUN.NeonParts.Color = Color3.new(1,1,1)
  1055. elseif mde == "FAST" then
  1056. GUN.NeonParts.Color = Color3.new(1,1,1)
  1057. elseif mde == "Glitch" then
  1058. GUN.NeonParts.Color = Color3.new(1,1,1)
  1059. elseif mde == "Chill" then
  1060. GUN.NeonParts.Color = Color3.new(1,1,1)
  1061. elseif mde == "Karma" or mde == "Mde4" or mde == "Mde5" then
  1062. GUN.NeonParts.Color = Color3.new(1,1,1)
  1063. end
  1064. end
  1065. end
  1066. end
  1067. end))
  1068.  
  1069. --//=================================\\
  1070. --|| DAMAGING
  1071. --\\=================================//
  1072.  
  1073. function dmg(dude)
  1074.  
  1075. end
  1076. function mdmg(Part,Magnitude)
  1077.  
  1078. end
  1079.  
  1080. function Death(MODEL)
  1081.  
  1082. end
  1083.  
  1084. function Attack(POSITION,RANGE)
  1085.  
  1086. end
  1087.  
  1088. --//=================================\\
  1089. --|| ATTACK FUNCTIONS AND STUFF
  1090. --\\=================================//
  1091.  
  1092. function Slash()
  1093.  
  1094. ATTACK = true
  1095. Humanoid.WalkSpeed = 0
  1096. for i=0, 0.3, 0.1 / Animation_Speed do
  1097. Swait()
  1098. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CFrame.new(0, 0, 2 + 0.5 * math.cos(SINE / 25))*CFrame.Angles(math.rad(20),0,0),.25)
  1099. if NeckSnap then
  1100. Neck.C0 = Clerp(Neck.C0,NECKC0,1)
  1101. Head2.Eye1.Color = Color3.new(1,1,1)
  1102. Head2.Eye2.Color = Color3.new(1,1,1)
  1103. NeckSnap = false
  1104. else
  1105. Neck.C0 = Clerp(Neck.C0,NECKC0,.25)
  1106. Head2.Eye1.Color = Color3.new(1,1,1)
  1107. Head2.Eye2.Color = Color3.new(1,1,1)
  1108. end
  1109. pcall(function()
  1110. if math.random(1,math.floor((15/SINE/15)+.5)) == 1 then
  1111. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),1)
  1112. NeckSnap = true
  1113. Head2.Eye1.Color = Color3.new(1,1,1)
  1114. Head2.Eye2.Color = Color3.new(1,1,1)
  1115. end
  1116. end)
  1117. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(80),0,math.rad(50))*RIGHTSHOULDERC0,.25)
  1118. SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(-.5,-.5,0)*CFrame.Angles(math.rad(180),math.rad(-90),0),.25)
  1119. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0)*CFrame.Angles(math.rad(5),0,math.rad(-10-10*math.cos(SINE/25)))*LEFTSHOULDERC0,.25)
  1120. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(-20),math.rad(80),math.rad(10+10*math.cos(SINE/25))),.25)
  1121. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(-10),math.rad(-80),math.rad(-10-10*math.cos(SINE/25))),.25)
  1122. end
  1123. local HIT = BLADEAAAA.Touched:Connect(function(HIT)
  1124. if HIT.Parent ~= Character and HIT.Parent:FindFirstChildOfClass("Humanoid") then
  1125. Death(HIT.Parent)
  1126. end
  1127. end)
  1128. CreateSound(211059653,BLADEAAAA,10,0.7,false)
  1129. for i=0, 0.8, 0.1 / Animation_Speed do
  1130. Swait()
  1131. if NeckSnap then
  1132. Neck.C0 = Clerp(Neck.C0,NECKC0,1)
  1133. Head2.Eye1.Color = Color3.new(1,1,1)
  1134. Head2.Eye2.Color = Color3.new(1,1,1)
  1135. NeckSnap = false
  1136. else
  1137. Neck.C0 = Clerp(Neck.C0,NECKC0,.25)
  1138. Head2.Eye1.Color = Color3.new(1,1,1)
  1139. Head2.Eye2.Color = Color3.new(1,1,1)
  1140. end
  1141. pcall(function()
  1142. if math.random(1,math.floor((15/SINE/15)+.5)) == 1 then
  1143. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),1)
  1144. NeckSnap = true
  1145. Head2.Eye1.Color = Color3.new(1,1,1)
  1146. Head2.Eye2.Color = Color3.new(1,1,1)
  1147. end
  1148. end)
  1149. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1,0.5,-.5)*CFrame.Angles(math.rad(80),0,math.rad(-50))*RIGHTSHOULDERC0,.25)
  1150. SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(-.5,-.5,0)*CFrame.Angles(math.rad(180),math.rad(-90),0),.25)
  1151. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0)*CFrame.Angles(math.rad(5),0,math.rad(-10-10*math.cos(SINE/25)))*LEFTSHOULDERC0,.25)
  1152. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(-20),math.rad(80),math.rad(10+10*math.cos(SINE/25))),.25)
  1153. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(-10),math.rad(-80),math.rad(-10-10*math.cos(SINE/25))),.25)
  1154. end
  1155. for i=0, 0.1, 0.1 / Animation_Speed do
  1156. Swait()
  1157. if NeckSnap then
  1158. Neck.C0 = Clerp(Neck.C0,NECKC0,1)
  1159. Head2.Eye1.Color = Color3.new(1,1,1)
  1160. Head2.Eye2.Color = Color3.new(1,1,1)
  1161. NeckSnap = false
  1162. else
  1163. Neck.C0 = Clerp(Neck.C0,NECKC0,.25)
  1164. Head2.Eye1.Color = Color3.new(1,1,1)
  1165. Head2.Eye2.Color = Color3.new(1,1,1)
  1166. end
  1167. pcall(function()
  1168. if math.random(1,math.floor((15/SINE/15)+.5)) == 1 then
  1169. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),1)
  1170. NeckSnap = true
  1171. Head2.Eye1.Color = Color3.new(1,1,1)
  1172. Head2.Eye2.Color = Color3.new(1,1,1)
  1173. end
  1174. end)
  1175. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1,0.5,-.5)*CFrame.Angles(math.rad(80),0,math.rad(-50))*RIGHTSHOULDERC0,.25)
  1176. SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(-.5,-.5,0)*CFrame.Angles(math.rad(180),math.rad(-90),0),.25)
  1177. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0)*CFrame.Angles(math.rad(5),0,math.rad(-10-10*math.cos(SINE/25)))*LEFTSHOULDERC0,.25)
  1178. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(-20),math.rad(80),math.rad(10+10*math.cos(SINE/25))),.25)
  1179. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(-10),math.rad(-80),math.rad(-10-10*math.cos(SINE/25))),.25)
  1180. end
  1181. HIT:Disconnect()
  1182. ATTACK = false
  1183. Rooted = false
  1184. end
  1185.  
  1186. function Teleport()
  1187.  
  1188. ATTACK = true
  1189. Humanoid.WalkSpeed = 0
  1190. for i=0, 0.3, 0.1 / Animation_Speed do
  1191. Swait()
  1192. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CFrame.new(0, 0, 2 + 0.5 * math.cos(SINE / 25))*CFrame.Angles(math.rad(20),0,0),.25)
  1193. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(SINE/50)),0),.25)
  1194. if NeckSnap then
  1195. Neck.C0 = Clerp(Neck.C0,NECKC0,1)
  1196. Head2.Eye1.Color = Color3.new(1,1,1)
  1197. Head2.Eye2.Color = Color3.new(1,1,1)
  1198. NeckSnap = false
  1199. else
  1200. Neck.C0 = Clerp(Neck.C0,NECKC0,.25)
  1201. Head2.Eye1.Color = Color3.new(1,1,1)
  1202. Head2.Eye2.Color = Color3.new(1,1,1)
  1203. end
  1204. pcall(function()
  1205. if math.random(1,math.floor((15/SINE/15)+.5)) == 1 then
  1206. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),1)
  1207. NeckSnap = true
  1208. Head2.Eye1.Color = Color3.new(1,1,1)
  1209. Head2.Eye2.Color = Color3.new(1,1,1)
  1210. end
  1211. end)
  1212. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0)*CFrame.Angles(math.rad(80+5*math.cos(SINE/25)),0,math.rad(45))*RIGHTSHOULDERC0,.25)
  1213. SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(0,0,-.5)*CFrame.Angles(0,math.rad(170),math.rad(-10)),.25)
  1214. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(10),math.rad(80),math.rad(10+10*math.cos(SINE/25))),.25)
  1215. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(20),math.rad(-80),math.rad(-10-10*math.cos(SINE/25))),.25)
  1216. end
  1217. local Swirl = script.Swirl:Clone()
  1218. Swirl.CFrame = CFrame.new(Mouse.Hit.p)
  1219. Swirl.Parent = workspace
  1220. Serv("TweenService"):Create(Swirl,TweenInfo.new(1,Enum.EasingStyle.Linear),{Size = Vector3.new(25,1,25),CFrame = Swirl.CFrame*CFrame.Angles(0,math.rad(180),0),LocalTransparencyModifier = 1}):Play()
  1221. for i=0, 0.3, 0.1 / Animation_Speed do
  1222. Swait()
  1223. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CFrame.new(0, 0, 2 + 0.5 * math.cos(SINE / 25))*CFrame.Angles(math.rad(20),0,0),.25)
  1224. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(SINE/50)),0),.25)
  1225. if NeckSnap then
  1226. Neck.C0 = Clerp(Neck.C0,NECKC0,1)
  1227. Head2.Eye1.Color = Color3.new(1,1,1)
  1228. Head2.Eye2.Color = Color3.new(1,1,1)
  1229. NeckSnap = false
  1230. else
  1231. Neck.C0 = Clerp(Neck.C0,NECKC0,.25)
  1232. Head2.Eye1.Color = Color3.new(1,1,1)
  1233. Head2.Eye2.Color = Color3.new(1,1,1)
  1234. end
  1235. pcall(function()
  1236. if math.random(1,math.floor((15/SINE/15)+.5)) == 1 then
  1237. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),1)
  1238. NeckSnap = true
  1239. Head2.Eye1.Color = Color3.new(1,1,1)
  1240. Head2.Eye2.Color = Color3.new(1,1,1)
  1241. end
  1242. end)
  1243. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0)*CFrame.Angles(math.rad(80+5*math.cos(SINE/25)),0,math.rad(45))*RIGHTSHOULDERC0,.25)
  1244. SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(0,0,-.5)*CFrame.Angles(0,math.rad(170),math.rad(-10)),.25)
  1245. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(10),math.rad(80),math.rad(10+10*math.cos(SINE/25))),.25)
  1246. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(20),math.rad(-80),math.rad(-10-10*math.cos(SINE/25))),.25)
  1247. end
  1248. for i=0, 0.3, 0.1 / Animation_Speed do
  1249. Swait()
  1250. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CFrame.new(0, 0, 2 + 0.5 * math.cos(SINE / 25))*CFrame.Angles(math.rad(20),0,0),.25)
  1251. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(SINE/50)),0),.25)
  1252. if NeckSnap then
  1253. Neck.C0 = Clerp(Neck.C0,NECKC0,1)
  1254. Head2.Eye1.Color = Color3.new(1,1,1)
  1255. Head2.Eye2.Color = Color3.new(1,1,1)
  1256. NeckSnap = false
  1257. else
  1258. Neck.C0 = Clerp(Neck.C0,NECKC0,.25)
  1259. Head2.Eye1.Color = Color3.new(1,1,1)
  1260. Head2.Eye2.Color = Color3.new(1,1,1)
  1261. end
  1262. pcall(function()
  1263. if math.random(1,math.floor((15/SINE/15)+.5)) == 1 then
  1264. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),1)
  1265. NeckSnap = true
  1266. Head2.Eye1.Color = Color3.new(1,1,1)
  1267. Head2.Eye2.Color = Color3.new(1,1,1)
  1268. end
  1269. end)
  1270. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0)*CFrame.Angles(math.rad(80+5*math.cos(SINE/25)),0,math.rad(45))*RIGHTSHOULDERC0,.25)
  1271. SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(0,0,-.5)*CFrame.Angles(0,math.rad(170),math.rad(-10)),.25)
  1272. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(10),math.rad(80),math.rad(10+10*math.cos(SINE/25))),.25)
  1273. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(20),math.rad(-80),math.rad(-10-10*math.cos(SINE/25))),.25)
  1274. end
  1275. for i=0, 0.3, 0.1 / Animation_Speed do
  1276. Swait()
  1277. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CFrame.new(0, 0, 2 + 0.5 * math.cos(SINE / 25))*CFrame.Angles(math.rad(20),0,0),.25)
  1278. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(SINE/50)),0),.25)
  1279. if NeckSnap then
  1280. Neck.C0 = Clerp(Neck.C0,NECKC0,1)
  1281. Head2.Eye1.Color = Color3.new(1,1,1)
  1282. Head2.Eye2.Color = Color3.new(1,1,1)
  1283. NeckSnap = false
  1284. else
  1285. Neck.C0 = Clerp(Neck.C0,NECKC0,.25)
  1286. Head2.Eye1.Color = Color3.new(1,1,1)
  1287. Head2.Eye2.Color = Color3.new(1,1,1)
  1288. end
  1289. pcall(function()
  1290. if math.random(1,math.floor((15/SINE/15)+.5)) == 1 then
  1291. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),1)
  1292. NeckSnap = true
  1293. Head2.Eye1.Color = Color3.new(1,1,1)
  1294. Head2.Eye2.Color = Color3.new(1,1,1)
  1295. end
  1296. end)
  1297. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0)*CFrame.Angles(math.rad(80+5*math.cos(SINE/25)),0,math.rad(45))*RIGHTSHOULDERC0,.25)
  1298. SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(0,0,-.5)*CFrame.Angles(0,math.rad(170),math.rad(-10)),.25)
  1299. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(10),math.rad(80),math.rad(10+10*math.cos(SINE/25))),.25)
  1300. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(20),math.rad(-80),math.rad(-10-10*math.cos(SINE/25))),.25)
  1301. end
  1302. local POS = Mouse.Hit.p+VT(0,4,0)
  1303. local ORI = RootPart.Orientation
  1304. RootPart.CFrame = CF(POS)
  1305. RootPart.Orientation = ORI
  1306. RootJoint.Parent = RootPart
  1307. Swirl:Remove()
  1308. ATTACK = false
  1309. Rooted = false
  1310. end
  1311.  
  1312. SPIKES = script.Garbage
  1313. function Instance_(ClassType,Parent,Properties)
  1314. local NewInstance
  1315. if typeof(SPIKES) == "Instance" then
  1316. NewInstance = SPIKES:Clone()
  1317. else
  1318. NewInstance = Instance.new(ClassType)
  1319. end
  1320. if type(Properties) == "table" then
  1321. for i,v in pairs(Properties) do
  1322. NewInstance[i] = v
  1323. end
  1324. end
  1325. if typeof(Parent) == "Instance" then
  1326. NewInstance.Parent = Parent
  1327. end
  1328. return NewInstance
  1329. end
  1330.  
  1331. local arm = Character["Right Arm"]
  1332. function attackone()
  1333. if GUN.Parent == nil then return end
  1334. ATTACK = true
  1335. Humanoid.WalkSpeed = 16
  1336. AttackGyro()
  1337. for i = 0,.5,.05 do
  1338. swait()
  1339. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 + .5 * math.cos(sine/50),0,2 - .5 * math.sin(sine/50)) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(30)),.7/3)
  1340. Neck.C0 = Clerp(Neck.C0,nc0 * CFrame.new() * CFrame.Angles(math.rad(15),math.rad(0),math.rad(-30)),1/3)
  1341. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(30)) * rscp,1/3)
  1342. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(30),math.rad(0),math.rad(0)) * lscp,1/3)
  1343. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-.5,-.5) * CFrame.Angles(math.rad(-15 + 9 * math.cos(sine/74)),math.rad(80),math.rad(0)) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),math.rad(0),math.rad(0)),.7/3)
  1344. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-15 - 9 * math.cos(sine/54)),math.rad(-80),math.rad(0)) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),math.rad(0),math.rad(0)),.7/3)
  1345. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-106.3-.9*math.cos(sine/12)),math.rad(0),math.rad(0)),1 / 2)
  1346. end
  1347. local shade = Color3.new(0,0,0)
  1348. Effect({Time = 25,EffectType = "Box",Size = Vector3.new(),Size2 = Vector3.new(3,3,3),Transparency = 0,Transparency2 = 1,CFrame = arm.CFrame,MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = 642890855,SoundPitch = .65,SoundVolume = 10,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50})
  1349. Effect({Time = 25,EffectType = "Box",Size = Vector3.new(),Size2 = Vector3.new(3,3,3),Transparency = 0,Transparency2 = 1,CFrame = arm.CFrame,MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50})
  1350. for i = 0,2 do
  1351. Effect({Time = math.random(25,50),EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = arm.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15})
  1352. Effect({Time = math.random(25,50),EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = arm.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(0,0,0),SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15})
  1353. end
  1354. local mousehit = Mouse.Hit
  1355.  
  1356. local DISTANCE = (arm.Position - mousehit.p).Magnitude
  1357. local killbeam = CreatePart(3,Effects,"Neon",0,0,GUN.NeonParts.Color,"Kill Beam",Vector3.new(1,DISTANCE,1))
  1358. killbeam.CFrame = CFrame.new(arm.Position,mousehit.p) * CFrame.new(0,0,-DISTANCE/2) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))
  1359. MakeForm(killbeam,"Cyl")
  1360. coroutine.resume(coroutine.create(function()
  1361. for i = 1,25 do
  1362. swait()
  1363. killbeam.Transparency = i/25
  1364. end
  1365. killbeam:Destroy()
  1366. end))
  1367. for i = 1,4 do
  1368. coroutine.resume(coroutine.create(function()
  1369. Lightning(arm.Position,mousehit.p,15,3.5,Color3.new(0,0,1),25,0,1,0,true,55)
  1370. end))
  1371. end
  1372. coroutine.resume(coroutine.create(function()
  1373. Lightning(arm.Position,mousehit.p,15,3.5,Color3.new(1,0,0),25,0,1,0,true,55)
  1374. Effect({Time = 25,EffectType = "Box",Size = Vector3.new(),Size2 = Vector3.new(3,3,3),Transparency = 0,Transparency2 = 1,CFrame = mousehit,MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = 821439273,SoundPitch = .8,SoundVolume = 10,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50})
  1375. Effect({Time = 25,EffectType = "Box",Size = Vector3.new(),Size2 = Vector3.new(3,3,3),Transparency = 0,Transparency2 = 1,CFrame = mousehit,MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = shade,SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 50})
  1376. for i = 0,2 do
  1377. Effect({Time = math.random(25,50),EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = mousehit*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(1,0,0),SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15})
  1378. Effect({Time = math.random(25,50),EffectType = "Round Slash",Size = Vector3.new(),Size2 = Vector3.new(.1,0,.1),Transparency = 0,Transparency2 = 1,CFrame = mousehit*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),MoveToPos = nil,RotationX = math.random(-1,1),RotationY = math.random(-1,1),RotationZ = math.random(-1,1),Material = "Neon",Color = Color3.new(0,0,0),SoundID = nil,SoundPitch = nil,SoundVolume = nil,UseBoomerangMath = true,Boomerang = 0,SizeBoomerang = 15})
  1379. end
  1380. mdmg(mousehit.p,10)
  1381. end))
  1382. for i = 0,.5,.075 do
  1383. Swait()
  1384. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 + .5 * math.cos(sine/50),0,2 - .5 * math.sin(sine/50)) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(30)),.7/3)
  1385. Neck.C0 = Clerp(Neck.C0,nc0 * CFrame.new() * CFrame.Angles(math.rad(10),math.rad(0),math.rad(-60)),1/3)
  1386. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0) * CFrame.Angles(math.rad(160),math.rad(-20),math.rad(60)) * rscp,1/3)
  1387. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(40),math.rad(5),math.rad(5)) * lscp,1/3)
  1388. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-.5,-.5) * CFrame.Angles(math.rad(-15 + 9 * math.cos(sine/74)),math.rad(80),math.rad(0)) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),math.rad(0),math.rad(0)),.7/3)
  1389. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-15 - 9 * math.cos(sine/54)),math.rad(-80),math.rad(0)) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),math.rad(0),math.rad(0)),.7/3)
  1390. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-106.3-.9*math.cos(sine/12)),math.rad(0),math.rad(0)),1 / 2)
  1391. end
  1392. Humanoid.WalkSpeed = 50
  1393. ATTACK = false
  1394. end
  1395.  
  1396. --//=================================\\
  1397. --|| ASSIGN THINGS TO KEYS
  1398. --\\=================================//
  1399.  
  1400. Notify("[Lightning Cannon V3]: ","Lightning Cannon V3, By alsoo3")
  1401.  
  1402. function MouseDown(Mouse)
  1403. HOLD = true
  1404. end
  1405.  
  1406. function MouseUp(Mouse)
  1407. HOLD = false
  1408. end
  1409.  
  1410. function KeyDown(Key)
  1411. KEYHOLD = true
  1412. if Key == "z" and ATTACK == false then
  1413. Slash()
  1414. DamageFling(Mouse.Target.Parent)
  1415. end
  1416.  
  1417. if Key == "x" and ATTACK == false then
  1418. Teleport()
  1419. end
  1420.  
  1421. if Key == "c" and ATTACK == false then
  1422. Attack(Vector3.new(),9e9)
  1423. end
  1424.  
  1425. if Key == "e" and ATTACK == false then
  1426. Instance_()
  1427. end
  1428.  
  1429.  
  1430.  
  1431. antivoid = Instance.new("Part")
  1432. antivoid.Size = Vector3.new(400,10,400)
  1433. antivoid.Anchored = true
  1434. antivoid.Transparency = 1
  1435. antivoid.Position = Vector3.new(RootPart.Position.X,workspace.FallenPartsDestroyHeight+5,RootPart.Position.Z)
  1436. antivoid.Parent = Character
  1437. coroutine.resume(coroutine.create(function()
  1438. while not stopeverything do
  1439. swait()
  1440. if not alreadyfixing then
  1441. if antivoid:IsDescendantOf(workspace) then
  1442. antivoid.Position = Vector3.new(RootPart.Position.X,workspace.FallenPartsDestroyHeight+5,RootPart.Position.Z)
  1443. else
  1444. pcall(function()
  1445. antivoid:Destroy()
  1446. end)
  1447. antivoid = Instance.new("Part")
  1448. antivoid.Size = Vector3.new(400,10,400)
  1449. antivoid.Anchored = true
  1450. antivoid.Transparency = 1
  1451. antivoid.CanCollide = false
  1452. antivoid.Position = Vector3.new(RootPart.Position.X,workspace.FallenPartsDestroyHeight+5,RootPart.Position.Z)
  1453. antivoid.Parent = workspace
  1454. end
  1455. end
  1456. end
  1457. end))
  1458.  
  1459.  
  1460.  
  1461.  
  1462.  
  1463. end
  1464.  
  1465. function KeyUp(Key)
  1466. KEYHOLD = false
  1467. end
  1468.  
  1469. Mouse.Button1Down:connect(function(NEWKEY)
  1470. MouseDown(NEWKEY)
  1471. end)
  1472. Mouse.Button1Up:connect(function(NEWKEY)
  1473. MouseUp(NEWKEY)
  1474. end)
  1475. Mouse.KeyDown:connect(function(NEWKEY)
  1476. KeyDown(NEWKEY)
  1477. end)
  1478. Mouse.KeyUp:connect(function(NEWKEY)
  1479. KeyUp(NEWKEY)
  1480. end)
  1481.  
  1482. --//=================================\\
  1483. --\\=================================//
  1484.  
  1485.  
  1486. function unanchor()
  1487. if UNANCHOR == true then
  1488. g = Character:GetChildren()
  1489. for i = 1, #g do
  1490. if g[i].ClassName == "Part" then
  1491. g[i].Anchored = false
  1492. end
  1493. end
  1494. end
  1495. end
  1496.  
  1497. --//=================================\\
  1498. --|| WRAP THE WHOLE SCRIPT UP
  1499. --\\=================================//
  1500.  
  1501. Humanoid.Changed:connect(function(Jump)
  1502. if Jump == "Jump" and (Disable_Jump == true) then
  1503. Humanoid.Jump = false
  1504. end
  1505. end)
  1506.  
  1507. local CONNECT = nil
  1508.  
  1509. while true do
  1510. Swait()
  1511. ANIMATE.Parent = nil
  1512. ANIMATOR.Parent = nil
  1513. if Character:FindFirstChildOfClass("Humanoid") == nil then
  1514. Humanoid = IT("Humanoid",Character)
  1515. end
  1516. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1517. v:Stop();
  1518. end
  1519. if Player ~= Player then
  1520. antivoid.CanCollide = false
  1521. end
  1522. if Player == Player then
  1523. Torsovelocity = (RootPart.Velocity).Magnitude
  1524. end
  1525. local sensitivity = 25
  1526. SINE = SINE + CHANGE
  1527. if mde == "IL" or mde == "IC" or mde == "Insane" then
  1528. Humanoid.WalkSpeed = 16
  1529. elseif mde == "LC" or mde == "Error" or mde == "Glitch" or mde == "Chill" or mde == "Karma" or mde == "Mde4" or mde == "Mde5" then
  1530. Humanoid.WalkSpeed = 50
  1531. elseif mde == "FAST" then
  1532. Humanoid.WalkSpeed = 100
  1533. end
  1534. local TORSOVELOCITY = (RootPart.Velocity * Vector3.new(1,0,1)).Magnitude
  1535. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1536. sine = sine + change
  1537. Sine = Sine + change
  1538. if TORSOVELOCITY > 1 and ISFLYING == true then
  1539. ANIM = "Idle"
  1540. if ATTACK == false then
  1541. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CFrame.new(0, 0, 2 + 0.5 * math.cos(SINE / 25))*CFrame.Angles(math.rad(20),0,0),.25)
  1542. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(SINE/50)),0),.25)
  1543. pcall(function()
  1544. if math.random(1,60) == 1 then
  1545. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20+math.random(-20,20)),math.rad((10*math.sin(SINE/100))+math.random(-20,20)),math.rad(math.random(-20,20))),1)
  1546. Head2.Eye1.Color = Color3.new(1,0,0)
  1547. Head2.Eye2.Color = Color3.new(1,0,0)
  1548. NeckSnap = true
  1549. else
  1550. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(SINE/50)),0),.25)
  1551. Head2.Eye1.Color = Color3.new(1,1,1)
  1552. Head2.Eye2.Color = Color3.new(1,1,1)
  1553. NeckSnap = false
  1554. end
  1555. end)
  1556. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0)*CFrame.Angles(math.rad(80+5*math.cos(SINE/25)),0,math.rad(45))*RIGHTSHOULDERC0,.25)
  1557. SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(0,0,-.5)*CFrame.Angles(0,math.rad(170),math.rad(-10)),.25)
  1558. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(10),math.rad(80),math.rad(10+10*math.cos(SINE/25))),.25)
  1559. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(20),math.rad(-80),math.rad(-10-10*math.cos(SINE/25))),.25)
  1560. end
  1561. elseif TORSOVELOCITY > 1 and ISFLYING == true then
  1562. ANIM = "Fall"
  1563. if ATTACK == false then
  1564. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CFrame.new(0, 0, 2 + 0.5 * math.cos(SINE / 25))*CFrame.Angles(math.rad(20),0,0),.25)
  1565. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(SINE/50)),0),.25)
  1566. pcall(function()
  1567. if math.random(1,60) == 1 then
  1568. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20+math.random(-20,20)),math.rad((10*math.sin(SINE/100))+math.random(-20,20)),math.rad(math.random(-20,20))),1)
  1569. Head2.Eye1.Color = Color3.new(1,0,0)
  1570. Head2.Eye2.Color = Color3.new(1,0,0)
  1571. NeckSnap = true
  1572. else
  1573. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(SINE/50)),0),.25)
  1574. Head2.Eye1.Color = Color3.new(1,1,1)
  1575. Head2.Eye2.Color = Color3.new(1,1,1)
  1576. NeckSnap = false
  1577. end
  1578. end)
  1579. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0)*CFrame.Angles(math.rad(80+5*math.cos(SINE/25)),0,math.rad(45))*RIGHTSHOULDERC0,.25)
  1580. SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(0,0,-.5)*CFrame.Angles(0,math.rad(170),math.rad(-10)),.25)
  1581. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(10),math.rad(80),math.rad(10+10*math.cos(SINE/25))),.25)
  1582. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(20),math.rad(-80),math.rad(-10-10*math.cos(SINE/25))),.25)
  1583. end
  1584. elseif TORSOVELOCITY < 1 and ISFLYING == false then
  1585. ANIM = "Idle"
  1586. if ATTACK == false then
  1587. if mde == "IL" then
  1588. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CFrame.new(0, 0, 2 + 0.5 * math.cos(SINE / 25))*CFrame.Angles(math.rad(20),0,0),.25)
  1589. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(SINE/50)),0),.25)
  1590. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0)*CFrame.Angles(math.rad(-10),0,0)*RIGHTSHOULDERC0,.25)
  1591. SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(0,-1,0)*CFrame.Angles(math.rad(154.35-5.65*math.sin(SINE/25)),0,0),.25)
  1592. pcall(function()
  1593. if math.random(1,60) == 1 then
  1594. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20+math.random(-20,20)),math.rad((10*math.sin(SINE/100))+math.random(-20,20)),math.rad(math.random(-20,20))),1)
  1595. Head2.Eye1.Color = Color3.new(1,0,0)
  1596. Head2.Eye2.Color = Color3.new(1,0,0)
  1597. NeckSnap = true
  1598. else
  1599. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(SINE/50)),0),.25)
  1600. Head2.Eye1.Color = Color3.new(1,1,1)
  1601. Head2.Eye2.Color = Color3.new(1,1,1)
  1602. NeckSnap = false
  1603. end
  1604. end)
  1605. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0)*CFrame.Angles(math.rad(20),0,math.rad(-10-10*math.cos(SINE/25)))*LEFTSHOULDERC0,.25)
  1606. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(10),math.rad(80),math.rad(10+10*math.cos(SINE/25))),.25)
  1607. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(20),math.rad(-80),math.rad(-10-10*math.cos(SINE/25))),.25)
  1608. elseif mde == "LC" then
  1609. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,3 - .5 * math.sin(sine/50)) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),0.7/3)
  1610. Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(20),math.rad(10*math.cos(sine/100)),math.rad(0)),1)
  1611. if math.random(1,60) == 1 then
  1612. Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(20+math.random(-20,20)),math.rad((10*math.cos(sine/100))+math.random(-20,20)),math.rad(math.random(-20,20))),1)
  1613. end
  1614. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(-41.6-4*math.sin(sine/50)),math.rad(0),math.rad(0)) * RIGHTSHOULDERC0,0.7/3)
  1615. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(-10-10*math.sin(sine/50))) * LEFTSHOULDERC0,0.7/3)
  1616. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,-0.01) * CFrame.Angles(math.rad(10),math.rad(80),math.rad(10+10*math.sin(sine/50))),1/3)
  1617. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,-0.01) * CFrame.Angles(math.rad(20),math.rad(-80),math.rad(-10-10*math.sin(sine/50))),1/3)
  1618. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-106.3-.9*math.cos(sine/12)),math.rad(0),math.rad(0)),1 / 2)
  1619. elseif mde == "Insane" then
  1620. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,3 - .5 * math.sin(sine/50)) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),0.7/3)
  1621. Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(20),math.rad(10*math.cos(sine/100)),math.rad(0)),1)
  1622. if math.random(1,60) == 1 then
  1623. Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(20+math.random(-20,20)),math.rad((10*math.cos(sine/100))+math.random(-20,20)),math.rad(math.random(-20,20))),1)
  1624. end
  1625. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(-41.6-4*math.sin(sine/50)),math.rad(0),math.rad(0)) * RIGHTSHOULDERC0,0.7/3)
  1626. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(-10-10*math.sin(sine/50))) * LEFTSHOULDERC0,0.7/3)
  1627. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,-0.01) * CFrame.Angles(math.rad(10),math.rad(80),math.rad(10+10*math.sin(sine/50))),1/3)
  1628. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,-0.01) * CFrame.Angles(math.rad(20),math.rad(-80),math.rad(-10-10*math.sin(sine/50))),1/3)
  1629. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-106.3-.9*math.cos(sine/12)),math.rad(0),math.rad(0)),1 / 2)
  1630. elseif mde == "Error" then
  1631. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,2 + .5 * math.cos(sine/15)) * CFrame.Angles(math.rad(0),math.rad(-10*math.cos(sine/30)),math.rad(0)),.7/3)
  1632. Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.Angles(math.rad(0),math.rad(-15*math.cos(sine/30)),math.rad(0)),1/3)
  1633. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0) * CFrame.Angles(math.rad(135+-15*math.cos(sine/30)),math.rad(0),math.rad(25+15*math.cos(sine/30))) * RIGHTSHOULDERC0,.7/3)
  1634. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(5),math.rad(5),math.rad(-10+15*math.cos(sine/30))) * LEFTSHOULDERC0,.7/3)
  1635. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,-.01) * CFrame.Angles(math.rad(-10),math.rad(80),math.rad(10+10*math.sin(sine/15))),1/3)
  1636. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,-.01) * CFrame.Angles(math.rad(0),math.rad(-80),math.rad(-10-10*math.sin(sine/15))),1/3)
  1637. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1/2)
  1638. elseif mde == "FAST" then
  1639. GUN.Parent = nil
  1640. Humanoid.HipHeight = .1
  1641. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,-.2) * CFrame.Angles(math.rad(-sine*6),math.rad(0),math.rad(0)),.25)
  1642. Neck.C0 = Clerp(Neck.C0,NECKC0,.25)
  1643. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0) * CFrame.Angles(math.rad(-75*math.sin(sine/5)),math.rad(0),math.rad(0)) * RIGHTSHOULDERC0,.25)
  1644. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(75*math.sin(sine/5)),math.rad(0),math.rad(0)) * LEFTSHOULDERC0,.25)
  1645. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,-.01) * CFrame.Angles(math.rad(75*math.sin(sine/5)),math.rad(90),math.rad(0)),.25)
  1646. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,-.01) * CFrame.Angles(math.rad(-75*math.sin(sine/5)),math.rad(-90),math.rad(0)),.25)
  1647. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1/2)
  1648. elseif mde == "Glitch" then
  1649. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,2 + .5 * math.cos(sine/9)) * CFrame.Angles(math.rad(-2.5*math.sin(sine/9)),math.rad(0),math.rad(0)),1/2)
  1650. Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new() * CFrame.Angles(math.rad(10-10*math.sin(sine/9)),math.rad(0),math.rad(0)),1/2)
  1651. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5+.25*math.sin(sine/9),0) * CFrame.Angles(math.rad(135+5*math.sin(sine/9)),math.rad(0),math.rad(25)) * RIGHTSHOULDERC0,.7/3)
  1652. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5+.25*math.sin(sine/9),0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10+10*math.cos(sine/9))) * LEFTSHOULDERC0,.7/3)
  1653. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,-.01) * CFrame.Angles(math.rad(-10),math.rad(80),math.rad(5+5*math.sin(sine/9))),1/2)
  1654. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,-.01) * CFrame.Angles(math.rad(0),math.rad(-80),math.rad(-5-5*math.sin(sine/9))),1/2)
  1655. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1/2)
  1656. elseif mde == "Chill" then
  1657. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,2 - .5 * math.sin(sine/9)) * CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),.7/3)
  1658. Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,-.05,0) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),.7/3)
  1659. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.25,.5,-.1) * CFrame.Angles(math.rad(45),math.rad(-45),math.rad(0)) * RIGHTSHOULDERC0,.7/3)
  1660. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1,.75,.1) * CFrame.Angles(math.rad(-165),math.rad(0),math.rad(40)) * LEFTSHOULDERC0,.7/3)
  1661. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0) * CFrame.Angles(math.rad(-12.5),math.rad(90),math.rad(0)) * CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)),.7/3)
  1662. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(12.5),math.rad(-90),math.rad(0)) * CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)),.7/3)
  1663. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1/2)
  1664. elseif mde == "Karma" then
  1665. local headsnap = math.random(1,60);
  1666. local headsnapping=false;
  1667. if headsnap == 1 then
  1668. Neck.C0 = Clerp(Neck.C0, NECKC0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(math.random(500,500)), math.rad(math.random(500,500)), math.rad(math.random(500,500))), 1)headsnapping=true headsnapping=false
  1669. end
  1670.  
  1671. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 , 0 , 2 - .5 * math.sin(sine/25)) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.8 / 3)
  1672. Neck.C0 = Clerp(Neck.C0, NECKC0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(math.random(0.25,3)), math.rad(math.random(0.25,3)), math.rad(math.random(0.25,3))), .7 / 3)
  1673. RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-41.6-4*math.sin(sine/25)), math.rad(math.random(-0.25,3)), math.rad(math.random(0.25,3)))* RIGHTSHOULDERC0, .7 / 3)
  1674. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(20), math.rad(5+2* math.sin(sine/25+math.random(-0.25,3))), math.rad(-2+5*math.sin(sine / 25))) * LEFTSHOULDERC0, .7 / 3)
  1675. RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-20-4*math.sin(sine/25-math.random(0.25,3))), math.rad(80), math.rad(0)), .7 / 3)
  1676. LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1 , 0) * CFrame.Angles(math.rad(-10-4*math.sin(sine/25-math.random(-0.25,3))), math.rad(-80), math.rad(0)), .7 / 3)
  1677. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15)*CFrame.Angles(math.rad(-106.3-.9*math.cos(Sine/12)),0,0),.25)
  1678. elseif mde == "Mde4" then
  1679.  
  1680. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC02*CFrame.new(0,math.cos(sine/25),-math.sin(sine/25)+2)*CFrame.Angles(math.rad(5*math.sin(sine/25)),0,0),.25)
  1681. Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.Angles(math.rad(5*math.cos(sine/25)),0,0),.25)
  1682. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0)*CFrame.Angles(math.rad(160),0,math.rad(15-5*math.sin(sine/25)))* RIGHTSHOULDERC0,.25)
  1683. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0)*CFrame.Angles(0,0,math.rad(-15+5*math.sin(sine/25)))* LEFTSHOULDERC0,.25)
  1684. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1-.1*math.sin(sine/25),-.01)*CFrame.Angles(0,math.rad(80),0),.25)
  1685. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-.5-.25*math.sin(sine/25),-.51)*CFrame.Angles(math.rad(-10),math.rad(-80),0),.25)
  1686. SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1/2)
  1687. pcall(function()
  1688. if math.random(1,60) == 1 then
  1689. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20+math.random(-20,20)),math.rad((10*math.sin(SINE/100))+math.random(-20,20)),math.rad(math.random(-20,20))),1)
  1690. Head2.Eye1.Color = Color3.new(1,0,0)
  1691. Head2.Eye2.Color = Color3.new(0.321569, 0.054902, 1)
  1692. NeckSnap = true
  1693. else
  1694. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(SINE/50)),0),.25)
  1695. Head2.Eye1.Color = Color3.new(1,1,1)
  1696. Head2.Eye2.Color = Color3.new(1,1,1)
  1697. NeckSnap = false
  1698. end
  1699. end)
  1700. elseif mde == "Mde5" then
  1701. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0*CFrame.new(0,0,.05*math.cos(SINE/12))*CFrame.Angles(math.rad(15),0,0),.25)
  1702. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(-15-3*math.cos(SINE/12)),math.rad(5-5*math.sin(SINE/12)),0),.25)
  1703. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5+0.1*math.cos(SINE/12),0)*CFrame.Angles(math.rad(-53.75+1.75*math.cos(SINE/12)),0,math.rad(5))*RIGHTSHOULDERC0,.25)
  1704. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5+.1*math.sin(SINE/12),0)*CFrame.Angles(math.rad(15),0,math.rad(-5+5*math.cos(SINE/12)))*LEFTSHOULDERC0,.25)
  1705. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1-.05*math.cos(SINE/12),-.01)*CFrame.Angles(math.rad(10),math.rad(80),math.rad(0)),.25)
  1706. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1-.05*math.cos(SINE/12),-.01)*CFrame.Angles(math.rad(20),math.rad(-80),math.rad(0)),.25)
  1707. SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(.05,-1,-.15)*CFrame.Angles(math.rad(154.35-5.65*math.sin(SINE/25)),0,0),.25)
  1708. pcall(function()
  1709. if math.random(1,60) == 1 then
  1710. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20+math.random(-20,20)),math.rad((10*math.sin(SINE/100))+math.random(-20,20)),math.rad(math.random(-20,20))),1)
  1711. Head2.Eye1.Color = Color3.new(1,0,0)
  1712. Head2.Eye2.Color = Color3.new(0.101961, 1, 0.32549)
  1713. NeckSnap = true
  1714. else
  1715. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(SINE/50)),0),.25)
  1716. Head2.Eye1.Color = Color3.new(1,1,1)
  1717. Head2.Eye2.Color = Color3.new(1,1,1)
  1718. NeckSnap = false
  1719. end
  1720. end)
  1721. elseif mde == "IC" then
  1722. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CFrame.new(0, 0, 2 + 0.5 * math.cos(SINE / 25))*CFrame.Angles(math.rad(20),0,0),.25)
  1723. if NeckSnap then
  1724. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(sine/50)),0),1)
  1725. NeckSnap = false
  1726. Head2.Eye1.Color = Color3.new(1,1,1)
  1727. Head2.Eye2.Color = Color3.new(1,1,1)
  1728. else
  1729. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20),math.rad(10*math.sin(sine/50)),0),.25)
  1730. end
  1731. pcall(function()
  1732. if math.random(1,math.floor((sine/15)+.5)) == 1 then
  1733. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(20+math.random(-20,20)),math.rad((10*math.sin(sine/50))+math.random(-20,20)),math.rad(math.random(-20,20))),1)
  1734. NeckSnap = true
  1735. Head2.Eye1.Color = Color3.new(1,0,0)
  1736. Head2.Eye2.Color = Color3.new(1,0,0)
  1737. end
  1738. end)
  1739. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,0.5+.25*math.sin(sine/9),0) * CFrame.Angles(math.rad(135+5*math.sin(sine/9)),math.rad(0),math.rad(25))*RIGHTSHOULDERC0,.25)
  1740. SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(0,-2,0)*CFrame.Angles(80,0,0),.25)
  1741. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0)*CFrame.Angles(math.rad(20),0,math.rad(-10-10*math.cos(sine/25)))*LEFTSHOULDERC0,.25)
  1742. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(10),math.rad(80),math.rad(10+10*math.cos(sine/25))),.25)
  1743. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(20),math.rad(-80),math.rad(-10-10*math.cos(sine/25))),.25)
  1744. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1/2)
  1745. elseif mde == "Nostaglic" then
  1746. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 + .5 * math.cos(sine/50),0,3 - .5 * math.sin(sine/50)),.7/3)
  1747. Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,-.05,0) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),.7/3)
  1748. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.6) * ANGLES(RAD(165), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1749. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-5 - 2 * math.cos(sine/19))) * LEFTSHOULDERC0,.7/3)
  1750. RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-20-4*math.sin(sine/25-math.random(0.25,3))), math.rad(80), math.rad(0)), .7 / 3)
  1751. LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1 , 0) * CFrame.Angles(math.rad(-10-4*math.sin(sine/25-math.random(-0.25,3))), math.rad(-80), math.rad(0)), .7 / 3)
  1752. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-106.3-.9*math.cos(sine/12)),math.rad(0),math.rad(0)),1 / 2)
  1753. end
  1754. end
  1755. elseif TORSOVELOCITY > 1 then
  1756. ANIM = "Walk"
  1757. if ATTACK == false then
  1758. if mde == "IL" then
  1759. if NeckSnap then
  1760. Neck.C0 = Clerp(Neck.C0,NECKC0,1)
  1761. NeckSnap = false
  1762. else
  1763. Neck.C0 = Clerp(Neck.C0,NECKC0,.25)
  1764. end
  1765. pcall(function()
  1766. if math.random(1,math.floor((15/SINE)+.5)) == 1 then
  1767. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),1)
  1768. NeckSnap = true
  1769. end
  1770. end)
  1771. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CFrame.new(0, 0, 2 + 0.5 * math.cos(SINE / 25))*CFrame.Angles(math.rad(20),0,0),.25)
  1772. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0)*CFrame.Angles(math.rad(-10),0,0)*RIGHTSHOULDERC0,.25)
  1773. SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(0,-1,0)*CFrame.Angles(math.rad(154.35-5.65*math.sin(SINE/25)),0,0),.25)
  1774. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0)*CFrame.Angles(math.rad(20),0,math.rad(-10-10*math.cos(SINE/25)))*LEFTSHOULDERC0,.25)
  1775. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(-20),math.rad(80),math.rad(10+10*math.cos(SINE/25))),.25)
  1776. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(-10),math.rad(-80),math.rad(-10-10*math.cos(SINE/25))),.25)
  1777. elseif mde == "LC" then
  1778. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,3 - .5 * math.sin(sine/50)) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),0.7/3)
  1779. Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.7/3)
  1780. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(-41.6-4*math.sin(sine/50)),math.rad(0),math.rad(0)) * RIGHTSHOULDERC0,0.7/3)
  1781. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(-10-10*math.sin(sine/50))) * LEFTSHOULDERC0,0.7/3)
  1782. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,-0.01) * CFrame.Angles(math.rad(-20),math.rad(80),math.rad(10+10*math.sin(sine/50))),1/3)
  1783. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,-0.01) * CFrame.Angles(math.rad(-10),math.rad(-80),math.rad(-10-10*math.sin(sine/50))),1/3)
  1784. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-106.3-.9*math.cos(sine/12)),math.rad(0),math.rad(0)),1 / 2)
  1785. elseif mde == "Insane" then
  1786. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,3 - .5 * math.sin(sine/50)) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),0.7/3)
  1787. Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.7/3)
  1788. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(-41.6-4*math.sin(sine/50)),math.rad(0),math.rad(0)) * RIGHTSHOULDERC0,0.7/3)
  1789. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,0.5,0) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(-10-10*math.sin(sine/50))) * LEFTSHOULDERC0,0.7/3)
  1790. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,-0.01) * CFrame.Angles(math.rad(-20),math.rad(80),math.rad(10+10*math.sin(sine/50))),1/3)
  1791. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,-0.01) * CFrame.Angles(math.rad(-10),math.rad(-80),math.rad(-10-10*math.sin(sine/50))),1/3)
  1792. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-106.3-.9*math.cos(sine/12)),math.rad(0),math.rad(0)),1 / 2)
  1793. elseif mde == "Error" then
  1794. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,2 + .5 * math.cos(sine/15)) * CFrame.Angles(math.rad(40),math.rad(-5*math.cos(sine/30)),math.rad(0)),.7/3)
  1795. Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,-.25,0) * CFrame.Angles(math.rad(-40),math.rad(0),math.rad(0)),.7/3)
  1796. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0) * CFrame.Angles(math.rad(-45),math.rad(0),math.rad(5 + 2 * math.cos(sine/19))) * RIGHTSHOULDERC0,.7/3)
  1797. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-5 - 2 * math.cos(sine/19))) * LEFTSHOULDERC0,.7/3)
  1798. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-.5,-.5) * CFrame.Angles(math.rad(-20 + 9 * math.cos(sine/74)),math.rad(80),math.rad(0)) * CFrame.Angles(math.rad(0 + 5 * math.cos(sine/37)),math.rad(0),math.rad(0)),.7/3)
  1799. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0) * CFrame.Angles(math.rad(-20 - 9 * math.cos(sine/54)),math.rad(-80),math.rad(0)) * CFrame.Angles(math.rad(0 - 5 * math.cos(sine/41)),math.rad(0),math.rad(0)),.7/3)
  1800. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1/2)
  1801. elseif mde == "FAST" then
  1802. Humanoid.HipHeight = 0
  1803. GUN.Parent = Character
  1804. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,-.2) * CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),.25/3)
  1805. Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new() * CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),.25/3)
  1806. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,0) * CFrame.Angles(math.rad(-135),math.rad(0),math.rad(0)) * RIGHTSHOULDERC0,.75/3)
  1807. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(-135),math.rad(0),math.rad(0)) * LEFTSHOULDERC0,.75/3)
  1808. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,-.01) * CFrame.Angles(math.rad(75*math.sin(sine/2)),math.rad(90),math.rad(0)),1)
  1809. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,-.01) * CFrame.Angles(math.rad(-75*math.sin(sine/2)),math.rad(-90),math.rad(0)),1)
  1810. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1/2)
  1811. elseif mde == "Glitch" then
  1812. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,2 + .5 * math.cos(sine/9)) * CFrame.Angles(math.rad(20-2.5*math.sin(sine/9)),math.rad(0),math.rad(0)),1/2)
  1813. Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new() * CFrame.Angles(math.rad(-10-10*math.sin(sine/9)),math.rad(0),math.rad(0)),1/2)
  1814. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5+.25*math.sin(sine/9),0) * CFrame.Angles(math.rad(-50+5*math.sin(sine/9)),math.rad(0),math.rad(0)) * RIGHTSHOULDERC0,.7/3)
  1815. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5+.25*math.sin(sine/9),0) * CFrame.Angles(math.rad(110),math.rad(0),math.rad(0)) * LEFTSHOULDERC0,.7/3)
  1816. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,-.01) * CFrame.Angles(math.rad(-10),math.rad(80),math.rad(5+5*math.sin(sine/9))),1/2)
  1817. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,-.01) * CFrame.Angles(math.rad(0),math.rad(-80),math.rad(-5-5*math.sin(sine/9))),1/2)
  1818. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1/2)
  1819. elseif mde == "Chill" then
  1820. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,2 - .5 * math.sin(sine/9)) * CFrame.Angles(math.rad(45),math.rad(0),math.rad(0)),.7/3)
  1821. Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,-.05,0) * CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)),.7/3)
  1822. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5,-.1) * CFrame.Angles(math.rad(-45),math.rad(0),math.rad(0)) * RIGHTSHOULDERC0,.7/3)
  1823. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(135),math.rad(0),math.rad(0)) * LEFTSHOULDERC0,.7/3)
  1824. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,-.01) * CFrame.Angles(math.rad(-10),math.rad(80),math.rad(5+5*math.sin(sine/9))),1/2)
  1825. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,-.01) * CFrame.Angles(math.rad(0),math.rad(-80),math.rad(-5-5*math.sin(sine/9))),1/2)
  1826. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1/2)
  1827. elseif mde == "Karma" then
  1828. local headsnap = math.random(1,60);
  1829. local headsnapping=false;
  1830. if headsnap == 1 then
  1831. Neck.C0 = Clerp(Neck.C0, NECKC0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(math.random(500,500)), math.rad(math.random(500,500)), math.rad(math.random(500,500))), 1)headsnapping=true headsnapping=false
  1832. end
  1833. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0 , 0 , 2 - .5 * math.sin(sine/25)) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.8 / 3)
  1834. Neck.C0 = Clerp(Neck.C0, NECKC0 * CFrame.new(0, 0, 0) * CFrame.Angles(25-math.rad(math.random(0.25,3)), math.rad(math.random(0.25,3)), math.rad(math.random(0.25,3))), .7 / 3)
  1835. RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-41.6-4*math.sin(sine/25)), math.rad(math.random(-0.25,3)), math.rad(math.random(0.25,3)))* RIGHTSHOULDERC0, .7 / 3)
  1836. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90-4*math.sin(sine/25)), math.rad(5+2* math.sin(sine/25+math.random(-0.25,3))), math.rad(-2+5*math.sin(sine / 25))) * LEFTSHOULDERC0, .7 / 3)
  1837. RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-30-4*math.sin(sine/25-math.random(0.25,3))), math.rad(80), math.rad(0)), .7 / 3)
  1838. LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1 , 0) * CFrame.Angles(math.rad(-20-4*math.sin(sine/25-math.random(-0.25,3))), math.rad(-80), math.rad(0)), .7 / 3)
  1839. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15)*CFrame.Angles(math.rad(-106.3-.9*math.cos(Sine/12)),0,0),.25)
  1840. elseif mde == "Mde4" then
  1841. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC02*CFrame.new(0,math.cos(sine/25),-math.sin(sine/25)+2)*CFrame.Angles(math.rad(5*math.sin(sine/25)),0,math.rad(70)),.25)
  1842. Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.Angles(0,0,math.rad(-70))*CFrame.Angles(math.rad(5*math.cos(sine/25)),0,0),.25)
  1843. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1,.5,-.25)*CFrame.Angles(0,math.rad(-10),math.rad(-90))* RIGHTSHOULDERC0,.25)
  1844. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0)*CFrame.Angles(0,0,math.rad(-20+5*math.sin(sine/25)))* LEFTSHOULDERC0,.25)
  1845. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1-.1*math.sin(sine/25),-.01)*CFrame.Angles(0,math.rad(80),0),.25)
  1846. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-.5-.25*math.sin(sine/25),-.51)*CFrame.Angles(math.rad(-10),math.rad(-80),0),.25)
  1847. SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(.05,-1,-.15) * CFrame.Angles(math.rad(-90),math.rad(0),math.rad(0)),1/2)
  1848. elseif mde == "Mde5" then
  1849. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CFrame.new(0,.125*math.sin(SINE/12),0)*CFrame.Angles(math.rad(10-5*math.cos(SINE/12)),math.rad(-10*math.cos(SINE/12)),math.rad(-5*math.cos(SINE/12))),.25)
  1850. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(10-5*math.cos(SINE/12)),math.rad(10*math.cos(SINE/12)),math.rad(5*math.cos(SINE/12))),.25)
  1851. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,.5+.2*math.sin(SINE/12),-.25)*CFrame.Angles(math.rad(165-15*math.cos(SINE/12)),math.rad(-10+5*math.sin(SINE/12)),math.rad(10))*RIGHTSHOULDERC0,.25)
  1852. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5-.15*math.cos(SINE/12),.5*math.sin(SINE/12))*CFrame.Angles(math.rad(-30*math.sin(SINE/12)),math.rad(5*math.cos(SINE/12)),0)*LEFTSHOULDERC0,.25)
  1853. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-.9-.2*math.cos(SINE/12),.5*math.sin(SINE/12))*CFrame.Angles(math.rad(-10-40*math.sin(SINE/12)),math.rad(90+5*math.cos(SINE/12)),math.rad(2.5*math.cos(SINE/12))),.25)
  1854. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-.9+.2*math.cos(SINE/12),-.5*math.sin(SINE/12))*CFrame.Angles(math.rad(-10+40*math.sin(SINE/12)),math.rad(-90+5*math.cos(SINE/12)),math.rad(2.5*math.cos(SINE/12))),.25)
  1855. SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(.05,-1,-.15)*CFrame.Angles(math.rad(-106.3-.9*math.cos(Sine/12)),0,0),.25)
  1856. elseif mde == "IC" then
  1857. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0*CFrame.new(0, 0, 2 + 0.5 * math.cos(SINE / 25))*CFrame.Angles(math.rad(20),0,0),.25)
  1858. if NeckSnap then
  1859. Neck.C0 = Clerp(Neck.C0,NECKC0,1)
  1860. Head2.Eye1.Color = Color3.new(1,0,0)
  1861. Head2.Eye2.Color = Color3.new(1,0,0)
  1862. NeckSnap = false
  1863. else
  1864. Neck.C0 = Clerp(Neck.C0,NECKC0,.25)
  1865. Head2.Eye1.Color = Color3.new(1,1,1)
  1866. Head2.Eye2.Color = Color3.new(1,1,1)
  1867. end
  1868. pcall(function()
  1869. if math.random(1,math.floor((sine/15)+.5)) == 1 then
  1870. Neck.C0 = Clerp(Neck.C0,NECKC0*CFrame.Angles(math.rad(math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),1)
  1871. NeckSnap = true
  1872. end
  1873. end)
  1874. RightShoulder.C0 = Clerp(RightShoulder.C0,CFrame.new(1.5,0.5+.25*math.sin(sine/9),0) * CFrame.Angles(math.rad(135+5*math.sin(sine/9)),math.rad(0),math.rad(25))*RIGHTSHOULDERC0,.25)
  1875. SwordJoint.C0 = Clerp(SwordJoint.C0,CFrame.new(0,-2,0)*CFrame.Angles(80,0,0),.25)
  1876. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0)*CFrame.Angles(math.rad(20),0,math.rad(-10-10*math.cos(sine/25)))*LEFTSHOULDERC0,.25)
  1877. RightHip.C0 = Clerp(RightHip.C0,CFrame.new(1,-1,0)*CFrame.Angles(math.rad(-20),math.rad(80),math.rad(10+10*math.cos(sine/25))),.25)
  1878. LeftHip.C0 = Clerp(LeftHip.C0,CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(-10),math.rad(-80),math.rad(-10-10*math.cos(sine/25))),.25)
  1879. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(.05,-1,-.15)*CFrame.Angles(math.rad(-106.3-.9*math.cos(sine/12)),0,0),.25)
  1880. elseif mde == "Nostaglic" then
  1881. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CFrame.new(0,0,2 - .5 * math.sin(sine/9)) * CFrame.Angles(math.rad(45),math.rad(0),math.rad(0)),.7/3)
  1882. Neck.C0 = Clerp(Neck.C0,NECKC0 * CFrame.new(0,-.05,0) * CFrame.Angles(math.rad(20),math.rad(0),math.rad(0)),.7/3)
  1883. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.6) * ANGLES(RAD(165), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1884. LeftShoulder.C0 = Clerp(LeftShoulder.C0,CFrame.new(-1.5,.5,0) * CFrame.Angles(math.rad(-45),math.rad(0),math.rad(-5 - 2 * math.cos(sine/19))) * LEFTSHOULDERC0,.7/3)
  1885. RightHip.C0 = Clerp(RightHip.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-20-4*math.sin(sine/25-math.random(0.25,3))), math.rad(80), math.rad(0)), .7 / 3)
  1886. LeftHip.C0 = Clerp(LeftHip.C0, CFrame.new(-1, -1 , 0) * CFrame.Angles(math.rad(-10-4*math.sin(sine/25-math.random(-0.25,3))), math.rad(-80), math.rad(0)), .7 / 3)
  1887. GunJoint.C0 = Clerp(GunJoint.C0,CFrame.new(0.05,-1,-0.15) * CFrame.Angles(math.rad(-93.75+7.25*math.cos(sine/12)),math.rad(0),math.rad(0)),1 / 2)
  1888. end
  1889. end
  1890. end
  1891. unanchor()
  1892.  
  1893. if Rooted == false then
  1894. Disable_Jump = false
  1895. Humanoid.WalkSpeed = 50
  1896. elseif Rooted == true then
  1897. Disable_Jump = true
  1898. Humanoid.WalkSpeed = 0
  1899. end
  1900. end
  1901. local chat = function(MSG)
  1902. game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(MSG, "All")
  1903. end
  1904. chat("[Immortality Lord]: mmmmmm yes pet froge asjdoi28247q8ysau7ff")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement