Advertisement
McRoblox132

Corruption

May 15th, 2018
843
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 58.13 KB | None | 0 0
  1. --//========================================================================\\--
  2. --|| CREATED BY SHACKLUSTER | EDITED BY SHYIME
  3. --\\========================================================================//--
  4.  
  5. wait(0.2)
  6.  
  7. Player = game:GetService("Players").LocalPlayer
  8. PlayerGui = Player.PlayerGui
  9. Cam = workspace.CurrentCamera
  10. Backpack = Player.Backpack
  11. Character = Player.Character
  12. Humanoid = Character.Humanoid
  13. Mouse = Player:GetMouse()
  14. RootPart = Character["HumanoidRootPart"]
  15. Torso = Character["Torso"]
  16. Head = Character["Head"]
  17. RightArm = Character["Right Arm"]
  18. LeftArm = Character["Left Arm"]
  19. RightLeg = Character["Right Leg"]
  20. LeftLeg = Character["Left Leg"]
  21. RootJoint = RootPart["RootJoint"]
  22. Neck = Torso["Neck"]
  23. RightShoulder = Torso["Right Shoulder"]
  24. LeftShoulder = Torso["Left Shoulder"]
  25. RightHip = Torso["Right Hip"]
  26. LeftHip = Torso["Left Hip"]
  27.  
  28. local sick = Instance.new("Sound",Character)
  29. sick.SoundId = "rbxassetid://1383202399"
  30. sick.Looped = true
  31. sick.Pitch = 1
  32. sick.Volume = 1.3
  33. sick:Play()
  34.  
  35. IT = Instance.new
  36. CF = CFrame.new
  37. VT = Vector3.new
  38. RAD = math.rad
  39. C3 = Color3.new
  40. UD2 = UDim2.new
  41. BRICKC = BrickColor.new
  42. ANGLES = CFrame.Angles
  43. EULER = CFrame.fromEulerAnglesXYZ
  44. COS = math.cos
  45. ACOS = math.acos
  46. SIN = math.sin
  47. ASIN = math.asin
  48. ABS = math.abs
  49. MRANDOM = math.random
  50. FLOOR = math.floor
  51. local CLOAKED = false
  52. local KILLINSTINCT = 0
  53. local SONGS = {1591230720,608671887,1589211339,1383202399,699827050}
  54. local CHOICE = MRANDOM(1,4)
  55.  
  56. --//=================================\\
  57. --|| SOME OTHER STUFF
  58. --\\=================================//
  59. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  60. ff.Visible = false
  61. Humanoid.Name = "God Mode"
  62.  
  63.  
  64. --//=================================\\
  65. --|| USEFUL VALUES
  66. --\\=================================//
  67.  
  68. Animation_Speed = 3
  69. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  70. local Speed = 16
  71. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  72. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  73. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  74. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  75. local DAMAGEMULTIPLIER = 1
  76. local ANIM = "Idle"
  77. local ATTACK = false
  78. local char = game.Players.LocalPlayer.Character
  79. local EQUIPPED = false
  80. local HOLD = false
  81. local COMBO = 1
  82. local Rooted = false
  83. local SINE = 0
  84. local KEYHOLD = false
  85. local CHANGE = 2 / Animation_Speed
  86. local WALKINGANIM = false
  87. local VALUE1 = false
  88. local VALUE2 = false
  89. local ROBLOXIDLEANIMATION = IT("Animation")
  90. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  91. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  92. --ROBLOXIDLEANIMATION.Parent = Humanoid
  93. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  94. WEAPONGUI.Name = "Weapon GUI"
  95. local Weapon = IT("Model")
  96. Weapon.Name = "Adds"
  97. local Effects = IT("Folder", Weapon)
  98. Effects.Name = "Effects"
  99. local ANIMATOR = Humanoid.Animator
  100. local ANIMATE = Character.Animate
  101. local UNANCHOR = true
  102. local ENERGYSOUND = 1417051162
  103. local BEAMSOUND = 1417056781
  104. local EXPLOSIONSOUND = 1417056081
  105.  
  106. --//=================================\\
  107. --\\=================================//
  108.  
  109. local asd = Instance.new("ParticleEmitter")
  110. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  111. asd.LightEmission = .1
  112. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  113. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  114. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  115. asd.Transparency = bbb
  116. asd.Size = aaa
  117. asd.ZOffset = .9
  118. asd.Acceleration = Vector3.new(0, -15, 0)
  119. asd.LockedToPart = false
  120. asd.EmissionDirection = "Back"
  121. asd.Lifetime = NumberRange.new(1, 2)
  122. asd.Rotation = NumberRange.new(-100, 100)
  123. asd.RotSpeed = NumberRange.new(-100, 100)
  124. asd.Speed = NumberRange.new(10)
  125. asd.Enabled = false
  126. asd.VelocitySpread = 999
  127.  
  128. shirts = Instance.new("Shirt", char)
  129. pants = Instance.new("Pants", char)
  130. pants.Name = "Pants"
  131. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1590296743"
  132. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=1639329800"
  133.  
  134. function getbloody(victim,amount)
  135. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  136. PART.CFrame = victim.CFrame
  137. local HITPLAYERSOUNDS = {"356551938","264486467"}
  138. Debris:AddItem(PART,5)
  139. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  140. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  141. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  142. local prtcl = asd:Clone()
  143. prtcl.Parent = PART
  144. prtcl:Emit(amount*10)
  145. end
  146.  
  147. --//=================================\\
  148. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  149. --\\=================================//
  150.  
  151. ArtificialHB = Instance.new("BindableEvent", script)
  152. ArtificialHB.Name = "ArtificialHB"
  153.  
  154. script:WaitForChild("ArtificialHB")
  155.  
  156. local Sky = IT("Sky")
  157. Sky.Parent = game.Lighting
  158. Sky.MoonAngularSize = 45
  159. Sky.MoonTextureId = "http://www.roblox.com/asset/?id=1055904136"
  160.  
  161. frame = Frame_Speed
  162. tf = 0
  163. allowframeloss = false
  164. tossremainder = false
  165. lastframe = tick()
  166. script.ArtificialHB:Fire()
  167.  
  168. game:GetService("RunService").Heartbeat:connect(function(s, p)
  169. tf = tf + s
  170. if tf >= frame then
  171. if allowframeloss then
  172. script.ArtificialHB:Fire()
  173. lastframe = tick()
  174. else
  175. for i = 1, math.floor(tf / frame) do
  176. script.ArtificialHB:Fire()
  177. end
  178. lastframe = tick()
  179. end
  180. if tossremainder then
  181. tf = 0
  182. else
  183. tf = tf - frame * math.floor(tf / frame)
  184. end
  185. end
  186. end)
  187.  
  188. --//=============================================\\
  189. --|| LIGHTNING AND STUFF LIKE THAT
  190. --\\=============================================//
  191. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  192. ff.Visible = false
  193. Humanoid.Name = "God Mode"
  194.  
  195. local l = game.Lighting
  196. local sky = Instance.new("Sky",l)
  197. l.GlobalShadows = false
  198. l.TimeOfDay = "00:00:00"
  199. l.Brightness = 1
  200. l.Ambient = Color3.new(0.25, 0.5, 0.75)
  201. ---
  202.  
  203.  
  204.  
  205. --//=================================\\
  206. --|| SOME FUNCTIONS
  207. --\\=================================//
  208.  
  209. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  210. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  211. end
  212.  
  213. function PositiveAngle(NUMBER)
  214. if NUMBER >= 0 then
  215. NUMBER = 0
  216. end
  217. return NUMBER
  218. end
  219.  
  220. function NegativeAngle(NUMBER)
  221. if NUMBER <= 0 then
  222. NUMBER = 0
  223. end
  224. return NUMBER
  225. end
  226.  
  227. function Swait(NUMBER)
  228. if NUMBER == 0 or NUMBER == nil then
  229. ArtificialHB.Event:wait()
  230. else
  231. for i = 1, NUMBER do
  232. ArtificialHB.Event:wait()
  233. end
  234. end
  235. end
  236.  
  237. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  238. local NEWMESH = IT(MESH)
  239. if MESH == "SpecialMesh" then
  240. NEWMESH.MeshType = MESHTYPE
  241. if MESHID ~= "nil" and MESHID ~= "" then
  242. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  243. end
  244. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  245. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  246. end
  247. end
  248. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  249. NEWMESH.Scale = SCALE
  250. NEWMESH.Parent = PARENT
  251. return NEWMESH
  252. end
  253.  
  254. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  255. local NEWPART = IT("Part")
  256. NEWPART.formFactor = FORMFACTOR
  257. NEWPART.Reflectance = REFLECTANCE
  258. NEWPART.Transparency = TRANSPARENCY
  259. NEWPART.CanCollide = false
  260. NEWPART.Locked = true
  261. NEWPART.Anchored = true
  262. if ANCHOR == false then
  263. NEWPART.Anchored = false
  264. end
  265. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  266. NEWPART.Name = NAME
  267. NEWPART.Size = SIZE
  268. NEWPART.Position = Torso.Position
  269. NEWPART.Material = MATERIAL
  270. NEWPART:BreakJoints()
  271. NEWPART.Parent = PARENT
  272. return NEWPART
  273. end
  274.  
  275. local function weldBetween(a, b)
  276. local weldd = Instance.new("ManualWeld")
  277. weldd.Part0 = a
  278. weldd.Part1 = b
  279. weldd.C0 = CFrame.new()
  280. weldd.C1 = b.CFrame:inverse() * a.CFrame
  281. weldd.Parent = a
  282. return weldd
  283. end
  284.  
  285.  
  286. function QuaternionFromCFrame(cf)
  287. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  288. local trace = m00 + m11 + m22
  289. if trace > 0 then
  290. local s = math.sqrt(1 + trace)
  291. local recip = 0.5 / s
  292. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  293. else
  294. local i = 0
  295. if m11 > m00 then
  296. i = 1
  297. end
  298. if m22 > (i == 0 and m00 or m11) then
  299. i = 2
  300. end
  301. if i == 0 then
  302. local s = math.sqrt(m00 - m11 - m22 + 1)
  303. local recip = 0.5 / s
  304. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  305. elseif i == 1 then
  306. local s = math.sqrt(m11 - m22 - m00 + 1)
  307. local recip = 0.5 / s
  308. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  309. elseif i == 2 then
  310. local s = math.sqrt(m22 - m00 - m11 + 1)
  311. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  312. end
  313. end
  314. end
  315.  
  316. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  317. local xs, ys, zs = x + x, y + y, z + z
  318. local wx, wy, wz = w * xs, w * ys, w * zs
  319. local xx = x * xs
  320. local xy = x * ys
  321. local xz = x * zs
  322. local yy = y * ys
  323. local yz = y * zs
  324. local zz = z * zs
  325. 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))
  326. end
  327.  
  328. function QuaternionSlerp(a, b, t)
  329. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  330. local startInterp, finishInterp;
  331. if cosTheta >= 0.0001 then
  332. if (1 - cosTheta) > 0.0001 then
  333. local theta = ACOS(cosTheta)
  334. local invSinTheta = 1 / SIN(theta)
  335. startInterp = SIN((1 - t) * theta) * invSinTheta
  336. finishInterp = SIN(t * theta) * invSinTheta
  337. else
  338. startInterp = 1 - t
  339. finishInterp = t
  340. end
  341. else
  342. if (1 + cosTheta) > 0.0001 then
  343. local theta = ACOS(-cosTheta)
  344. local invSinTheta = 1 / SIN(theta)
  345. startInterp = SIN((t - 1) * theta) * invSinTheta
  346. finishInterp = SIN(t * theta) * invSinTheta
  347. else
  348. startInterp = t - 1
  349. finishInterp = t
  350. end
  351. end
  352. 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
  353. end
  354.  
  355. function Clerp(a, b, t)
  356. local qa = {QuaternionFromCFrame(a)}
  357. local qb = {QuaternionFromCFrame(b)}
  358. local ax, ay, az = a.x, a.y, a.z
  359. local bx, by, bz = b.x, b.y, b.z
  360. local _t = 1 - t
  361. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  362. end
  363.  
  364. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  365. local frame = IT("Frame")
  366. frame.BackgroundTransparency = TRANSPARENCY
  367. frame.BorderSizePixel = BORDERSIZEPIXEL
  368. frame.Position = POSITION
  369. frame.Size = SIZE
  370. frame.BackgroundColor3 = COLOR
  371. frame.BorderColor3 = BORDERCOLOR
  372. frame.Name = NAME
  373. frame.Parent = PARENT
  374. return frame
  375. end
  376.  
  377. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  378. local label = IT("TextLabel")
  379. label.BackgroundTransparency = 1
  380. label.Size = UD2(1, 0, 1, 0)
  381. label.Position = UD2(0, 0, 0, 0)
  382. label.TextColor3 = TEXTCOLOR
  383. label.TextStrokeTransparency = STROKETRANSPARENCY
  384. label.TextTransparency = TRANSPARENCY
  385. label.FontSize = TEXTFONTSIZE
  386. label.Font = TEXTFONT
  387. label.BorderSizePixel = BORDERSIZEPIXEL
  388. label.TextScaled = false
  389. label.Text = TEXT
  390. label.Name = NAME
  391. label.Parent = PARENT
  392. return label
  393. end
  394.  
  395. function NoOutlines(PART)
  396. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  397. end
  398.  
  399. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  400. local NEWWELD = IT(TYPE)
  401. NEWWELD.Part0 = PART0
  402. NEWWELD.Part1 = PART1
  403. NEWWELD.C0 = C0
  404. NEWWELD.C1 = C1
  405. NEWWELD.Parent = PARENT
  406. return NEWWELD
  407. end
  408.  
  409. local S = IT("Sound")
  410. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  411. local NEWSOUND = nil
  412. coroutine.resume(coroutine.create(function()
  413. NEWSOUND = S:Clone()
  414. NEWSOUND.Parent = PARENT
  415. NEWSOUND.Volume = VOLUME
  416. NEWSOUND.Pitch = PITCH
  417. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  418. NEWSOUND:play()
  419. if DOESLOOP == true then
  420. NEWSOUND.Looped = true
  421. else
  422. repeat wait(1) until NEWSOUND.Playing == false
  423. NEWSOUND:remove()
  424. end
  425. end))
  426. return NEWSOUND
  427. end
  428.  
  429. function CFrameFromTopBack(at, top, back)
  430. local right = top:Cross(back)
  431. 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)
  432. end
  433.  
  434. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  435. function WACKYEFFECT(Table)
  436. local TYPE = (Table.EffectType or "Sphere")
  437. local SIZE = (Table.Size or VT(1,1,1))
  438. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  439. local TRANSPARENCY = (Table.Transparency or 0)
  440. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  441. local CFRAME = (Table.CFrame or Torso.CFrame)
  442. local MOVEDIRECTION = (Table.MoveToPos or nil)
  443. local ROTATION1 = (Table.RotationX or 0)
  444. local ROTATION2 = (Table.RotationY or 0)
  445. local ROTATION3 = (Table.RotationZ or 0)
  446. local MATERIAL = (Table.Material or "Neon")
  447. local COLOR = (Table.Color or C3(1,1,1))
  448. local TIME = (Table.Time or 45)
  449. local SOUNDID = (Table.SoundID or nil)
  450. local SOUNDPITCH = (Table.SoundPitch or nil)
  451. local SOUNDVOLUME = (Table.SoundVolume or nil)
  452. coroutine.resume(coroutine.create(function()
  453. local PLAYSSOUND = false
  454. local SOUND = nil
  455. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  456. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  457. PLAYSSOUND = true
  458. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  459. end
  460. EFFECT.Color = COLOR
  461. local MSH = nil
  462. if TYPE == "Sphere" then
  463. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  464. elseif TYPE == "Block" then
  465. MSH = IT("BlockMesh",EFFECT)
  466. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  467. elseif TYPE == "Wave" then
  468. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  469. elseif TYPE == "Ring" then
  470. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  471. elseif TYPE == "Slash" then
  472. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  473. elseif TYPE == "Round Slash" then
  474. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  475. elseif TYPE == "Swirl" then
  476. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  477. elseif TYPE == "Skull" then
  478. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  479. elseif TYPE == "Crystal" then
  480. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  481. end
  482. if MSH ~= nil then
  483. local MOVESPEED = nil
  484. if MOVEDIRECTION ~= nil then
  485. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  486. end
  487. local GROWTH = SIZE - ENDSIZE
  488. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  489. if TYPE == "Block" then
  490. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  491. else
  492. EFFECT.CFrame = CFRAME
  493. end
  494. for LOOP = 1, TIME+1 do
  495. Swait()
  496. MSH.Scale = MSH.Scale - GROWTH/TIME
  497. if TYPE == "Wave" then
  498. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  499. end
  500. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  501. if TYPE == "Block" then
  502. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  503. else
  504. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  505. end
  506. if MOVEDIRECTION ~= nil then
  507. local ORI = EFFECT.Orientation
  508. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  509. EFFECT.Orientation = ORI
  510. end
  511. end
  512. if PLAYSSOUND == false then
  513. EFFECT:remove()
  514. else
  515. repeat Swait() until SOUND.Playing == false
  516. EFFECT:remove()
  517. end
  518. else
  519. if PLAYSSOUND == false then
  520. EFFECT:remove()
  521. else
  522. repeat Swait() until SOUND.Playing == false
  523. EFFECT:remove()
  524. end
  525. end
  526. end))
  527. end
  528.  
  529. function MakeForm(PART,TYPE)
  530. if TYPE == "Cyl" then
  531. local MSH = IT("CylinderMesh",PART)
  532. elseif TYPE == "Ball" then
  533. local MSH = IT("SpecialMesh",PART)
  534. MSH.MeshType = "Sphere"
  535. elseif TYPE == "Wedge" then
  536. local MSH = IT("SpecialMesh",PART)
  537. MSH.MeshType = "Wedge"
  538. end
  539. end
  540.  
  541. Debris = game:GetService("Debris")
  542.  
  543. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  544. local DIRECTION = CF(StartPos,EndPos).lookVector
  545. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  546. end
  547.  
  548. function turnto(position)
  549. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  550. end
  551.  
  552. --//=================================\\
  553. --|| WEAPON CREATION
  554. --\\=================================//
  555.  
  556. --[[
  557. Thanks for using Build-To-Lua by jarredbcv.
  558. ]]--
  559.  
  560. New = function(Object, Parent, Name, Data)
  561. local Object = Instance.new(Object)
  562. for Index, Value in pairs(Data or {}) do
  563. Object[Index] = Value
  564. end
  565. Object.Parent = Parent
  566. Object.Name = Name
  567. return Object
  568. end
  569.  
  570.  
  571. Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000252, 0.660000384, 0.0500000007),CFrame = CFrame.new(-67.6787415, 1.33912802, 93.9772263, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
  572. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LeftLeg,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.0127105713, 0.339127064, 0.487541199, 0, 0, 1, 0, 1, 0, -1, 0, 0),})
  573. Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000252, 0.660000384, 0.0500000007),CFrame = CFrame.new(-66.6787415, 1.33912802, 93.9772263, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
  574. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LeftLeg,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.0127105713, 0.339127064, -0.512458801, 0, 0, 1, 0, 1, 0, -1, 0, 0),})
  575.  
  576. Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.140000015, 0.0500000007),CFrame = CFrame.new(-67.6787415, 3.12643075, 92.6921463, -9.31322575e-10, -1.86264515e-09, -0.999999285, 0.777135551, 0.629333496, 9.31322575e-10, 0.6293329, -0.777134895, 0),})
  577. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, -1, 0, 0),C1 = CFrame.new(-0.766067505, 0.138611317, 0.515716553, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
  578. Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.12999988, 1.12000012, 0.0500000007),CFrame = CFrame.new(-67.6951752, 3.43133378, 93.991272, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
  579. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.533157349, 0.443484068, 0.50994873, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
  580. Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.450000018, 0.590000272, 0.0500000007),CFrame = CFrame.new(-67.6951752, 2.60608268, 94.3512573, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
  581. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.893096924, -0.381786108, 0.509513855, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
  582. Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000013, 0.590000272, 0.0500000007),CFrame = CFrame.new(-66.6951752, 2.60608268, 94.2912598, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
  583. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.817497253, -0.388065577, -0.489402771, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
  584. Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.220000237, 0.660000384, 0.0500000007),CFrame = CFrame.new(-66.6787338, 2.57395577, 93.9222183, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
  585. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.448242188, -0.420258999, -0.49987793, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
  586. Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.07999992, 1.12000012, 0.0500000007),CFrame = CFrame.new(-66.6951752, 3.43133354, 93.9662704, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
  587. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.492546082, 0.437201023, -0.489517212, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
  588. Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.340000302, 0.0500000007),CFrame = CFrame.new(-66.6787415, 3.2281816, 93.1287689, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
  589. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(-0.345108032, 0.234031916, -0.491600037, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
  590. Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.0999999, 0.0500000007, 1.00999975),CFrame = CFrame.new(-67.1759109, 3.99574399, 93.9762726, 0, -0.0260759834, -0.999659359, 0, 0.999660075, -0.0260760002, 0.999999225, -2.91038305e-11, -9.31322575e-10),})
  591. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, -0.0260760002, 0.999660015, 0, -0.999660015, -0.0260760002, 0),C1 = CFrame.new(0.510047913, 1.00462079, -0.0125579834, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
  592.  
  593. Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.419999987, 0.870000064),CFrame = CFrame.new(-67.0815201, 2.81366396, 91.9528885, 0, 0, -1, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, 0),})
  594. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LeftArm,C0 = CFrame.new(0, 0, 0, 0, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, -1, 0, 0),C1 = CFrame.new(-0.00936126709, -0.184385061, -0.0693511963, 0, 0, 1, 0, 1, 0, -1, 0, 0),})
  595.  
  596.  
  597.  
  598. for i = 1, 35 do
  599. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false)
  600. FACE.Color = C3(0,0,0)
  601. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  602. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  603. end
  604.  
  605. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Dark indigo", "Eye", VT(0.6,0.1,1)/2,false)
  606. MakeForm(Eye,"Ball")
  607. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  608. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Dark indigo", "Eye", VT(0.6,0.1,1)/2,false)
  609. MakeForm(Eye,"Ball")
  610. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  611. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Dark indigo", "Eye", VT(0.1,1,1)/2,false)
  612. MakeForm(Eye,"Ball")
  613. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  614. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Dark indigo", "Eye", VT(0.1,1,1)/2,false)
  615. MakeForm(Eye,"Ball")
  616. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  617.  
  618. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Dark indigo", "BraceletPart", VT(1.01,0.3,1.01),false)
  619. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  620. for i = 1, 3 do
  621. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Royal purple", "BraceletPart", VT(0.2,1.02,0.2),false)
  622. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0, 0, 0.6-0.3*i) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  623. MakeForm(Part,"Cyl")
  624. end
  625. for i = 1, 3 do
  626. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Dark indigo", "BraceletPart", VT(0.2,1.02,0.2),false)
  627. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.6-0.3*i, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(90)), CF(0, 0, 0))
  628. MakeForm(Part,"Cyl")
  629. end
  630. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Dark indigo", "BraceletPart", VT(0.51,0.6,0.25),false)
  631. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0))
  632. MakeForm(Part,"Wedge")
  633. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Dark indigo", "BraceletPart", VT(0.51,0.6,0.25),false)
  634. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0))
  635. MakeForm(Part,"Wedge")
  636. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Dark indigo", "BraceletPart", VT(0.52,0.5,0.25/2.3),false)
  637. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0))
  638. MakeForm(Part,"Wedge")
  639. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Dark indigo", "BraceletPart", VT(0.52,0.5,0.25/2.3),false)
  640. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0))
  641. MakeForm(Part,"Wedge")
  642.  
  643.  
  644. for _, c in pairs(Weapon:GetChildren()) do
  645. if c.ClassName == "Part" then
  646. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  647. local AURA = c:Clone()
  648. AURA:BreakJoints()
  649. AURA.Parent = c
  650. AURA.CFrame = c.CFrame
  651. AURA.Size = AURA.Size*1.001
  652. AURA.Transparency = 0.8
  653. AURA.BrickColor = BRICKC"Royal purple"
  654. AURA.Material = "Neon"
  655. weldBetween(c,AURA)
  656. end
  657. end
  658.  
  659. local SKILLTEXTCOLOR = BRICKC"Dark indigo".Color
  660. local SKILLFONT = "Bodoni"
  661. local SKILLTEXTSIZE = 7
  662.  
  663. Weapon.Parent = Character
  664.  
  665. Humanoid.Died:connect(function()
  666.  
  667. ATTACK = true
  668. end)
  669.  
  670. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  671. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  672. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  673.  
  674. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Corrupted Beam", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1")
  675. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X] Corrupted Explosion", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2")
  676. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Corrupted Stun", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3")
  677.  
  678. --//=================================\\
  679. --|| DAMAGE FUNCTIONS
  680. --\\=================================//
  681.  
  682. function StatLabel(CFRAME, TEXT, COLOR)
  683. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  684. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  685. local BODYGYRO = IT("BodyGyro", STATPART)
  686. game:GetService("Debris"):AddItem(STATPART ,5)
  687. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  688. BILLBOARDGUI.Adornee = STATPART
  689. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  690. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  691. BILLBOARDGUI.AlwaysOnTop = false
  692. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  693. TEXTLABEL.BackgroundTransparency = 1
  694. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  695. TEXTLABEL.Text = TEXT
  696. TEXTLABEL.Font = SKILLFONT
  697. TEXTLABEL.FontSize="Size42"
  698. TEXTLABEL.TextColor3 = COLOR
  699. TEXTLABEL.TextStrokeTransparency = 0
  700. TEXTLABEL.TextScaled = true
  701. TEXTLABEL.TextWrapped = true
  702. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  703. for i = 1, 50 do
  704. Swait()
  705. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  706. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  707. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  708. end
  709. THEPART.Parent = nil
  710. end),STATPART, TEXTLABEL)
  711. end
  712.  
  713. --//=================================\\
  714. --|| DAMAGING
  715. --\\=================================//
  716.  
  717.  
  718. function Kill(Char)
  719. local NewCharacter = IT("Model",Effects)
  720. NewCharacter.Name = "Ow im ded ;-;"
  721. for _, c in pairs(Char:GetDescendants()) do
  722. if c:IsA("BasePart") and c.Transparency == 0 then
  723. if c.Parent == Char then
  724. getbloody(c,5)
  725. end
  726. c:BreakJoints()
  727. c.Material = "Glass"
  728. c.Color = C3(0.5,0,0)
  729. c.CanCollide = true
  730. c.Transparency = 0.3
  731. if c:FindFirstChildOfClass("SpecialMesh") then
  732. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  733. end
  734. if c.Name == "Head" then
  735. c:ClearAllChildren()
  736. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  737. end
  738. if c.ClassName == "MeshPart" then
  739. c.TextureID = ""
  740. end
  741. if c:FindFirstChildOfClass("BodyPosition") then
  742. c:FindFirstChildOfClass("BodyPosition"):remove()
  743. end
  744. if c:FindFirstChildOfClass("ParticleEmitter") then
  745. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  746. end
  747. c.Parent = NewCharacter
  748. c.Name = "DeadPart"
  749. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  750. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  751. end
  752. end
  753. Char:remove()
  754. Debris:AddItem(NewCharacter,5)
  755. end
  756.  
  757. function ApplyAoE(POSITION,RANGE,BRUTAL)
  758. local CHILDREN = workspace:GetDescendants()
  759. for index, CHILD in pairs(CHILDREN) do
  760. if CHILD.ClassName == "Model" and CHILD ~= Character then
  761. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  762. if HUM then
  763. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  764. if TORSO then
  765. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  766. if BRUTAL == true then
  767. Kill(CHILD)
  768. else
  769. CHILD:BreakJoints()
  770. end
  771. end
  772. end
  773. end
  774. end
  775. end
  776. end
  777.  
  778. --//=================================\\
  779. --|| ATTACK FUNCTIONS AND STUFF
  780. --\\=================================//
  781.  
  782. function Charge(TIME,GYRO)
  783. local SND = CreateSound(ENERGYSOUND,Torso,6,TIME,false)
  784. local G = nil
  785. if GYRO == true then
  786. G = IT("BodyGyro",RootPart)
  787. G.D = 250
  788. G.P = 200000
  789. G.MaxTorque = VT(math.huge,math.huge,math.huge)
  790. end
  791. for i=0, TIME, 0.1 / Animation_Speed do
  792. Swait()
  793. if G then
  794. G.cframe = CF(RootPart.Position,Mouse.Hit.p)
  795. end
  796. WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(1.2,1.2,1.2), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BasePart.CFrame, MoveToPos = BasePart.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-4).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  797. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  798. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  799. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  800. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  801. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  802. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  803. end
  804. SND:remove()
  805. if G then
  806. return G
  807. end
  808. end
  809.  
  810. function Corrupted_Beam()
  811. ATTACK = true
  812. Rooted = false
  813. local GRAV = IT("BodyPosition",RootPart)
  814. GRAV.D = 75
  815. GRAV.P = 20000
  816. GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
  817. GRAV.Position = RootPart.Position
  818. local GYRO = Charge(2,true)
  819. local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Dark indigo", "Beam", VT(15,15,0))
  820. MakeForm(BEAM,"Ball")
  821. CreateSound(BEAMSOUND,BEAM,10,1,false)
  822. CreateSound(BEAMSOUND,BEAM,10,0.9,false)
  823. CreateSound(BEAMSOUND,BEAM,10,0.8,false)
  824. for i = 1, 150 do
  825. Swait()
  826. BEAM.Size = BEAM.Size + VT(-0.1,-0.1,2)
  827. ApplyAoE(BEAM.CFrame*CF(0,0,-BEAM.Size.Z/2).p,BEAM.Size.Y/2,50,200,0,false)
  828. WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(3,3,3), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BEAM.CFrame*CF(0,0,BEAM.Size.Z/2), MoveToPos = BEAM.CFrame*CF(0,0,BEAM.Size.Z/2)*ANGLES(RAD(90),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0.3,-25).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  829. BEAM.CFrame = CF(Torso.Position,Torso.CFrame*CF(0,0,-1).p)*CF(0,0,-2-(BEAM.Size.Z/2))
  830. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  831. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  832. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  833. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  834. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  835. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  836. end
  837. GRAV:remove()
  838. BEAM:remove()
  839. GYRO:remove()
  840. ATTACK = false
  841. Rooted = false
  842. end
  843.  
  844. function Corrupted_Explosion()
  845. ATTACK = true
  846. Rooted = true
  847. for i=0, 1, 0.1 / Animation_Speed do
  848. Swait()
  849. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.6 / Animation_Speed)
  850. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.6 / Animation_Speed)
  851. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  852. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.1 / Animation_Speed)
  853. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  854. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  855. end
  856. for i=0, 0.4, 0.1 / Animation_Speed do
  857. Swait()
  858. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed)
  859. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed)
  860. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  861. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  862. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.01) * ANGLES(RAD(75), RAD(25), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  863. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  864. end
  865. local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Dark indigo", "Beam", VT(0,0,0))
  866. local BEAM2 = CreatePart(3, Effects, "Neon", 0, 0, "Dark indigo", "Beam", VT(0,0,0))
  867. MakeForm(BEAM,"Ball")
  868. MakeForm(BEAM2,"Ball")
  869. BEAM.CFrame = CF(RootPart.Position)
  870. BEAM2.CFrame = CF(RootPart.Position)
  871. CreateSound(EXPLOSIONSOUND,RootPart,10,1,false)
  872. for i=1, 100 do
  873. Swait()
  874. BEAM.Size = BEAM.Size + VT(0.7,8,0.7)
  875. BEAM2.Size = BEAM2.Size + VT(2,2,2)
  876. ApplyAoE(BEAM2.Position,BEAM2.Size.Z/2,5,5,15,true)
  877. BEAM.CFrame = CF(RootPart.Position)
  878. BEAM2.CFrame = CF(RootPart.Position)
  879. WACKYEFFECT({TIME = 5+i, EffectType = "Swirl", Size = BEAM2.Size*1.15, Size2 = VT(0,BEAM.Size.Y,0), Transparency = 0.8, Transparency2 = 1, CFrame = BEAM.CFrame * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  880. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed)
  881. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed)
  882. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  883. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  884. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.01) * ANGLES(RAD(75), RAD(25), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  885. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  886. end
  887. WACKYEFFECT({TIME = 75, EffectType = "Sphere", Size = BEAM.Size, Size2 = VT(0,BEAM.Size.Y,0), Transparency = 0, Transparency2 = 0, CFrame = BEAM.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  888. WACKYEFFECT({TIME = 75, EffectType = "Sphere", Size = BEAM2.Size, Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.6, CFrame = BEAM2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  889. BEAM2:remove()
  890. BEAM:remove()
  891. ATTACK = false
  892. Rooted = false
  893. end
  894.  
  895. function Corrupted_Immobilization()
  896. ATTACK = true
  897. Rooted = true
  898. Charge(2,false)
  899. local SND = CreateSound(EXPLOSIONSOUND,RootPart,10,1,false)
  900. local SND2 = CreateSound(ENERGYSOUND,RootPart,10,1,false)
  901. for i = 1, 60 do
  902. Swait()
  903. ApplyAoE(RootPart.Position,i*1.3,10,20,-200,true)
  904. SND.Pitch = SND.Pitch - 1/60
  905. SND2.Pitch = SND.Pitch
  906. WACKYEFFECT({TIME = 4, EffectType = "Wave", Size = VT(i*2,10,i*2), Size2 = VT(i*2,10,i*2), Transparency = 0.9, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  907. WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,10,0), Size2 = VT(i*2,6,i*2), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  908. WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,6,0), Size2 = VT(i*1.6,10,i*1.6), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(MRANDOM(-5,5)), RAD(i*5), RAD(MRANDOM(-5,5))), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  909. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  910. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  911. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(-45), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  912. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(45), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  913. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  914. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  915. end
  916. SND:remove()
  917. SND2:remove()
  918. ATTACK = false
  919. Rooted = false
  920. end
  921.  
  922. --//=================================\\
  923. --|| ASSIGN THINGS TO KEYS
  924. --\\=================================//
  925.  
  926. function MouseDown(Mouse)
  927. if ATTACK == false then
  928. end
  929. end
  930.  
  931. function MouseUp(Mouse)
  932. HOLD = false
  933. end
  934.  
  935. function KeyDown(Key)
  936. KEYHOLD = true
  937. if Key == "z" and ATTACK == false then
  938. Corrupted_Beam()
  939. end
  940.  
  941. if Key == "x" and ATTACK == false then
  942. Corrupted_Explosion()
  943. end
  944.  
  945. if Key == "c" and ATTACK == false then
  946. Corrupted_Immobilization()
  947. elseif Key == "1" and ATTACK == false then
  948. if CHOICE ~= 1 then
  949. CHOICE = 1
  950. sick:Play()
  951. end
  952. elseif Key == "2" and ATTACK == false then
  953. if CHOICE ~= 2 then
  954. CHOICE = 2
  955. sick:Play()
  956. end
  957. elseif Key == "3" and ATTACK == false then
  958. if CHOICE ~= 3 then
  959. CHOICE = 3
  960. sick:Play()
  961. end
  962. elseif Key == "4" and ATTACK == false then
  963. if CHOICE ~= 4 then
  964. CHOICE = 4
  965. sick:Play()
  966. end
  967.  
  968. end
  969. end
  970.  
  971.  
  972.  
  973. function KeyUp(Key)
  974. KEYHOLD = false
  975. end
  976.  
  977. Mouse.Button1Down:connect(function(NEWKEY)
  978. MouseDown(NEWKEY)
  979. end)
  980. Mouse.Button1Up:connect(function(NEWKEY)
  981. MouseUp(NEWKEY)
  982. end)
  983. Mouse.KeyDown:connect(function(NEWKEY)
  984. KeyDown(NEWKEY)
  985. end)
  986. Mouse.KeyUp:connect(function(NEWKEY)
  987. KeyUp(NEWKEY)
  988. end)
  989.  
  990. --//=================================\\
  991. --\\=================================//
  992. local BODY = {}
  993. for _, c in pairs(Character:GetDescendants()) do
  994. if c:IsA("BasePart") and c.Name ~= "Handle" then
  995. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  996. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  997. end
  998. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name})
  999. elseif c:IsA("JointInstance") then
  1000. table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil})
  1001. end
  1002. end
  1003.  
  1004.  
  1005.  
  1006. function refit()
  1007. Character.Parent = workspace
  1008. for e = 1, #BODY do
  1009. if BODY[e] ~= nil then
  1010. local STUFF = BODY[e]
  1011. local PART = STUFF[1]
  1012. local PARENT = STUFF[2]
  1013. local MATERIAL = STUFF[3]
  1014. local COLOR = STUFF[4]
  1015. local TRANSPARENCY = STUFF[5]
  1016. --local SIZE = STUFF[6]
  1017. local NAME = STUFF[7]
  1018. if PART.ClassName == "Part" and PART ~= RootPart then
  1019. PART.Material = MATERIAL
  1020. PART.Transparency = TRANSPARENCY
  1021. PART.Name = NAME
  1022. end
  1023. if PART.Parent ~= PARENT then
  1024. Humanoid:remove()
  1025. PART.Parent = PARENT
  1026. Humanoid = IT("Humanoid",Character)
  1027. end
  1028. end
  1029. end
  1030. end
  1031.  
  1032. local SKILLTEXTCOLOR = C3(58,125,21)
  1033. local SKILLFONT = "Fantasy"
  1034. local SKILLTEXTSIZE = 6
  1035.  
  1036. Humanoid.Died:connect(function()
  1037. refit()
  1038. end)
  1039.  
  1040. function unanchor()
  1041. if UNANCHOR == true then
  1042. g = Character:GetChildren()
  1043. for i = 1, #g do
  1044. if g[i].ClassName == "Part" then
  1045. g[i].Anchored = false
  1046. end
  1047. end
  1048. end
  1049. end
  1050.  
  1051. for _, c in pairs(Character:GetChildren()) do
  1052. if c.ClassName == "Part" then
  1053. c.Material = "Neon"
  1054. if c:FindFirstChildOfClass("ParticleEmitter") then
  1055. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1056. end
  1057. if c == Torso then
  1058. c.Color = C3(0,0,0)
  1059. elseif c == RightArm then
  1060. c.Color = C3(0.05,0.05,0.15)
  1061. elseif c == LeftArm then
  1062. c.Color = C3(0.05,0.05,0.15)
  1063. elseif c == RightLeg then
  1064. c.Color = C3(0,0,0.05)
  1065. elseif c == LeftLeg then
  1066. c.Color = C3(0,0,0.05)
  1067. elseif c == Head then
  1068. if c:FindFirstChild("Dominus") == nil then
  1069. local M = CreateMesh("SpecialMesh", c, "FileMesh", "1285237", "63036639", VT(1,1,1)*1.1, VT(0,0.6,0))
  1070. M.Name = "Dominus"
  1071. end
  1072. if c:FindFirstChild("face") then
  1073. c.face:remove()
  1074. end
  1075. end
  1076. elseif c.ClassName == "" or c.ClassName == "" or c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1077. c:remove()
  1078. end
  1079. end
  1080.  
  1081. --//=================================\\
  1082. --|| WRAP THE WHOLE SCRIPT UP
  1083. --\\=================================//
  1084.  
  1085. Humanoid.Changed:connect(function(Jump)
  1086. if Jump == "Jump" and (Disable_Jump == true) then
  1087. Humanoid.Jump = false
  1088. end
  1089. end)
  1090.  
  1091. while true do
  1092. Swait()
  1093. script.Parent = WEAPONGUI
  1094. ANIMATE.Parent = nil
  1095. if Humanoid then
  1096. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1097. IDLEANIMATION:Play()
  1098. end
  1099. SINE = SINE + CHANGE
  1100. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1101. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1102. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1103. local WALKSPEEDVALUE = 5 / (Humanoid.WalkSpeed / 16)
  1104. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1105. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1106. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1107. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed)
  1108. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed)
  1109. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1110. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1111. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1112. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1113. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1114. end
  1115. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1116. ANIM = "Jump"
  1117. if ATTACK == false then
  1118. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1119. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1120. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1121. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1122. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1123. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1124. end
  1125. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1126. ANIM = "Fall"
  1127. if ATTACK == false then
  1128. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1129. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1130. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1131. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1132. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1133. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1134. end
  1135. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1136. ANIM = "Idle"
  1137. if ATTACK == false then
  1138. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1139. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1140. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(5 + 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1141. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-5 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1142. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1143. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1144. if VALUE1 == false and MRANDOM(1,200) == 1 then
  1145. coroutine.resume(coroutine.create(function()
  1146. VALUE1 = true
  1147. for i = 1, 25 do
  1148. Swait()
  1149. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD((15+MRANDOM(-15,15)/15)), RAD(0)), 3 / Animation_Speed)
  1150.  
  1151. end
  1152. VALUE1 = false
  1153. end))
  1154. end
  1155. end
  1156.  
  1157. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1158. ANIM = "Walk"
  1159. if ATTACK == false then
  1160. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1161. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1162. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(25 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1163. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(-25 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1164. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1165. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1166. end
  1167. end
  1168.  
  1169.  
  1170. sick.Parent = Torso
  1171. sick.Playing = true
  1172. sick.SoundId = "rbxassetid://"..SONGS[CHOICE]
  1173.  
  1174.  
  1175. unanchor()
  1176. Humanoid.MaxHealth = "inf"
  1177. Humanoid.Health = "inf"
  1178. if Rooted == false then
  1179. Disable_Jump = false
  1180. Humanoid.WalkSpeed = Speed
  1181. elseif Rooted == true then
  1182. Disable_Jump = true
  1183. Humanoid.WalkSpeed = 0
  1184. end
  1185. end
  1186.  
  1187. --//=================================\\
  1188. --\\=================================//
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194. --//====================================================\\--
  1195. --|| END OF SCRIPT
  1196. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement