Advertisement
PhantomFood4

Ripper

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