Advertisement
Dudermonman

Ice Dude

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