Advertisement
omg12

Untitled

Apr 1st, 2018
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 153.89 KB | None | 0 0
  1. warn'Memes loaded'
  2. ---- thanks to genocider and psychopath sources, this would be another one
  3. ---- LockOnTargetNoWhiteListKThx
  4. --//====================================================\\--
  5. --|| CREATED BY SHACKLUSTER
  6. --\\====================================================//--
  7.  
  8.  
  9.  
  10. wait(0.2)
  11.  
  12.  
  13.  
  14. Player = game:GetService("Players").LocalPlayer
  15. PlayerGui = Player.PlayerGui
  16. Cam = workspace.CurrentCamera
  17. Backpack = Player.Backpack
  18. Character = Player.Character
  19. Humanoid = Character.Humanoid
  20. Mouse = Player:GetMouse()
  21. RootPart = Character["HumanoidRootPart"]
  22. Torso = Character["Torso"]
  23. Head = Character["Head"]
  24. RightArm = Character["Right Arm"]
  25. LeftArm = Character["Left Arm"]
  26. RightLeg = Character["Right Leg"]
  27. LeftLeg = Character["Left Leg"]
  28. RootJoint = RootPart["RootJoint"]
  29. Neck = Torso["Neck"]
  30. RightShoulder = Torso["Right Shoulder"]
  31. LeftShoulder = Torso["Left Shoulder"]
  32. RightHip = Torso["Right Hip"]
  33. LeftHip = Torso["Left Hip"]
  34. local sick = Instance.new("Sound",Character)
  35. sick.SoundId = "rbxassetid://469712337"
  36. sick.Looped = true
  37. sick.Pitch = 1
  38. sick.Volume = 1
  39. sick:Play()
  40.  
  41. IT = Instance.new
  42. CF = CFrame.new
  43. VT = Vector3.new
  44. RAD = math.rad
  45. C3 = Color3.new
  46. UD2 = UDim2.new
  47. BRICKC = BrickColor.new
  48. ANGLES = CFrame.Angles
  49. EULER = CFrame.fromEulerAnglesXYZ
  50. COS = math.cos
  51. ACOS = math.acos
  52. SIN = math.sin
  53. ASIN = math.asin
  54. ABS = math.abs
  55. MRANDOM = math.random
  56. FLOOR = math.floor
  57.  
  58. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  59. local NEWMESH = IT(MESH)
  60. if MESH == "SpecialMesh" then
  61. NEWMESH.MeshType = MESHTYPE
  62. if MESHID ~= "nil" and MESHID ~= "" then
  63. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  64. end
  65. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  66. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  67. end
  68. end
  69. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  70. NEWMESH.Scale = SCALE
  71. NEWMESH.Parent = PARENT
  72. return NEWMESH
  73. end
  74.  
  75. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
  76. local NEWPART = IT("Part")
  77. NEWPART.formFactor = FORMFACTOR
  78. NEWPART.Reflectance = REFLECTANCE
  79. NEWPART.Transparency = TRANSPARENCY
  80. NEWPART.CanCollide = false
  81. NEWPART.Locked = true
  82. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  83. NEWPART.Name = NAME
  84. NEWPART.Size = SIZE
  85. NEWPART.Position = Torso.Position
  86. NEWPART.Material = MATERIAL
  87. NEWPART:BreakJoints()
  88. NEWPART.Parent = PARENT
  89. return NEWPART
  90. end
  91.  
  92.  
  93. --//=================================\\
  94. --|| CUSTOMIZATION
  95. --\\=================================//
  96.  
  97. Class_Name = "Memelord"
  98. Weapon_Name = "Add-ons"
  99.  
  100. Custom_Colors = {
  101. Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
  102. Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
  103.  
  104. Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
  105. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  106. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  107. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  108. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  109.  
  110. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  111. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  112. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  113. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  114. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  115. }
  116.  
  117.  
  118. Player_Size = 1 --Size of the player.
  119. Animation_Speed = 2
  120. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  121.  
  122. local Speed = 16
  123. local Effects2 = {}
  124.  
  125. --//=================================\\
  126. --|| END OF CUSTOMIZATION
  127. --\\=================================//
  128.  
  129. local function weldBetween(a, b)
  130. local weldd = Instance.new("ManualWeld")
  131. weldd.Part0 = a
  132. weldd.Part1 = b
  133. weldd.C0 = CFrame.new()
  134. weldd.C1 = b.CFrame:inverse() * a.CFrame
  135. weldd.Parent = a
  136. return weldd
  137. end
  138.  
  139. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  140. local acs = Instance.new("Part")
  141. acs.CanCollide = false
  142. acs.Anchored = false
  143. acs.Size = Vector3.new(0,0,0)
  144. acs.CFrame = attachmentpart.CFrame
  145. acs.Parent = Character
  146. acs.BrickColor = color
  147. local meshs = Instance.new("SpecialMesh")
  148. meshs.MeshId = mesh
  149. meshs.TextureId = texture
  150. meshs.Parent = acs
  151. meshs.Scale = scale
  152. meshs.Offset = offset
  153. weldBetween(attachmentpart,acs)
  154. end
  155.  
  156. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  157. if TYPE == "Gem" then
  158. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  159. acs.Anchored = false
  160. acs.CanCollide = false
  161. acs.CFrame = PART.CFrame
  162. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  163. weldBetween(PART,acs)
  164. elseif TYPE == "Skull" then
  165. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  166. acs.Anchored = false
  167. acs.CanCollide = false
  168. acs.CFrame = PART.CFrame
  169. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  170. weldBetween(PART,acs)
  171. elseif TYPE == "Eye" then
  172. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  173. acs.Anchored = false
  174. acs.CanCollide = false
  175. acs.CFrame = PART.CFrame
  176. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  177. weldBetween(PART,acs)
  178. end
  179. end
  180.  
  181. createaccessory(Head,"http://www.roblox.com/asset/?id=121910245","http://www.roblox.com/asset/?id=121947422",VT(0.7,0.6,0.7),VT(0,0.1,-0.05),BrickColor.new("Pearl"))
  182.  
  183. --//=================================\\
  184. --|| USEFUL VALUES
  185. --\\=================================//
  186.  
  187. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  188. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  189. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  190. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  191. local CO1 = 0
  192. local CO2 = 0
  193. local CO3 = 0
  194. local CO4 = 0
  195. local CHANGEDEFENSE = 0
  196. local CHANGEDAMAGE = 0
  197. local CHANGEMOVEMENT = 0
  198. local ANIM = "Idle"
  199. local ATTACK = false
  200. local EQUIPPED = false
  201. local HOLD = false
  202. local COMBO = 1
  203. local LASTPOINT = nil
  204. local BLCF = nil
  205. local SCFR = nil
  206. local STAGGERHITANIM = false
  207. local STAGGERANIM = false
  208. local STUNANIM = false
  209. local CRITCHANCENUMBER = 0
  210. local IDLENUMBER = 0
  211. local DONUMBER = 0
  212. local HANDIDLE = false
  213. local SINE = 0
  214. local CHANGE = 2 / Animation_Speed
  215. local WALKINGANIM = false
  216. local WALK = 0
  217. local SHIELD = false
  218. local DISABLEJUMPING = false
  219. local HASBEENBLOCKED = false
  220. local STUNDELAYNUMBER = 0
  221. local MANADELAYNUMBER = 0
  222. local SECONDARYMANADELAYNUMBER = 0
  223. local ROBLOXIDLEANIMATION = IT("Animation")
  224. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  225. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  226. --ROBLOXIDLEANIMATION.Parent = Humanoid
  227. local WEAPONGUI = IT("ScreenGui", nil)
  228. WEAPONGUI.Name = "Weapon GUI"
  229. local WEAPONTOOL = IT("HopperBin", nil)
  230. WEAPONTOOL.Name = Weapon_Name
  231. local Weapon = IT("Model")
  232. Weapon.Name = Weapon_Name
  233. local Effects = IT("Folder", Weapon)
  234. Effects.Name = "Effects"
  235. local ANIMATOR = Humanoid.Animator
  236. local ANIMATE = Character.Animate
  237. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  238. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  239. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  240. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  241. local HURTSOUND = "1080625252"
  242. local DEATHSOUNDS = {"340963282", "340963317"}
  243. local UNANCHOR = true
  244.  
  245. --//=================================\\
  246. --\\=================================//
  247.  
  248. --//=================================\\
  249. --|| STATS
  250. --\\=================================//
  251.  
  252. if Character:FindFirstChild("Stats") ~= nil then
  253. Character:FindFirstChild("Stats").Parent = nil
  254. end
  255.  
  256. local Stats = IT("Folder", nil)
  257. Stats.Name = "Stats"
  258. local ChangeStat = IT("Folder", Stats)
  259. ChangeStat.Name = "ChangeStat"
  260. local Defense = IT("NumberValue", Stats)
  261. Defense.Name = "Defense"
  262. Defense.Value = 1
  263. local Movement = IT("NumberValue", Stats)
  264. Movement.Name = "Movement"
  265. Movement.Value = 1
  266. local Damage = IT("NumberValue", Stats)
  267. Damage.Name = "Damage"
  268. Damage.Value = 1
  269. local Mana = IT("NumberValue", Stats)
  270. Mana.Name = "Mana"
  271. Mana.Value = 0
  272. local SecondaryMana = IT("NumberValue", Stats)
  273. SecondaryMana.Name = "SecondaryMana"
  274. SecondaryMana.Value = 0
  275. local CanCrit = IT("BoolValue", Stats)
  276. CanCrit.Name = "CanCrit"
  277. CanCrit.Value = false
  278. local CritChance = IT("NumberValue", Stats)
  279. CritChance.Name = "CritChance"
  280. CritChance.Value = 20
  281. local CanPenetrateArmor = IT("BoolValue", Stats)
  282. CanPenetrateArmor.Name = "CanPenetrateArmor"
  283. CanPenetrateArmor.Value = false
  284. local AntiTeamKill = IT("BoolValue", Stats)
  285. AntiTeamKill.Name = "AntiTeamKill"
  286. AntiTeamKill.Value = false
  287. local Rooted = IT("BoolValue", Stats)
  288. Rooted.Name = "Rooted"
  289. Rooted.Value = false
  290. local Block = IT("BoolValue", Stats)
  291. Block.Name = "Block"
  292. Block.Value = false
  293. local RecentEnemy = IT("ObjectValue", Stats)
  294. RecentEnemy.Name = "RecentEnemy"
  295. RecentEnemy.Value = nil
  296. local StaggerHit = IT("BoolValue", Stats)
  297. StaggerHit.Name = "StaggerHit"
  298. StaggerHit.Value = false
  299. local Stagger = IT("BoolValue", Stats)
  300. Stagger.Name = "Stagger"
  301. Stagger.Value = false
  302. local Stun = IT("BoolValue", Stats)
  303. Stun.Name = "Stun"
  304. Stun.Value = false
  305. local StunValue = IT("NumberValue", Stats)
  306. StunValue.Name = "StunValue"
  307. StunValue.Value = 0
  308.  
  309.  
  310. --//=================================\\
  311. --\\=================================//
  312.  
  313.  
  314.  
  315.  
  316.  
  317. --//=================================\\
  318. --|| DEBUFFS / BUFFS
  319. --\\=================================//
  320.  
  321. local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)
  322. DEFENSECHANGE1.Name = "ChangeDefense"
  323. DEFENSECHANGE1.Value = 0
  324.  
  325. local MOVEMENTCHANGE1 = IT("NumberValue", nil)
  326. MOVEMENTCHANGE1.Name = "ChangeMovement"
  327. MOVEMENTCHANGE1.Value = 0
  328.  
  329. --//=================================\\
  330. --\\=================================//
  331.  
  332.  
  333.  
  334.  
  335.  
  336. --//=================================\\
  337. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  338. --\\=================================//
  339.  
  340. ArtificialHB = Instance.new("BindableEvent", script)
  341. ArtificialHB.Name = "ArtificialHB"
  342.  
  343. script:WaitForChild("ArtificialHB")
  344.  
  345. frame = Frame_Speed
  346. tf = 0
  347. allowframeloss = false
  348. tossremainder = false
  349. lastframe = tick()
  350. script.ArtificialHB:Fire()
  351.  
  352. game:GetService("RunService").Heartbeat:connect(function(s, p)
  353. tf = tf + s
  354. if tf >= frame then
  355. if allowframeloss then
  356. script.ArtificialHB:Fire()
  357. lastframe = tick()
  358. else
  359. for i = 1, math.floor(tf / frame) do
  360. script.ArtificialHB:Fire()
  361. end
  362. lastframe = tick()
  363. end
  364. if tossremainder then
  365. tf = 0
  366. else
  367. tf = tf - frame * math.floor(tf / frame)
  368. end
  369. end
  370. end)
  371.  
  372. --//=================================\\
  373. --\\=================================//
  374.  
  375.  
  376.  
  377.  
  378.  
  379. --//=================================\\
  380. --|| SOME FUNCTIONS
  381. --\\=================================//
  382.  
  383. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  384. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  385. end
  386.  
  387. function PositiveAngle(NUMBER)
  388. if NUMBER >= 0 then
  389. NUMBER = 0
  390. end
  391. return NUMBER
  392. end
  393.  
  394. function NegativeAngle(NUMBER)
  395. if NUMBER <= 0 then
  396. NUMBER = 0
  397. end
  398. return NUMBER
  399. end
  400.  
  401. function Swait(NUMBER)
  402. if NUMBER == 0 or NUMBER == nil then
  403. ArtificialHB.Event:wait()
  404. else
  405. for i = 1, NUMBER do
  406. ArtificialHB.Event:wait()
  407. end
  408. end
  409. end
  410.  
  411. function QuaternionFromCFrame(cf)
  412. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  413. local trace = m00 + m11 + m22
  414. if trace > 0 then
  415. local s = math.sqrt(1 + trace)
  416. local recip = 0.5 / s
  417. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  418. else
  419. local i = 0
  420. if m11 > m00 then
  421. i = 1
  422. end
  423. if m22 > (i == 0 and m00 or m11) then
  424. i = 2
  425. end
  426. if i == 0 then
  427. local s = math.sqrt(m00 - m11 - m22 + 1)
  428. local recip = 0.5 / s
  429. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  430. elseif i == 1 then
  431. local s = math.sqrt(m11 - m22 - m00 + 1)
  432. local recip = 0.5 / s
  433. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  434. elseif i == 2 then
  435. local s = math.sqrt(m22 - m00 - m11 + 1)
  436. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  437. end
  438. end
  439. end
  440.  
  441. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  442. local xs, ys, zs = x + x, y + y, z + z
  443. local wx, wy, wz = w * xs, w * ys, w * zs
  444. local xx = x * xs
  445. local xy = x * ys
  446. local xz = x * zs
  447. local yy = y * ys
  448. local yz = y * zs
  449. local zz = z * zs
  450. 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))
  451. end
  452.  
  453. function QuaternionSlerp(a, b, t)
  454. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  455. local startInterp, finishInterp;
  456. if cosTheta >= 0.0001 then
  457. if (1 - cosTheta) > 0.0001 then
  458. local theta = ACOS(cosTheta)
  459. local invSinTheta = 1 / SIN(theta)
  460. startInterp = SIN((1 - t) * theta) * invSinTheta
  461. finishInterp = SIN(t * theta) * invSinTheta
  462. else
  463. startInterp = 1 - t
  464. finishInterp = t
  465. end
  466. else
  467. if (1 + cosTheta) > 0.0001 then
  468. local theta = ACOS(-cosTheta)
  469. local invSinTheta = 1 / SIN(theta)
  470. startInterp = SIN((t - 1) * theta) * invSinTheta
  471. finishInterp = SIN(t * theta) * invSinTheta
  472. else
  473. startInterp = t - 1
  474. finishInterp = t
  475. end
  476. end
  477. 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
  478. end
  479.  
  480. function Clerp(a, b, t)
  481. local qa = {QuaternionFromCFrame(a)}
  482. local qb = {QuaternionFromCFrame(b)}
  483. local ax, ay, az = a.x, a.y, a.z
  484. local bx, by, bz = b.x, b.y, b.z
  485. local _t = 1 - t
  486. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  487. end
  488.  
  489. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  490. local frame = IT("Frame")
  491. frame.BackgroundTransparency = TRANSPARENCY
  492. frame.BorderSizePixel = BORDERSIZEPIXEL
  493. frame.Position = POSITION
  494. frame.Size = SIZE
  495. frame.BackgroundColor3 = COLOR
  496. frame.BorderColor3 = BORDERCOLOR
  497. frame.Name = NAME
  498. frame.Parent = PARENT
  499. return frame
  500. end
  501.  
  502. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  503. local label = IT("TextLabel")
  504. label.BackgroundTransparency = 1
  505. label.Size = UD2(1, 0, 1, 0)
  506. label.Position = UD2(0, 0, 0, 0)
  507. label.TextColor3 = C3(255, 255, 255)
  508. label.TextStrokeTransparency = STROKETRANSPARENCY
  509. label.TextTransparency = TRANSPARENCY
  510. label.FontSize = TEXTFONTSIZE
  511. label.Font = TEXTFONT
  512. label.BorderSizePixel = BORDERSIZEPIXEL
  513. label.TextScaled = true
  514. label.Text = TEXT
  515. label.Name = NAME
  516. label.Parent = PARENT
  517. return label
  518. end
  519.  
  520. function NoOutlines(PART)
  521. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  522. end
  523.  
  524.  
  525. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  526. local NEWWELD = IT(TYPE)
  527. NEWWELD.Part0 = PART0
  528. NEWWELD.Part1 = PART1
  529. NEWWELD.C0 = C0
  530. NEWWELD.C1 = C1
  531. NEWWELD.Parent = PARENT
  532. return NEWWELD
  533. end
  534.  
  535. function CreateSound(ID, PARENT, VOLUME, PITCH)
  536. --coroutine.resume(coroutine.create(function()
  537. local NEWSOUND = IT("Sound", PARENT)
  538. NEWSOUND.Volume = VOLUME
  539. NEWSOUND.Pitch = PITCH
  540. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  541. NEWSOUND:play()
  542. game:GetService("Debris"):AddItem(NEWSOUND, 100)
  543. return NEWSOUND
  544. --end))
  545. end
  546.  
  547. function CFrameFromTopBack(at, top, back)
  548. local right = top:Cross(back)
  549. 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)
  550. end
  551.  
  552. --//=================================\\
  553. --\\=================================//
  554.  
  555.  
  556.  
  557.  
  558. --//=================================\\
  559. --|| WEAPON CREATION
  560. --\\=================================//
  561.  
  562. if Player_Size ~= 1 then
  563. for _, v in pairs (Weapon:GetChildren()) do
  564. if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
  565. local p1 = v.Part1
  566. v.Part1 = nil
  567. local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
  568. v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
  569. v.Part1 = p1
  570. elseif v.ClassName == "Part" then
  571. for _, b in pairs (v:GetChildren()) do
  572. if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
  573. b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
  574. end
  575. end
  576. end
  577. end
  578. end
  579.  
  580. for _, c in pairs(Weapon:GetChildren()) do
  581. if c.ClassName == "Part" then
  582. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  583. end
  584. end
  585.  
  586. Weapon.Parent = Character
  587.  
  588. Humanoid.Died:connect(function()
  589. sick:Stop()
  590. CreateSound("744744924", Head, 50, 1)
  591. ATTACK = true
  592. end)
  593.  
  594. print(Class_Name.." loaded.")
  595.  
  596. --//=================================\\
  597. --|| ATTACK FUNCTIONS AND STUFF
  598. --\\=================================//
  599.  
  600. function killnearest(position,range,maxstrength)
  601. for i,v in ipairs(workspace:GetChildren()) do
  602. local body = v:GetChildren()
  603. for part = 1, #body do
  604. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  605. if(body[part].Position - position).Magnitude < range then
  606. if v.ClassName == "Model" then
  607. v:BreakJoints()
  608. end
  609. table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  610. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  611. end
  612. end
  613. end
  614. if v.ClassName == "Part" then
  615. if v.Anchored == false and (v.Position - position).Magnitude < range then
  616. table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  617. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  618. end
  619. end
  620. end
  621. end
  622.  
  623. function CastRay(StartPos, Vec, Length, Ignore)
  624. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  625. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Vec * Length), Ignore)
  626. return RayHit, RayPos
  627. end
  628.  
  629. function omaewamou()
  630. ATTACK = true
  631. Rooted = true
  632. local target = nil
  633. local targettorso = nil
  634. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  635. target = Mouse.Target.Parent.Humanoid
  636. targettorso = Mouse.Target.Parent:FindFirstChild("Torso") or Mouse.Target.Parent:FindFirstChild("UpperTorso")
  637. end
  638. if target ~= nil then
  639. targettorso.Anchored = true
  640. for i=0, 1, 0.1 / Animation_Speed do
  641. Swait()
  642. RootPart.CFrame = CFrame.new(RootPart.Position,targettorso.Position) * CFrame.new(0, 0, 0)
  643. targettorso.CFrame = CFrame.new(targettorso.Position,RootPart.Position) * CFrame.new(0, 0, 0)
  644. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, -0.2 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  645. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  646. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  647. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  648. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  649. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  650. end
  651. local omae = CreateSound("940337206", Head, 50, 1)
  652. repeat
  653. Swait()
  654. RootPart.CFrame = CFrame.new(RootPart.Position,targettorso.Position) * CFrame.new(0, 0, 0)
  655. if target then
  656. targettorso.CFrame = CFrame.new(targettorso.Position,RootPart.Position) * CFrame.new(0, 0, 0)
  657. end
  658. until omae.Playing == false
  659. if target then
  660. local nani = CreateSound("948494432", targettorso, 50, 1)
  661. repeat
  662. Swait()
  663. RootPart.CFrame = CFrame.new(RootPart.Position,targettorso.Position) * CFrame.new(0, 0, 0)
  664. if target then
  665. targettorso.CFrame = CFrame.new(targettorso.Position,RootPart.Position) * CFrame.new(0, 0, 0)
  666. end
  667. until nani.Playing == false
  668. target.Parent:BreakJoints()
  669. targettorso.Anchored = false
  670. local boom = Instance.new("Explosion",workspace)
  671. boom.Position = targettorso.Position
  672. CreateSound("691216625", targettorso, 50, 1)
  673. end
  674. end
  675. Rooted = false
  676. ATTACK = false
  677. end
  678.  
  679. function dab()
  680. ATTACK = true
  681. Rooted = true
  682. local lookatmydab = CreateSound("420701460", Head, 50, 1)
  683. sick.Volume = 10
  684. for i=0, 1, 0.1 / Animation_Speed do
  685. killnearest(RootPart.Position,25,150)
  686. Swait()
  687. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0.2 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed*4)
  688. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed*4)
  689. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1 * Player_Size, 0.5 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(15), RAD(-35), RAD(-100)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*4)
  690. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(-110)) * LEFTSHOULDERC0, 0.15 / Animation_Speed*4)
  691. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(15), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed*4)
  692. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed*4)
  693. end
  694. repeat
  695. killnearest(RootPart.Position,25,150)
  696. Swait()
  697. until lookatmydab.Playing == false
  698. sick.Volume = 1
  699. ATTACK = false
  700. Rooted = false
  701. end
  702.  
  703. function Taunt()
  704. ATTACK = true
  705. --Rooted = true
  706. for i=0, 2, 0.1 / Animation_Speed do
  707. Swait()
  708. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  709. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  710. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  711. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  712. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  713. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  714. end
  715. local winz = CreateSound("958211048", Head, 50, 1)
  716. local loop = 0
  717. repeat
  718. Swait()
  719. loop = loop + 1
  720. if loop == 25 then
  721. loop = 0
  722. Humanoid.Jump = true
  723. end
  724. until winz.Playing == false
  725. ATTACK = false
  726. --Rooted = false
  727. end
  728.  
  729. function shield()
  730. if SHIELD == false then
  731. SHIELD = true
  732. print("WOA!")
  733. coroutine.resume(coroutine.create(function()
  734. local woa = IT("Part",Effects)
  735. woa.Size = VT(5,12,0)
  736. woa.CFrame = RootPart.CFrame * CF(0,3,-7)
  737. woa.Anchored = true
  738. local mesh = IT("SpecialMesh",woa)
  739. mesh.MeshType = "FileMesh"
  740. mesh.MeshId = "rbxassetid://1044207043"
  741. mesh.TextureId = "rbxassetid://1044207051"
  742. mesh.Scale = VT(3,3,3)
  743. CreateSound("638062404", woa, 50, 1)
  744. local woosh = woa.Touched:Connect(function(hit)
  745. if hit.Parent.ClassName == "Model" then
  746. hit.Parent:BreakJoints()
  747. CreateSound("978878312", hit, 2, 1)
  748. elseif hit.ClassName == "Part" and hit.Anchored == false then
  749. hit:remove()
  750. end
  751. end)
  752. repeat
  753. Swait()
  754. woa.CFrame = RootPart.CFrame * CF(0,3,-7)
  755. until SHIELD == false
  756. woosh:disconnect()
  757. CreateSound("638062404", woa, 50, 1)
  758. woa.Anchored = false
  759. local bv = Instance.new("BodyVelocity")
  760. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  761. bv.velocity = RootPart.CFrame.lookVector*150
  762. bv.Parent = woa
  763. bv.Name = "DASH"
  764. local paw = woa.Touched:Connect(function(hit)
  765. if hit.Parent.ClassName == "Model" then
  766. woa:remove()
  767. hit.Parent:BreakJoints()
  768. CreateSound("978878312", hit, 2, 1)
  769. end
  770. end)
  771. end))
  772. elseif SHIELD == true then
  773. SHIELD = false
  774. end
  775. end
  776.  
  777. function gonuts()
  778. ATTACK = true
  779. Rooted = true
  780. sick:Stop()
  781. local ohno = CreateSound("254418283", Effects, 5, 1)
  782. coroutine.resume(coroutine.create(function()
  783. repeat
  784. for i=0, 1.3, 0.1 / Animation_Speed do
  785. Swait()
  786. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
  787. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  788. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(70)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  789. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-120)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  790. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(120), RAD(-35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  791. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  792. end
  793. if ohno.Playing == true then
  794. for i=0, 1.3, 0.1 / Animation_Speed do
  795. Swait()
  796. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  797. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  798. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(120)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  799. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-70)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  800. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(-35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  801. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-120), RAD(35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  802. end
  803. end
  804. until ohno.Playing == false
  805. end))
  806. repeat
  807. Swait()
  808. q = workspace:GetChildren()
  809. for i = 1, #q do
  810. local child = q[i]
  811. if child.ClassName == "Model" and child:FindFirstChild("Humanoid") and child ~= Character then
  812. if child:FindFirstChild("MYEARS") == nil then
  813. local MYEARS = IT("NumberValue",child)
  814. MYEARS.Name = "MYEARS"
  815. else
  816. child.MYEARS.Value = child.MYEARS.Value + 1
  817. if child.MYEARS.Value >= 450 then
  818. if child:FindFirstChild("Head") then
  819. child.Head:remove()
  820. local tors = child:FindFirstChild("Torso") or child:FindFirstChild("UpperTorso")
  821. CreateSound(DEATHSOUNDS[MRANDOM(1,#DEATHSOUNDS)], tors, 5, 1)
  822. end
  823. else
  824. if child.Head:FindFirstChild("AAAGH") == nil then
  825. local nu = CreateSound(HURTSOUND, child.Head, 5, 1)
  826. nu.Name = "AAAGH"
  827. end
  828. end
  829. end
  830. end
  831. end
  832. until ohno.Playing == false
  833. sick:Play()
  834. ATTACK = false
  835. Rooted = false
  836. end
  837.  
  838. --//=================================\\
  839. --|| ASSIGN THINGS TO KEYS
  840. --\\=================================//
  841.  
  842. Humanoid.Changed:connect(function(Jump)
  843. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  844. Humanoid.Jump = false
  845. end
  846. end)
  847.  
  848. function MouseDown(Mouse)
  849. if ATTACK == false then
  850. omaewamou()
  851. end
  852. end
  853.  
  854. function MouseUp(Mouse)
  855. HOLD = false
  856. end
  857.  
  858. function KeyDown(Key)
  859. if Key == "e" and ATTACK == false then
  860. dab()
  861. end
  862. if Key == "t" and ATTACK == false then
  863. Taunt()
  864. end
  865. if Key == "g" and ATTACK == false then
  866. shield()
  867. end
  868. if Key == "x" and ATTACK == false then
  869. gonuts()
  870. end
  871. end
  872.  
  873. function KeyUp(Key)
  874. end
  875.  
  876. Mouse.Button1Down:connect(function(NEWKEY)
  877. MouseDown(NEWKEY)
  878. end)
  879. Mouse.Button1Up:connect(function(NEWKEY)
  880. MouseUp(NEWKEY)
  881. end)
  882. Mouse.KeyDown:connect(function(NEWKEY)
  883. KeyDown(NEWKEY)
  884. end)
  885. Mouse.KeyUp:connect(function(NEWKEY)
  886. KeyUp(NEWKEY)
  887. end)
  888.  
  889. --//=================================\\
  890. --\\=================================//
  891.  
  892.  
  893. function unanchor()
  894. if UNANCHOR == true then
  895. g = Character:GetChildren()
  896. for i = 1, #g do
  897. if g[i].ClassName == "Part" then
  898. g[i].Anchored = false
  899. end
  900. end
  901. end
  902. end
  903.  
  904.  
  905. --//=================================\\
  906. --|| WRAP THE WHOLE SCRIPT UP
  907. --\\=================================//
  908.  
  909. Humanoid.Changed:connect(function(Jump)
  910. if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
  911. Humanoid.Jump = false
  912. end
  913. end)
  914.  
  915. local ff = Instance.new("ForceField",Character)
  916. ff.Visible = false
  917.  
  918. ANIMATE.Parent = nil
  919. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  920. IDLEANIMATION:Play()
  921.  
  922. while true do
  923. Swait()
  924. SINE = SINE + CHANGE
  925. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  926. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  927. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  928. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  929. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  930. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  931. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  932. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * 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)
  933. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  934. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  935. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  936. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  937. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  938. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  939. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  940. end
  941. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  942. ANIM = "Jump"
  943. if ATTACK == false then
  944. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  945. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  946. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  947. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  948. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  949. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  950. end
  951. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  952. ANIM = "Fall"
  953. if ATTACK == false then
  954. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  955. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  956. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  957. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  958. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  959. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  960. end
  961. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  962. ANIM = "Idle"
  963. if ATTACK == false then
  964. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, -0.2 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  965. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  966. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  967. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  968. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  969. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  970. end
  971. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  972. ANIM = "Walk"
  973. WALK = WALK + 1 / Animation_Speed
  974. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  975. WALK = 0
  976. if WALKINGANIM == true then
  977. WALKINGANIM = false
  978. elseif WALKINGANIM == false then
  979. WALKINGANIM = true
  980. end
  981. end
  982. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  983. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  984. if ATTACK == false then
  985. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, -0.3 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  986. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  987. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-100), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  988. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-100), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  989. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(-35), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  990. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(-35), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  991. end
  992. end
  993. if #Effects2>0 then
  994. for e=1,#Effects2 do
  995. if Effects2[e]~=nil then
  996. local Thing=Effects2[e]
  997. if Thing~=nil then
  998. local Part=Thing[1]
  999. local Mode=Thing[2]
  1000. local Delay=Thing[3]
  1001. local IncX=Thing[4]
  1002. local IncY=Thing[5]
  1003. local IncZ=Thing[6]
  1004. local Part2=Thing[8]
  1005. if Thing[1].Transparency<=1 then
  1006. if Thing[2]=="Block1" then
  1007. Thing[1].CFrame=Part2.CFrame
  1008. Mesh=Thing[1].Mesh
  1009. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1010. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1011. elseif Thing[2]=="Cylinder" then
  1012. Mesh=Thing[1].Mesh
  1013. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1014. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1015. elseif Thing[2]=="Blood" then
  1016. Mesh=Thing[7]
  1017. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1018. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1019. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1020. elseif Thing[2]=="Elec" then
  1021. Mesh=Thing[1].Mesh
  1022. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1023. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1024. elseif Thing[2]=="Disappear" then
  1025. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1026. end
  1027. else
  1028. Part.Parent=nil
  1029. table.remove(Effects2,e)
  1030. end
  1031. end
  1032. end
  1033. end
  1034. end
  1035. unanchor()
  1036. Humanoid.MaxHealth = "inf"
  1037. Humanoid.Health = "inf"
  1038. if Rooted == false then
  1039. Disable_Jump = false
  1040. Humanoid.WalkSpeed = Speed
  1041. elseif Rooted == true then
  1042. Disable_Jump = true
  1043. Humanoid.WalkSpeed = 0
  1044. end
  1045. q = Character:GetChildren()
  1046. for u = 1, #q do
  1047. if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
  1048. if q[u].Handle:FindFirstChild("FaceFrontAttachment") then
  1049. q[u]:remove()
  1050. end
  1051. end
  1052. end
  1053. end
  1054.  
  1055. --//=================================\\
  1056. --\\=================================//
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062. --//====================================================\\--
  1063. --|| END OF SCRIPT
  1064. --\\====================================================//--
  1065. plr = game.Players.LocalPlayer
  1066. char = plr.Character
  1067. hum = char.Humanoid
  1068. local cam = game.Workspace.CurrentCamera
  1069. t = char.Torso
  1070. h = char.Head
  1071. ra = char["Right Arm"]
  1072. la = char["Left Arm"]
  1073. rl = char["Right Leg"]
  1074. ll = char["Left Leg"]
  1075. tors = char.Torso
  1076. lleg = char["Left Leg"]
  1077. root = char.HumanoidRootPart
  1078. hed = char.Head
  1079. rleg = char["Right Leg"]
  1080. rarm = char["Right Arm"]
  1081. larm = char["Left Arm"]
  1082. vt = Vector3.new
  1083. bc = BrickColor.new
  1084. br = BrickColor.random
  1085. it = Instance.new
  1086. cf = CFrame.new
  1087. local targetted = nil
  1088. local killcount = 0
  1089. local requirekillA = 15
  1090. local requirekillX = 50
  1091. local maxA = 15
  1092. local maxX = 50
  1093. if plr.Name == "soins1" then
  1094. maxX = 0
  1095. requirekillX = maxX
  1096. end
  1097. local unlockedA = true
  1098. local unlockedX = true
  1099. local LeftModeUnlocked = false
  1100.  
  1101. kan = Instance.new("Sound",char)
  1102. kan.Volume = 6
  1103. kan.PlaybackSpeed = 0.4
  1104. kan.Pitch = 0.2
  1105. kan.SoundId = "rbxassetid://583415095"
  1106. kan.Name = "kreepery"
  1107. kan.Looped = true
  1108. kan:Play()
  1109.  
  1110. abss = Instance.new("BillboardGui",char)
  1111. abss.Size = UDim2.new(10,0,10,0)
  1112. abss.Enabled = false
  1113. imgl = Instance.new("ImageLabel",abss)
  1114. imgl.Position = UDim2.new(0,0,0,0)
  1115. imgl.Size = UDim2.new(1,0,1,0)
  1116. imgl.Image = "http://www.roblox.com/asset/?id=118777235"
  1117. imgl.BackgroundTransparency = 1
  1118. imgl.ImageColor3 = Color3.new(0,0,0)
  1119. imgl2 = Instance.new("ImageLabel",abss)
  1120. imgl2.Position = UDim2.new(-0.5,0,-0.5,0)
  1121. imgl2.Size = UDim2.new(2,0,2,0)
  1122. imgl2.Image = "http://www.roblox.com/asset/?id=135465292"
  1123. imgl2.BackgroundTransparency = 1
  1124. imgl2.ImageColor3 = Color3.new(0,0,0)
  1125. img2 = Instance.new("ImageLabel",abss)
  1126. img2.Position = UDim2.new(0,0,0,0)
  1127. img2.Size = UDim2.new(1,0,1,0)
  1128. img2.Image = "rbxassetid://118777235"
  1129. img2.BackgroundTransparency = 1
  1130. img2.ImageColor3 = Color3.new(0,0,0)
  1131.  
  1132. function CameraShake(Times, Power)
  1133. coroutine.resume(coroutine.create(function()
  1134. FV = Instance.new("BoolValue", Character)
  1135. FV.Name = "CameraShake"
  1136. for ShakeNum=1,Times do
  1137. swait()
  1138. local ef=Power
  1139. if ef>=1 then
  1140. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  1141. else
  1142. ef=Power*10
  1143. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  1144. end
  1145. end
  1146. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1147. FV:Destroy()
  1148. end))
  1149. end
  1150.  
  1151. CamShake=function(Part,Distan,Power,Times)
  1152. local de=Part.Position
  1153. for i,v in pairs(workspace:children()) do
  1154. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  1155. for _,c in pairs(v:children()) do
  1156. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  1157. local Noob=v.Humanoid
  1158. if Noob~=nil then
  1159. if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
  1160. --[[local ss=script.CamShake:clone()
  1161. ss.Parent=Noob
  1162. ss.Power.Value=Power
  1163. ss.Times.Value=Times
  1164. ss.Disabled=false]]
  1165. CameraShake(Times, Power)
  1166. end
  1167. end
  1168. end
  1169. end
  1170. end
  1171. end
  1172. end
  1173.  
  1174. function chatfunc(text,color)
  1175. local chat = coroutine.wrap(function()
  1176. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  1177. Character:FindFirstChild("TalkingBillBoard"):destroy()
  1178. end
  1179. local naeeym2 = Instance.new("BillboardGui",Character)
  1180. naeeym2.Size = UDim2.new(0,100,0,40)
  1181. naeeym2.StudsOffset = Vector3.new(0,3,0)
  1182. naeeym2.Adornee = Character.Head
  1183. naeeym2.Name = "TalkingBillBoard"
  1184. local tecks2 = Instance.new("TextLabel",naeeym2)
  1185. tecks2.BackgroundTransparency = 1
  1186. tecks2.BorderSizePixel = 0
  1187. tecks2.Text = ""
  1188. tecks2.Font = "SciFi"
  1189. tecks2.TextSize = 30
  1190. tecks2.TextStrokeTransparency = 0
  1191. tecks2.TextColor3 = color
  1192. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  1193. tecks2.Size = UDim2.new(1,0,0.5,0)
  1194. local tecks3 = Instance.new("TextLabel",naeeym2)
  1195. tecks3.BackgroundTransparency = 1
  1196. tecks3.BorderSizePixel = 0
  1197. tecks3.Text = ""
  1198. tecks3.Font = "SciFi"
  1199. tecks3.TextSize = 30
  1200. tecks3.TextStrokeTransparency = 0
  1201. tecks3.TextColor3 = Color3.new(0,0,0)
  1202. tecks3.TextStrokeColor3 = color
  1203. tecks3.Size = UDim2.new(1,0,0.5,0)
  1204. coroutine.resume(coroutine.create(function()
  1205. while true do
  1206. swait(1)
  1207. tecks2.Position = UDim2.new(0,math.random(-10,10),0,math.random(-10,10))
  1208. tecks3.Position = UDim2.new(0,math.random(-10,10),0,math.random(-10,10))
  1209. tecks2.Rotation = math.random(-15,15)
  1210. tecks3.Rotation = math.random(-15,15)
  1211. end
  1212. end))
  1213. for i = 1,string.len(text),1 do
  1214. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  1215. tecks2.Text = string.sub(text,1,i)
  1216. tecks3.Text = string.sub(text,1,i)
  1217. swait(1)
  1218. end
  1219. wait(1)
  1220. local randomrot = math.random(1,2)
  1221. if randomrot == 1 then
  1222. for i = 1, 50 do
  1223. swait()
  1224. tecks2.Rotation = tecks2.Rotation - .75
  1225. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  1226. tecks2.TextTransparency = tecks2.TextTransparency + .04
  1227. tecks3.Rotation = tecks2.Rotation + .75
  1228. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  1229. tecks3.TextTransparency = tecks2.TextTransparency + .04
  1230. end
  1231. elseif randomrot == 2 then
  1232. for i = 1, 50 do
  1233. swait()
  1234. tecks2.Rotation = tecks2.Rotation + .75
  1235. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  1236. tecks2.TextTransparency = tecks2.TextTransparency + .04
  1237. tecks3.Rotation = tecks2.Rotation - .75
  1238. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  1239. tecks3.TextTransparency = tecks2.TextTransparency + .04
  1240. end
  1241. end
  1242. naeeym2:Destroy()
  1243. end)
  1244. chat()
  1245. end
  1246.  
  1247.  
  1248. local Create = LoadLibrary("RbxUtility").Create
  1249.  
  1250. CFuncs = {
  1251. ["Part"] = {
  1252. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1253. local Part = Create("Part"){
  1254. Parent = Parent,
  1255. Reflectance = Reflectance,
  1256. Transparency = Transparency,
  1257. CanCollide = false,
  1258. Locked = true,
  1259. BrickColor = BrickColor.new(tostring(BColor)),
  1260. Name = Name,
  1261. Size = Size,
  1262. Material = Material,
  1263. }
  1264. RemoveOutlines(Part)
  1265. return Part
  1266. end;
  1267. };
  1268.  
  1269. ["Mesh"] = {
  1270. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1271. local Msh = Create(Mesh){
  1272. Parent = Part,
  1273. Offset = OffSet,
  1274. Scale = Scale,
  1275. }
  1276. if Mesh == "SpecialMesh" then
  1277. Msh.MeshType = MeshType
  1278. Msh.MeshId = MeshId
  1279. end
  1280. return Msh
  1281. end;
  1282. };
  1283.  
  1284. ["Mesh"] = {
  1285. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1286. local Msh = Create(Mesh){
  1287. Parent = Part,
  1288. Offset = OffSet,
  1289. Scale = Scale,
  1290. }
  1291. if Mesh == "SpecialMesh" then
  1292. Msh.MeshType = MeshType
  1293. Msh.MeshId = MeshId
  1294. end
  1295. return Msh
  1296. end;
  1297. };
  1298.  
  1299. ["Weld"] = {
  1300. Create = function(Parent, Part0, Part1, C0, C1)
  1301. local Weld = Create("Weld"){
  1302. Parent = Parent,
  1303. Part0 = Part0,
  1304. Part1 = Part1,
  1305. C0 = C0,
  1306. C1 = C1,
  1307. }
  1308. return Weld
  1309. end;
  1310. };
  1311.  
  1312. ["Sound"] = {
  1313. Create = function(id, par, vol, pit)
  1314. coroutine.resume(coroutine.create(function()
  1315. local S = Create("Sound"){
  1316. Volume = vol,
  1317. Pitch = pit or 1,
  1318. SoundId = id,
  1319. Parent = par or workspace,
  1320. }
  1321. wait()
  1322. S:play()
  1323. game:GetService("Debris"):AddItem(S, 10)
  1324. end))
  1325. end;
  1326. };
  1327.  
  1328. ["LongSound"] = {
  1329. Create = function(id, par, vol, pit)
  1330. coroutine.resume(coroutine.create(function()
  1331. local S = Create("Sound"){
  1332. Volume = vol,
  1333. Pitch = pit or 1,
  1334. SoundId = id,
  1335. Parent = par or workspace,
  1336. }
  1337. wait()
  1338. S:play()
  1339. game:GetService("Debris"):AddItem(S, 30)
  1340. end))
  1341. end;
  1342. };
  1343.  
  1344. ["ParticleEmitter"] = {
  1345. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1346. local fp = Create("ParticleEmitter"){
  1347. Parent = Parent,
  1348. Color = ColorSequence.new(Color1, Color2),
  1349. LightEmission = LightEmission,
  1350. Size = Size,
  1351. Texture = Texture,
  1352. Transparency = Transparency,
  1353. ZOffset = ZOffset,
  1354. Acceleration = Accel,
  1355. Drag = Drag,
  1356. LockedToPart = LockedToPart,
  1357. VelocityInheritance = VelocityInheritance,
  1358. EmissionDirection = EmissionDirection,
  1359. Enabled = Enabled,
  1360. Lifetime = LifeTime,
  1361. Rate = Rate,
  1362. Rotation = Rotation,
  1363. RotSpeed = RotSpeed,
  1364. Speed = Speed,
  1365. VelocitySpread = VelocitySpread,
  1366. }
  1367. return fp
  1368. end;
  1369. };
  1370.  
  1371. CreateTemplate = {
  1372.  
  1373. };
  1374. }
  1375.  
  1376.  
  1377.  
  1378. New = function(Object, Parent, Name, Data)
  1379. local Object = Instance.new(Object)
  1380. for Index, Value in pairs(Data or {}) do
  1381. Object[Index] = Value
  1382. end
  1383. Object.Parent = Parent
  1384. Object.Name = Name
  1385. return Object
  1386. end
  1387. local halocolor = BrickColor.new("Dark indigo")
  1388. local wepcolor = BrickColor.new("Really black")
  1389. local MutantParts = Instance.new("Model",char)
  1390. local MutantParts2 = Instance.new("Model",char)
  1391.  
  1392. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  1393. local p = Instance.new("Part")
  1394. p.TopSurface = 0
  1395. p.BottomSurface = 0
  1396. p.Parent = parent
  1397. p.Size = Vector3.new(0.1,0.1,0.1)
  1398. p.Transparency = transparency
  1399. p.Reflectance = reflectance
  1400. p.CanCollide = false
  1401. p.Locked = true
  1402. p.BrickColor = brickcolor
  1403. p.Material = material
  1404. return p
  1405. end
  1406.  
  1407. function CreateMesh(parent,meshtype,x1,y1,z1)
  1408. local mesh = Instance.new("SpecialMesh",parent)
  1409. mesh.MeshType = meshtype
  1410. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  1411. return mesh
  1412. end
  1413.  
  1414. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  1415. local mesh = Instance.new("SpecialMesh",parent)
  1416. mesh.MeshType = "FileMesh"
  1417. mesh.MeshId = meshid
  1418. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  1419. mesh.Scale = Vector3.new(x1,y1,z1)
  1420. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  1421. return mesh
  1422. end
  1423.  
  1424. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  1425. local weld = Instance.new("Weld")
  1426. weld.Parent = parent
  1427. weld.Part0 = part0
  1428. weld.Part1 = part1
  1429. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  1430. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  1431. return weld
  1432. end
  1433.  
  1434. --larm.Name = "MutatedLeftArm"
  1435.  
  1436. extend = CreateParta(MutantParts,0,0,"SmoothPlastic",larm.BrickColor)
  1437. CreateMesh(extend,"Brick",0.65,1,0.65)
  1438. CreateWeld(extend,larm,extend,0,0.25,0.25,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1439. extend = CreateParta(MutantParts,0,0,"SmoothPlastic",larm.BrickColor)
  1440. CreateMesh(extend,"Brick",0.65,1,0.65)
  1441. CreateWeld(extend,larm,extend,0.25,-0.25,0.275,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1442. extend = CreateParta(MutantParts,0,0,"SmoothPlastic",larm.BrickColor)
  1443. CreateMesh(extend,"Brick",0.65,1,0.65)
  1444. CreateWeld(extend,larm,extend,-0.275,-0.35,-0.25,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1445. extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  1446. CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
  1447. CreateWeld(extendblood,larm,extendblood,-0.15,0,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1448. extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  1449. CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
  1450. CreateWeld(extendblood,larm,extendblood,-0.275,0.2,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1451. extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  1452. CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
  1453. CreateWeld(extendblood,larm,extendblood,0.05,0.1,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1454. extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  1455. CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
  1456. CreateWeld(extendblood,larm,extendblood,0.15,-0.1,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1457. extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  1458. CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
  1459. CreateWeld(extendblood,larm,extendblood,-0.1,0,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1460. extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  1461. CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
  1462. CreateWeld(extendblood,larm,extendblood,0.5,0.2,0.275,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1463. extendblood = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  1464. CreateMesh(extendblood,"Brick",0.05,1.5,0.05)
  1465. CreateWeld(extendblood,larm,extendblood,0.5,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1466. extendsph = CreateParta(MutantParts,0,0,"SmoothPlastic",larm.BrickColor)
  1467. CreateMesh(extendsph,"Sphere",1.25,1.25,1.25)
  1468. CreateWeld(extendsph,larm,extendsph,0.185,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1469. extendsph = CreateParta(MutantParts,0,0,"SmoothPlastic",larm.BrickColor)
  1470. CreateMesh(extendsph,"Sphere",0.75,0.75,0.75)
  1471. CreateWeld(extendsph,larm,extendsph,0.35,-0.25,0.275,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1472. extendsph = CreateParta(MutantParts,0,0,"SmoothPlastic",larm.BrickColor)
  1473. CreateMesh(extendsph,"Sphere",0.75,0.75,0.75)
  1474. CreateWeld(extendsph,larm,extendsph,-0.35,-0.5,-0.35,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1475. extendcl = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("White"))
  1476. CreateMesh(extendcl,"Wedge",0.05,0.5,2)
  1477. CreateWeld(extendcl,larm,extendcl,0,-0.5,1,math.rad(90),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1478. extendcl = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("White"))
  1479. CreateMesh(extendcl,"Wedge",0.05,0.5,2)
  1480. CreateWeld(extendcl,larm,extendcl,0.25,-0.5,1,math.rad(90),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1481. extendcl = CreateParta(MutantParts,0,0,"SmoothPlastic",BrickColor.new("White"))
  1482. CreateMesh(extendcl,"Wedge",0.05,0.5,2)
  1483. CreateWeld(extendcl,larm,extendcl,-0.25,-0.5,1,math.rad(90),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1484.  
  1485. --- Secondary
  1486. extendcl = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("White"))
  1487. CreateMesh(extendcl,"Wedge",0.05,1,3)
  1488. CreateWeld(extendcl,rarm,extendcl,0,-0.75,1,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1489. extendcl = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("White"))
  1490. CreateMesh(extendcl,"Wedge",0.05,1,1)
  1491. CreateWeld(extendcl,rarm,extendcl,0,-0.75,1,math.rad(-90),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1492. extend = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor)
  1493. CreateMesh(extend,"Brick",0.65,1,0.65)
  1494. CreateWeld(extend,rarm,extend,-0.275,-0.35,-0.25,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1495. extend = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor)
  1496. CreateMesh(extend,"Brick",0.65,1,0.65)
  1497. CreateWeld(extend,rarm,extend,0.275,-0.15,0.2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1498. extend = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor)
  1499. CreateMesh(extend,"Brick",0.65,1,0.65)
  1500. CreateWeld(extend,rarm,extend,-0.205,0.15,0.2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1501. extendsph = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor)
  1502. CreateMesh(extendsph,"Sphere",1.25,1.25,1.25)
  1503. CreateWeld(extendsph,rarm,extendsph,0.125,0,0.2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1504. extendsph = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor)
  1505. CreateMesh(extendsph,"Sphere",0.75,0.75,0.75)
  1506. CreateWeld(extendsph,rarm,extendsph,-0.35,-0.25,0.275,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1507. extendsph = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor)
  1508. CreateMesh(extendsph,"Sphere",0.75,0.75,0.75)
  1509. CreateWeld(extendsph,rarm,extendsph,0.315,-0.5,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1510. extendsph = CreateParta(MutantParts2,0,0,"SmoothPlastic",rarm.BrickColor)
  1511. CreateMesh(extendsph,"Sphere",0.75,0.75,0.75)
  1512. CreateWeld(extendsph,rarm,extendsph,-0.235,0.45,-0.3,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1513. extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  1514. CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
  1515. CreateWeld(extendblood,rarm,extendblood,-0.15,0,0.525,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1516. extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  1517. CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
  1518. CreateWeld(extendblood,rarm,extendblood,-0.275,0.2,0.525,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1519. extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  1520. CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
  1521. CreateWeld(extendblood,rarm,extendblood,0.25,0.1,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1522. extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  1523. CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
  1524. CreateWeld(extendblood,rarm,extendblood,0.15,-0.1,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1525. extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  1526. CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
  1527. CreateWeld(extendblood,rarm,extendblood,-0.1,0,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1528. extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  1529. CreateMesh(extendblood,"Brick",0.05,1.25,0.05)
  1530. CreateWeld(extendblood,rarm,extendblood,-0.5,0.2,0.275,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1531. extendblood = CreateParta(MutantParts2,0,0,"SmoothPlastic",BrickColor.new("Bright red"))
  1532. CreateMesh(extendblood,"Brick",0.05,1.5,0.05)
  1533. CreateWeld(extendblood,rarm,extendblood,-0.5,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1534.  
  1535. for i, v in pairs(MutantParts:GetChildren()) do
  1536. if v:IsA("Part") then
  1537. v.Transparency = 1
  1538. end
  1539. end
  1540.  
  1541. for i, v in pairs(MutantParts2:GetChildren()) do
  1542. if v:IsA("Part") then
  1543. v.Transparency = 1
  1544. end
  1545. end
  1546. function RemoveOutlines(part)
  1547. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1548. end
  1549. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1550. local Part = Create("Part")({
  1551. Parent = Parent,
  1552. Reflectance = Reflectance,
  1553. Transparency = Transparency,
  1554. CanCollide = false,
  1555. Locked = true,
  1556. BrickColor = BrickColor.new(tostring(BColor)),
  1557. Name = Name,
  1558. Size = Size,
  1559. Material = Material
  1560. })
  1561. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1562. RemoveOutlines(Part)
  1563. return Part
  1564. end
  1565. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1566. local Msh = Create(Mesh)({
  1567. Parent = Part,
  1568. Offset = OffSet,
  1569. Scale = Scale
  1570. })
  1571. if Mesh == "SpecialMesh" then
  1572. Msh.MeshType = MeshType
  1573. Msh.MeshId = MeshId
  1574. end
  1575. return Msh
  1576. end
  1577. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1578. local Weld = Create("Weld")({
  1579. Parent = Parent,
  1580. Part0 = Part0,
  1581. Part1 = Part1,
  1582. C0 = C0,
  1583. C1 = C1
  1584. })
  1585. return Weld
  1586. end
  1587.  
  1588. local ff = Instance.new("ForceField",char)
  1589. ff.Visible = false
  1590.  
  1591. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  1592. local gui = it(GuiType)
  1593. gui.Parent = parent
  1594. gui.Text = text
  1595. gui.BackgroundTransparency = backtrans
  1596. gui.BackgroundColor3 = backcol
  1597. gui.SizeConstraint = "RelativeXY"
  1598. gui.TextXAlignment = "Center"
  1599. gui.TextYAlignment = "Center"
  1600. gui.Position = pos
  1601. gui.Size = size
  1602. gui.Font = "SourceSans"
  1603. gui.FontSize = "Size14"
  1604. gui.TextWrapped = false
  1605. gui.TextStrokeTransparency = 0
  1606. gui.TextColor = BrickColor.new("White")
  1607. return gui
  1608. end
  1609. ---- GUI set
  1610. local basgui = it("GuiMain")
  1611. basgui.Parent = plr.PlayerGui
  1612. basgui.Name = "Killcounter GUI"
  1613. local basframe = it("Frame")
  1614. basframe.Parent = basgui
  1615. basframe.BackgroundColor3 = Color3.new(255, 255, 255)
  1616. basframe.BackgroundTransparency = 1
  1617. basframe.BorderColor3 = Color3.new(17, 17, 17)
  1618. basframe.Size = UDim2.new(0.2, 0, 0.2, 0)
  1619. basframe.Position = UDim2.new(0.8, 0, 0.8, 0)
  1620.  
  1621. local basframelist = it("Frame")
  1622. basframelist.Parent = basgui
  1623. basframelist.BackgroundColor3 = Color3.new(255, 255, 255)
  1624. basframelist.BackgroundTransparency = 1
  1625. basframelist.BorderColor3 = Color3.new(17, 17, 17)
  1626. basframelist.Size = UDim2.new(0.2, 0, 0.2, 0)
  1627. basframelist.Position = UDim2.new(0.8, 0, 0.8, 0)
  1628.  
  1629. local uhh = gui("TextLabel", basframe, "Basic", 1, BrickColor.new("Really black").Color, UDim2.new(-0.15, 0, 0.10, 0), UDim2.new(0.95, 0, 0.15, 0))
  1630. uhh.ZIndex = 2
  1631. uhh.Font = "Arcade"
  1632. uhh.TextStrokeColor3 = Color3.new(180,180,0)
  1633. uhh.TextColor3 = Color3.new(0,0,0)
  1634. uhh.BackgroundTransparency = 1
  1635. uhh.BorderSizePixel = 0.65
  1636. uhh.TextScaled = false
  1637. uhh.TextXAlignment = "Left"
  1638. uhh.Text = "Kills : 0"
  1639. uhh.TextSize = 54
  1640.  
  1641.  
  1642. local uhh2 = gui("TextLabel", basframelist, "Basic", 1, BrickColor.new("Really black").Color, UDim2.new(-0.8, 0, 0.10, 0), UDim2.new(0.95, 0, 0.15, 0))
  1643. uhh2.ZIndex = 2
  1644. uhh2.Font = "Bodoni"
  1645. uhh2.TextStrokeColor3 = Color3.new(1,0,0)
  1646. uhh2.TextColor3 = Color3.new(0,0,0)
  1647. uhh2.BackgroundTransparency = 1
  1648. uhh2.BorderSizePixel = 0.65
  1649. uhh2.TextScaled = false
  1650. uhh2.TextXAlignment = "Left"
  1651. uhh2.Text = "Required kills for second mutated arm: 15"
  1652. uhh2.TextSize = 24
  1653. local uhh3 = gui("TextLabel", basframelist, "Basic", 1, BrickColor.new("Really black").Color, UDim2.new(-0.5, 0, -0.1, 0), UDim2.new(0.95, 0, 0.15, 0))
  1654. uhh3.ZIndex = 2
  1655. uhh3.Font = "Bodoni"
  1656. uhh3.TextStrokeColor3 = Color3.new(1,0,0)
  1657. uhh3.TextColor3 = Color3.new(0,0,0)
  1658. uhh3.BackgroundTransparency = 1
  1659. uhh3.BorderSizePixel = 0.65
  1660. uhh3.TextScaled = false
  1661. uhh3.TextXAlignment = "Left"
  1662. uhh3.Text = "Required kills for the end: 50"
  1663. uhh3.TextSize = 24
  1664.  
  1665.  
  1666. Player=game:GetService("Players").LocalPlayer
  1667. Character=Player.Character
  1668. local Mouse = Player:GetMouse()
  1669. PlayerGui=Player.PlayerGui
  1670. Backpack=Player.Backpack
  1671. Torso=Character.Torso
  1672. Head=Character.Head
  1673. Humanoid=Character.Humanoid
  1674. m=Instance.new('Model',Character)
  1675. LeftArm=Character["Left Arm"]
  1676. LeftLeg=Character["Left Leg"]
  1677. RightArm=Character["Right Arm"]
  1678. RightLeg=Character["Right Leg"]
  1679. LS=Torso["Left Shoulder"]
  1680. LH=Torso["Left Hip"]
  1681. RS=Torso["Right Shoulder"]
  1682. RH=Torso["Right Hip"]
  1683. Face = Head.face
  1684. Neck=Torso.Neck
  1685. it=Instance.new
  1686. attacktype=1
  1687. vt=Vector3.new
  1688. cf=CFrame.new
  1689. euler=CFrame.fromEulerAnglesXYZ
  1690. angles=CFrame.Angles
  1691. cloaked=false
  1692. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1693. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1694. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1695. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1696. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1697. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1698. RootPart=Character.HumanoidRootPart
  1699. RootJoint=RootPart.RootJoint
  1700. RootCF=euler(-1.57,0,3.14)
  1701. attack = false
  1702. attackdebounce = false
  1703. deb=false
  1704. equipped=true
  1705. hand=false
  1706. MMouse=nil
  1707. combo=0
  1708. mana=0
  1709. trispeed=.2
  1710. attackmode='none'
  1711. local idle=0
  1712. local Anim="Idle"
  1713. local Effects={}
  1714. local gun=false
  1715. local shoot=false
  1716. local sine = 0
  1717. local change = 1
  1718. player=nil
  1719.  
  1720. mouse=Player:GetMouse()
  1721. --save shoulders
  1722. RSH, LSH=nil, nil
  1723. --welds
  1724. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1725. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1726. LH=Torso["Left Hip"]
  1727. RH=Torso["Right Hip"]
  1728. TorsoColor=Torso.BrickColor
  1729. function NoOutline(Part)
  1730. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1731. end
  1732. player=Player
  1733. ch=Character
  1734. RSH=ch.Torso["Right Shoulder"]
  1735. LSH=ch.Torso["Left Shoulder"]
  1736. --
  1737. RSH.Parent=nil
  1738. LSH.Parent=nil
  1739. --
  1740. RW.Name="Right Shoulder"
  1741. RW.Part0=ch.Torso
  1742. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1743. RW.C1=cf(0, 0.5, 0)
  1744. RW.Part1=ch["Right Arm"]
  1745. RW.Parent=ch.Torso
  1746. --
  1747. LW.Name="Left Shoulder"
  1748. LW.Part0=ch.Torso
  1749. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1750. LW.C1=cf(0, 0.5, 0)
  1751. LW.Part1=ch["Left Arm"]
  1752. LW.Parent=ch.Torso
  1753.  
  1754. local Stats=Instance.new("BoolValue")
  1755. Stats.Name="Stats"
  1756. Stats.Parent=Character
  1757. local Atk=Instance.new("NumberValue")
  1758. Atk.Name="Damage"
  1759. Atk.Parent=Stats
  1760. Atk.Value=1
  1761. local Def=Instance.new("NumberValue")
  1762. Def.Name="Defense"
  1763. Def.Parent=Stats
  1764. Def.Value=1
  1765. local Speed=Instance.new("NumberValue")
  1766. Speed.Name="Speed"
  1767. Speed.Parent=Stats
  1768. Speed.Value=1
  1769. local Mvmt=Instance.new("NumberValue")
  1770. Mvmt.Name="Movement"
  1771. Mvmt.Parent=Stats
  1772. Mvmt.Value=1
  1773.  
  1774. local donum=0
  1775.  
  1776.  
  1777. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1778. local fp=it("Part")
  1779. fp.formFactor=formfactor
  1780. fp.Parent=parent
  1781. fp.Reflectance=reflectance
  1782. fp.Transparency=transparency
  1783. fp.CanCollide=false
  1784. fp.Locked=true
  1785. fp.BrickColor=brickcolor
  1786. fp.Name=name
  1787. fp.Size=size
  1788. fp.Position=Torso.Position
  1789. NoOutline(fp)
  1790. fp.Material="SmoothPlastic"
  1791. fp:BreakJoints()
  1792. return fp
  1793. end
  1794.  
  1795. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1796. local mesh=it(Mesh)
  1797. mesh.Parent=part
  1798. if Mesh=="SpecialMesh" then
  1799. mesh.MeshType=meshtype
  1800. if meshid~="nil" then
  1801. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1802. end
  1803. end
  1804. mesh.Offset=offset
  1805. mesh.Scale=scale
  1806. return mesh
  1807. end
  1808.  
  1809. function weld(parent,part0,part1,c0)
  1810. local weld=it("Weld")
  1811. weld.Parent=parent
  1812. weld.Part0=part0
  1813. weld.Part1=part1
  1814. weld.C0=c0
  1815. return weld
  1816. end
  1817.  
  1818. local Color1=Torso.BrickColor
  1819.  
  1820. local bodvel=Instance.new("BodyVelocity")
  1821. local bg=Instance.new("BodyGyro")
  1822.  
  1823. function swait(num)
  1824. if num==0 or num==nil then
  1825. game:service'RunService'.Stepped:wait(0)
  1826. else
  1827. for i=0,num do
  1828. game:service'RunService'.Stepped:wait(0)
  1829. end
  1830. end
  1831. end
  1832.  
  1833.  
  1834. so = function(id,par,vol,pit)
  1835. coroutine.resume(coroutine.create(function()
  1836. local sou = Instance.new("Sound",par or workspace)
  1837. sou.Volume=vol
  1838. sou.Pitch=pit or 1
  1839. sou.SoundId=id
  1840. swait()
  1841. sou:play()
  1842. game:GetService("Debris"):AddItem(sou,6)
  1843. end))
  1844. end
  1845.  
  1846. function clerp(a,b,t)
  1847. local qa = {QuaternionFromCFrame(a)}
  1848. local qb = {QuaternionFromCFrame(b)}
  1849. local ax, ay, az = a.x, a.y, a.z
  1850. local bx, by, bz = b.x, b.y, b.z
  1851. local _t = 1-t
  1852. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1853. end
  1854.  
  1855. function QuaternionFromCFrame(cf)
  1856. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1857. local trace = m00 + m11 + m22
  1858. if trace > 0 then
  1859. local s = math.sqrt(1 + trace)
  1860. local recip = 0.5/s
  1861. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1862. else
  1863. local i = 0
  1864. if m11 > m00 then
  1865. i = 1
  1866. end
  1867. if m22 > (i == 0 and m00 or m11) then
  1868. i = 2
  1869. end
  1870. if i == 0 then
  1871. local s = math.sqrt(m00-m11-m22+1)
  1872. local recip = 0.5/s
  1873. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1874. elseif i == 1 then
  1875. local s = math.sqrt(m11-m22-m00+1)
  1876. local recip = 0.5/s
  1877. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1878. elseif i == 2 then
  1879. local s = math.sqrt(m22-m00-m11+1)
  1880. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1881. end
  1882. end
  1883. end
  1884.  
  1885. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1886. local xs, ys, zs = x + x, y + y, z + z
  1887. local wx, wy, wz = w*xs, w*ys, w*zs
  1888. local xx = x*xs
  1889. local xy = x*ys
  1890. local xz = x*zs
  1891. local yy = y*ys
  1892. local yz = y*zs
  1893. local zz = z*zs
  1894. 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))
  1895. end
  1896.  
  1897. function QuaternionSlerp(a, b, t)
  1898. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1899. local startInterp, finishInterp;
  1900. if cosTheta >= 0.0001 then
  1901. if (1 - cosTheta) > 0.0001 then
  1902. local theta = math.acos(cosTheta)
  1903. local invSinTheta = 1/math.sin(theta)
  1904. startInterp = math.sin((1-t)*theta)*invSinTheta
  1905. finishInterp = math.sin(t*theta)*invSinTheta
  1906. else
  1907. startInterp = 1-t
  1908. finishInterp = t
  1909. end
  1910. else
  1911. if (1+cosTheta) > 0.0001 then
  1912. local theta = math.acos(-cosTheta)
  1913. local invSinTheta = 1/math.sin(theta)
  1914. startInterp = math.sin((t-1)*theta)*invSinTheta
  1915. finishInterp = math.sin(t*theta)*invSinTheta
  1916. else
  1917. startInterp = t-1
  1918. finishInterp = t
  1919. end
  1920. end
  1921. 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
  1922. end
  1923.  
  1924. local function CFrameFromTopBack(at, top, back)
  1925. local right = top:Cross(back)
  1926. return CFrame.new(at.x, at.y, at.z,
  1927. right.x, top.x, back.x,
  1928. right.y, top.y, back.y,
  1929. right.z, top.z, back.z)
  1930. end
  1931.  
  1932. function Triangle(a, b, c)
  1933. local edg1 = (c-a):Dot((b-a).unit)
  1934. local edg2 = (a-b):Dot((c-b).unit)
  1935. local edg3 = (b-c):Dot((a-c).unit)
  1936. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1937. a, b, c = a, b, c
  1938. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1939. a, b, c = b, c, a
  1940. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1941. a, b, c = c, a, b
  1942. else
  1943. assert(false, "unreachable")
  1944. end
  1945.  
  1946. local len1 = (c-a):Dot((b-a).unit)
  1947. local len2 = (b-a).magnitude - len1
  1948. local width = (a + (b-a).unit*len1 - c).magnitude
  1949.  
  1950. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1951.  
  1952. local list = {}
  1953.  
  1954. if len1 > 0.01 then
  1955. local w1 = Instance.new('WedgePart', m)
  1956. game:GetService("Debris"):AddItem(w1,5)
  1957. w1.Material = "SmoothPlastic"
  1958. w1.FormFactor = 'Custom'
  1959. w1.BrickColor = BrickColor.new("Really red")
  1960. w1.Transparency = 0
  1961. w1.Reflectance = 0
  1962. w1.Material = "SmoothPlastic"
  1963. w1.CanCollide = false
  1964. local l1 = Instance.new("PointLight",w1)
  1965. l1.Color = Color3.new(170,0,0)
  1966. NoOutline(w1)
  1967. local sz = Vector3.new(0.2, width, len1)
  1968. w1.Size = sz
  1969. local sp = Instance.new("SpecialMesh",w1)
  1970. sp.MeshType = "Wedge"
  1971. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1972. w1:BreakJoints()
  1973. w1.Anchored = true
  1974. w1.Parent = workspace
  1975. w1.Transparency = 0.7
  1976. table.insert(Effects,{w1,"Disappear",.01})
  1977. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1978. table.insert(list,w1)
  1979. end
  1980.  
  1981. if len2 > 0.01 then
  1982. local w2 = Instance.new('WedgePart', m)
  1983. game:GetService("Debris"):AddItem(w2,5)
  1984. w2.Material = "SmoothPlastic"
  1985. w2.FormFactor = 'Custom'
  1986. w2.BrickColor = BrickColor.new("Really red")
  1987. w2.Transparency = 0
  1988. w2.Reflectance = 0
  1989. w2.Material = "SmoothPlastic"
  1990. w2.CanCollide = false
  1991. local l2 = Instance.new("PointLight",w2)
  1992. l2.Color = Color3.new(170,0,0)
  1993. NoOutline(w2)
  1994. local sz = Vector3.new(0.2, width, len2)
  1995. w2.Size = sz
  1996. local sp = Instance.new("SpecialMesh",w2)
  1997. sp.MeshType = "Wedge"
  1998. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1999. w2:BreakJoints()
  2000. w2.Anchored = true
  2001. w2.Parent = workspace
  2002. w2.Transparency = 0.7
  2003. table.insert(Effects,{w2,"Disappear",.01})
  2004. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  2005. table.insert(list,w2)
  2006. end
  2007. return unpack(list)
  2008. end
  2009.  
  2010.  
  2011. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  2012. if hit.Parent == nil then
  2013. return
  2014. end
  2015. local h = hit.Parent:FindFirstChild("Humanoid")
  2016. for _, v in pairs(hit.Parent:children()) do
  2017. if v:IsA("Humanoid") then
  2018. h = v
  2019. end
  2020. end
  2021. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  2022. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  2023. return
  2024. end
  2025. local c = Create("ObjectValue")({
  2026. Name = "creator",
  2027. Value = game:service("Players").LocalPlayer,
  2028. Parent = h
  2029. })
  2030. game:GetService("Debris"):AddItem(c, 0.5)
  2031. if HitSound ~= nil and HitPitch ~= nil then
  2032. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  2033. end
  2034. local Damage = math.random(minim, maxim)
  2035. local blocked = false
  2036. local block = hit.Parent:findFirstChild("Block")
  2037. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  2038. blocked = true
  2039. block.Value = block.Value - 1
  2040. print(block.Value)
  2041. end
  2042. if blocked == false then
  2043. HitHealth = h.Health
  2044. h.Health = h.Health - Damage
  2045. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  2046. print("gained kill")
  2047. end
  2048. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  2049. else
  2050. h.Health = h.Health - Damage / 2
  2051. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  2052. end
  2053. if Type == "Knockdown" then
  2054. local hum = hit.Parent.Humanoid
  2055. hum.PlatformStand = true
  2056. coroutine.resume(coroutine.create(function(HHumanoid)
  2057. swait(1)
  2058. HHumanoid.PlatformStand = false
  2059. end), hum)
  2060. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  2061. local bodvol = Create("BodyVelocity")({
  2062. velocity = angle * knockback,
  2063. P = 5000,
  2064. maxForce = Vector3.new(8000, 8000, 8000),
  2065. Parent = hit
  2066. })
  2067. local rl = Create("BodyAngularVelocity")({
  2068. P = 3000,
  2069. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  2070. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  2071. Parent = hit
  2072. })
  2073. game:GetService("Debris"):AddItem(bodvol, 0.5)
  2074. game:GetService("Debris"):AddItem(rl, 0.5)
  2075. elseif Type == "Normal" then
  2076. local vp = Create("BodyVelocity")({
  2077. P = 500,
  2078. maxForce = Vector3.new(math.huge, 0, math.huge),
  2079. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  2080. })
  2081. if knockback > 0 then
  2082. vp.Parent = hit.Parent.Torso
  2083. end
  2084. game:GetService("Debris"):AddItem(vp, 0.5)
  2085. elseif Type == "Up" then
  2086. local bodyVelocity = Create("BodyVelocity")({
  2087. velocity = Vector3.new(0, 20, 0),
  2088. P = 5000,
  2089. maxForce = Vector3.new(8000, 8000, 8000),
  2090. Parent = hit
  2091. })
  2092. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  2093. local bodyVelocity = Create("BodyVelocity")({
  2094. velocity = Vector3.new(0, 20, 0),
  2095. P = 5000,
  2096. maxForce = Vector3.new(8000, 8000, 8000),
  2097. Parent = hit
  2098. })
  2099. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2100. elseif Type == "Leech" then
  2101. local hum = hit.Parent.Humanoid
  2102. if hum ~= nil then
  2103. for i = 0, 2 do
  2104. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  2105. end
  2106. Humanoid.Health = Humanoid.Health + 10
  2107. end
  2108. elseif Type == "UpKnock" then
  2109. local hum = hit.Parent.Humanoid
  2110. hum.PlatformStand = true
  2111. if hum ~= nil then
  2112. hitr = true
  2113. end
  2114. coroutine.resume(coroutine.create(function(HHumanoid)
  2115. swait(5)
  2116. HHumanoid.PlatformStand = false
  2117. hitr = false
  2118. end), hum)
  2119. local bodyVelocity = Create("BodyVelocity")({
  2120. velocity = Vector3.new(0, 20, 0),
  2121. P = 5000,
  2122. maxForce = Vector3.new(8000, 8000, 8000),
  2123. Parent = hit
  2124. })
  2125. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  2126. local bodyVelocity = Create("BodyVelocity")({
  2127. velocity = Vector3.new(0, 20, 0),
  2128. P = 5000,
  2129. maxForce = Vector3.new(8000, 8000, 8000),
  2130. Parent = hit
  2131. })
  2132. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2133. elseif Type == "Snare" then
  2134. local bp = Create("BodyPosition")({
  2135. P = 2000,
  2136. D = 100,
  2137. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2138. position = hit.Parent.Torso.Position,
  2139. Parent = hit.Parent.Torso
  2140. })
  2141. game:GetService("Debris"):AddItem(bp, 1)
  2142. elseif Type == "Slashnare" then
  2143. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  2144. for i = 1, math.random(4, 5) do
  2145. Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  2146. end
  2147. local bp = Create("BodyPosition")({
  2148. P = 2000,
  2149. D = 100,
  2150. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2151. position = hit.Parent.Torso.Position,
  2152. Parent = hit.Parent.Torso
  2153. })
  2154. game:GetService("Debris"):AddItem(bp, 1)
  2155. elseif Type == "Spike" then
  2156. CreateBigIceSword(hit.Parent.Torso.CFrame)
  2157. local bp = Create("BodyPosition")({
  2158. P = 2000,
  2159. D = 100,
  2160. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2161. position = hit.Parent.Torso.Position,
  2162. Parent = hit.Parent.Torso
  2163. })
  2164. game:GetService("Debris"):AddItem(bp, 1)
  2165. elseif Type == "Freeze" then
  2166. local BodPos = Create("BodyPosition")({
  2167. P = 50000,
  2168. D = 1000,
  2169. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2170. position = hit.Parent.Torso.Position,
  2171. Parent = hit.Parent.Torso
  2172. })
  2173. local BodGy = Create("BodyGyro")({
  2174. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  2175. P = 20000,
  2176. Parent = hit.Parent.Torso,
  2177. cframe = hit.Parent.Torso.CFrame
  2178. })
  2179. hit.Parent.Torso.Anchored = true
  2180. coroutine.resume(coroutine.create(function(Part)
  2181. swait(1.5)
  2182. Part.Anchored = false
  2183. end), hit.Parent.Torso)
  2184. game:GetService("Debris"):AddItem(BodPos, 3)
  2185. game:GetService("Debris"):AddItem(BodGy, 3)
  2186. end
  2187. local debounce = Create("BoolValue")({
  2188. Name = "DebounceHit",
  2189. Parent = hit.Parent,
  2190. Value = true
  2191. })
  2192. game:GetService("Debris"):AddItem(debounce, Delay)
  2193. c = Instance.new("ObjectValue")
  2194. c.Name = "creator"
  2195. c.Value = Player
  2196. c.Parent = h
  2197. game:GetService("Debris"):AddItem(c, 0.5)
  2198. end
  2199. end
  2200. function ShowDamage(Pos, Text, Time, Color)
  2201. local Rate = 0.03333333333333333
  2202. local Pos = Pos or Vector3.new(0, 0, 0)
  2203. local Text = Text or ""
  2204. local Time = Time or 2
  2205. local Color = Color or Color3.new(1, 0, 1)
  2206. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  2207. EffectPart.Anchored = true
  2208. local BillboardGui = Create("BillboardGui")({
  2209. Size = UDim2.new(3, 0, 3, 0),
  2210. Adornee = EffectPart,
  2211. Parent = EffectPart
  2212. })
  2213. local TextLabel = Create("TextLabel")({
  2214. BackgroundTransparency = 1,
  2215. Size = UDim2.new(1, 0, 1, 0),
  2216. Text = Text,
  2217. TextColor3 = Color,
  2218. TextScaled = true,
  2219. Font = Enum.Font.ArialBold,
  2220. Parent = BillboardGui
  2221. })
  2222. game.Debris:AddItem(EffectPart, Time + 0.1)
  2223. EffectPart.Parent = game:GetService("Workspace")
  2224. delay(0, function()
  2225. local Frames = Time / Rate
  2226. for Frame = 1, Frames do
  2227. wait(Rate)
  2228. local Percent = Frame / Frames
  2229. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  2230. TextLabel.TextTransparency = Percent
  2231. end
  2232. if EffectPart and EffectPart.Parent then
  2233. EffectPart:Destroy()
  2234. end
  2235. end)
  2236. end
  2237. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  2238. for _, c in pairs(workspace:children()) do
  2239. local hum = c:findFirstChild("Humanoid")
  2240. if hum ~= nil then
  2241. local head = c:findFirstChild("Torso")
  2242. if head ~= nil then
  2243. local targ = head.Position - Part.Position
  2244. local mag = targ.magnitude
  2245. if magni >= mag and c.Name ~= Player.Name then
  2246. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2247. end
  2248. end
  2249. end
  2250. end
  2251. end
  2252.  
  2253. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  2254. for _, c in pairs(workspace:children()) do
  2255. local hum = c:findFirstChild("Humanoid")
  2256. if hum ~= nil then
  2257. local head = c:findFirstChild("Torso")
  2258. if head ~= nil then
  2259. local targ = head.Position - Part.Position
  2260. local mag = targ.magnitude
  2261. if magni >= mag and c.Name ~= Player.Name then
  2262. MagicBlock(BrickColor.new("Dark indigo"),head.CFrame,5,5,5,1,1,1,0.05)
  2263. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  2264. end
  2265. end
  2266. end
  2267. end
  2268. end
  2269.  
  2270. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  2271. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2272. end
  2273.  
  2274. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  2275. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2276. prt.Anchored=true
  2277. prt.CFrame=cframe
  2278. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  2279. --http://www.roblox.com/asset/?id=4770560
  2280. game:GetService("Debris"):AddItem(prt,2)
  2281. CF=prt.CFrame
  2282. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  2283. for i=0,1,0.2 do
  2284. wait()
  2285. Part.CFrame=CF*cf(0,0,-0.4)
  2286. end
  2287. for i=0,1,delay do
  2288. wait()
  2289. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  2290. Mesh.Scale=Mesh.Scale
  2291. end
  2292. for i=0,1,0.1 do
  2293. wait()
  2294. Part.Transparency=i
  2295. end
  2296. Part.Parent=nil
  2297. end),prt,msh,CF)
  2298. end
  2299.  
  2300. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2301. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2302. prt.Anchored=true
  2303. prt.Material = "Neon"
  2304. prt.CFrame=cframe
  2305. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2306. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2307. game:GetService("Debris"):AddItem(prt,5)
  2308. coroutine.resume(coroutine.create(function(Part,Mesh)
  2309. for i=0,1,delay do
  2310. swait()
  2311. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2312. Part.Transparency=i
  2313. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2314. end
  2315. Part.Parent=nil
  2316. end),prt,msh)
  2317. end
  2318.  
  2319. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2320. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2321. prt.Anchored=true
  2322. prt.Material = "Neon"
  2323. prt.CFrame=cframe
  2324. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2325. game:GetService("Debris"):AddItem(prt,5)
  2326. coroutine.resume(coroutine.create(function(Part,Mesh)
  2327. local rtype = rottype
  2328. for i=0,1,delay do
  2329. swait()
  2330. if rtype == 1 then
  2331. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2332. elseif rtype == 2 then
  2333. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2334. end
  2335. Part.Transparency=i
  2336. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2337. end
  2338. Part.Parent=nil
  2339. end),prt,msh)
  2340. end
  2341.  
  2342. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2343. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2344. prt.Anchored=true
  2345. prt.CFrame=cframe
  2346. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2347. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2348. game:GetService("Debris"):AddItem(prt,5)
  2349. coroutine.resume(coroutine.create(function(Part,Mesh)
  2350. for i=0,1,delay do
  2351. wait()
  2352. Part.Transparency=i
  2353. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2354. end
  2355. Part.Parent=nil
  2356. end),prt,msh)
  2357. end
  2358.  
  2359. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2360. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2361. prt.Anchored=true
  2362. prt.Material = "Neon"
  2363. prt.CFrame=cframe
  2364. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2365. game:GetService("Debris"):AddItem(prt,5)
  2366. coroutine.resume(coroutine.create(function(Part,Mesh)
  2367. local rtype = rottype
  2368. for i=0,1,delay do
  2369. swait()
  2370. if rtype == 1 then
  2371. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2372. elseif rtype == 2 then
  2373. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2374. end
  2375. Part.Transparency=i
  2376. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2377. end
  2378. Part.Parent=nil
  2379. end),prt,msh)
  2380. end
  2381.  
  2382. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2383. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2384. prt.Anchored=true
  2385. prt.Material = "Neon"
  2386. prt.CFrame=cframe
  2387. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2388. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  2389. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2390. game:GetService("Debris"):AddItem(prt,5)
  2391. coroutine.resume(coroutine.create(function(Part,Mesh)
  2392. local rtype = rottype
  2393. for i=0,1,delay do
  2394. swait()
  2395. if rtype == 1 then
  2396. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2397. elseif rtype == 2 then
  2398. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2399. end
  2400. dec.Transparency=i
  2401. dec2.Transparency=i
  2402. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2403. end
  2404. Part.Parent=nil
  2405. end),prt,msh)
  2406. end
  2407.  
  2408. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  2409. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2410. prt.Anchored=true
  2411. prt.Material = "Neon"
  2412. prt.CFrame=cframe
  2413. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  2414. game:GetService("Debris"):AddItem(prt,5)
  2415. coroutine.resume(coroutine.create(function(Part,Mesh)
  2416. local rtype = rottype
  2417. for i=0,1,delay do
  2418. swait()
  2419. if rtype == 1 then
  2420. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2421. elseif rtype == 2 then
  2422. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2423. end
  2424. prt.Transparency=i
  2425. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2426. end
  2427. Part.Parent=nil
  2428. end),prt,msh)
  2429. end
  2430.  
  2431. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  2432. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2433. prt.Anchored=true
  2434. prt.Material = "Neon"
  2435. prt.CFrame=cframe
  2436. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  2437. game:GetService("Debris"):AddItem(prt,5)
  2438. coroutine.resume(coroutine.create(function(Part,Mesh)
  2439. local rtype = rottype
  2440. for i=0,1,delay do
  2441. swait()
  2442. if rtype == 1 then
  2443. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  2444. elseif rtype == 2 then
  2445. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  2446. end
  2447. prt.Transparency=i
  2448. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  2449. end
  2450. Part.Parent=nil
  2451. end),prt,msh)
  2452. end
  2453.  
  2454. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  2455. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2456. prt.Anchored=true
  2457. prt.Material = "Neon"
  2458. prt.CFrame=cframe
  2459. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2460. game:GetService("Debris"):AddItem(prt,5)
  2461. coroutine.resume(coroutine.create(function(Part,Mesh)
  2462. local rtype = rottype
  2463. for i=0,1,delay do
  2464. swait()
  2465. if rtype == 1 then
  2466. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2467. elseif rtype == 2 then
  2468. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2469. end
  2470. prt.Transparency=i
  2471. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  2472. end
  2473. Part.Parent=nil
  2474. end),prt,msh)
  2475. end
  2476.  
  2477. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  2478. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2479. prt.Anchored=true
  2480. prt.Material = "Neon"
  2481. prt.CFrame=cframe
  2482. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2483. game:GetService("Debris"):AddItem(prt,5)
  2484. coroutine.resume(coroutine.create(function(Part,Mesh)
  2485. local rtype = rottype
  2486. for i=0,1,delay do
  2487. swait()
  2488. if rtype == 1 then
  2489. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  2490. elseif rtype == 2 then
  2491. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  2492. end
  2493. prt.Transparency=i
  2494. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2495. end
  2496. Part.Parent=nil
  2497. end),prt,msh)
  2498. end
  2499.  
  2500. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2501. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2502. prt.Anchored=false
  2503. prt.CFrame=cframe
  2504. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2505. local wld=weld(prt,prt,Parent,cframe)
  2506. game:GetService("Debris"):AddItem(prt,5)
  2507. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2508. for i=0,1,delay do
  2509. wait()
  2510. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2511. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2512. Part.Transparency=i
  2513. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2514. end
  2515. Part.Parent=nil
  2516. end),prt,msh,wld)
  2517. end
  2518.  
  2519. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2520. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2521. prt.Anchored=false
  2522. prt.CFrame=cframe
  2523. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2524. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2525. game:GetService("Debris"):AddItem(prt,5)
  2526. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2527. for i=0,1,delay do
  2528. wait()
  2529. Weld.C0=euler(i*20,0,0)
  2530. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2531. Part.Transparency=i
  2532. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2533. end
  2534. Part.Parent=nil
  2535. end),prt,msh,wld)
  2536. end
  2537.  
  2538. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2539. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2540. prt.Anchored=true
  2541. prt.CFrame=cframe
  2542. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2543. game:GetService("Debris"):AddItem(prt,2)
  2544. coroutine.resume(coroutine.create(function(Part,Mesh)
  2545. for i=0,1,delay do
  2546. wait()
  2547. Part.CFrame=Part.CFrame
  2548. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2549. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2550. prt2.Anchored=true
  2551. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2552. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2553. game:GetService("Debris"):AddItem(prt2,2)
  2554. coroutine.resume(coroutine.create(function(Part,Mesh)
  2555. for i=0,1,0.1 do
  2556. wait()
  2557. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2558. end
  2559. Part.Parent=nil
  2560. end),prt2,msh2)
  2561. end
  2562. for i=0,1,delay*2 do
  2563. wait()
  2564. Part.CFrame=Part.CFrame
  2565. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2566. end
  2567. Part.Parent=nil
  2568. end),prt,msh)
  2569. end
  2570.  
  2571. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2572. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2573. prt.Anchored=true
  2574. prt.CFrame=cframe
  2575. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2576. game:GetService("Debris"):AddItem(prt,2)
  2577. coroutine.resume(coroutine.create(function(Part,Mesh)
  2578. for i=0,1,delay do
  2579. wait()
  2580. Part.CFrame=Part.CFrame
  2581. Part.Transparency=i
  2582. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2583. end
  2584. Part.Parent=nil
  2585. end),prt,msh)
  2586. end
  2587.  
  2588. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2589. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2590. prt.Anchored=true
  2591. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2592. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2593. game:GetService("Debris"):AddItem(prt,2)
  2594. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2595. CF=Part.CFrame
  2596. Numbb=0
  2597. randnumb=math.random()/10
  2598. rand1=math.random()/10
  2599. for i=0,1,rand1 do
  2600. wait()
  2601. CF=CF*cf(0,math.random()/2,0)
  2602. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2603. Part.CFrame=CF*euler(Numbb,0,0)
  2604. Part.Transparency=i
  2605. Numbb=Numbb+randnumb
  2606. end
  2607. Part.Parent=nil
  2608. end),prt,CF,Numbb,randnumb)
  2609. end
  2610.  
  2611. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2612. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2613. prt.Anchored=true
  2614. prt.CFrame=cframe
  2615. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2616. game:GetService("Debris"):AddItem(prt,5)
  2617. coroutine.resume(coroutine.create(function(Part,Mesh)
  2618. for i=0,1,delay do
  2619. wait()
  2620. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2621. Part.Transparency=i
  2622. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2623. end
  2624. Part.Parent=nil
  2625. end),prt,msh)
  2626. end
  2627.  
  2628. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2629. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2630. prt.Anchored=true
  2631. prt.CFrame=cframe
  2632. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2633. game:GetService("Debris"):AddItem(prt,2)
  2634. coroutine.resume(coroutine.create(function(Part,Mesh)
  2635. for i=0,1,delay do
  2636. wait()
  2637. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2638. Part.Transparency=i
  2639. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2640. end
  2641. Part.Parent=nil
  2642. end),prt,msh)
  2643. end
  2644.  
  2645. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2646. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2647. prt.Anchored=true
  2648. prt.CFrame=cframe*cf(x,y,z)
  2649. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2650. game:GetService("Debris"):AddItem(prt,5)
  2651. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2652. local num=math.random()
  2653. local num2=math.random(-3,2)+math.random()
  2654. local numm=0
  2655. for i=0,1,delay*2 do
  2656. swait()
  2657. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2658. Part.Transparency=i
  2659. numm=numm+0.01
  2660. end
  2661. Part.Parent=nil
  2662. Mesh.Parent=nil
  2663. end),prt,msh,x,y,z)
  2664. end
  2665.  
  2666. function dmgstart(dmg,what)
  2667. hitcon = what.Touched:connect(function(hit)
  2668. local hum = hit.Parent:FindFirstChild("Humanoid")
  2669. if hum and not hum:IsDescendantOf(Character) then
  2670. hum:TakeDamage(dmg)
  2671. end
  2672. end)
  2673. end
  2674.  
  2675. function dmgstop()
  2676. hitcon:disconnect()
  2677. end
  2678.  
  2679. function Cloak()
  2680. Face.Parent=nil
  2681. cloaked=true
  2682. for _,v in pairs(Torso.Parent:children()) do
  2683. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2684. coroutine.resume(coroutine.create(function()
  2685. for i=0,1,0.2 do
  2686. wait()
  2687. v.Transparency=i
  2688. end
  2689. v.Transparency=1
  2690. end))
  2691. end
  2692. if v.className=="Hat" then
  2693. hatp=v.Handle
  2694. coroutine.resume(coroutine.create(function(derp)
  2695. for i=0,1,0.2 do
  2696. wait()
  2697. derp.Transparency=i
  2698. end
  2699. derp.Transparency=1
  2700. end),hatp)
  2701. end
  2702. end
  2703. for _,v in pairs(m:children()) do
  2704. if v.className=="Part" then
  2705. coroutine.resume(coroutine.create(function()
  2706. for i=0,1,0.2 do
  2707. wait()
  2708. v.Transparency=i
  2709. end
  2710. v.Transparency=1
  2711. end))
  2712. end
  2713. end
  2714. end
  2715.  
  2716. function UnCloak()
  2717. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2718. Face.Parent=Head
  2719. cloaked=false
  2720. for _,v in pairs(Torso.Parent:children()) do
  2721. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2722. coroutine.resume(coroutine.create(function()
  2723. for i=0,1,0.1 do
  2724. wait()
  2725. v.Transparency=v.Transparency-0.1
  2726. end
  2727. v.Transparency=0
  2728. end))
  2729. end
  2730. if v.className=="Hat" then
  2731. hatp=v.Handle
  2732. coroutine.resume(coroutine.create(function(derp)
  2733. for i=0,1,0.1 do
  2734. wait()
  2735. derp.Transparency=derp.Transparency-0.1
  2736. end
  2737. derp.Transparency=0
  2738. end),hatp)
  2739. end
  2740. end
  2741. for _,v in pairs(m:children()) do
  2742. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2743. coroutine.resume(coroutine.create(function()
  2744. for i=0,1,0.1 do
  2745. wait()
  2746. v.Transparency=v.Transparency-0.1
  2747. end
  2748. v.Transparency=0
  2749. end))
  2750. v.Transparency=0
  2751. end
  2752. end
  2753. end
  2754.  
  2755. local origcolor = BrickColor.new("Dark indigo")
  2756. ---- This section of explosions.
  2757. function Explode(rad,par,pitch,vol,mindam,maxdam)
  2758. local expart = Instance.new("Part",char)
  2759. local expart2 = Instance.new("Part",char)
  2760. local rin = Instance.new("Part",char)
  2761. local rin2 = Instance.new("Part",char)
  2762. local partMesh = Instance.new("SpecialMesh",expart)
  2763. partMesh.MeshType = "Sphere"
  2764. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2765. partMesh2.MeshType = "Sphere"
  2766. local partMesh3 = Instance.new("SpecialMesh",rin)
  2767. partMesh3.MeshType = "Brick"
  2768. local partMesh4 = Instance.new("SpecialMesh",rin2)
  2769. partMesh4.MeshType = "Brick"
  2770. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  2771. partMesh.Scale = vt(rad,rad,rad)
  2772. expart.Size = vt(1,1,1)
  2773. expart.Transparency = 1
  2774. expart.Anchored = true
  2775. expart.Material = "Neon"
  2776. expart.BrickColor = bc("White")
  2777. expart.CFrame = par.CFrame
  2778. partMesh2.Scale = vt(rad,rad,rad)
  2779. expart2.Size = vt(1.15,1.15,1.15)
  2780. expart2.Transparency = 0.75
  2781. expart2.Anchored = true
  2782. expart2.Material = "Glass"
  2783. expart2.BrickColor = par.BrickColor
  2784. expart2.CFrame = par.CFrame
  2785. rin.Size = vt(1.15,1.15,1.15)
  2786. rin.Transparency = 1
  2787. rin.Anchored = true
  2788. rin.Material = "Neon"
  2789. rin.BrickColor = par.BrickColor
  2790. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2791. rin2.Size = vt(1.15,1.15,1.15)
  2792. rin2.Transparency = 1
  2793. rin2.Anchored = true
  2794. rin2.Material = "Neon"
  2795. rin2.BrickColor = par.BrickColor
  2796. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2797. partMesh3.Scale = vt(0,1,0)
  2798. partMesh4.Scale = vt(0,1,0)
  2799. local dec2 = Instance.new("Decal", rin)
  2800. dec2.Face = "Top"
  2801. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2802. dec2.Parent = rin
  2803. local dec2b = dec2:Clone()
  2804. dec2b.Face = "Bottom"
  2805. dec2b.Parent = rin
  2806.  
  2807. local dec2a = Instance.new("Decal", rin2)
  2808. dec2a.Face = "Top"
  2809. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  2810. dec2a.Parent = rin2
  2811. local dec2ab = dec2a:Clone()
  2812. dec2ab.Face = "Bottom"
  2813. dec2ab.Parent = rin2
  2814. expart.CanCollide = false
  2815. expart2.CanCollide = false
  2816. rin.CanCollide = false
  2817. rin2.CanCollide = false
  2818. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  2819. local value = 1*rad/6.5
  2820. for i = 0, 199 do
  2821. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2822. expart.CFrame = expart.CFrame
  2823. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2824. expart2.CFrame = expart.CFrame
  2825. value = value - 0.035*rad/30
  2826. if value < 7.5 then
  2827. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  2828. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  2829. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  2830. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  2831. end
  2832. if value < 0 then
  2833. dec2.Transparency = dec2.Transparency + 0.025
  2834. dec2a.Transparency = dec2a.Transparency + 0.025
  2835. dec2b.Transparency = dec2b.Transparency + 0.025
  2836. dec2ab.Transparency = dec2ab.Transparency + 0.025
  2837. expart.Transparency = expart.Transparency + 0.025
  2838. expart2.Transparency = expart2.Transparency + 0.025
  2839. rin.Transparency = rin.Transparency + 0.025
  2840. rin2.Transparency = rin2.Transparency + 0.025
  2841. end
  2842. swait()
  2843. end
  2844. game:GetService("Debris"):AddItem(expart, 1)
  2845. game:GetService("Debris"):AddItem(expart2, 1)
  2846. game:GetService("Debris"):AddItem(rin, 1)
  2847. game:GetService("Debris"):AddItem(rin2, 1)
  2848. end
  2849.  
  2850. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  2851. local expart = Instance.new("Part",char)
  2852. local expart2 = Instance.new("Part",char)
  2853. local partMesh = Instance.new("SpecialMesh",expart)
  2854. partMesh.MeshType = "Sphere"
  2855. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2856. partMesh2.MeshType = "Sphere"
  2857. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  2858. partMesh.Scale = vt(rad,rad,rad)
  2859. expart.Size = vt(1,1,1)
  2860. expart.Transparency = 0
  2861. expart.Anchored = true
  2862. expart.Material = "Neon"
  2863. expart.BrickColor = bc("White")
  2864. expart.CFrame = par.CFrame
  2865. partMesh2.Scale = vt(rad,rad,rad)
  2866. expart2.Size = vt(1.15,1.15,1.15)
  2867. expart2.Transparency = 0.5
  2868. expart2.Anchored = true
  2869. expart2.Material = "Neon"
  2870. expart2.BrickColor = par.BrickColor
  2871. expart2.CFrame = par.CFrame
  2872. expart.CanCollide = false
  2873. expart2.CanCollide = false
  2874. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  2875. local value = 1*rad/6.5
  2876. for i = 0, 75 do
  2877. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2878. expart.CFrame = expart.CFrame
  2879. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2880. expart2.CFrame = expart.CFrame
  2881. value = value - 0.035*rad/5
  2882. if value < 0 then
  2883. value = 0
  2884. expart.Transparency = expart.Transparency + 0.05
  2885. expart2.Transparency = expart2.Transparency + 0.05
  2886. end
  2887. swait()
  2888. end
  2889. game:GetService("Debris"):AddItem(expart, 1)
  2890. game:GetService("Debris"):AddItem(expart2, 1)
  2891. end
  2892.  
  2893. function AreaDanger(rad,par,mindam,maxdam)
  2894. local expart = Instance.new("Part",char)
  2895. local partMesh = Instance.new("SpecialMesh",expart)
  2896. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2897. partMesh.MeshType = "Sphere"
  2898. partMesh.Scale = vt(rad,rad,rad)
  2899. expart.Size = vt(1,1,1)
  2900. expart.Transparency = 0.5
  2901. expart.Anchored = true
  2902. expart.Material = "Neon"
  2903. expart.CanCollide = false
  2904. expart.BrickColor = par.BrickColor
  2905. expart.CFrame = par.CFrame
  2906. local value = 1*rad/5
  2907. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  2908. for i = 0, 14 do
  2909. wait()
  2910. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2911. expart.CFrame = expart.CFrame
  2912. value = value - 0.035*rad
  2913. if value < 0 then
  2914. value = 0
  2915. end
  2916. end
  2917. wait(0.25)
  2918. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  2919. wait(0.5)
  2920. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  2921. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  2922. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  2923. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  2924. for i = 0, 14 do
  2925. wait()
  2926. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2927. expart.CFrame = expart.CFrame
  2928. value = value - 0.035*rad/2
  2929. end
  2930. expart.Transparency = 1
  2931. game:GetService("Debris"):AddItem(expart, 5)
  2932. end
  2933.  
  2934. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  2935. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  2936. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  2937. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  2938. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2939. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  2940. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  2941. for i = 0, 24 do
  2942. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2))
  2943. end
  2944. for i = 0, 24 do
  2945. local expart = Instance.new("Part",char)
  2946. expart.Transparency = 1
  2947. expart.Anchored = true
  2948. expart.CanCollide = false
  2949. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  2950. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  2951. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2952. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  2953. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  2954. for i = 0, 9 do
  2955. MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2))
  2956. end
  2957. game:GetService("Debris"):AddItem(expart, 2)
  2958. wait(0.1)
  2959. end
  2960. end
  2961.  
  2962. function EXterPlosion(par)
  2963. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  2964. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  2965. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  2966. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2967. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  2968. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  2969. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  2970. for i = 0, 24 do
  2971. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2))
  2972. end
  2973. for i = 0, 24 do
  2974. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2))
  2975. end
  2976. end
  2977. ----
  2978.  
  2979. local stackingpower = 1
  2980.  
  2981. function HellsCore()
  2982. attack = true
  2983. --[[for i = 0,1,0.1 do
  2984. swait()
  2985. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.3)
  2986. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  2987. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  2988. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  2989. end]]--
  2990.  
  2991. local rng = Instance.new("Part", char)
  2992. CFuncs["Sound"].Create("rbxassetid://401466969", root, 1, 0.6)
  2993. rng.Anchored = true
  2994. rng.BrickColor = origcolor
  2995. rng.CanCollide = false
  2996. rng.FormFactor = 3
  2997. rng.Name = "Ring"
  2998. rng.Material = "Neon"
  2999. rng.Size = Vector3.new(1, 1, 1)
  3000. rng.Transparency = 1
  3001. rng.TopSurface = 0
  3002. rng.BottomSurface = 0
  3003. rng.CFrame = root.CFrame + Vector3.new(0,-2.5,0)
  3004. local rngm = Instance.new("SpecialMesh", rng)
  3005. rngm.MeshType = "Brick"
  3006. local dec = Instance.new("Decal",rng)
  3007. dec.Texture = "http://www.roblox.com/asset/?id=401466968"
  3008. dec.Face = "Top"
  3009. local dec2 = dec:Clone()
  3010. dec2.Parent = rng
  3011. dec2.Face = "Bottom"
  3012.  
  3013. local scaler2 = 1
  3014. scaler2 = 1*3
  3015. for i = 0,10,0.1 do
  3016. swait()
  3017. scaler2 = scaler2 - 0.01*3
  3018. rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2)
  3019. end
  3020. wait(3)
  3021. for i = 0,10,0.1 do
  3022. swait()
  3023. scaler2 = scaler2 - 0.01*3
  3024. dec.Transparency = dec.Transparency + 0.01
  3025. dec2.Transparency = dec2.Transparency + 0.01
  3026. rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2)
  3027. end
  3028. rng:Destroy()
  3029. attack = false
  3030. end
  3031.  
  3032.  
  3033. function FaceMouse()
  3034. Cam = workspace.CurrentCamera
  3035. return {
  3036. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3037. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3038. }
  3039. end
  3040.  
  3041. function FaceMouse2()
  3042. Cam = workspace.CurrentCamera
  3043. return {
  3044. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3045. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3046. }
  3047. end
  3048.  
  3049.  
  3050. local HoldingZ = false
  3051. local HoldingX = false
  3052. local HoldingC = false
  3053. local HoldingV = false
  3054. local HoldingB = false
  3055.  
  3056.  
  3057. function RingEffect(pos,startsize,size,col)
  3058. local lb = Instance.new("Part")
  3059. lb.Parent = char
  3060. lb.BrickColor = col
  3061. lb.CanCollide = false
  3062. lb.Material = "Neon"
  3063. lb.Anchored = true
  3064. lb.TopSurface = 0
  3065. lb.BottomSurface = 0
  3066. lb.Transparency = 1
  3067. lb.Size = vt(1,1,1)
  3068. lb.CFrame = pos
  3069. local thingery = Instance.new("SpecialMesh",lb)
  3070. thingery.MeshType = "Brick"
  3071. thingery.Scale = vt(startsize,0.1,startsize)
  3072. local dec2 = Instance.new("Texture", lb)
  3073. dec2.Face = "Top"
  3074. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  3075. dec2.Color3 = lb.Color
  3076. dec2.Parent = lb
  3077. dec2.StudsPerTileU = startsize
  3078. dec2.StudsPerTileV = startsize
  3079. local dec2b = dec2:Clone()
  3080. dec2b.Face = "Bottom"
  3081. dec2b.Parent = lb
  3082. local randomrot = math.random(1,2)
  3083. coroutine.resume(coroutine.create(function()
  3084. for i = 0, 19 do
  3085. swait()
  3086. if randomrot == 1 then
  3087. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0)
  3088. elseif randomrot == 2 then
  3089. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0)
  3090. end
  3091. dec2.Transparency = dec2.Transparency + 0.05
  3092. dec2b.Transparency = dec2b.Transparency + 0.05
  3093. dec2.StudsPerTileU = dec2.StudsPerTileU + size
  3094. dec2.StudsPerTileV = dec2.StudsPerTileV + size
  3095. dec2b.StudsPerTileU = dec2b.StudsPerTileU + size
  3096. dec2b.StudsPerTileV = dec2b.StudsPerTileV + size
  3097. thingery.Scale = thingery.Scale + vt(size,0,size)
  3098. end
  3099. lb:Destroy()
  3100. end))
  3101. end
  3102.  
  3103. function SlowRingEffect(pos,startsize,size,col)
  3104. local lb = Instance.new("Part")
  3105. lb.Parent = char
  3106. lb.BrickColor = col
  3107. lb.CanCollide = false
  3108. lb.Material = "Neon"
  3109. lb.Anchored = true
  3110. lb.TopSurface = 0
  3111. lb.BottomSurface = 0
  3112. lb.Transparency = 1
  3113. lb.Size = vt(1,1,1)
  3114. lb.CFrame = pos
  3115. local thingery = Instance.new("SpecialMesh",lb)
  3116. thingery.MeshType = "Brick"
  3117. thingery.Scale = vt(startsize,0.1,startsize)
  3118. local dec2 = Instance.new("Decal", lb)
  3119. dec2.Face = "Top"
  3120. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  3121. dec2.Color3 = lb.Color
  3122. dec2.Parent = lb
  3123. local dec2b = dec2:Clone()
  3124. dec2b.Face = "Bottom"
  3125. dec2b.Parent = lb
  3126. local randomrot = math.random(1,2)
  3127. coroutine.resume(coroutine.create(function()
  3128. for i = 0, 49 do
  3129. swait()
  3130. if randomrot == 1 then
  3131. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0)
  3132. elseif randomrot == 2 then
  3133. lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0)
  3134. end
  3135. dec2.Transparency = dec2.Transparency + 0.02
  3136. dec2b.Transparency = dec2b.Transparency + 0.02
  3137. thingery.Scale = thingery.Scale + vt(size,0,size)
  3138. end
  3139. lb:Destroy()
  3140. end))
  3141. end
  3142.  
  3143.  
  3144. function groundringaa(pos)
  3145. local rng = Instance.new("Part", char)
  3146. rng.Anchored = true
  3147. rng.BrickColor = origcolor
  3148. rng.CanCollide = false
  3149. rng.FormFactor = 3
  3150. rng.Name = "Ring"
  3151. rng.Size = Vector3.new(1, 1, 1)
  3152. rng.Transparency = 1
  3153. rng.TopSurface = 0
  3154. rng.BottomSurface = 0
  3155. rng.CFrame = pos
  3156. local rngm = Instance.new("SpecialMesh", rng)
  3157. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  3158. rngm.Scale = Vector3.new(100,100,5)
  3159. local scaler2 = -10/2
  3160. coroutine.resume(coroutine.create(function()
  3161. for i = 0,10,0.1 do
  3162. swait()
  3163. scaler2 = scaler2 + 0.1/2
  3164. rng.Transparency = rng.Transparency - 0.01
  3165. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0)
  3166. end
  3167. rng:Destroy()
  3168. end))
  3169. end
  3170.  
  3171. function groundringbb(pos)
  3172. local rng = Instance.new("Part", char)
  3173. rng.Anchored = true
  3174. rng.BrickColor = origcolor
  3175. rng.CanCollide = false
  3176. rng.FormFactor = 3
  3177. rng.Name = "Ring"
  3178. rng.Size = Vector3.new(1, 1, 1)
  3179. rng.Transparency = 0
  3180. rng.TopSurface = 0
  3181. rng.BottomSurface = 0
  3182. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  3183. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  3184. local rngm = Instance.new("SpecialMesh", rng)
  3185. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  3186. rngm.Scale = Vector3.new(0,0,5)
  3187. local scaler2 = 10
  3188. coroutine.resume(coroutine.create(function()
  3189. for i = 0,10*2,0.1 do
  3190. swait()
  3191. scaler2 = scaler2 - 0.1/2
  3192. rng.Transparency = rng.Transparency + 0.005
  3193. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2)
  3194. end
  3195. rng:Destroy()
  3196. end))
  3197. end
  3198.  
  3199. function groundglowaa(pos)
  3200. local rng = Instance.new("Part", char)
  3201. rng.Anchored = true
  3202. rng.BrickColor = origcolor
  3203. rng.CanCollide = false
  3204. rng.FormFactor = 3
  3205. rng.Material = "Neon"
  3206. rng.Name = "Ring"
  3207. rng.Size = Vector3.new(1, 1, 1)
  3208. rng.Transparency = 0
  3209. rng.TopSurface = 0
  3210. rng.BottomSurface = 0
  3211. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  3212. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  3213. local rngm = Instance.new("SpecialMesh", rng)
  3214. rngm.MeshType = "Sphere"
  3215. rngm.Scale = Vector3.new(0,0,25)
  3216. local scaler2 = 10*2
  3217. coroutine.resume(coroutine.create(function()
  3218. for i = 0,10*2,0.1 do
  3219. swait()
  3220. scaler2 = scaler2 - 0.1*2/2
  3221. rng.Transparency = rng.Transparency + 0.005
  3222. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0)
  3223. end
  3224. rng:Destroy()
  3225. end))
  3226. end
  3227.  
  3228. function bemaa(pos)
  3229. local rng = Instance.new("Part", char)
  3230. rng.Anchored = true
  3231. rng.BrickColor = origcolor
  3232. rng.CanCollide = false
  3233. rng.FormFactor = 3
  3234. rng.Material = "Neon"
  3235. rng.Name = "Ring"
  3236. rng.Size = Vector3.new(1, 1, 1)
  3237. rng.Transparency = 0
  3238. rng.TopSurface = 0
  3239. rng.BottomSurface = 0
  3240. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  3241. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  3242. local rngm = Instance.new("SpecialMesh", rng)
  3243. rngm.MeshType = "Sphere"
  3244. rngm.Scale = Vector3.new(0,0,10000)
  3245. local scaler2 = 1
  3246. coroutine.resume(coroutine.create(function()
  3247. for i = 0,99,0.1 do
  3248. swait()
  3249. scaler2 = scaler2 - 0.0025
  3250. rng.Transparency = rng.Transparency + 0.0025
  3251. rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0)
  3252. end
  3253. rng:Destroy()
  3254. end))
  3255. end
  3256.  
  3257. function bemaashake(pos)
  3258. local rng = Instance.new("Part", char)
  3259. rng.Anchored = true
  3260. rng.BrickColor = origcolor
  3261. rng.CanCollide = false
  3262. rng.FormFactor = 3
  3263. rng.Material = "Neon"
  3264. rng.Name = "Ring"
  3265. rng.Size = Vector3.new(1, 1, 1)
  3266. rng.Transparency = 0
  3267. rng.TopSurface = 0
  3268. rng.BottomSurface = 0
  3269. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  3270. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  3271. local rngm = Instance.new("SpecialMesh", rng)
  3272. rngm.MeshType = "Sphere"
  3273. local oof = Instance.new("Part",char)
  3274. oof.Parent = rng
  3275. oof.CFrame = rng.CFrame
  3276. oof.CanCollide = false
  3277. oof.Anchored = true
  3278. oof.Transparency = 1
  3279. rngm.Scale = Vector3.new(0,0,10000)
  3280. local scaler2 = 1*10
  3281. coroutine.resume(coroutine.create(function()
  3282. for i = 0,99,0.1 do
  3283. swait()
  3284. scaler2 = scaler2 - 0.0025*10
  3285. rng.CFrame = oof.CFrame + Vector3.new(math.random(-1,1),0,math.random(-1,1))
  3286. rng.Transparency = rng.Transparency + 0.0025
  3287. rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0)
  3288. end
  3289. rng:Destroy()
  3290. end))
  3291. end
  3292.  
  3293. function groundringlarge(pos)
  3294. local rng = Instance.new("Part", char)
  3295. rng.Anchored = true
  3296. rng.BrickColor = origcolor
  3297. rng.CanCollide = false
  3298. rng.FormFactor = 3
  3299. rng.Name = "Ring"
  3300. rng.Size = Vector3.new(1, 1, 1)
  3301. rng.Transparency = 0
  3302. rng.TopSurface = 0
  3303. rng.BottomSurface = 0
  3304. rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
  3305. rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
  3306. local rngm = Instance.new("SpecialMesh", rng)
  3307. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  3308. rngm.Scale = Vector3.new(0,0,5)
  3309. local scaler2 = 10*10
  3310. coroutine.resume(coroutine.create(function()
  3311. for i = 0,10*2,0.1 do
  3312. swait()
  3313. scaler2 = scaler2 - 0.1*10/2
  3314. rng.Transparency = rng.Transparency + 0.005
  3315. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2)
  3316. end
  3317. rng:Destroy()
  3318. end))
  3319. end
  3320.  
  3321. function sphere(bonuspeed,type,pos,scale,value,color)
  3322. local type = type
  3323. local rng = Instance.new("Part", char)
  3324. rng.Anchored = true
  3325. rng.BrickColor = color
  3326. rng.CanCollide = false
  3327. rng.FormFactor = 3
  3328. rng.Name = "Ring"
  3329. rng.Material = "Neon"
  3330. rng.Size = Vector3.new(1, 1, 1)
  3331. rng.Transparency = 0
  3332. rng.TopSurface = 0
  3333. rng.BottomSurface = 0
  3334. rng.CFrame = pos
  3335. local rngm = Instance.new("SpecialMesh", rng)
  3336. rngm.MeshType = "Sphere"
  3337. rngm.Scale = scale
  3338. local scaler2 = 1
  3339. if type == "Add" then
  3340. scaler2 = 1*value
  3341. elseif type == "Divide" then
  3342. scaler2 = 1/value
  3343. end
  3344. coroutine.resume(coroutine.create(function()
  3345. for i = 0,10/bonuspeed,0.1 do
  3346. swait()
  3347. if type == "Add" then
  3348. scaler2 = scaler2 - 0.01*value/bonuspeed
  3349. elseif type == "Divide" then
  3350. scaler2 = scaler2 - 0.01/value*bonuspeed
  3351. end
  3352. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  3353. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  3354. end
  3355. rng:Destroy()
  3356. end))
  3357. end
  3358. Humanoid.Animator.Parent = nil
  3359.  
  3360. function AppearMutatedLimbs()
  3361. hum.WalkSpeed = 0
  3362. hum.MaxHealth = math.huge
  3363. attack = true
  3364. for i = 0,14,0.1 do
  3365. swait()
  3366. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.1)
  3367. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.1)
  3368. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
  3369. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0 + 10 * math.cos(sine / 1))),.1)
  3370. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.1)
  3371. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-10 - 10 * math.cos(sine / 1))),.1)
  3372. end
  3373. for i = 0,8,0.1 do
  3374. swait()
  3375. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.1)
  3376. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.1)
  3377. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
  3378. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(20)),.1)
  3379. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.1)
  3380. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(0 - 10 * math.cos(sine / 1))),.1)
  3381. end
  3382. for i = 0,2,0.1 do
  3383. swait()
  3384. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  3385. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  3386. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4)
  3387. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3388. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
  3389. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(60 - 10 * math.cos(sine / 1))),.4)
  3390. end
  3391. for i, v in pairs(MutantParts:GetChildren()) do
  3392. if v:IsA("Part") then
  3393. v.Transparency = 0
  3394. end
  3395. end
  3396. local bld = Instance.new("ParticleEmitter",larm)
  3397. bld.LightEmission = 0.1
  3398. bld.Texture = "rbxassetid://284205403"
  3399. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3400. bld.Rate = 500
  3401. bld.Lifetime = NumberRange.new(1)
  3402. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3403. bld.Acceleration = vt(0,-25,0)
  3404. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3405. bld.Speed = NumberRange.new(10,25)
  3406. bld.EmissionDirection = "Bottom"
  3407. bld.VelocitySpread = 100
  3408. bld.Rotation = NumberRange.new(-500,500)
  3409. bld.RotSpeed = NumberRange.new(-500,500)
  3410. local bldef = Instance.new("ParticleEmitter",larm)
  3411. bldef.LightEmission = 0.1
  3412. bldef.Texture = "rbxassetid://284205403"
  3413. bldef.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3414. bldef.Rate = 25
  3415. bldef.Lifetime = NumberRange.new(1)
  3416. bldef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  3417. bldef.Acceleration = vt(0,-5,0)
  3418. bldef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  3419. bldef.Speed = NumberRange.new(0,0,0)
  3420. bldef.EmissionDirection = "Bottom"
  3421. bldef.VelocitySpread = 150
  3422. bldef.Rotation = NumberRange.new(-500,500)
  3423. bldef.RotSpeed = NumberRange.new(-500,500)
  3424. game:GetService("Debris"):AddItem(bld,3)
  3425. CFuncs["Sound"].Create("rbxassetid://429400881", larm, 2.5, 1)
  3426. CFuncs["Sound"].Create("rbxassetid://206082327", larm, 0.75, 1)
  3427. for i = 0,1,0.1 do
  3428. swait()
  3429. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  3430. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  3431. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-60)),.8)
  3432. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(60)),.8)
  3433. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3434. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-60 - 10 * math.cos(sine / 1))),.8)
  3435. end
  3436. bld.Enabled = false
  3437. attack = false
  3438. hum.WalkSpeed = 6
  3439. end
  3440.  
  3441. function AppearMutatedLimbs2()
  3442. hum.WalkSpeed = 0
  3443. attack = true
  3444. LeftModeUnlocked = true
  3445. for i = 0,8,0.1 do
  3446. swait()
  3447. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.1)
  3448. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.1)
  3449. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
  3450. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-20)),.1)
  3451. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 - 10 * math.cos(sine / 1)),math.rad(90 + 10 * math.cos(sine / 1))),.1)
  3452. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(0 - 10 * math.cos(sine / 1))),.1)
  3453. end
  3454. for i = 0,2,0.1 do
  3455. swait()
  3456. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  3457. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  3458. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-90)),.4)
  3459. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
  3460. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 - 10 * math.cos(sine / 1)),math.rad(20 + 10 * math.cos(sine / 1))),.4)
  3461. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(0 - 10 * math.cos(sine / 1))),.4)
  3462. end
  3463. for i, v in pairs(MutantParts2:GetChildren()) do
  3464. if v:IsA("Part") then
  3465. v.Transparency = 0
  3466. end
  3467. end
  3468. local bld = Instance.new("ParticleEmitter",rarm)
  3469. bld.LightEmission = 0.1
  3470. bld.Texture = "rbxassetid://284205403"
  3471. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3472. bld.Rate = 500
  3473. bld.Lifetime = NumberRange.new(1)
  3474. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3475. bld.Acceleration = vt(0,-25,0)
  3476. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3477. bld.Speed = NumberRange.new(10,25)
  3478. bld.EmissionDirection = "Bottom"
  3479. bld.VelocitySpread = 100
  3480. bld.Rotation = NumberRange.new(-500,500)
  3481. bld.RotSpeed = NumberRange.new(-500,500)
  3482. local bldef = Instance.new("ParticleEmitter",rarm)
  3483. bldef.LightEmission = 0.1
  3484. bldef.Texture = "rbxassetid://284205403"
  3485. bldef.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3486. bldef.Rate = 25
  3487. bldef.Lifetime = NumberRange.new(1)
  3488. bldef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  3489. bldef.Acceleration = vt(0,-5,0)
  3490. bldef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  3491. bldef.Speed = NumberRange.new(0,0,0)
  3492. bldef.EmissionDirection = "Bottom"
  3493. bldef.VelocitySpread = 150
  3494. bldef.Rotation = NumberRange.new(-500,500)
  3495. bldef.RotSpeed = NumberRange.new(-500,500)
  3496. game:GetService("Debris"):AddItem(bld,3)
  3497. CFuncs["Sound"].Create("rbxassetid://429400881", rarm, 2.5, 1)
  3498. CFuncs["Sound"].Create("rbxassetid://206082327", rarm, 0.75, 1)
  3499. for i = 0,1,0.1 do
  3500. swait()
  3501. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.8)
  3502. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.8)
  3503. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.8)
  3504. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-20)),.8)
  3505. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 - 10 * math.cos(sine / 1)),math.rad(90 + 10 * math.cos(sine / 1))),.8)
  3506. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(0 - 10 * math.cos(sine / 1))),.8)
  3507. end
  3508. bld.Enabled = false
  3509. attack = false
  3510. hum.WalkSpeed = 6
  3511. end
  3512.  
  3513. function TargetSelect(person)
  3514. local dd=coroutine.wrap(function()
  3515. if targetted ~= person then
  3516. targetted = person
  3517. img2.Size = UDim2.new(1,0,1,0)
  3518. img2.ImageTransparency = 0
  3519. img2.Position = UDim2.new(0,0,0,0)
  3520. img2.ImageColor3 = Color3.new(0,0,0)
  3521. for i = 0, 2, 0.1 do
  3522. swait()
  3523. img2.Size = img2.Size + UDim2.new(.05,0,.05,0)
  3524. img2.Position = img2.Position + UDim2.new(-.025,0,-.025,0)
  3525. img2.ImageTransparency = img2.ImageTransparency + 0.05
  3526. end
  3527. end
  3528. end)
  3529. dd()
  3530. end
  3531.  
  3532. function FindNearestTorso(Position, Distance, SinglePlayer)
  3533. if SinglePlayer then
  3534. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3535. end
  3536. local List = {}
  3537. for i, v in pairs(workspace:GetChildren()) do
  3538. if v:IsA("Model") then
  3539. if v:findFirstChild("Torso") then
  3540. if v ~= Character then
  3541. if (v.Torso.Position - Position).magnitude <= Distance then
  3542. table.insert(List, v)
  3543. end
  3544. end
  3545. end
  3546. end
  3547. end
  3548. return List
  3549. end
  3550.  
  3551. function LockOn()
  3552. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3553. TargetSelect(Mouse.Target.Parent)
  3554. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521450", Character, 1, 0.5)
  3555. elseif Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") == nil then
  3556. TargetSelect(Mouse.Target.Parent)
  3557. if Mouse.Target.Parent == workspace or Mouse.Target.Parent:IsA("Accessory") then
  3558. targetted = nil
  3559. end
  3560. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521450", Character, 1, 0.5)
  3561. end
  3562. end
  3563.  
  3564. function dmg(dude)
  3565. if dude.Name ~= Character then
  3566. local bgf = Instance.new("BodyGyro",dude.Head)
  3567. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3568. local val = Instance.new("BoolValue",dude)
  3569. val.Name = "IsHit"
  3570. local ds = coroutine.wrap(function()
  3571. if dude.Name ~= "isaacsantamaria01" then
  3572. killcount = killcount + 1
  3573. dude:WaitForChild("Torso"):BreakJoints()
  3574. wait(0.5)
  3575. targetted = nil
  3576. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
  3577. coroutine.resume(coroutine.create(function()
  3578. for i, v in pairs(dude:GetChildren()) do
  3579. if v:IsA("Accessory") then
  3580. v:Destroy()
  3581. end
  3582. if v:IsA("Humanoid") then
  3583. v:Destroy()
  3584. end
  3585. if v:IsA("CharacterMesh") then
  3586. v:Destroy()
  3587. end
  3588. if v:IsA("Model") then
  3589. v:Destroy()
  3590. end
  3591. if v:IsA("Part") then
  3592. for x, o in pairs(v:GetChildren()) do
  3593. if o:IsA("Decal") then
  3594. o:Destroy()
  3595. end
  3596. end
  3597. coroutine.resume(coroutine.create(function()
  3598. v.Material = "Neon"
  3599. v.CanCollide = false
  3600. local bld = Instance.new("ParticleEmitter",v)
  3601. bld.LightEmission = 1
  3602. bld.Texture = "rbxassetid://284205403"
  3603. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3604. bld.Rate = 50
  3605. bld.Lifetime = NumberRange.new(1)
  3606. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  3607. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  3608. bld.Speed = NumberRange.new(0,0,0)
  3609. bld.Rotation = NumberRange.new(-500,500)
  3610. bld.RotSpeed = NumberRange.new(-500,500)
  3611. local sbs = Instance.new("BodyPosition", v)
  3612. sbs.P = 3000
  3613. sbs.D = 1000
  3614. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3615. sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  3616. v.Color = Color3.new(0,0,0)
  3617. end))
  3618. coroutine.resume(coroutine.create(function()
  3619. for i = 0, 49 do
  3620. swait(1)
  3621. v.Transparency = v.Transparency + 0.02
  3622. end
  3623. v:Destroy()
  3624. dude:Destroy()
  3625. end))
  3626. end
  3627. end
  3628. end))
  3629. else
  3630. bgf:Destroy()
  3631. sphere(1,"Add",dude:WaitForChild("Torso").CFrame,vt(10,10,10),-0.005,BrickColor.new("Really red"))
  3632. end
  3633. end)
  3634. ds()
  3635. end
  3636. end
  3637.  
  3638.  
  3639. local Grabbed = false
  3640.  
  3641. function QuickStab()
  3642. attack = true
  3643. hum.WalkSpeed = 0
  3644. swait(1)
  3645. CFuncs["Sound"].Create("rbxassetid://743521656", char, 1, 0.8)
  3646. RootPart.CFrame = targetted.Torso.CFrame * CFrame.new(0,0,3)
  3647. if targetted.Name ~= "isaacsantamaria01" then
  3648. local grab = nil
  3649. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 5)) do
  3650. if v:FindFirstChild('Head') then
  3651. Grabbed = true
  3652. grab = v
  3653. end
  3654. end
  3655. if Grabbed == true then
  3656. for i = 0,2,0.1 do
  3657. swait()
  3658. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  3659. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  3660. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4)
  3661. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3662. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
  3663. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(60 - 10 * math.cos(sine / 1))),.4)
  3664. end
  3665. dmg(grab)
  3666. local bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
  3667. bld.LightEmission = 0.1
  3668. bld.Texture = "rbxassetid://284205403"
  3669. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3670. bld.Rate = 500
  3671. bld.Lifetime = NumberRange.new(1)
  3672. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3673. bld.Acceleration = vt(0,-25,0)
  3674. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3675. bld.Speed = NumberRange.new(10,50)
  3676. bld.EmissionDirection = "Front"
  3677. bld.VelocitySpread = 25
  3678. bld.Rotation = NumberRange.new(-500,500)
  3679. bld.RotSpeed = NumberRange.new(-500,500)
  3680. game:GetService("Debris"):AddItem(bld,3)
  3681. CFuncs["Sound"].Create("rbxassetid://206082327", targetted.Torso, 2.5, 0.9)
  3682. for i = 0,1,0.1 do
  3683. swait()
  3684. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  3685. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  3686. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  3687. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  3688. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3689. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-80 - 10 * math.cos(sine / 1))),.8)
  3690. end
  3691. bld.Enabled = false
  3692. end
  3693. else
  3694. for i = 0,8,0.1 do
  3695. swait()
  3696. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  3697. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  3698. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(60)),.4)
  3699. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.8)
  3700. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
  3701. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 5 * math.cos(sine / 1)),math.rad(60 - 5 * math.cos(sine / 1))),.4)
  3702. end
  3703. local randomized = math.random(1,3)
  3704. if randomized == 1 then
  3705. chatfunc("No... i cant.",Color3.new(0.5,0,0))
  3706. elseif randomized == 2 then
  3707. chatfunc("Why would i do this...",Color3.new(0.5,0,0))
  3708. elseif randomized == 3 then
  3709. chatfunc("Oh... i thought you're my enemy...",Color3.new(0.5,0,0))
  3710. end
  3711. --[[for i = 0,3,0.1 do
  3712. swait()
  3713. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  3714. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  3715. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  3716. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(90)),.8)
  3717. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
  3718. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-60 - 10 * math.cos(sine / 1))),.4)
  3719. end]]--
  3720. end
  3721. Grabbed = false
  3722. attack = false
  3723. hum.WalkSpeed = 6
  3724. end
  3725.  
  3726.  
  3727. function BlinkingStab()
  3728. attack = true
  3729. hum.WalkSpeed = 0
  3730. swait(1)
  3731. if targetted.Name ~= "isaacsantamaria01" then
  3732. for i = 0,2,0.1 do
  3733. swait()
  3734. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  3735. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  3736. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(10),math.rad(0),math.rad(80)),.4)
  3737. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  3738. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  3739. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-80 - 10 * math.cos(sine / 1))),.4)
  3740. end
  3741. RootPart.CFrame = targetted.Torso.CFrame * CFrame.new(0,0,2)
  3742. CFuncs["Sound"].Create("rbxassetid://743521497", char, 1, 1)
  3743. dmg(targetted)
  3744. local bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
  3745. bld.LightEmission = 0.1
  3746. bld.Texture = "rbxassetid://284205403"
  3747. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3748. bld.Rate = 500
  3749. bld.Lifetime = NumberRange.new(1)
  3750. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3751. bld.Acceleration = vt(0,-25,0)
  3752. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3753. bld.Speed = NumberRange.new(10,50)
  3754. bld.EmissionDirection = "Front"
  3755. bld.VelocitySpread = 25
  3756. bld.Rotation = NumberRange.new(-500,500)
  3757. bld.RotSpeed = NumberRange.new(-500,500)
  3758. game:GetService("Debris"):AddItem(bld,3)
  3759. CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Torso, 1,1)
  3760. for i = 0,1,0.1 do
  3761. swait()
  3762. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  3763. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  3764. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  3765. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  3766. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3767. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-80 - 10 * math.cos(sine / 1))),.8)
  3768. end
  3769. bld.Enabled = false
  3770. else
  3771. for i = 0,8,0.1 do
  3772. swait()
  3773. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  3774. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  3775. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(10),math.rad(0),math.rad(80)),.4)
  3776. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  3777. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  3778. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-80 - 10 * math.cos(sine / 1))),.4)
  3779. end
  3780. local randomized = math.random(1,3)
  3781. if randomized == 1 then
  3782. chatfunc("Wait.. a minute... wrong guy...",Color3.new(0.5,0,0))
  3783. elseif randomized == 2 then
  3784. chatfunc("I forgot about you...",Color3.new(0.5,0,0))
  3785. elseif randomized == 3 then
  3786. chatfunc("Oh. sorry...",Color3.new(0.5,0,0))
  3787. end
  3788. --[[for i = 0,3,0.1 do
  3789. swait()
  3790. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  3791. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  3792. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  3793. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(90)),.8)
  3794. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
  3795. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-60 - 10 * math.cos(sine / 1))),.4)
  3796. end]]--
  3797. end
  3798. attack = false
  3799. hum.WalkSpeed = 6
  3800. end
  3801.  
  3802.  
  3803. function Tele()
  3804. sphere(3,"Add",root.CFrame,vt(10,10,10),-0.1,BrickColor.new("White"))
  3805. sphere(10,"Add",root.CFrame,vt(10,10,10),0.1,BrickColor.new("White"))
  3806. CFuncs["Sound"].Create("rbxassetid://743521656", char, 1, 0.8)
  3807. RootPart.CFrame = targetted.Torso.CFrame * CFrame.new(0,0,3)
  3808. sphere(3,"Add",root.CFrame,vt(10,10,10),-0.1,BrickColor.new("White"))
  3809. sphere(10,"Add",root.CFrame,vt(10,10,10),0.1,BrickColor.new("White"))
  3810. end
  3811.  
  3812. function uhhnolikeokthen()
  3813. hum.WalkSpeed = 0
  3814. attack = true
  3815. CFuncs["Sound"].Create("rbxassetid://163315655", root, 1,1)
  3816. for i = 0,10,0.1 do
  3817. swait()
  3818. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  3819. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  3820. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.1)
  3821. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 15 * math.cos(sine / 1))),.1)
  3822. RW.C0=clerp(RW.C0,cf(1.05,0.4 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.1)
  3823. LW.C0=clerp(LW.C0,cf(-1.05,0.4 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(140),math.rad(0 + 5 * math.cos(sine / 1)),math.rad(50 - 5 * math.cos(sine / 1))),.1)
  3824. end
  3825. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("White"))
  3826. sphere(6,"Add",root.CFrame,vt(0,0,0),0.5,BrickColor.new("White"))
  3827. sphere(9,"Add",root.CFrame,vt(0,0,0),0.75,BrickColor.new("White"))
  3828. CFuncs["Sound"].Create("rbxassetid://1213175909", root, 3,1)
  3829. CFuncs["Sound"].Create("rbxassetid://239000203", root, 2,1)
  3830. CFuncs["Sound"].Create("rbxassetid://579687077", root, 2,0.9)
  3831. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 25)) do
  3832. if v:FindFirstChild('Torso') then
  3833. dmg(v)
  3834. CFuncs["Sound"].Create("rbxassetid://206082327", v.Torso, 1, 0.9)
  3835. local bld = Instance.new("ParticleEmitter",v.Torso)
  3836. bld.LightEmission = 0.1
  3837. bld.Texture = "rbxassetid://284205403"
  3838. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3839. bld.Rate = 500
  3840. bld.Lifetime = NumberRange.new(1)
  3841. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3842. bld.Acceleration = vt(0,-25,0)
  3843. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3844. bld.Speed = NumberRange.new(10,50)
  3845. bld.EmissionDirection = "Front"
  3846. bld.VelocitySpread = 2500
  3847. bld.Rotation = NumberRange.new(-500,500)
  3848. bld.RotSpeed = NumberRange.new(-500,500)
  3849. coroutine.resume(coroutine.create(function()
  3850. swait(4)
  3851. bld.Enabled = false
  3852. game:GetService("Debris"):AddItem(bld,3)
  3853. end))
  3854. end
  3855. end
  3856. for i = 0,28,0.1 do
  3857. swait()
  3858. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
  3859. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
  3860. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  3861. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 1))),.5)
  3862. RW.C0=clerp(RW.C0,cf(1.45,0.4 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-20),math.rad(0 - 3 * math.cos(sine / 1)),math.rad(80 + 3 * math.cos(sine / 1))),.5)
  3863. LW.C0=clerp(LW.C0,cf(-1.45,0.4 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-20),math.rad(0 + 3 * math.cos(sine / 1)),math.rad(-80 - 3 * math.cos(sine / 1))),.5)
  3864. end
  3865. attack = false
  3866. hum.WalkSpeed = 6
  3867. end
  3868.  
  3869. function deadworld()
  3870. hum.WalkSpeed = 0
  3871. attack = true
  3872. chatfunc("You... you will regret this!",Color3.new(0.5,0,0))
  3873. for i = 0,10,0.1 do
  3874. swait()
  3875. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  3876. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  3877. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.1)
  3878. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 15 * math.cos(sine / 1))),.1)
  3879. RW.C0=clerp(RW.C0,cf(1.05,0.4 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.1)
  3880. LW.C0=clerp(LW.C0,cf(-1.05,0.4 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(140),math.rad(0 + 5 * math.cos(sine / 1)),math.rad(50 - 5 * math.cos(sine / 1))),.1)
  3881. end
  3882. coroutine.resume(coroutine.create(function()
  3883. CFuncs["Sound"].Create("rbxassetid://1213175909", char, 1,1)
  3884. sphere(3,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
  3885. sphere(6,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
  3886. sphere(9,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
  3887. coroutine.resume(coroutine.create(function()
  3888. for i = 0, 9 do
  3889. swait(3)
  3890. sphere(1,"Add",root.CFrame*CFrame.new(math.random(-75,75),math.random(-75,75),math.random(-75,75)),vt(0,0,0),2,BrickColor.new("Really red"))
  3891. end
  3892. end))
  3893. CFuncs["Sound"].Create("rbxassetid://579687077", char, 5,1)
  3894. CFuncs["Sound"].Create("rbxassetid://239000203", char, 1,1)
  3895. local blastpitch = 1
  3896. for i = 0,2 do
  3897. wait(1.5)
  3898. sphere(3,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
  3899. sphere(6,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
  3900. sphere(9,"Add",root.CFrame,vt(0,0,0),4,BrickColor.new("White"))
  3901. coroutine.resume(coroutine.create(function()
  3902. for i = 0, 9 do
  3903. swait(3)
  3904. sphere(1,"Add",root.CFrame*CFrame.new(math.random(-75,75),math.random(-75,75),math.random(-75,75)),vt(0,0,0),2,BrickColor.new("Really red"))
  3905. end
  3906. end))
  3907. blastpitch = blastpitch - 0.15
  3908. CFuncs["Sound"].Create("rbxassetid://579687077", char, 1,blastpitch)
  3909. end
  3910. wait(2)
  3911. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 250000000)) do
  3912. if v:FindFirstChild('Torso') then
  3913. dmg(v)
  3914. end
  3915. end
  3916. tors:Destroy()
  3917. CFuncs["Sound"].Create("rbxassetid://239000203", char, 2,0.75)
  3918. CFuncs["Sound"].Create("rbxassetid://579687077", char, 2,0.5)
  3919. sphere(1,"Add",root.CFrame,vt(0,0,0),9,BrickColor.new("Crimson"))
  3920. sphere(2,"Add",root.CFrame,vt(0,0,0),9,BrickColor.new("Crimson"))
  3921. sphere(3,"Add",root.CFrame,vt(0,0,0),9,BrickColor.new("Crimson"))
  3922. coroutine.resume(coroutine.create(function()
  3923. for i = 0, 49 do
  3924. swait(3)
  3925. sphere(1,"Add",root.CFrame*CFrame.new(math.random(-175,175),math.random(-175,175),math.random(-175,175)),vt(0,0,0),2,BrickColor.new("Really red"))
  3926. sphere(1,"Add",root.CFrame*CFrame.new(math.random(-375,375),math.random(-375,375),math.random(-375,375)),vt(0,0,0),8,BrickColor.new("Really red"))
  3927. end
  3928. end))
  3929. end))
  3930. for i = 0,280,0.1 do
  3931. swait()
  3932. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
  3933. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
  3934. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  3935. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 1))),.5)
  3936. RW.C0=clerp(RW.C0,cf(1.45,0.4 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-20),math.rad(0 - 3 * math.cos(sine / 1)),math.rad(80 + 3 * math.cos(sine / 1))),.5)
  3937. LW.C0=clerp(LW.C0,cf(-1.45,0.4 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-20),math.rad(0 + 3 * math.cos(sine / 1)),math.rad(-80 - 3 * math.cos(sine / 1))),.5)
  3938. end
  3939. attack = false
  3940. hum.WalkSpeed = 6
  3941. end
  3942. coroutine.resume(coroutine.create(function()
  3943. AppearMutatedLimbs()
  3944. end))
  3945.  
  3946. mouse.Button1Down:connect(function()
  3947. if attack == false and targetted ~= nil then
  3948. BlinkingStab()
  3949. end
  3950. end)
  3951.  
  3952. mouse.KeyDown:connect(function(k)
  3953. if k == "q" and attack == false then
  3954. LockOn()
  3955. end
  3956. if k == "e" and attack == false and targetted ~= nil then
  3957. Tele()
  3958. end
  3959. if k == "z" and attack == false and targetted ~= nil then
  3960. QuickStab()
  3961. end
  3962. if k == "x" and attack == false then
  3963. uhhnolikeokthen()
  3964. end
  3965. if k == "l" and attack == false and unlockedA == true and LeftModeUnlocked == false then
  3966. AppearMutatedLimbs2()
  3967. end
  3968. if k == "p" and attack == false and unlockedX == true then
  3969. deadworld()
  3970. end
  3971. if k == "t" and attack == false and plr.Name == "isaacsantamaria01" then
  3972. attack = true
  3973. chatfunc("HAH",Color3.new(0.5,0,0))
  3974. CFuncs["Sound"].Create("rbxassetid://695281161", root, 5,1.4)
  3975. for i = 0, 1, 0.1 do
  3976. swait()
  3977. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.9)
  3978. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.9)
  3979. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.5,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.9)
  3980. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-40),math.rad(0),math.rad(0 + 10 * math.cos(sine / 1))),.9)
  3981. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-80),math.rad(0),math.rad(10)),.9)
  3982. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-80),math.rad(0),math.rad(-10)),.9)
  3983. end
  3984. attack = false
  3985. end
  3986. end)
  3987. idleanim=.4
  3988. while true do
  3989. swait()
  3990. imgl.Rotation = imgl.Rotation + 3
  3991. imgl2.Rotation = imgl2.Rotation - 3
  3992. img2.Rotation = img2.Rotation - 3
  3993. if targetted ~= nil then
  3994. abss.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso")
  3995. abss.Enabled = true
  3996. elseif targetted == nil then
  3997. abss.Adornee = nil
  3998. abss.Enabled = false
  3999. end
  4000. while true and imgl.Rotation >= 360 do
  4001. imgl.Rotation = 0
  4002. imgl2.Rotation = 0
  4003. img2.Rotation = 0
  4004. end
  4005. uhh.Rotation = math.random(-1,1)
  4006. uhh.Position = UDim2.new(-0.15, 0, 0.35, 0) + UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
  4007. uhh.Text = "Kills : " ..killcount
  4008. if killcount < maxA then
  4009. uhh2.Text = "Required kills for second mutated arm: " ..requirekillA-killcount
  4010. elseif killcount >= maxA then
  4011. unlockedA = true
  4012. uhh2.Text = "Second mutated arm unlocked. (L)"
  4013. end
  4014. if killcount < maxX then
  4015. uhh3.Text = "Required kills for the end: " ..requirekillX-killcount
  4016. elseif killcount >= maxX then
  4017. unlockedX = true
  4018. uhh3.Text = "The end unlocked. (P to activate)"
  4019. end
  4020. sine = sine + change
  4021. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  4022. local velderp=RootPart.Velocity.y
  4023. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  4024. if equipped==true or equipped==false then
  4025. if attack==false then
  4026. idle=idle+1
  4027. else
  4028. idle=0
  4029. end
  4030. if idle>=500 then
  4031. if attack==false then
  4032. --Sheath()
  4033. end
  4034. end
  4035. if RootPart.Velocity.y > 1 and hitfloor==nil then
  4036. Anim="Jump"
  4037. if attack==false then
  4038. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  4039. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  4040. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  4041. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  4042. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
  4043. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
  4044. end
  4045. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  4046. Anim="Fall"
  4047. if attack==false then
  4048. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  4049. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  4050. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  4051. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  4052. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1)
  4053. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1)
  4054. end
  4055. elseif torvel<1 and hitfloor~=nil then
  4056. Anim="Idle"
  4057. if attack==false then
  4058. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.1)
  4059. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.1)
  4060. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(20),math.rad(0),math.rad(0)),.1)
  4061. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0 - 10 * math.cos(sine / 1))),.1)
  4062. if LeftModeUnlocked == false then
  4063. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.1)
  4064. else
  4065. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20 - 10 * math.cos(sine / 1)),math.rad(0),math.rad(10 + 10 * math.cos(sine / 1))),.1)
  4066. end
  4067. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-10 - 10 * math.cos(sine / 1))),.1)
  4068. end
  4069. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  4070. Anim="Walk"
  4071. if attack==false then
  4072. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10 + 40 * math.cos(sine / 18))),.1)
  4073. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10 + 40 * math.cos(sine / 18))),.1)
  4074. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(10),math.rad(0),math.rad(0)),.1)
  4075. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0 + 10 * math.cos(sine / 1))),.1)
  4076. if LeftModeUnlocked == false then
  4077. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20 - 40 * math.cos(sine / 18)),math.rad(0),math.rad(10)),.1)
  4078. else
  4079. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20 - 10 * math.cos(sine / 1)),math.rad(0),math.rad(10 + 10 * math.cos(sine / 1))),.1)
  4080. end
  4081. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0 + 10 * math.cos(sine / 1)),math.rad(-10 - 10 * math.cos(sine / 1))),.1)
  4082. end
  4083. elseif torvel>=22 and hitfloor~=nil then
  4084. Anim="Run"
  4085. if attack==false then
  4086. RH.C0=clerp(RH.C0,cf(1,-0.75 - 0.25 * math.cos(sine / 3),-0.25 - 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  4087. LH.C0=clerp(LH.C0,cf(-1,-0.75 + 0.25 * math.cos(sine / 3),-0.25 + 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  4088. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + 0.125 * math.cos(sine / 3))*angles(math.rad(20),math.rad(0),math.rad(0 - 15 * math.cos(sine / 6))),.1)
  4089. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 15 * math.cos(sine / 6))),.1)
  4090. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 125 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 3))),.1)
  4091. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 125 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1)
  4092. end
  4093. end
  4094. end
  4095. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement