Advertisement
doryna2281337

Untitled

Sep 8th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 73.40 KB | None | 0 0
  1. wait(0.2)
  2. Player = game:GetService("Players").LocalPlayer
  3. PlayerGui = Player.PlayerGui
  4. Cam = workspace.CurrentCamera
  5. Backpack = Player.Backpack
  6. Character = Player.Character
  7. Humanoid = Character.Humanoid
  8. Mouse = Player:GetMouse()
  9. RootPart = Character["HumanoidRootPart"]
  10. Torso = Character["Torso"]
  11. Head = Character["Head"]
  12. RightArm = Character["Right Arm"]
  13. LeftArm = Character["Left Arm"]
  14. RightLeg = Character["Right Leg"]
  15. LeftLeg = Character["Left Leg"]
  16. RootJoint = RootPart["RootJoint"]
  17. Neck = Torso["Neck"]
  18. RightShoulder = Torso["Right Shoulder"]
  19. LeftShoulder = Torso["Left Shoulder"]
  20. RightHip = Torso["Right Hip"]
  21. LeftHip = Torso["Left Hip"]
  22. local sick = Instance.new("Sound",Character)
  23. sick.SoundId = "rbxassetid://799016662"
  24. sick.Looped = true
  25. sick.Pitch = 1
  26. sick.Volume = 2
  27. sick:Play()
  28.  
  29. IT = Instance.new
  30. CF = CFrame.new
  31. VT = Vector3.new
  32. RAD = math.rad
  33. C3 = Color3.new
  34. UD2 = UDim2.new
  35. BRICKC = BrickColor.new
  36. ANGLES = CFrame.Angles
  37. EULER = CFrame.fromEulerAnglesXYZ
  38. COS = math.cos
  39. ACOS = math.acos
  40. SIN = math.sin
  41. ASIN = math.asin
  42. ABS = math.abs
  43. MRANDOM = math.random
  44. FLOOR = math.floor
  45.  
  46. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  47. local NEWMESH = IT(MESH)
  48. if MESH == "SpecialMesh" then
  49. NEWMESH.MeshType = MESHTYPE
  50. if MESHID ~= "nil" and MESHID ~= "" then
  51. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  52. end
  53. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  54. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  55. end
  56. end
  57. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  58. NEWMESH.Scale = SCALE
  59. NEWMESH.Parent = PARENT
  60. return NEWMESH
  61. end
  62.  
  63. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  64. local NEWPART = IT("Part")
  65. NEWPART.formFactor = FORMFACTOR
  66. NEWPART.Reflectance = REFLECTANCE
  67. NEWPART.Transparency = TRANSPARENCY
  68. NEWPART.CanCollide = false
  69. NEWPART.Locked = true
  70. NEWPART.Anchored = true
  71. if ANCHOR == false then
  72. NEWPART.Anchored = false
  73. end
  74. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  75. NEWPART.Name = NAME
  76. NEWPART.Size = SIZE
  77. NEWPART.Position = Torso.Position
  78. NEWPART.Material = MATERIAL
  79. NEWPART:BreakJoints()
  80. NEWPART.Parent = PARENT
  81. return NEWPART
  82. end
  83.  
  84. Class_Name = "Void Face"
  85. Weapon_Name = "Add-ons"
  86.  
  87. Player_Size = 1 --Size of the player.
  88. Animation_Speed = 3
  89. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  90.  
  91. local Speed = 16
  92. local Effects2 = {}
  93.  
  94. local function weldBetween(a, b)
  95. local weldd = Instance.new("ManualWeld")
  96. weldd.Part0 = a
  97. weldd.Part1 = b
  98. weldd.C0 = CFrame.new()
  99. weldd.C1 = b.CFrame:inverse() * a.CFrame
  100. weldd.Parent = a
  101. return weldd
  102. end
  103.  
  104. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  105. local acs = Instance.new("Part")
  106. acs.CanCollide = false
  107. acs.Anchored = false
  108. acs.Size = Vector3.new(0,0,0)
  109. acs.CFrame = attachmentpart.CFrame
  110. acs.Parent = Character
  111. acs.BrickColor = color
  112. local meshs = Instance.new("SpecialMesh")
  113. meshs.MeshId = mesh
  114. meshs.TextureId = texture
  115. meshs.Parent = acs
  116. meshs.Scale = scale
  117. meshs.Offset = offset
  118. weldBetween(attachmentpart,acs)
  119. end
  120.  
  121. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  122. if TYPE == "Gem" then
  123. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  124. acs.Anchored = false
  125. acs.CanCollide = false
  126. acs.CFrame = PART.CFrame
  127. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  128. weldBetween(PART,acs)
  129. elseif TYPE == "Skull" then
  130. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  131. acs.Anchored = false
  132. acs.CanCollide = false
  133. acs.CFrame = PART.CFrame
  134. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  135. weldBetween(PART,acs)
  136. elseif TYPE == "Eye" then
  137. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  138. acs.Anchored = false
  139. acs.CanCollide = false
  140. acs.CFrame = PART.CFrame
  141. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  142. weldBetween(PART,acs)
  143. end
  144. end
  145.  
  146. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  147. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  148. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  149. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  150. local CHANGEDEFENSE = 0
  151. local CHANGEDAMAGE = 0
  152. local CHANGEMOVEMENT = 0
  153. local ANIM = "Idle"
  154. local ATTACK = false
  155. local EQUIPPED = false
  156. local HOLD = false
  157. local COMBO = 1
  158. local Rooted = false
  159. local SINE = 0
  160. local KEYHOLD = false
  161. local CHANGE = 2 / Animation_Speed
  162. local WALKINGANIM = false
  163. local WALK = 0
  164. local VALUE1 = false
  165. local VALUE2 = false
  166. local ROBLOXIDLEANIMATION = IT("Animation")
  167. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  168. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  169. --ROBLOXIDLEANIMATION.Parent = Humanoid
  170. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  171. WEAPONGUI.Name = "Weapon GUI"
  172. local Weapon = IT("Model")
  173. Weapon.Name = Weapon_Name
  174. local Effects = IT("Folder", Weapon)
  175. Effects.Name = "Effects"
  176. local ANIMATOR = Humanoid.Animator
  177. local ANIMATE = Character.Animate
  178. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  179. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  180. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  181. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  182. local TAUNTS = {"368794227","368794903","368794985"}
  183. local UNANCHOR = true
  184.  
  185. ArtificialHB = Instance.new("BindableEvent", script)
  186. ArtificialHB.Name = "ArtificialHB"
  187.  
  188. script:WaitForChild("ArtificialHB")
  189.  
  190. frame = Frame_Speed
  191. tf = 0
  192. allowframeloss = false
  193. tossremainder = false
  194. lastframe = tick()
  195. script.ArtificialHB:Fire()
  196.  
  197. game:GetService("RunService").Heartbeat:connect(function(s, p)
  198. tf = tf + s
  199. if tf >= frame then
  200. if allowframeloss then
  201. script.ArtificialHB:Fire()
  202. lastframe = tick()
  203. else
  204. for i = 1, math.floor(tf / frame) do
  205. script.ArtificialHB:Fire()
  206. end
  207. lastframe = tick()
  208. end
  209. if tossremainder then
  210. tf = 0
  211. else
  212. tf = tf - frame * math.floor(tf / frame)
  213. end
  214. end
  215. end)
  216.  
  217. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  218. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  219. end
  220.  
  221. function PositiveAngle(NUMBER)
  222. if NUMBER >= 0 then
  223. NUMBER = 0
  224. end
  225. return NUMBER
  226. end
  227.  
  228. function NegativeAngle(NUMBER)
  229. if NUMBER <= 0 then
  230. NUMBER = 0
  231. end
  232. return NUMBER
  233. end
  234.  
  235. function Swait(NUMBER)
  236. if NUMBER == 0 or NUMBER == nil then
  237. ArtificialHB.Event:wait()
  238. else
  239. for i = 1, NUMBER do
  240. ArtificialHB.Event:wait()
  241. end
  242. end
  243. end
  244.  
  245. function QuaternionFromCFrame(cf)
  246. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  247. local trace = m00 + m11 + m22
  248. if trace > 0 then
  249. local s = math.sqrt(1 + trace)
  250. local recip = 0.5 / s
  251. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  252. else
  253. local i = 0
  254. if m11 > m00 then
  255. i = 1
  256. end
  257. if m22 > (i == 0 and m00 or m11) then
  258. i = 2
  259. end
  260. if i == 0 then
  261. local s = math.sqrt(m00 - m11 - m22 + 1)
  262. local recip = 0.5 / s
  263. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  264. elseif i == 1 then
  265. local s = math.sqrt(m11 - m22 - m00 + 1)
  266. local recip = 0.5 / s
  267. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  268. elseif i == 2 then
  269. local s = math.sqrt(m22 - m00 - m11 + 1)
  270. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  271. end
  272. end
  273. end
  274.  
  275. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  276. local xs, ys, zs = x + x, y + y, z + z
  277. local wx, wy, wz = w * xs, w * ys, w * zs
  278. local xx = x * xs
  279. local xy = x * ys
  280. local xz = x * zs
  281. local yy = y * ys
  282. local yz = y * zs
  283. local zz = z * zs
  284. 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))
  285. end
  286.  
  287. function QuaternionSlerp(a, b, t)
  288. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  289. local startInterp, finishInterp;
  290. if cosTheta >= 0.0001 then
  291. if (1 - cosTheta) > 0.0001 then
  292. local theta = ACOS(cosTheta)
  293. local invSinTheta = 1 / SIN(theta)
  294. startInterp = SIN((1 - t) * theta) * invSinTheta
  295. finishInterp = SIN(t * theta) * invSinTheta
  296. else
  297. startInterp = 1 - t
  298. finishInterp = t
  299. end
  300. else
  301. if (1 + cosTheta) > 0.0001 then
  302. local theta = ACOS(-cosTheta)
  303. local invSinTheta = 1 / SIN(theta)
  304. startInterp = SIN((t - 1) * theta) * invSinTheta
  305. finishInterp = SIN(t * theta) * invSinTheta
  306. else
  307. startInterp = t - 1
  308. finishInterp = t
  309. end
  310. end
  311. 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
  312. end
  313.  
  314. function Clerp(a, b, t)
  315. local qa = {QuaternionFromCFrame(a)}
  316. local qb = {QuaternionFromCFrame(b)}
  317. local ax, ay, az = a.x, a.y, a.z
  318. local bx, by, bz = b.x, b.y, b.z
  319. local _t = 1 - t
  320. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  321. end
  322.  
  323. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  324. local frame = IT("Frame")
  325. frame.BackgroundTransparency = TRANSPARENCY
  326. frame.BorderSizePixel = BORDERSIZEPIXEL
  327. frame.Position = POSITION
  328. frame.Size = SIZE
  329. frame.BackgroundColor3 = COLOR
  330. frame.BorderColor3 = BORDERCOLOR
  331. frame.Name = NAME
  332. frame.Parent = PARENT
  333. return frame
  334. end
  335.  
  336. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  337. local label = IT("TextLabel")
  338. label.BackgroundTransparency = 1
  339. label.Size = UD2(1, 0, 1, 0)
  340. label.Position = UD2(0, 0, 0, 0)
  341. label.TextColor3 = TEXTCOLOR
  342. label.TextStrokeTransparency = STROKETRANSPARENCY
  343. label.TextTransparency = TRANSPARENCY
  344. label.FontSize = TEXTFONTSIZE
  345. label.Font = TEXTFONT
  346. label.BorderSizePixel = BORDERSIZEPIXEL
  347. label.TextScaled = false
  348. label.Text = TEXT
  349. label.Name = NAME
  350. label.Parent = PARENT
  351. return label
  352. end
  353.  
  354. function NoOutlines(PART)
  355. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  356. end
  357.  
  358.  
  359. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  360. local NEWWELD = IT(TYPE)
  361. NEWWELD.Part0 = PART0
  362. NEWWELD.Part1 = PART1
  363. NEWWELD.C0 = C0
  364. NEWWELD.C1 = C1
  365. NEWWELD.Parent = PARENT
  366. return NEWWELD
  367. end
  368.  
  369. local sound = IT("Sound",nil)
  370.  
  371. function CreateSound(ID, PARENT, VOLUME, PITCH)
  372. local NEWSOUND = nil
  373. coroutine.resume(coroutine.create(function()
  374. NEWSOUND = sound:Clone()
  375. NEWSOUND.Parent = PARENT
  376. NEWSOUND.Volume = VOLUME
  377. NEWSOUND.Pitch = PITCH
  378. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  379. Swait()
  380. NEWSOUND:play()
  381. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  382. end))
  383. return NEWSOUND
  384. end
  385.  
  386. function CFrameFromTopBack(at, top, back)
  387. local right = top:Cross(back)
  388. 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)
  389. end
  390.  
  391. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  392. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  393. local mesh = IT("SpecialMesh",wave)
  394. mesh.MeshType = "FileMesh"
  395. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  396. mesh.Scale = SIZE
  397. mesh.Offset = VT(0,0,-SIZE.X/8)
  398. wave.CFrame = CFRAME
  399. coroutine.resume(coroutine.create(function(PART)
  400. for i = 1, WAIT do
  401. Swait()
  402. mesh.Scale = mesh.Scale + GROW
  403. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  404. if DOESROT == true then
  405. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  406. end
  407. wave.Transparency = wave.Transparency + (0.5/WAIT)
  408. if wave.Transparency > 0.99 then
  409. wave:remove()
  410. end
  411. end
  412. end))
  413. end
  414.  
  415. function CreateCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  416. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  417. local mesh = IT("SpecialMesh",wave)
  418. mesh.MeshType = "FileMesh"
  419. mesh.MeshId = "http://www.roblox.com/asset/?id=1078075"
  420. mesh.Scale = SIZE
  421. mesh.Offset = VT(0,0,-SIZE.X/8)
  422. wave.CFrame = CFRAME
  423. coroutine.resume(coroutine.create(function(PART)
  424. for i = 1, WAIT do
  425. Swait()
  426. mesh.Scale = mesh.Scale + GROW
  427. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  428. if DOESROT == true then
  429. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  430. end
  431. wave.Transparency = wave.Transparency + (0.5/WAIT)
  432. if wave.Transparency > 0.99 then
  433. wave:remove()
  434. end
  435. end
  436. end))
  437. end
  438.  
  439. function CreateIceCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  440. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  441. local mesh = IT("SpecialMesh",wave)
  442. mesh.MeshType = "FileMesh"
  443. mesh.MeshId = "http://www.roblox.com/asset/?id=1323306"
  444. mesh.Scale = SIZE
  445. mesh.Offset = VT(0,0,-SIZE.X/8)
  446. wave.CFrame = CFRAME
  447. coroutine.resume(coroutine.create(function(PART)
  448. for i = 1, WAIT do
  449. Swait()
  450. mesh.Scale = mesh.Scale + GROW
  451. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  452. if DOESROT == true then
  453. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  454. end
  455. wave.Transparency = wave.Transparency + (0.5/WAIT)
  456. if wave.Transparency > 0.99 then
  457. wave:remove()
  458. end
  459. end
  460. end))
  461. end
  462.  
  463. function CreateSpikeball(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  464. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  465. local mesh = IT("SpecialMesh",wave)
  466. mesh.MeshType = "FileMesh"
  467. mesh.MeshId = "http://www.roblox.com/asset/?id=9982590"
  468. mesh.Scale = SIZE
  469. mesh.Offset = VT(0,0,-SIZE.X/8)
  470. wave.CFrame = CFRAME
  471. coroutine.resume(coroutine.create(function(PART)
  472. for i = 1, WAIT do
  473. Swait()
  474. mesh.Scale = mesh.Scale + GROW
  475. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  476. if DOESROT == true then
  477. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  478. end
  479. wave.Transparency = wave.Transparency + (0.5/WAIT)
  480. if wave.Transparency > 0.99 then
  481. wave:remove()
  482. end
  483. end
  484. end))
  485. end
  486.  
  487. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  488. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  489. local mesh = IT("SpecialMesh",wave)
  490. mesh.MeshType = "FileMesh"
  491. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  492. mesh.Scale = SIZE
  493. wave.CFrame = CFRAME
  494. coroutine.resume(coroutine.create(function(PART)
  495. for i = 1, WAIT do
  496. Swait()
  497. mesh.Scale = mesh.Scale + GROW
  498. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  499. if DOESROT == true then
  500. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  501. end
  502. wave.Transparency = wave.Transparency + (0.5/WAIT)
  503. if wave.Transparency > 0.99 then
  504. wave:remove()
  505. end
  506. end
  507. end))
  508. end
  509.  
  510. function CreateTornado(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  511. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  512. local mesh = IT("SpecialMesh",wave)
  513. mesh.MeshType = "FileMesh"
  514. mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
  515. mesh.Scale = SIZE
  516. wave.CFrame = CFRAME
  517. coroutine.resume(coroutine.create(function(PART)
  518. for i = 1, WAIT do
  519. Swait()
  520. mesh.Scale = mesh.Scale + GROW
  521. if DOESROT == true then
  522. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  523. end
  524. wave.Transparency = wave.Transparency + (0.5/WAIT)
  525. if wave.Transparency > 0.99 then
  526. wave:remove()
  527. end
  528. end
  529. end))
  530. end
  531.  
  532. function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  533. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  534. local mesh = IT("SpecialMesh",wave)
  535. mesh.MeshType = "FileMesh"
  536. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  537. mesh.Scale = SIZE
  538. mesh.Offset = VT(0,0,0)
  539. wave.CFrame = CFRAME
  540. coroutine.resume(coroutine.create(function(PART)
  541. for i = 1, WAIT do
  542. Swait()
  543. mesh.Scale = mesh.Scale + GROW
  544. if DOESROT == true then
  545. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  546. end
  547. wave.Transparency = wave.Transparency + (0.5/WAIT)
  548. if wave.Transparency > 0.99 then
  549. wave:remove()
  550. end
  551. end
  552. end))
  553. end
  554.  
  555. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  556. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  557. local mesh = IT("SpecialMesh",wave)
  558. mesh.MeshType = "Sphere"
  559. mesh.Scale = SIZE
  560. mesh.Offset = VT(0,0,0)
  561. wave.CFrame = CFRAME
  562. coroutine.resume(coroutine.create(function(PART)
  563. for i = 1, WAIT do
  564. Swait()
  565. mesh.Scale = mesh.Scale + GROW
  566. wave.Transparency = wave.Transparency + (1/WAIT)
  567. if wave.Transparency > 0.99 then
  568. wave:remove()
  569. end
  570. end
  571. end))
  572. end
  573.  
  574. function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW)
  575. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true)
  576. local mesh = IT("BlockMesh",wave)
  577. wave.CFrame = CFRAME
  578. coroutine.resume(coroutine.create(function(PART)
  579. for i = 1, WAIT do
  580. Swait()
  581. mesh.Scale = mesh.Scale + GROW
  582. wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
  583. wave.Transparency = wave.Transparency + (1/WAIT)
  584. if wave.Transparency > 0.99 then
  585. wave:remove()
  586. end
  587. end
  588. end))
  589. end
  590.  
  591. function MakeForm(PART,TYPE)
  592. if TYPE == "Cyl" then
  593. local MSH = IT("CylinderMesh",PART)
  594. elseif TYPE == "Ball" then
  595. local MSH = IT("SpecialMesh",PART)
  596. MSH.MeshType = "Sphere"
  597. elseif TYPE == "Wedge" then
  598. local MSH = IT("SpecialMesh",PART)
  599. MSH.MeshType = "Wedge"
  600. elseif TYPE == "Head" then
  601. local MSH = IT("SpecialMesh",PART)
  602. MSH.Scale = VT(1.25,1.25,1.25)
  603. end
  604. end
  605.  
  606. function CheckTableForString(Table, String)
  607. for i, v in pairs(Table) do
  608. if string.find(string.lower(String), string.lower(v)) then
  609. return true
  610. end
  611. end
  612. return false
  613. end
  614.  
  615. function CheckIntangible(Hit)
  616. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  617. if Hit and Hit.Parent then
  618. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  619. return true
  620. end
  621. end
  622. return false
  623. end
  624.  
  625. Debris = game:GetService("Debris")
  626.  
  627. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  628. local Direction = CFrame.new(StartPos, Vec).lookVector
  629. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  630. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  631. if RayHit and CheckIntangible(RayHit) then
  632. if DelayIfHit then
  633. wait()
  634. end
  635. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  636. end
  637. return RayHit, RayPos, RayNormal
  638. end
  639.  
  640. function CreateMagicCircle()
  641. local sinkhole = IT("Part")
  642. sinkhole.Size = VT(0,0,0)
  643. sinkhole.Parent = Effects
  644. sinkhole.Material = "Neon"
  645. sinkhole.Color = C3(0,0,0)
  646. sinkhole.Anchored = true
  647. sinkhole.CanCollide = false
  648. sinkhole.Transparency = 1
  649. local decal = IT("Decal",sinkhole)
  650. decal.Face = "Top"
  651. decal.Texture = "http://www.roblox.com/asset/?id=1260793696"
  652. local decal2 = IT("Decal",sinkhole)
  653. decal2.Face = "Bottom"
  654. decal2.Texture = "http://www.roblox.com/asset/?id=1260793696"
  655. return sinkhole
  656. end
  657.  
  658. function CreateGUICircle(TARGET)
  659. local GUI = Instance.new("BillboardGui",Character)
  660. GUI.Size = UDim2.new(0,0,0,0)
  661. GUI.Adornee = TARGET
  662. local GUI2 = IT("ImageLabel",GUI)
  663. GUI2.BackgroundTransparency = 1
  664. GUI2.BorderSizePixel = 0
  665. GUI2.Size = UDim2.new(1,0,1,0)
  666. GUI2.SizeConstraint = "RelativeYY"
  667. GUI.AlwaysOnTop = true
  668. GUI2.Image = "http://www.roblox.com/asset/?id=1260793696"
  669. return GUI,GUI2
  670. end
  671.  
  672. function CastWarpOutlines(TARGET)
  673. coroutine.resume(coroutine.create(function()
  674. local T = TARGET:GetChildren()
  675. for i = 1, # T do
  676. local child = T[i]
  677. if child.ClassName == "Part" or child.ClassName == "MeshPart" then
  678. local clone = child:Clone()
  679. clone.Parent = Effects
  680. clone.Anchored = true
  681. clone.CanCollide = false
  682. clone:ClearAllChildren()
  683. clone.CFrame = child.CFrame
  684. if clone.Name == "Head" then
  685. clone.Size = VT(clone.Size.Y,clone.Size.Y,clone.Size.Y)
  686. end
  687. if clone.ClassName == "MeshPart" then
  688. clone.TextureID = ""
  689. end
  690. clone.BrickColor = BRICKC"Black"
  691. clone.Material = "Neon"
  692. coroutine.resume(coroutine.create(function()
  693. for i = 1, 200 do
  694. Swait()
  695. clone.Transparency = clone.Transparency + 0.005
  696. clone.Size = clone.Size + VT(0.001,0.001,0.001)
  697. end
  698. clone:remove()
  699. end))
  700. end
  701. end
  702. end))
  703. end
  704.  
  705. function turnto(position)
  706. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  707. end
  708. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false)
  709. PRT.Color = C3(0,0,0)
  710. local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0))
  711. CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0))
  712. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Scarf", VT(1,1,1),false)
  713. PRT.Color = C3(0,0,0)
  714. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0))
  715. CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0))
  716. for i = 1, 16 do
  717. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/16.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false)
  718. FACE.Color = C3(0,0,0)
  719. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  720. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.45-(i-1)/25,0), CF(0, 0, 0))
  721. end
  722. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eyeball", VT(0.15,0.15,0.15),false)
  723. MakeForm(EYE,"Ball")
  724. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.26,-0.55), CF(0, 0, 0))
  725. local EYE2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eyeball", VT(0.15,0.15,0.15),false)
  726. MakeForm(EYE2,"Ball")
  727. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0))
  728. local LASTPART = Head
  729. for i = 1, 20 do
  730. local MATH = (1-(i/25))
  731. if LASTPART == Head then
  732. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  733. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0))
  734. LASTPART = Horn
  735. Horn.Color = C3((i*3-3)/255,0,0)
  736. else
  737. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  738. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0))
  739. LASTPART = Horn
  740. Horn.Color = C3((i*3-3)/255,0,0)
  741. end
  742. end
  743. local LASTPART = Head
  744. for i = 1, 20 do
  745. local MATH = (1-(i/25))
  746. if LASTPART == Head then
  747. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  748. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0))
  749. LASTPART = Horn
  750. Horn.Color = C3((i*3-3)/255,0,0)
  751. else
  752. local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
  753. CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0))
  754. LASTPART = Horn
  755. Horn.Color = C3((i*3-3)/255,0,0)
  756. end
  757. end
  758. local Hair = CreatePart(3, Character, "Fabric", 0, 0, "Gold", "Hair", VT(1,1,1),false)
  759. local HairWeld1 = CreateWeldOrSnapOrMotor("Weld", Hair, Head, Hair, CF(0,0.1,-0.25) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  760. CreateMesh("SpecialMesh", Hair, "FileMesh", "873651376", "", VT(0.025, 0.025, 0.02), VT(0,0,0))
  761. local Hair = CreatePart(3, Character, "Fabric", 0, 0, "Gold", "Hair", VT(1,1,1),false)
  762. local HairWeld2 = CreateWeldOrSnapOrMotor("Weld", Hair, Head, Hair, CF(0,0.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  763. CreateMesh("SpecialMesh", Hair, "FileMesh", "873651376", "", VT(0.03, 0.015, 0.01), VT(0,0,-0.1))
  764.  
  765. local HAT1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2,0.2,2),false)
  766. MakeForm(HAT1,"Cyl")
  767. HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0))
  768. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2.01,0.15,2.01),false)
  769. BELT.Color = C3(15/255,15/255,15/255)
  770. MakeForm(BELT,"Cyl")
  771. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0))
  772. local HAT2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,2.2,1.3),false)
  773. MakeForm(HAT2,"Cyl")
  774. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0))
  775. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.2,1.31),false)
  776. BELT.Color = C3(15/255,15/255,15/255)
  777. MakeForm(BELT,"Cyl")
  778. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0))
  779. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lavender", "Gem", VT(0.25,0.25,0.1),false)
  780. MakeForm(GEM,"Ball")
  781. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0))
  782. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lavender", "Gem", VT(0.25,0.25,0.1),false)
  783. MakeForm(GEM,"Ball")
  784. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0))
  785. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lavender", "Gem", VT(0.1,0.25,0.25),false)
  786. MakeForm(GEM,"Ball")
  787. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0))
  788. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lavender", "Gem", VT(0.1,0.25,0.25),false)
  789. MakeForm(GEM,"Ball")
  790. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0))
  791. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  792. BELT.Color = C3(15/255,15/255,15/255)
  793. MakeForm(BELT,"Cyl")
  794. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0))
  795. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  796. BELT.Color = C3(15/255,15/255,15/255)
  797. MakeForm(BELT,"Cyl")
  798. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0))
  799. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  800. BELT.Color = C3(15/255,15/255,15/255)
  801. MakeForm(BELT,"Cyl")
  802. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0))
  803. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  804. BELT.Color = C3(15/255,15/255,15/255)
  805. MakeForm(BELT,"Cyl")
  806. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.35,0), CF(0, 0, 0))
  807. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,0.5,1.3),false)
  808. MakeForm(BELT,"Ball")
  809. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0))
  810.  
  811. local StartPart = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.8,0.5,0.8),false)
  812. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, StartPart, CF(-0.7, 0.7, 0.5) * ANGLES(RAD(50), RAD(0), RAD(15)), CF(0, 0, 0))
  813. local Part = CreatePart(3, Weapon, "Glass", 0, 0.5, "Stone grey", "Glass", VT(0.7,1.4,0.7),false)
  814. CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  815. local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Acid", VT(0.65,1.4,0.65),false)
  816. CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  817. local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.8,0.5,0.8),false)
  818. CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 1.4, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  819.  
  820. local Handle = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,1.2,0.2),false)
  821. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0))
  822. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.8,0.2),false)
  823. MakeForm(Part,"Wedge")
  824. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0.2, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  825. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.6),false)
  826. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  827. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  828. MakeForm(Part,"Cyl")
  829. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  830. for i = 1, 8 do
  831. local Piece = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  832. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  833. end
  834. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  835. MakeForm(Part,"Wedge")
  836. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  837. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.39,0.41,0.39),false)
  838. MakeForm(Part,"Cyl")
  839. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  840. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  841. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  842. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.5),false)
  843. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  844. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0,0.6),false)
  845. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3))
  846. local RightBarrel = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.28,5,0.28),false)
  847. MakeForm(RightBarrel,"Cyl")
  848. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, RightBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0))
  849. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.2,0.2),false)
  850. MakeForm(Part,"Wedge")
  851. CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  852. local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false)
  853. MakeForm(RightHole,"Cyl")
  854. CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, RightHole, CF(0, 2.5, 0), CF(0, 0, 0))
  855. local Handle = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,1.2,0.2),false)
  856. local LeftArmGraps = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0))
  857. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.8,0.2),false)
  858. MakeForm(Part,"Wedge")
  859. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0.2, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  860. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.6),false)
  861. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  862. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  863. MakeForm(Part,"Cyl")
  864. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  865. for i = 1, 8 do
  866. local Piece = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  867. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  868. end
  869. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  870. MakeForm(Part,"Wedge")
  871. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  872. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.39,0.41,0.39),false)
  873. MakeForm(Part,"Cyl")
  874. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  875. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  876. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  877. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.5),false)
  878. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  879. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0,0.6),false)
  880. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3))
  881. local LeftBarrel = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.28,5,0.28),false)
  882. MakeForm(LeftBarrel,"Cyl")
  883. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, LeftBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0))
  884. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.2,0.2),false)
  885. MakeForm(Part,"Wedge")
  886. CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  887. local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false)
  888. MakeForm(LeftHole,"Cyl")
  889. CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, LeftHole, CF(0, 2.5, 0), CF(0, 0, 0))
  890. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false)
  891. MakeForm(Eye,"Ball")
  892. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  893. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false)
  894. MakeForm(Eye,"Ball")
  895. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  896. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false)
  897. MakeForm(Eye,"Ball")
  898. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  899. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false)
  900. MakeForm(Eye,"Ball")
  901. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  902. local A = IT("Attachment",Torso)
  903. A.Position = VT(1,1.3,0)
  904. A.Orientation = VT(-0.098, -89.999, 0.227)
  905. local B = IT("Attachment",Torso)
  906. B.Position = VT(-1.3,-0.6,0)
  907. B.Orientation = VT(-88.911, -68.808, 158.782)
  908.  
  909. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.3,0.3,0.3),false)
  910. local EyeWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(-5),RAD(25),RAD(0)) * CF(0,0,-0.45), CF(0,0,0))
  911. local Eye2 = CreatePart(3, Character, "Neon", 0, 0.5, "Really red", "Eye", VT(0.5,0.5,0.29),false)
  912. local EyeWeld2 = CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye2, CF(0,0.2,0) * ANGLES(RAD(-5),RAD(25),RAD(0)) * CF(0,0,-0.45), CF(0,0,0))
  913.  
  914. local Eye3 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,0.1,0.31),false)
  915. local EyeWeld3 = CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye3, CF(0,0.2,0) * ANGLES(RAD(-5),RAD(-25),RAD(0)) * CF(0,0,-0.45), CF(0,0,0))
  916.  
  917. local face = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Face mask", VT(1.001,1.001,1.001),false)
  918. local weld = CreateWeldOrSnapOrMotor("Weld", face, Head, face, CF(0.02,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  919. MakeForm(face,"Head")
  920. local part = CreatePart(3, Weapon, "Neon", 0, 0, "Royal purple", "Eye", VT(0.4,0.25,0.2),false)
  921. local weld = CreateWeldOrSnapOrMotor("Weld", part, Head, part, CF(0.15,0.28,-0.53) * ANGLES(RAD(15), RAD(0), RAD(25)), CF(0, 0, 0))
  922. MakeForm(part,"Ball")
  923. local Eye = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Eye", VT(0.1,0.1,0.15),false)
  924. local PupilWeld = CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0))
  925. MakeForm(Eye,"Ball")
  926.  
  927. for _, c in pairs(Weapon:GetChildren()) do
  928. if c.ClassName == "Part" then
  929. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  930. end
  931. end
  932.  
  933. Weapon.Parent = Character
  934.  
  935. Humanoid.Died:connect(function()
  936. ATTACK = true
  937. end)
  938.  
  939. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  940. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  941. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  942. local BODYGYRO = IT("BodyGyro", STATPART)
  943. local BODYPOSITION = IT("BodyPosition", STATPART)
  944. BODYPOSITION.P = 2000
  945. BODYPOSITION.D = 100
  946. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  947. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  948. game:GetService("Debris"):AddItem(STATPART ,5)
  949. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  950. BILLBOARDGUI.Adornee = STATPART
  951. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  952. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  953. BILLBOARDGUI.AlwaysOnTop = false
  954. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  955. TEXTLABEL.BackgroundTransparency = 1
  956. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  957. TEXTLABEL.Text = TEXT
  958. TEXTLABEL.Font = "SciFi"
  959. TEXTLABEL.FontSize="Size42"
  960. TEXTLABEL.TextColor3 = COLOR
  961. TEXTLABEL.TextStrokeTransparency = 1
  962. TEXTLABEL.TextScaled = true
  963. TEXTLABEL.TextWrapped = true
  964. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  965. if LABELTYPE == "Normal" then
  966. for i = 1, 20 do
  967. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  968. TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/20)
  969. end
  970. elseif LABELTYPE == "Debuff" then
  971. for i = 1, 20 do
  972. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  973. TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/20)
  974. end
  975. elseif LABELTYPE == "Shock" then
  976. local ORIGIN = STATPART.Position
  977. for i = 1, 20 do
  978. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  979. TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/20)
  980. end
  981. end
  982. THEPART.Parent = nil
  983. end),STATPART, BODYPOSITION, TEXTLABEL)
  984. end
  985.  
  986. function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping,DoesWarp,Instakill,HasChain)
  987. local dmg = math.random(min,max)
  988. for i,v in ipairs(workspace:GetChildren()) do
  989. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  990. local body = v:GetChildren()
  991. for part = 1, #body do
  992. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  993. if(body[part].Position - position).Magnitude < radius then
  994. if v.ClassName == "Model" then
  995. if v:FindFirstChildOfClass("Humanoid") then
  996. local HUMAN = v:FindFirstChildOfClass("Humanoid")
  997. if HUMAN.Health ~= 0 then
  998. if HasChain == true then
  999. local defence = Instance.new("BoolValue",v)
  1000. defence.Name = ("HitBy"..Player.Name)
  1001. game:GetService("Debris"):AddItem(defence, 1)
  1002. coroutine.resume(coroutine.create(function()
  1003. local TORSO = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  1004. if TORSO then
  1005. --print("Found "..v.Name.."'s Torso")
  1006. local PART = IT("Part",Effects)
  1007. PART.Anchored = true
  1008. PART.CanCollide = false
  1009. PART.Transparency = 1
  1010. PART.CFrame = CF(position)
  1011. Debris:AddItem(PART,15)
  1012. local A = IT("Attachment",PART)
  1013. --TORSO.Anchored = true
  1014. local Front = CreatePart(3, Effects, "Neon", 1, 1, "Really black", "Chain head", VT(1,1,1),false)
  1015. --print("Chain start")
  1016. Front.CFrame = CF(position)
  1017. Front.CanCollide = true
  1018. CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Front, 10, 1)
  1019. local B = IT("Attachment",Front)
  1020. local ChainLink = IT("Beam",Effects)
  1021. ChainLink.Texture = "rbxassetid://1262544869"
  1022. ChainLink.TextureSpeed = 0
  1023. ChainLink.FaceCamera = true
  1024. ChainLink.Width0 = 3
  1025. ChainLink.Attachment0 = A
  1026. ChainLink.Attachment1 = B
  1027. ChainLink.TextureMode = "Static"
  1028. local bv = Instance.new("BodyVelocity")
  1029. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1030. bv.velocity = CF(Front.Position,TORSO.Position).lookVector*500
  1031. bv.Parent = Front
  1032. bv.Name = "MOVE"
  1033. --print("Chain made")
  1034. coroutine.resume(coroutine.create(function()
  1035. Swait(30)
  1036. bv:remove()
  1037. local POS = Front.Position
  1038. Front.CanCollide = false
  1039. local onefourth = POS:Lerp(position, 0.25) + Vector3.new(0,0,0)
  1040. local threefourths = POS:Lerp(position, 0.75) + Vector3.new(0,0,0)
  1041. for i = 0, 1, 0.07 do
  1042. Swait()
  1043. Front.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, position, i))
  1044. end
  1045. Front:remove()
  1046. ChainLink:remove()
  1047. end))
  1048. local harm = Front.Touched:Connect(function(hit)
  1049. impale(Front,hit)
  1050. end)
  1051. end
  1052. end))
  1053. elseif DoesWarp == true then
  1054. local defence = Instance.new("BoolValue",v)
  1055. defence.Name = ("HitBy"..Player.Name)
  1056. game:GetService("Debris"):AddItem(defence, 0.001)
  1057. local TORSO = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  1058. Warp(TORSO,Instakill)
  1059. else
  1060. if CanBeDodgedByJumping == true then
  1061. if body[part].Position.Y < position.Y+5 then
  1062. if math.random(1,100) < critrate+1 then
  1063. HUMAN.Health = HUMAN.Health - dmg*critmultiplier
  1064. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1065. else
  1066. HUMAN.Health = HUMAN.Health - dmg
  1067. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  1068. end
  1069. local defence = Instance.new("BoolValue",v)
  1070. defence.Name = ("HitBy"..Player.Name)
  1071. game:GetService("Debris"):AddItem(defence, 0.01)
  1072. end
  1073. else
  1074. if beserk == true then
  1075. HUMAN.Health = 0
  1076. end
  1077. if math.random(1,100) < critrate+1 then
  1078. HUMAN.Health = HUMAN.Health - dmg*critmultiplier
  1079. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
  1080. else
  1081. HUMAN.Health = HUMAN.Health - dmg
  1082. StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
  1083. end
  1084. local defence = Instance.new("BoolValue",v)
  1085. defence.Name = ("HitBy"..Player.Name)
  1086. game:GetService("Debris"):AddItem(defence, 0.01)
  1087. end
  1088. end
  1089. end
  1090. end
  1091. end
  1092. --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1093. end
  1094. end
  1095. end
  1096. if v.ClassName == "Part" then
  1097. if v.Anchored == false and (v.Position - position).Magnitude < radius then
  1098. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1099. end
  1100. end
  1101. end
  1102. end
  1103. end
  1104.  
  1105. function Warp(Victim,WarpToVoid)
  1106. print("Warping "..Victim.Name.."...")
  1107. Victim.Anchored = true
  1108. coroutine.resume(coroutine.create(function()
  1109. local GUI,GUI2 = CreateGUICircle(Victim)
  1110. CreateSound("1208650519", Victim, 10, 1)
  1111. for i = 1, 100 do
  1112. Swait()
  1113. GUI.Size = GUI.Size + UDim2.new(0.2,0,0.2,0)
  1114. GUI2.Rotation = GUI2.Rotation + 4
  1115. end
  1116. CastWarpOutlines(Victim.Parent)
  1117. if WarpToVoid == false then
  1118. Victim.CFrame = Victim.CFrame * CF(MRANDOM(-65,65),0,MRANDOM(-65,65))
  1119. CreateSound("1177785010", Victim, 10, 1)
  1120. local HUMANOID = Victim.Parent:FindFirstChildOfClass("Humanoid")
  1121. if HUMANOID ~= nil then
  1122. local dmg = MRANDOM(75,95)
  1123. HUMANOID.Health = HUMANOID.Health - dmg
  1124. StatLabel("Normal", Victim.CFrame * CF(0, 0 + (Victim.Size.z - 1), 0), "WARPED/"..dmg, C3(0.3, 0, 0.3))
  1125. end
  1126. for i = 1, 50 do
  1127. Swait()
  1128. GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0)
  1129. GUI2.Rotation = GUI2.Rotation - 8
  1130. end
  1131. Victim.Anchored = false
  1132. GUI:remove()
  1133. elseif WarpToVoid == true then
  1134. CastWarpOutlines(Victim.Parent)
  1135. q = Victim.Parent:GetChildren()
  1136. for i = 1, #q do
  1137. if q[i] ~= Victim then
  1138. q[i]:remove()
  1139. end
  1140. end
  1141. CreateSound("1177785010", Victim, 10, 1)
  1142. Victim.Transparency = 1
  1143. for i = 1, 50 do
  1144. Swait()
  1145. GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0)
  1146. GUI2.Rotation = GUI2.Rotation - 8
  1147. end
  1148. Victim.Parent:remove()
  1149. end
  1150. end))
  1151. end
  1152.  
  1153. function killnearest(position,range,maxstrength)
  1154. for i,v in ipairs(workspace:GetChildren()) do
  1155. local body = v:GetChildren()
  1156. for part = 1, #body do
  1157. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1158. if(body[part].Position - position).Magnitude < range then
  1159. if v.ClassName == "Model" then
  1160. v:BreakJoints()
  1161. end
  1162. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  1163. body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1164. end
  1165. end
  1166. end
  1167. if v.ClassName == "Part" then
  1168. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1169. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  1170. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  1171. end
  1172. end
  1173. end
  1174. end
  1175.  
  1176. function AttackTemplate()
  1177. ATTACK = true
  1178. Rooted = false
  1179. for i=0, 1, 0.1 / Animation_Speed do
  1180. Swait()
  1181. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1182. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1183. PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1184. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1185. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1186. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1187. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1188. end
  1189. ATTACK = false
  1190. Rooted = false
  1191. end
  1192.  
  1193. function VoidWarp()
  1194. ATTACK = true
  1195. Rooted = false
  1196. for i=0, 0.2, 0.1 / Animation_Speed do
  1197. Swait()
  1198. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1199. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1200. PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1201. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1202. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(65)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1203. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1204. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1205. end
  1206. AoEDamage(Torso.Position,15,0,0,0,false,0,0,false,true,false)
  1207. CreateSound("1208650519", Torso, 10, 2.5)
  1208. local GUI,GUI2 = CreateGUICircle(Torso)
  1209. for i = 1, 50 do
  1210. Swait()
  1211. GUI.Size = GUI.Size + UDim2.new(i/60,0,i/60,0)
  1212. GUI2.Rotation = GUI2.Rotation + i/10
  1213. end
  1214. CastWarpOutlines(Character)
  1215. local POS = Torso.Position
  1216. RootPart.CFrame = CF(CF(Mouse.Hit.p)*CF(0,2,0).p,POS)
  1217. Swait()
  1218. CreateSound("1177785010", Torso, 10, 1)
  1219. coroutine.resume(coroutine.create(function()
  1220. for i = 1, 50 do
  1221. Swait()
  1222. GUI.Size = GUI.Size - UDim2.new(i/60,0,i/60,0)
  1223. GUI2.Rotation = GUI2.Rotation - i/10
  1224. end
  1225. end))
  1226. ATTACK = false
  1227. Rooted = false
  1228. end
  1229.  
  1230. local asd = Instance.new("ParticleEmitter")
  1231. asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
  1232. asd.LightEmission = .1
  1233. asd.Size = NumberSequence.new(0.2)
  1234. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  1235. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
  1236. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1237. asd.Transparency = bbb
  1238. asd.Size = aaa
  1239. asd.ZOffset = .9
  1240. asd.Acceleration = Vector3.new(0, -15, 0)
  1241. asd.LockedToPart = false
  1242. asd.EmissionDirection = "Back"
  1243. asd.Lifetime = NumberRange.new(1, 2)
  1244. asd.Rotation = NumberRange.new(-100, 100)
  1245. asd.RotSpeed = NumberRange.new(-100, 100)
  1246. asd.Speed = NumberRange.new(25,35)
  1247. asd.Enabled = false
  1248. asd.VelocitySpread = 5
  1249.  
  1250. function getbloody(victim,amount)
  1251. local PART = IT("Part",Effects)
  1252. PART.Transparency = 1
  1253. PART.Size = victim.Size
  1254. PART.Anchored = true
  1255. PART.CanCollide = false
  1256. PART.CFrame = CF(victim.Position,Torso.Position)
  1257. local HITPLAYERSOUNDS = {"356551938","264486467"}
  1258. Debris:AddItem(PART,5)
  1259. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1260. local prtcl = asd:Clone()
  1261. prtcl.Parent = PART
  1262. prtcl:Emit(amount*10)
  1263. end
  1264.  
  1265. function impale(chain,hit)
  1266. if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") then
  1267. local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
  1268. if humanoid.Health ~= 0 then
  1269. hit.Parent:BreakJoints()
  1270. getbloody(hit,15)
  1271. local prtcl = asd:Clone()
  1272. prtcl.Parent = chain
  1273. prtcl.Enabled = true
  1274. prtcl.Speed = NumberRange.new(0)
  1275. prtcl.Size = NumberSequence.new(0.2)
  1276. end
  1277. end
  1278. end
  1279.  
  1280. function clerp(a, b, t)
  1281. return a:lerp(b, t)
  1282. end
  1283.  
  1284. function newBezier(startpos, pos2, pos3, endpos, t)
  1285. local A = clerp(startpos, pos2, t)
  1286. local B = clerp(pos2, pos3, t)
  1287. local C = clerp(pos3, endpos, t)
  1288. local lerp1 = clerp(A, B, t)
  1289. local lerp2 = clerp(B, C, t)
  1290. local cubic = clerp(lerp1, lerp2, t)
  1291. return cubic
  1292. end
  1293.  
  1294. function VoidChain()
  1295. ATTACK = true
  1296. Rooted = false
  1297. for i=0, 2, 0.1 / Animation_Speed do
  1298. turnto(Mouse.Hit.p)
  1299. Swait()
  1300. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.25 / Animation_Speed)
  1301. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(5)), 0.25 / Animation_Speed)
  1302. PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.2,0.30,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1303. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  1304. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  1305. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1306. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1307. end
  1308. CreateSound("1208650519", RightArm, 10, 2)
  1309. local RING = CreateMagicCircle()
  1310. RING.CFrame = RightArm.CFrame * CF(0,-1.1,0)
  1311. for i = 1, 5 do
  1312. turnto(Mouse.Hit.p)
  1313. Swait()
  1314. local FRAME = CF(RightArm.CFrame * CF(MRANDOM(-5,5),MRANDOM(0,7.5),MRANDOM(-5,5)).p,RightArm.Position)
  1315. MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0))
  1316. MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0))
  1317. RING.CFrame = RightArm.CFrame * CF(0,-1.1,0) * ANGLES(RAD(0),RAD(i*2),RAD(0))
  1318. RING.Size = RING.Size + VT(1,0,1)
  1319. end
  1320. coroutine.resume(coroutine.create(function()
  1321. local POS = Mouse.Hit.p
  1322. local A = IT("Attachment",RING)
  1323. for i = 1, 15 do
  1324. Swait(MRANDOM(0,5))
  1325. coroutine.resume(coroutine.create(function()
  1326. local Front = CreatePart(3, Effects, "Neon", 1, 1, "Really black", "Chain head", VT(1,1,1),false)
  1327. --print("Chain start")
  1328. Front.CFrame = RING.CFrame*CF(MRANDOM(-3,3),0,MRANDOM(-3,3))
  1329. Front.CanCollide = true
  1330. CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Front, 10, 1)
  1331. local B = IT("Attachment",Front)
  1332. local ChainLink = IT("Beam",RING)
  1333. ChainLink.Texture = "rbxassetid://1262544869"
  1334. ChainLink.TextureSpeed = 0
  1335. ChainLink.FaceCamera = true
  1336. ChainLink.Width0 = 3
  1337. ChainLink.Attachment0 = A
  1338. ChainLink.Attachment1 = B
  1339. ChainLink.CurveSize0 = MRANDOM(-5,5)
  1340. ChainLink.CurveSize1 = MRANDOM(-5,5)
  1341. ChainLink.TextureMode = "Static"
  1342. local bv = Instance.new("BodyVelocity")
  1343. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1344. bv.velocity = CF(Front.Position,VT(POS.X+MRANDOM(-3,3),POS.Y+MRANDOM(-3,3),POS.Z+MRANDOM(-3,3))).lookVector*500
  1345. bv.Parent = Front
  1346. bv.Name = "MOVE"
  1347. --print("Chain made")
  1348. coroutine.resume(coroutine.create(function()
  1349. Swait(50)
  1350. bv:remove()
  1351. local POS = Front.Position
  1352. Front.CanCollide = false
  1353. local onefourth = POS:Lerp(RING.Position, 0.25) + Vector3.new(math.random(-5, 5), math.random(-5, 5),math.random(-5, 5))
  1354. local threefourths = POS:Lerp(RING.Position, 0.75) + Vector3.new(math.random(-5, 5), math.random(-5, 5),math.random(-5, 5))
  1355. for i = 0, 1, 0.07 do
  1356. Swait()
  1357. Front.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, RING.Position, i))
  1358. end
  1359. Front:remove()
  1360. ChainLink:remove()
  1361. end))
  1362. local harm = Front.Touched:Connect(function(hit)
  1363. impale(Front,hit)
  1364. end)
  1365. end))
  1366. end
  1367. Swait(60)
  1368. for i = 1, 5 do
  1369. Swait()
  1370. RING.Size = RING.Size - VT(1,0,1)
  1371. end
  1372. RING:remove()
  1373. end))
  1374. ATTACK = false
  1375. Rooted = false
  1376. end
  1377.  
  1378. function VortexLeash()
  1379. ATTACK = true
  1380. Rooted = true
  1381. for i=0, 1, 0.1 / Animation_Speed do
  1382. Swait()
  1383. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1384. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1385. PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.2,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1386. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -1) * ANGLES(RAD(60), RAD(-690), RAD(2 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1387. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 , 0) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed/8)
  1388. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 * Player_Size, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.5 / Animation_Speed/8)
  1389. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, 0) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(10)), 0.5 / Animation_Speed/8)
  1390. end
  1391. local RING = CreateMagicCircle()
  1392. CreateSound("1208650519", RING, 10, 1.5)
  1393. RING.CFrame = RootPart.CFrame * CF(0,-2.8,0)
  1394. local FRAME = RootPart.CFrame * CF(0,-2.8,0)
  1395. for i = 1, 75 do
  1396. Swait()
  1397. local FRAME = CF(RightArm.CFrame * CF(MRANDOM(-5,5),MRANDOM(0,7.5),MRANDOM(-5,5)).p,RightArm.Position)
  1398. MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0))
  1399. MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0))
  1400. RING.CFrame = RING.CFrame * ANGLES(RAD(0),RAD(i/5),RAD(0))
  1401. RING.Size = RING.Size + VT(1,0,1)
  1402. end
  1403. coroutine.resume(coroutine.create(function()
  1404. for i = 1, 450 do
  1405. Swait(2)
  1406. local FRAME = CF(RING.CFrame * CF(MRANDOM(-25,25),MRANDOM(0,35),MRANDOM(-25,25)).p,RING.Position)
  1407. MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0))
  1408. MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0))
  1409. MagicSphere(VT(0,0,0),10,RING.CFrame,"Royal purple",VT(2,4,2))
  1410. MagicSphere(VT(0,0,0),10,RING.CFrame,"Really black",VT(1.8,3.8,1.8))
  1411. local A = IT("Attachment",RING)
  1412. local POS = RING.CFrame * CF(MRANDOM(-150,150),MRANDOM(5,50),MRANDOM(-150,150)).p
  1413. coroutine.resume(coroutine.create(function()
  1414. local Front = CreatePart(3, Effects, "Neon", 1, 1, "Really black", "Chain head", VT(1,1,1),false)
  1415. --print("Chain start")
  1416. Front.CFrame = RING.CFrame*CF(MRANDOM(-3,3),0,MRANDOM(-3,3))
  1417. Front.CanCollide = false
  1418. CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Front, 2, 1)
  1419. local B = IT("Attachment",Front)
  1420. local ChainLink = IT("Beam",RING)
  1421. ChainLink.Texture = "rbxassetid://1262544869"
  1422. ChainLink.TextureSpeed = 0
  1423. ChainLink.FaceCamera = true
  1424. ChainLink.Width0 = 3
  1425. ChainLink.Attachment0 = A
  1426. ChainLink.Attachment1 = B
  1427. ChainLink.CurveSize0 = MRANDOM(-5,5)
  1428. ChainLink.CurveSize1 = MRANDOM(-5,5)
  1429. ChainLink.TextureMode = "Static"
  1430. local bv = Instance.new("BodyVelocity")
  1431. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1432. bv.velocity = CF(Front.Position,VT(POS.X+MRANDOM(-3,3),POS.Y+MRANDOM(-3,3),POS.Z+MRANDOM(-3,3))).lookVector*500
  1433. bv.Parent = Front
  1434. bv.Name = "MOVE"
  1435. --print("Chain made")
  1436. coroutine.resume(coroutine.create(function()
  1437. Swait(50)
  1438. bv:remove()
  1439. local POS = Front.Position
  1440. Front.CanCollide = false
  1441. local onefourth = POS:Lerp(RING.Position, 0.25) + Vector3.new(math.random(-5, 5), math.random(-5, 5),math.random(-5, 5))
  1442. local threefourths = POS:Lerp(RING.Position, 0.75) + Vector3.new(math.random(-5, 5), math.random(-5, 5),math.random(-5, 5))
  1443. for i = 0, 1, 0.07 do
  1444. Swait()
  1445. Front.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, RING.Position, i))
  1446. end
  1447. Front:remove()
  1448. ChainLink:remove()
  1449. end))
  1450. local harm = Front.Touched:Connect(function(hit)
  1451. impale(Front,hit)
  1452. end)
  1453. end))
  1454. AoEDamage(RING.Position,75,0,0,0,0,0,0,0,0,0,true)
  1455. RING.CFrame = RING.CFrame* ANGLES(RAD(0),RAD(5),RAD(0))
  1456. end
  1457. Swait(65)
  1458. for i = 1, 75 do
  1459. Swait()
  1460. RING.CFrame = RING.CFrame* ANGLES(RAD(0),RAD(-i/5),RAD(0))
  1461. RING.Size = RING.Size - VT(1,0,1)
  1462. end
  1463. RING:remove()
  1464. end))
  1465. ATTACK = false
  1466. Rooted = false
  1467. end
  1468.  
  1469. function VortexBarrier()
  1470. ATTACK = true
  1471. Rooted = true
  1472. for i=0, 2, 0.1 / Animation_Speed do
  1473. Swait()
  1474. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1475. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1476. PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1477. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1478. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(65)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1479. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1480. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1481. end
  1482. for i=0, 0.5, 0.1 / Animation_Speed do
  1483. Swait()
  1484. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1485. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1486. PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.27,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1487. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75,0) * ANGLES(RAD(0), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1488. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1489. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(-15)), 0.5 / Animation_Speed)
  1490. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  1491. end
  1492. CreateSound("1208650519", Effects, 10, 1)
  1493. local GUI,GUI2 = CreateGUICircle(Torso)
  1494. local GUI3,GUI4 = CreateGUICircle(Torso)
  1495. for i = 1, 200 do
  1496. Swait()
  1497. local FRAME = CF(Torso.CFrame * CF(MRANDOM(-35,35),MRANDOM(-35,35),MRANDOM(-35,35)).p,Torso.Position)
  1498. MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0))
  1499. MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0))
  1500. local FRAME = CF(Torso.CFrame * CF(MRANDOM(-35,35),MRANDOM(-35,35),MRANDOM(-35,35)).p,Torso.Position)
  1501. MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0))
  1502. MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0))
  1503. GUI.Size = GUI.Size + UDim2.new(i/60,0,i/60,0)
  1504. GUI2.Rotation = GUI2.Rotation + i/10
  1505. GUI3.Size = GUI3.Size + UDim2.new(i/120,0,i/120,0)
  1506. GUI4.Rotation = GUI4.Rotation - i/10
  1507. end
  1508. AoEDamage(Torso.Position,150,0,0,0,false,0,0,false,true,true)
  1509. Swait(25)
  1510. for i = 1, 100 do
  1511. Swait()
  1512. GUI.Size = GUI.Size - UDim2.new(i/15,0,i/15,0)
  1513. GUI2.Rotation = GUI2.Rotation - i/5
  1514. GUI3.Size = GUI3.Size - UDim2.new(i/30,0,i/30,0)
  1515. GUI4.Rotation = GUI4.Rotation + i/5
  1516. end
  1517. GUI:remove()
  1518. GUI3:remove()
  1519. ATTACK = false
  1520. Rooted = false
  1521. end
  1522.  
  1523. function MouseDown(Mouse)
  1524. if ATTACK == false then
  1525. end
  1526. end
  1527.  
  1528. function MouseUp(Mouse)
  1529. HOLD = false
  1530. end
  1531.  
  1532. function KeyDown(Key)
  1533. KEYHOLD = true
  1534. if Key == "z" and ATTACK == false then
  1535. VoidWarp()
  1536. end
  1537.  
  1538. if Key == "b" and ATTACK == false then
  1539. VoidChain()
  1540. end
  1541.  
  1542. if Key == "c" and ATTACK == false then
  1543. VortexLeash()
  1544. end
  1545.  
  1546. if Key == "v" and ATTACK == false then
  1547. VortexBarrier()
  1548. end
  1549.  
  1550. if Key == "x" and ATTACK == false then
  1551. end
  1552.  
  1553. if Key == "t" and ATTACK == false then
  1554. CreateSound(TAUNTS[MRANDOM(1,#TAUNTS)], Head, 10, 1)
  1555. end
  1556. end
  1557.  
  1558. function KeyUp(Key)
  1559. KEYHOLD = false
  1560. end
  1561.  
  1562. Mouse.Button1Down:connect(function(NEWKEY)
  1563. MouseDown(NEWKEY)
  1564. end)
  1565. Mouse.Button1Up:connect(function(NEWKEY)
  1566. MouseUp(NEWKEY)
  1567. end)
  1568. Mouse.KeyDown:connect(function(NEWKEY)
  1569. KeyDown(NEWKEY)
  1570. end)
  1571. Mouse.KeyUp:connect(function(NEWKEY)
  1572. KeyUp(NEWKEY)
  1573. end)
  1574.  
  1575. function unanchor()
  1576. if UNANCHOR == true then
  1577. g = Character:GetChildren()
  1578. for i = 1, #g do
  1579. if g[i].ClassName == "Part" then
  1580. g[i].Anchored = false
  1581. end
  1582. end
  1583. end
  1584. end
  1585.  
  1586. local FF = IT("ForceField",Character)
  1587. FF.Visible = false
  1588.  
  1589. Humanoid.Changed:connect(function(Jump)
  1590. if Jump == "Jump" and (Disable_Jump == true) then
  1591. Humanoid.Jump = false
  1592. end
  1593. end)
  1594.  
  1595. Speed = 45
  1596.  
  1597. while true do
  1598. Swait()
  1599. ANIMATE.Parent = nil
  1600. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1601. IDLEANIMATION:Play()
  1602. SINE = SINE + CHANGE
  1603. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1604. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1605. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1606. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1607. local WALKSPEEDVALUE = 3
  1608. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1609. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1610. 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)
  1611. 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 / 100, RAD(0), RAD(100 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1612. 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 / 100, RAD(0), RAD(100 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1613. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1614. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1615. 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)
  1616. 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)
  1617. 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)
  1618. end
  1619. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1620. ANIM = "Jump"
  1621. if ATTACK == false then
  1622. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1623. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1624. PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.3,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1625. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1626. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1., 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1627. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1628. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1629. end
  1630. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1631. ANIM = "Fall"
  1632. if ATTACK == false then
  1633. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1634. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1635. PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.22,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1636. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1637. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1638. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1639. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1640. end
  1641. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1642. ANIM = "Idle"
  1643. if ATTACK == false then
  1644. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1645. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  1646. PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.2,0.25,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1647. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1648. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1649. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1650. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1651. end
  1652. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1653. ANIM = "Walk"
  1654. WALK = WALK + 1 / Animation_Speed
  1655. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1656. WALK = 0
  1657. if WALKINGANIM == true then
  1658. WALKINGANIM = false
  1659. elseif WALKINGANIM == false then
  1660. WALKINGANIM = true
  1661. end
  1662. end
  1663. --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)
  1664. --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)
  1665. if ATTACK == false then
  1666. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1667. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1668. PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.26,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1669. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1670. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-120 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1671. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1672. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1673. end
  1674. end
  1675. if #Effects2>0 then
  1676. for e=1,#Effects2 do
  1677. if Effects2[e]~=nil then
  1678. local Thing=Effects2[e]
  1679. if Thing~=nil then
  1680. local Part=Thing[1]
  1681. local Mode=Thing[2]
  1682. local Delay=Thing[3]
  1683. local IncX=Thing[4]
  1684. local IncY=Thing[5]
  1685. local IncZ=Thing[6]
  1686. local Part2=Thing[8]
  1687. if Thing[1].Transparency<=1 then
  1688. if Thing[2]=="Block1" then
  1689. Thing[1].CFrame=Thing[1].CFrame
  1690. Mesh=Thing[1].Mesh
  1691. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1692. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1693. elseif Thing[2]=="Cylinder" then
  1694. Mesh=Thing[1].Mesh
  1695. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1696. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1697. elseif Thing[2]=="Blood" then
  1698. Mesh=Thing[7]
  1699. Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
  1700. Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
  1701. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1702. elseif Thing[2]=="Elec" then
  1703. Mesh=Thing[1].Mesh
  1704. Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
  1705. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1706. elseif Thing[2]=="Disappear" then
  1707. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1708. end
  1709. else
  1710. Part.Parent=nil
  1711. table.remove(Effects2,e)
  1712. end
  1713. end
  1714. end
  1715. end
  1716. end
  1717. unanchor()
  1718. Humanoid.MaxHealth = "inf"
  1719. Humanoid.Health = "inf"
  1720. if Rooted == false then
  1721. Disable_Jump = false
  1722. Humanoid.WalkSpeed = Speed
  1723. elseif Rooted == true then
  1724. Disable_Jump = true
  1725. Humanoid.WalkSpeed = 0
  1726. end
  1727. q = Character:GetChildren()
  1728. for u = 1, #q do
  1729. if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
  1730. if q[u].Handle:FindFirstChild("FaceFrontAttachment") or q[u].Handle:FindFirstChild("HatAttachment") then
  1731. q[u].Handle.Transparency = 1
  1732. end
  1733. end
  1734. end
  1735. local MATHS = {"0","1"}
  1736. Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
  1737. Humanoid.PlatformStand = false
  1738. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement