Advertisement
gecksad

Untitled

Dec 9th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.04 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. wait(0.2)
  88. Player = owner
  89. PlayerGui = Player.PlayerGui
  90. Cam = workspace.CurrentCamera
  91. Backpack = Player.Backpack
  92. Character = Player.Character
  93. Humanoid = Character.Humanoid
  94. RootPart = Character.HumanoidRootPart
  95. Torso = Character.Torso
  96. Head = Character.Head
  97. RightArm = Character["Right Arm"]
  98. LeftArm = Character["Left Arm"]
  99. RightLeg = Character["Right Leg"]
  100. LeftLeg = Character["Left Leg"]
  101. RootJoint = RootPart.RootJoint
  102. Neck = Torso.Neck
  103. RightShoulder = Torso["Right Shoulder"]
  104. LeftShoulder = Torso["Left Shoulder"]
  105. RightHip = Torso["Right Hip"]
  106. LeftHip = Torso["Left Hip"]
  107. local sick = Instance.new("Sound", Character)
  108. sick.SoundId = "rbxassetid://428141290"
  109. sick.Looped = true
  110. sick.Pitch = 1
  111. sick.Volume = 1
  112. sick:Play()
  113. IT = Instance.new
  114. CF = CFrame.new
  115. VT = Vector3.new
  116. RAD = math.rad
  117. C3 = Color3.new
  118. UD2 = UDim2.new
  119. BRICKC = BrickColor.new
  120. ANGLES = CFrame.Angles
  121. EULER = CFrame.fromEulerAnglesXYZ
  122. COS = math.cos
  123. ACOS = math.acos
  124. SIN = math.sin
  125. ASIN = math.asin
  126. ABS = math.abs
  127. MRANDOM = math.random
  128. FLOOR = math.floor
  129. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  130. local NEWMESH = IT(MESH)
  131. if MESH == "SpecialMesh" then
  132. NEWMESH.MeshType = MESHTYPE
  133. if MESHID ~= "nil" and MESHID ~= "" then
  134. NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID
  135. end
  136. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  137. NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID
  138. end
  139. end
  140. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  141. NEWMESH.Scale = SCALE
  142. NEWMESH.Parent = PARENT
  143. return NEWMESH
  144. end
  145. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  146. local NEWPART = IT("Part")
  147. NEWPART.formFactor = FORMFACTOR
  148. NEWPART.Reflectance = REFLECTANCE
  149. NEWPART.Transparency = TRANSPARENCY
  150. NEWPART.CanCollide = false
  151. NEWPART.Locked = true
  152. NEWPART.Anchored = true
  153. if ANCHOR == false then
  154. NEWPART.Anchored = false
  155. end
  156. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  157. NEWPART.Name = NAME
  158. NEWPART.Size = SIZE
  159. NEWPART.Position = Torso.Position
  160. NEWPART.Material = MATERIAL
  161. NEWPART:BreakJoints()
  162. NEWPART.Parent = PARENT
  163. return NEWPART
  164. end
  165. Player_Size = 1
  166. Animation_Speed = 3
  167. Frame_Speed = 0.016666666666666666
  168. local Speed = 16
  169. local Effects2 = {}
  170. local weldBetween = function(a, b)
  171. local weldd = Instance.new("ManualWeld")
  172. weldd.Part0 = a
  173. weldd.Part1 = b
  174. weldd.C0 = CFrame.new()
  175. weldd.C1 = b.CFrame:inverse() * a.CFrame
  176. weldd.Parent = a
  177. return weldd
  178. end
  179. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  180. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  181. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  182. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  183. local CHANGEDEFENSE = 0
  184. local CHANGEDAMAGE = 0
  185. local CHANGEMOVEMENT = 0
  186. local ANIM = "Idle"
  187. local ATTACK = false
  188. local EQUIPPED = false
  189. local HOLD = false
  190. local COMBO = 1
  191. local Rooted = false
  192. local SINE = 0
  193. local KEYHOLD = false
  194. local CHANGE = 2 / Animation_Speed
  195. local WALKINGANIM = false
  196. local WALK = 0
  197. local VALUE1 = false
  198. local VALUE2 = false
  199. local ROBLOXIDLEANIMATION = IT("Animation")
  200. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  201. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  202. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  203. WEAPONGUI.Name = "Weapon GUI"
  204. local Effects = IT("Folder", Character)
  205. Effects.Name = "Effects"
  206. local ANIMATOR = Humanoid.Animator
  207. local ANIMATE = Character.Animate
  208. local HITPLAYERSOUNDS = {
  209. "263032172",
  210. "263032182",
  211. "263032200",
  212. "263032221",
  213. "263032252",
  214. "263033191"
  215. }
  216. local HITARMORSOUNDS = {
  217. "199149321",
  218. "199149338",
  219. "199149367",
  220. "199149409",
  221. "199149452"
  222. }
  223. local HITWEAPONSOUNDS = {
  224. "199148971",
  225. "199149025",
  226. "199149072",
  227. "199149109",
  228. "199149119"
  229. }
  230. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  231. local UNANCHOR = true
  232. local SKILLTEXTCOLOR = BRICKC("Steel blue").Color
  233. ArtificialHB = Instance.new("BindableEvent", script)
  234. ArtificialHB.Name = "ArtificialHB"
  235. script:WaitForChild("ArtificialHB")
  236. frame = Frame_Speed
  237. tf = 0
  238. allowframeloss = false
  239. tossremainder = false
  240. lastframe = tick()
  241. script.ArtificialHB:Fire()
  242. game:GetService("RunService").Heartbeat:connect(function(s, p)
  243. tf = tf + s
  244. if tf >= frame then
  245. if allowframeloss then
  246. script.ArtificialHB:Fire()
  247. lastframe = tick()
  248. else
  249. for i = 1, math.floor(tf / frame) do
  250. script.ArtificialHB:Fire()
  251. end
  252. lastframe = tick()
  253. end
  254. if tossremainder then
  255. tf = 0
  256. else
  257. tf = tf - frame * math.floor(tf / frame)
  258. end
  259. end
  260. end)
  261. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  262. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  263. end
  264. function PositiveAngle(NUMBER)
  265. if NUMBER >= 0 then
  266. NUMBER = 0
  267. end
  268. return NUMBER
  269. end
  270. function NegativeAngle(NUMBER)
  271. if NUMBER <= 0 then
  272. NUMBER = 0
  273. end
  274. return NUMBER
  275. end
  276. function Swait(NUMBER)
  277. if NUMBER == 0 or NUMBER == nil then
  278. ArtificialHB.Event:wait()
  279. else
  280. for i = 1, NUMBER do
  281. ArtificialHB.Event:wait()
  282. end
  283. end
  284. end
  285. function QuaternionFromCFrame(cf)
  286. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  287. local trace = m00 + m11 + m22
  288. if trace > 0 then
  289. local s = math.sqrt(1 + trace)
  290. local recip = 0.5 / s
  291. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  292. else
  293. local i = 0
  294. if m00 < m11 then
  295. i = 1
  296. end
  297. if m22 > (i == 0 and m00 or m11) then
  298. i = 2
  299. end
  300. if i == 0 then
  301. local s = math.sqrt(m00 - m11 - m22 + 1)
  302. local recip = 0.5 / s
  303. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  304. elseif i == 1 then
  305. local s = math.sqrt(m11 - m22 - m00 + 1)
  306. local recip = 0.5 / s
  307. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  308. elseif i == 2 then
  309. local s = math.sqrt(m22 - m00 - m11 + 1)
  310. local recip = 0.5 / s
  311. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  312. end
  313. end
  314. end
  315. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  316. local xs, ys, zs = x + x, y + y, z + z
  317. local wx, wy, wz = w * xs, w * ys, w * zs
  318. local xx = x * xs
  319. local xy = x * ys
  320. local xz = x * zs
  321. local yy = y * ys
  322. local yz = y * zs
  323. local zz = z * zs
  324. 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))
  325. end
  326. function QuaternionSlerp(a, b, t)
  327. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  328. local startInterp, finishInterp
  329. if cosTheta >= 1.0E-4 then
  330. if 1 - cosTheta > 1.0E-4 then
  331. local theta = ACOS(cosTheta)
  332. local invSinTheta = 1 / SIN(theta)
  333. startInterp = SIN((1 - t) * theta) * invSinTheta
  334. finishInterp = SIN(t * theta) * invSinTheta
  335. else
  336. startInterp = 1 - t
  337. finishInterp = t
  338. end
  339. elseif 1 + cosTheta > 1.0E-4 then
  340. local theta = ACOS(-cosTheta)
  341. local invSinTheta = 1 / SIN(theta)
  342. startInterp = SIN((t - 1) * theta) * invSinTheta
  343. finishInterp = SIN(t * theta) * invSinTheta
  344. else
  345. startInterp = t - 1
  346. finishInterp = t
  347. end
  348. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  349. end
  350. function Clerp(a, b, t)
  351. local qa = {
  352. QuaternionFromCFrame(a)
  353. }
  354. local qb = {
  355. QuaternionFromCFrame(b)
  356. }
  357. local ax, ay, az = a.x, a.y, a.z
  358. local bx, by, bz = b.x, b.y, b.z
  359. local _t = 1 - t
  360. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  361. end
  362. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  363. local frame = IT("Frame")
  364. frame.BackgroundTransparency = TRANSPARENCY
  365. frame.BorderSizePixel = BORDERSIZEPIXEL
  366. frame.Position = POSITION
  367. frame.Size = SIZE
  368. frame.BackgroundColor3 = COLOR
  369. frame.BorderColor3 = BORDERCOLOR
  370. frame.Name = NAME
  371. frame.Parent = PARENT
  372. return frame
  373. end
  374. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  375. local label = IT("TextLabel")
  376. label.BackgroundTransparency = 1
  377. label.Size = UD2(1, 0, 1, 0)
  378. label.Position = UD2(0, 0, 0, 0)
  379. label.TextColor3 = TEXTCOLOR
  380. label.TextStrokeTransparency = STROKETRANSPARENCY
  381. label.TextTransparency = TRANSPARENCY
  382. label.FontSize = TEXTFONTSIZE
  383. label.Font = TEXTFONT
  384. label.BorderSizePixel = BORDERSIZEPIXEL
  385. label.TextScaled = false
  386. label.Text = TEXT
  387. label.Name = NAME
  388. label.Parent = PARENT
  389. return label
  390. end
  391. function NoOutlines(PART)
  392. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  393. end
  394. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  395. local NEWWELD = IT(TYPE)
  396. NEWWELD.Part0 = PART0
  397. NEWWELD.Part1 = PART1
  398. NEWWELD.C0 = C0
  399. NEWWELD.C1 = C1
  400. NEWWELD.Parent = PARENT
  401. return NEWWELD
  402. end
  403. local S = IT("Sound")
  404. function CreateSound(ID, PARENT, VOLUME, PITCH)
  405. local NEWSOUND
  406. coroutine.resume(coroutine.create(function()
  407. NEWSOUND = S:Clone()
  408. NEWSOUND.Parent = PARENT
  409. NEWSOUND.Volume = VOLUME
  410. NEWSOUND.Pitch = PITCH
  411. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
  412. Swait()
  413. NEWSOUND:play()
  414. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  415. end))
  416. return NEWSOUND
  417. end
  418. function CFrameFromTopBack(at, top, back)
  419. local right = top:Cross(back)
  420. 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)
  421. end
  422. function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW)
  423. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  424. wave.Color = COLOR
  425. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0, 0, 0))
  426. wave.CFrame = CFRAME
  427. coroutine.resume(coroutine.create(function(PART)
  428. for i = 1, WAIT do
  429. Swait()
  430. mesh.Scale = mesh.Scale + GROW
  431. wave.Transparency = wave.Transparency + 1 / WAIT
  432. if wave.Transparency > 0.99 then
  433. wave:remove()
  434. end
  435. end
  436. end))
  437. end
  438. function Slice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW)
  439. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  440. local mesh
  441. if KIND == "Base" then
  442. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0))
  443. elseif KIND == "Thin" then
  444. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
  445. elseif KIND == "Round" then
  446. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
  447. end
  448. wave.CFrame = CFRAME
  449. coroutine.resume(coroutine.create(function(PART)
  450. for i = 1, WAIT do
  451. Swait()
  452. mesh.Scale = mesh.Scale + GROW / 10
  453. wave.Transparency = wave.Transparency + 0.5 / WAIT
  454. if wave.Transparency > 0.99 then
  455. wave:remove()
  456. end
  457. end
  458. end))
  459. end
  460. function MakeForm(PART, TYPE)
  461. if TYPE == "Cyl" then
  462. local MSH = IT("CylinderMesh", PART)
  463. elseif TYPE == "Ball" then
  464. local MSH = IT("SpecialMesh", PART)
  465. MSH.MeshType = "Sphere"
  466. elseif TYPE == "Wedge" then
  467. local MSH = IT("SpecialMesh", PART)
  468. MSH.MeshType = "Wedge"
  469. end
  470. end
  471. function CheckTableForString(Table, String)
  472. for i, v in pairs(Table) do
  473. if string.find(string.lower(String), string.lower(v)) then
  474. return true
  475. end
  476. end
  477. return false
  478. end
  479. function CheckIntangible(Hit)
  480. local ProjectileNames = {
  481. "Water",
  482. "Arrow",
  483. "Projectile",
  484. "Effect",
  485. "Rail",
  486. "Lightning",
  487. "Bullet"
  488. }
  489. if Hit and Hit.Parent and (not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid") then
  490. return true
  491. end
  492. return false
  493. end
  494. Debris = game:GetService("Debris")
  495. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  496. local Direction = CFrame.new(StartPos, Vec).lookVector
  497. local Ignore = type(Ignore) == "table" and Ignore or {Ignore}
  498. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  499. if RayHit and CheckIntangible(RayHit) then
  500. if DelayIfHit then
  501. wait()
  502. end
  503. RayHit, RayPos, RayNormal = CastZapRay(RayPos + Vec * 0.01, Vec, Length - (StartPos - RayPos).magnitude, Ignore, DelayIfHit)
  504. end
  505. return RayHit, RayPos, RayNormal
  506. end
  507. function FireArc(Part, ToLocation, AmountOfTime, Height, DoesCourontine)
  508. if DoesCourontine == false then
  509. local Direction = CF(Part.Position, ToLocation)
  510. local Distance = (Part.Position - ToLocation).magnitude
  511. for i = 1, AmountOfTime do
  512. Swait()
  513. Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime)
  514. Direction = Part.CFrame
  515. end
  516. Part:remove()
  517. elseif DoesCourontine == true then
  518. coroutine.resume(coroutine.create(function()
  519. local Direction = CF(Part.Position, ToLocation)
  520. local Distance = (Part.Position - ToLocation).magnitude
  521. for i = 1, AmountOfTime do
  522. Swait()
  523. Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime)
  524. Direction = Part.CFrame
  525. end
  526. Part:remove()
  527. end))
  528. end
  529. end
  530. function turnto(position)
  531. RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0)
  532. end
  533. local naeeym2 = Instance.new("BillboardGui", Character)
  534. naeeym2.AlwaysOnTop = true
  535. naeeym2.Size = UDim2.new(5, 35, 2, 15)
  536. naeeym2.StudsOffset = Vector3.new(0, 3, 0)
  537. naeeym2.Adornee = Character.Head
  538. naeeym2.Name = "Name"
  539. naeeym2.PlayerToHideFrom = Player
  540. local tecks2 = Instance.new("TextLabel", naeeym2)
  541. tecks2.BackgroundTransparency = 1
  542. tecks2.TextScaled = true
  543. tecks2.BorderSizePixel = 0
  544. tecks2.Text = "Dominus Frigidus"
  545. tecks2.Font = "Fantasy"
  546. tecks2.TextSize = 30
  547. tecks2.TextStrokeTransparency = 0
  548. tecks2.TextColor3 = SKILLTEXTCOLOR
  549. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  550. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  551. tecks2.Parent = naeeym2
  552. function Transparency(TRANS)
  553. tecks2.TextTransparency = TRANS
  554. tecks2.TextStrokeTransparency = TRANS
  555. for _, c in pairs(Character:GetChildren()) do
  556. if c.ClassName == "Part" and c ~= RootPart then
  557. c.Transparency = TRANS
  558. if c:FindFirstChildOfClass("Decal") then
  559. c:FindFirstChildOfClass("Decal").Transparency = TRANS
  560. end
  561. elseif c.ClassName == "Accessory" then
  562. c.Handle.Transparency = TRANS
  563. elseif c.ClassName == "Model" then
  564. for _, q in pairs(c:GetChildren()) do
  565. if q.ClassName == "Part" then
  566. q.Transparency = TRANS
  567. if q:FindFirstChildOfClass("Decal") then
  568. q:FindFirstChildOfClass("Decal").Transparency = TRANS
  569. end
  570. end
  571. end
  572. end
  573. end
  574. end
  575. Humanoid.Died:connect(function()
  576. Humanoid.Parent = nil
  577. Humanoid.MaxHealth = "inf"
  578. Humanoid.Health = "inf"
  579. refit()
  580. Humanoid.Parent = Character
  581. CreateSound("907330011", Head, 10, 0.9)
  582. end)
  583. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 1 Frame")
  584. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.5, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 2 Frame")
  585. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 3 Frame")
  586. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Freeze orb", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 0, "Text 1")
  587. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Blizzard", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 0, "Text 2")
  588. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Sheer Cold", SKILLTEXTCOLOR, 10, "SciFi", 0, 2, 0, "Text 3")
  589. local SKILLEFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill Warp Frame")
  590. local SKILLETEXT = CreateLabel(SKILLEFRAME, "[Q] Blizzard Hop", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 0, "Text Warp")
  591. function freezenearest(position, range)
  592. for i, v in ipairs(workspace:GetChildren()) do
  593. local body = v:GetChildren()
  594. for part = 1, #body do
  595. if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude and v.ClassName == "Model" and v:FindFirstChildOfClass("Humanoid") then
  596. v:BreakJoints()
  597. body[part].Material = "Ice"
  598. body[part].BrickColor = BRICKC("Medium blue")
  599. body[part].Anchored = true
  600. end
  601. end
  602. end
  603. end
  604. function Freeze_Orb()
  605. local CENTER = CreatePart(3, Effects, "SmoothPlastic", 0, 1, SKILLTEXTCOLOR, "CenterPart", VT(0, 0, 0))
  606. local RAY = CreatePart(3, Effects, "Neon", 0, 1, SKILLTEXTCOLOR, "Laser01", VT(25, 25, 25))
  607. MakeForm(RAY, "Ball")
  608. RAY.Color = SKILLTEXTCOLOR
  609. local ECH = Mouse.Hit.p
  610. RAY.CFrame = CF(ECH)
  611. CENTER.CFrame = RAY.CFrame
  612. for i = 1, 80 do
  613. Swait()
  614. RAY.Size = RAY.Size * 0.99
  615. RAY.Transparency = RAY.Transparency - 0.016666666666666666
  616. end
  617. MagicSphere(RAY.Size / 1.01, 35, RAY.CFrame, C3(1, 1, 1), VT(-0.3, -0.3, -0.3))
  618. for i = 1, 40 do
  619. Swait()
  620. RAY.Size = RAY.Size * 1.03
  621. freezenearest(RAY.Position, RAY.Size.X / 2)
  622. RAY.Transparency = RAY.Transparency + 0.03333333333333333
  623. end
  624. RAY:remove()
  625. Debris:AddItem(CENTER, 5)
  626. end
  627. function Blizzard()
  628. local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character)
  629. if HITFLOOR ~= nil then
  630. ATTACK = true
  631. Rooted = true
  632. local GYRO = IT("BodyGyro", RootPart)
  633. GYRO.D = 100
  634. GYRO.P = 2000
  635. GYRO.MaxTorque = VT(0, 4000000, 0)
  636. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  637. for i = 0, 3.5, 0.1 / Animation_Speed do
  638. Swait()
  639. MagicSphere(VT(0, 0, 0), 15, CF(RightArm.CFrame * CF(0, -1.2, 0).p, RightArm.CFrame * CF(MRANDOM(-5, 5), -1.2 + MRANDOM(-25, 25), MRANDOM(-5, 5)).p), C3(0.5, 0.5, 1), VT(1, 0.1, 0.1) / 2)
  640. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  641. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  642. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  643. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-45), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(32 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  644. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  645. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  646. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  647. end
  648. CreateSound("160772554", RightArm, 10, 0.7)
  649. for i = 0, 0.15, 0.1 / Animation_Speed do
  650. Swait()
  651. MagicSphere(VT(0, 0, 0), 15, CF(RightArm.CFrame * CF(0, -1.2, 0).p, RightArm.CFrame * CF(MRANDOM(-5, 5), -1.2 + MRANDOM(-25, 25), MRANDOM(-5, 5)).p), C3(0.5, 0.5, 1), VT(1, 0.1, 0.1) / 2)
  652. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  653. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  654. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  655. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  656. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  657. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  658. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  659. end
  660. coroutine.resume(coroutine.create(function()
  661. local CENTER = CreatePart(3, Effects, "SmoothPlastic", 0, 1, SKILLTEXTCOLOR, "CenterPart", VT(0, 0, 0))
  662. CENTER.CFrame = RootPart.CFrame
  663. for i = 1, 200 do
  664. Swait()
  665. CENTER.CFrame = CENTER.CFrame * CF(0, 0, -0.7)
  666. for i = 1, 2 do
  667. Slice("Round", 0, 45, CF(CENTER.Position + VT(0, MRANDOM(-15, 15), 0)) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Pearl", VT(0.1, 0, 0.1) * MRANDOM(5, 15) / 10)
  668. end
  669. freezenearest(CENTER.Position, 25)
  670. end
  671. CENTER:remove()
  672. end))
  673. for i = 0, 1, 0.1 / Animation_Speed do
  674. Swait()
  675. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  676. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  677. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(145), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  678. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  679. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  680. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  681. end
  682. Rooted = true
  683. GYRO:remove()
  684. ATTACK = false
  685. Rooted = false
  686. end
  687. end
  688. function Sheer_Cold()
  689. local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character)
  690. if HITFLOOR ~= nil then
  691. local HITBODIES = {}
  692. ATTACK = true
  693. Rooted = true
  694. CreateSound("1225684085", RightArm, 10, 3)
  695. for i = 1, 120 do
  696. Swait()
  697. Slice("Round", 0, 45, CF(RightArm.CFrame * CF(0, MRANDOM(-3, -2), 0).p) * ANGLES(RAD(0), RAD(MRANDOM(-180, 180)), RAD(0)), "Pearl", VT(0.01, 0, 0.01) * MRANDOM(2, 3))
  698. MagicSphere(VT(0, 0, 0), 15, CF(RightArm.CFrame * CF(0, -1.2, 0).p, RightArm.CFrame * CF(MRANDOM(-5, 5), -1.2 + MRANDOM(-25, 25), MRANDOM(-5, 5)).p), C3(0.5, 0.5, 1), VT(1, 0.1, 0.1))
  699. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  700. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  701. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  702. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  703. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  704. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  705. end
  706. CreateSound("160772554", RightArm, 10, 0.7)
  707. for i = 1, 25 do
  708. Swait()
  709. freezenearest(RootPart.Position, 80)
  710. Slice("Round", 0, 45, CF(RootPart.Position + VT(0, MRANDOM(-5, 15), 0)) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Pearl", VT(0.1, 0, 0.1) * MRANDOM(2, 3))
  711. Slice("Thin", 0, 65, CF(RootPart.Position + VT(0, MRANDOM(-5, 15), 0)) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Pearl", VT(0.1, 0, 0.1) * MRANDOM(2, 3))
  712. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  713. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  714. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  715. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  716. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  717. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  718. end
  719. ATTACK = false
  720. Rooted = false
  721. end
  722. end
  723. local Decal = IT("Decal")
  724. function Blizzard_Hop()
  725. ATTACK = true
  726. Rooted = false
  727. local O1 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0, 0, 0))
  728. O1.CFrame = RootPart.CFrame * CF(0, 0, -3) * ANGLES(RAD(90), RAD(0), RAD(0))
  729. local decal = Decal:Clone()
  730. decal.Parent = O1
  731. decal.Face = "Top"
  732. decal.Texture = "http://www.roblox.com/asset/?id=199910011"
  733. local decal2 = Decal:Clone()
  734. decal2.Parent = O1
  735. decal2.Face = "Bottom"
  736. decal2.Texture = "http://www.roblox.com/asset/?id=199910011"
  737. local O2 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0, 0, 0))
  738. local POS = VT(RootPart.Position.X, Mouse.Hit.p.Y + 6, RootPart.Position.Z)
  739. O2.CFrame = CF(Mouse.Hit.p + VT(0, 6, 0), POS) * ANGLES(RAD(90), RAD(0), RAD(0))
  740. local ROOT = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0, 0, 0))
  741. ROOT.CFrame = CF(O2.Position, RootPart.Position)
  742. local decal = Decal:Clone()
  743. decal.Parent = O2
  744. decal.Face = "Top"
  745. decal.Texture = "http://www.roblox.com/asset/?id=199910011"
  746. local decal2 = Decal:Clone()
  747. decal2.Parent = O2
  748. decal2.Face = "Bottom"
  749. decal2.Texture = "http://www.roblox.com/asset/?id=199910011"
  750. CreateSound("84005018", O1, 10, 0.7)
  751. CreateSound("84005018", O2, 10, 0.7)
  752. for i = 1, 75 do
  753. Swait()
  754. O1.Size = O1.Size + VT(0.1, 0, 0.1)
  755. O1.CFrame = RootPart.CFrame * CF(0, 0, -3) * ANGLES(RAD(90), RAD(i), RAD(0))
  756. O2.Size = O2.Size + VT(0.1, 0, 0.1)
  757. O2.CFrame = O2.CFrame * ANGLES(RAD(0), RAD(i), RAD(0))
  758. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  759. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  760. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  761. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  762. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  763. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  764. end
  765. Rooted = true
  766. UNANCHOR = false
  767. RootPart.Anchored = true
  768. VALUE1 = true
  769. for i = 1, 15 do
  770. Transparency(i / 15)
  771. Swait()
  772. RootPart.CFrame = RootPart.CFrame * CF(0, 0, -0.13)
  773. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(16 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  774. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  775. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  776. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  777. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  778. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  779. end
  780. RootPart.CFrame = ROOT.CFrame
  781. ROOT:remove()
  782. for i = 1, 15 do
  783. Transparency(1 - i / 15)
  784. Swait()
  785. RootPart.CFrame = RootPart.CFrame * CF(0, 0, -0.5)
  786. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(16 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  787. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  788. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  789. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  790. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  791. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  792. end
  793. VALUE1 = false
  794. coroutine.resume(coroutine.create(function()
  795. for i = 1, 75 do
  796. Swait()
  797. O1.Size = O1.Size - VT(0.1, 0, 0.1)
  798. O1.CFrame = O1.CFrame * ANGLES(RAD(0), RAD(i), RAD(0))
  799. O2.Size = O2.Size - VT(0.1, 0, 0.1)
  800. O2.CFrame = O2.CFrame * ANGLES(RAD(0), RAD(i), RAD(0))
  801. end
  802. O1:remove()
  803. O2:remove()
  804. end))
  805. UNANCHOR = true
  806. RootPart.Anchored = false
  807. ATTACK = false
  808. Rooted = false
  809. end
  810. function Roar()
  811. ATTACK = true
  812. Rooted = true
  813. local ROAR = CreateSound("785301837", Head, 5, 1.5)
  814. Swait()
  815. repeat
  816. Swait()
  817. ROAR.Parent = Head
  818. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  819. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  820. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-45), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  821. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-45), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  822. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  823. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-15 - 7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  824. until ROAR.Playing == false
  825. ATTACK = false
  826. Rooted = false
  827. end
  828. function MouseDown(Mouse)
  829. if ATTACK == false then
  830. end
  831. end
  832. function MouseUp(Mouse)
  833. HOLD = false
  834. end
  835. function KeyDown(Key)
  836. KEYHOLD = true
  837. if Key == "z" and ATTACK == false then
  838. Freeze_Orb()
  839. end
  840. if Key == "b" and ATTACK == false then
  841. Blizzard()
  842. end
  843. if Key == "c" and ATTACK == false then
  844. Sheer_Cold()
  845. end
  846. if Key == "q" and ATTACK == false then
  847. Blizzard_Hop()
  848. end
  849. if Key == "t" and ATTACK == false then
  850. Roar()
  851. end
  852. end
  853. function KeyUp(Key)
  854. KEYHOLD = false
  855. end
  856. Mouse.Button1Down:connect(function(NEWKEY)
  857. MouseDown(NEWKEY)
  858. end)
  859. Mouse.Button1Up:connect(function(NEWKEY)
  860. MouseUp(NEWKEY)
  861. end)
  862. Mouse.KeyDown:connect(function(NEWKEY)
  863. KeyDown(NEWKEY)
  864. end)
  865. Mouse.KeyUp:connect(function(NEWKEY)
  866. KeyUp(NEWKEY)
  867. end)
  868. function unanchor()
  869. if UNANCHOR == true then
  870. g = Character:GetChildren()
  871. for i = 1, #g do
  872. if g[i].ClassName == "Part" then
  873. g[i].Anchored = false
  874. end
  875. end
  876. end
  877. end
  878. Humanoid.Changed:connect(function(Jump)
  879. if Jump == "Jump" and Disable_Jump == true then
  880. Humanoid.Jump = false
  881. end
  882. end)
  883. Humanoid.HipHeight = 2
  884. Head:ClearAllChildren()
  885. local FF = IT("ForceField", Character)
  886. FF.Visible = false
  887. Speed = 35
  888. function refit()
  889. RootJoint.Parent = RootPart
  890. Neck.Parent = Torso
  891. RightShoulder.Parent = Torso
  892. LeftShoulder.Parent = Torso
  893. RightHip.Parent = Torso
  894. LeftHip.Parent = Torso
  895. RootPart.Parent = Character
  896. LeftArm.Parent = Character
  897. RightArm.Parent = Character
  898. RightLeg.Parent = Character
  899. LeftLeg.Parent = Character
  900. Torso.Parent = Character
  901. Head.Parent = Character
  902. end
  903. local FOUNDFORGOTTEN = false
  904. while true do
  905. Swait()
  906. ANIMATE.Parent = nil
  907. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  908. IDLEANIMATION:Play()
  909. SINE = SINE + CHANGE
  910. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  911. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  912. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  913. local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character)
  914. if ATTACK == false then
  915. if TORSOVELOCITY < 1 then
  916. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  917. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  918. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  919. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  920. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  921. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  922. elseif TORSOVELOCITY > 1 then
  923. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  924. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  925. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  926. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  927. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  928. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  929. end
  930. end
  931. Slice("Round", 0, 15, CF(Torso.Position + VT(0, MRANDOM(-2, 2), 0)) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Pearl", VT(0.01, 0, 0.01) * MRANDOM(2, 3))
  932. unanchor()
  933. Humanoid.MaxHealth = "inf"
  934. Humanoid.Health = "inf"
  935. if Rooted == false then
  936. Disable_Jump = false
  937. Humanoid.WalkSpeed = Speed
  938. elseif Rooted == true then
  939. Disable_Jump = true
  940. Humanoid.WalkSpeed = 0
  941. end
  942. for _, c in pairs(Character:GetChildren()) do
  943. if c.ClassName == "Part" then
  944. c.Material = "Neon"
  945. if c:FindFirstChildOfClass("ParticleEmitter") then
  946. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  947. end
  948. if c == Torso then
  949. c.Color = BRICKC("Steel blue").Color
  950. elseif c == RightArm then
  951. c.Color = C3(0.5, 0.5, 1)
  952. elseif c == LeftArm then
  953. c.Color = C3(0.5, 0.5, 1)
  954. elseif c == RightLeg then
  955. c.Color = BRICKC("Storm blue").Color
  956. elseif c == LeftLeg then
  957. c.Color = BRICKC("Storm blue").Color
  958. elseif c == Head then
  959. if c:FindFirstChild("Dominus") == nil then
  960. local M = CreateMesh("SpecialMesh", c, "FileMesh", "21057410", "48544900", VT(1, 1, 1) * 1.1, VT(0, 0, 0))
  961. M.Name = "Dominus"
  962. end
  963. if c:FindFirstChild("face") then
  964. c.face:remove()
  965. end
  966. end
  967. elseif c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  968. c:remove()
  969. end
  970. end
  971. FF.Parent = Character
  972. sick.Parent = Character
  973. refit()
  974. script.Parent = WEAPONGUI
  975. Character.Parent = workspace
  976. Humanoid.PlatformStand = false
  977. Humanoid.Name = "Frigidus"
  978. for _, c in pairs(game.Players:GetChildren()) do
  979. if c.Character ~= nil and c.Character.Parent ~= workspace and c.Character.Parent ~= nil then
  980. c.Character:BreakJoints()
  981. end
  982. end
  983. FOUNDFORGOTTEN = false
  984. Humanoid.DisplayDistanceType = "None"
  985. for _, c in pairs(workspace:GetChildren()) do
  986. if c.ClassName == "Model" then
  987. for _, q in pairs(c:GetChildren()) do
  988. if q.Name == "Forgotten Dominus" then
  989. FOUNDFORGOTTEN = true
  990. end
  991. end
  992. end
  993. end
  994. if FOUNDFORGOTTEN == true then
  995. sick:Stop()
  996. else
  997. sick.Playing = true
  998. end
  999. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement