Advertisement
1x1x1x1IAMbck

Frostmaestro

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