Advertisement
Guest User

a

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