PiterMosskva_TV

dominus

Jan 26th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.82 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. -- Synapse Decompiler
  88. -- Purchase Here: https://brack4712.xyz/synapse/purchase/
  89.  
  90. wait(0.2)
  91. Player = owner
  92. PlayerGui = Player.PlayerGui
  93. Cam = workspace.CurrentCamera
  94. Backpack = Player.Backpack
  95. Character = Player.Character
  96. Humanoid = Character.Humanoid
  97. RootPart = Character.HumanoidRootPart
  98. Torso = Character.Torso
  99. Head = Character.Head
  100. RightArm = Character["Right Arm"]
  101. LeftArm = Character["Left Arm"]
  102. RightLeg = Character["Right Leg"]
  103. LeftLeg = Character["Left Leg"]
  104. RootJoint = RootPart.RootJoint
  105. Neck = Torso.Neck
  106. RightShoulder = Torso["Right Shoulder"]
  107. LeftShoulder = Torso["Left Shoulder"]
  108. RightHip = Torso["Right Hip"]
  109. LeftHip = Torso["Left Hip"]
  110. local sick = Instance.new("Sound", Character)
  111. sick.SoundId = "rbxassetid://859912308"
  112. sick.Looped = true
  113. sick.Pitch = 1
  114. sick.Volume = 1
  115. sick:Play()
  116. IT = Instance.new
  117. CF = CFrame.new
  118. VT = Vector3.new
  119. RAD = math.rad
  120. C3 = Color3.new
  121. UD2 = UDim2.new
  122. BRICKC = BrickColor.new
  123. ANGLES = CFrame.Angles
  124. EULER = CFrame.fromEulerAnglesXYZ
  125. COS = math.cos
  126. ACOS = math.acos
  127. SIN = math.sin
  128. ASIN = math.asin
  129. ABS = math.abs
  130. MRANDOM = math.random
  131. FLOOR = math.floor
  132. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  133. local NEWMESH = IT(MESH)
  134. if MESH == "SpecialMesh" then
  135. NEWMESH.MeshType = MESHTYPE
  136. if MESHID ~= "nil" and MESHID ~= "" then
  137. NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID
  138. end
  139. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  140. NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID
  141. end
  142. end
  143. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  144. NEWMESH.Scale = SCALE
  145. NEWMESH.Parent = PARENT
  146. return NEWMESH
  147. end
  148. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  149. local NEWPART = IT("Part")
  150. NEWPART.formFactor = FORMFACTOR
  151. NEWPART.Reflectance = REFLECTANCE
  152. NEWPART.Transparency = TRANSPARENCY
  153. NEWPART.CanCollide = false
  154. NEWPART.Locked = true
  155. NEWPART.Anchored = true
  156. if ANCHOR == false then
  157. NEWPART.Anchored = false
  158. end
  159. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  160. NEWPART.Name = NAME
  161. NEWPART.Size = SIZE
  162. NEWPART.Position = Torso.Position
  163. NEWPART.Material = MATERIAL
  164. NEWPART:BreakJoints()
  165. NEWPART.Parent = PARENT
  166. return NEWPART
  167. end
  168. Player_Size = 1
  169. Animation_Speed = 3
  170. Frame_Speed = 0.016666666666666666
  171. local Speed = 16
  172. local Effects2 = {}
  173. local weldBetween = function(a, b)
  174. local weldd = Instance.new("ManualWeld")
  175. weldd.Part0 = a
  176. weldd.Part1 = b
  177. weldd.C0 = CFrame.new()
  178. weldd.C1 = b.CFrame:inverse() * a.CFrame
  179. weldd.Parent = a
  180. return weldd
  181. end
  182. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  183. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  184. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  185. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  186. local CHANGEDEFENSE = 0
  187. local CHANGEDAMAGE = 0
  188. local CHANGEMOVEMENT = 0
  189. local ANIM = "Idle"
  190. local ATTACK = false
  191. local EQUIPPED = false
  192. local HOLD = false
  193. local COMBO = 1
  194. local Rooted = false
  195. local SINE = 0
  196. local KEYHOLD = false
  197. local CHANGE = 2 / Animation_Speed
  198. local WALKINGANIM = false
  199. local WALK = 0
  200. local VALUE1 = false
  201. local VALUE2 = false
  202. local ROBLOXIDLEANIMATION = IT("Animation")
  203. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  204. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  205. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  206. WEAPONGUI.Name = "Weapon GUI"
  207. local Effects = IT("Folder", Character)
  208. Effects.Name = "Effects"
  209. local ANIMATOR = Humanoid.Animator
  210. local ANIMATE = Character.Animate
  211. local HITPLAYERSOUNDS = {
  212. "263032172",
  213. "263032182",
  214. "263032200",
  215. "263032221",
  216. "263032252",
  217. "263033191"
  218. }
  219. local HITARMORSOUNDS = {
  220. "199149321",
  221. "199149338",
  222. "199149367",
  223. "199149409",
  224. "199149452"
  225. }
  226. local HITWEAPONSOUNDS = {
  227. "199148971",
  228. "199149025",
  229. "199149072",
  230. "199149109",
  231. "199149119"
  232. }
  233. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  234. local UNANCHOR = true
  235. local SKILLTEXTCOLOR = C3(0.0196078431372549, 0.09803921568627451, 0.0196078431372549)
  236. ArtificialHB = Instance.new("BindableEvent", script)
  237. ArtificialHB.Name = "ArtificialHB"
  238. script:WaitForChild("ArtificialHB")
  239. frame = Frame_Speed
  240. tf = 0
  241. allowframeloss = false
  242. tossremainder = false
  243. lastframe = tick()
  244. script.ArtificialHB:Fire()
  245. game:GetService("RunService").Heartbeat:connect(function(s, p)
  246. tf = tf + s
  247. if tf >= frame then
  248. if allowframeloss then
  249. script.ArtificialHB:Fire()
  250. lastframe = tick()
  251. else
  252. for i = 1, math.floor(tf / frame) do
  253. script.ArtificialHB:Fire()
  254. end
  255. lastframe = tick()
  256. end
  257. if tossremainder then
  258. tf = 0
  259. else
  260. tf = tf - frame * math.floor(tf / frame)
  261. end
  262. end
  263. end)
  264. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  265. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  266. end
  267. function PositiveAngle(NUMBER)
  268. if NUMBER >= 0 then
  269. NUMBER = 0
  270. end
  271. return NUMBER
  272. end
  273. function NegativeAngle(NUMBER)
  274. if NUMBER <= 0 then
  275. NUMBER = 0
  276. end
  277. return NUMBER
  278. end
  279. function Swait(NUMBER)
  280. if NUMBER == 0 or NUMBER == nil then
  281. ArtificialHB.Event:wait()
  282. else
  283. for i = 1, NUMBER do
  284. ArtificialHB.Event:wait()
  285. end
  286. end
  287. end
  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 m00 < m11 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
  314. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  315. end
  316. end
  317. end
  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. function QuaternionSlerp(a, b, t)
  330. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  331. local startInterp, finishInterp
  332. if cosTheta >= 1.0E-4 then
  333. if 1 - cosTheta > 1.0E-4 then
  334. local theta = ACOS(cosTheta)
  335. local invSinTheta = 1 / SIN(theta)
  336. startInterp = SIN((1 - t) * theta) * invSinTheta
  337. finishInterp = SIN(t * theta) * invSinTheta
  338. else
  339. startInterp = 1 - t
  340. finishInterp = t
  341. end
  342. elseif 1 + cosTheta > 1.0E-4 then
  343. local theta = ACOS(-cosTheta)
  344. local invSinTheta = 1 / SIN(theta)
  345. startInterp = SIN((t - 1) * theta) * invSinTheta
  346. finishInterp = SIN(t * theta) * invSinTheta
  347. else
  348. startInterp = t - 1
  349. finishInterp = t
  350. end
  351. 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
  352. end
  353. function Clerp(a, b, t)
  354. local qa = {
  355. QuaternionFromCFrame(a)
  356. }
  357. local qb = {
  358. QuaternionFromCFrame(b)
  359. }
  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. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  366. local frame = IT("Frame")
  367. frame.BackgroundTransparency = TRANSPARENCY
  368. frame.BorderSizePixel = BORDERSIZEPIXEL
  369. frame.Position = POSITION
  370. frame.Size = SIZE
  371. frame.BackgroundColor3 = COLOR
  372. frame.BorderColor3 = BORDERCOLOR
  373. frame.Name = NAME
  374. frame.Parent = PARENT
  375. return frame
  376. end
  377. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  378. local label = IT("TextLabel")
  379. label.BackgroundTransparency = 1
  380. label.Size = UD2(1, 0, 1, 0)
  381. label.Position = UD2(0, 0, 0, 0)
  382. label.TextColor3 = TEXTCOLOR
  383. label.TextStrokeTransparency = STROKETRANSPARENCY
  384. label.TextTransparency = TRANSPARENCY
  385. label.FontSize = TEXTFONTSIZE
  386. label.Font = TEXTFONT
  387. label.BorderSizePixel = BORDERSIZEPIXEL
  388. label.TextScaled = false
  389. label.Text = TEXT
  390. label.Name = NAME
  391. label.Parent = PARENT
  392. return label
  393. end
  394. function NoOutlines(PART)
  395. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  396. end
  397. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  398. local NEWWELD = IT(TYPE)
  399. NEWWELD.Part0 = PART0
  400. NEWWELD.Part1 = PART1
  401. NEWWELD.C0 = C0
  402. NEWWELD.C1 = C1
  403. NEWWELD.Parent = PARENT
  404. return NEWWELD
  405. end
  406. local S = IT("Sound")
  407. function CreateSound(ID, PARENT, VOLUME, PITCH)
  408. local NEWSOUND
  409. coroutine.resume(coroutine.create(function()
  410. NEWSOUND = S:Clone()
  411. NEWSOUND.Parent = PARENT
  412. NEWSOUND.Volume = VOLUME
  413. NEWSOUND.Pitch = PITCH
  414. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
  415. Swait()
  416. NEWSOUND:play()
  417. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  418. end))
  419. return NEWSOUND
  420. end
  421. function CFrameFromTopBack(at, top, back)
  422. local right = top:Cross(back)
  423. 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)
  424. end
  425. function CreateWave(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  426. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  427. wave.Color = COLOR
  428. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
  429. wave.CFrame = CFRAME
  430. coroutine.resume(coroutine.create(function(PART)
  431. for i = 1, WAIT do
  432. Swait()
  433. mesh.Scale = mesh.Scale + GROW
  434. mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  435. if DOESROT == true then
  436. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  437. end
  438. wave.Transparency = wave.Transparency + 0.5 / WAIT
  439. if wave.Transparency > 0.99 then
  440. wave:remove()
  441. end
  442. end
  443. end))
  444. end
  445. function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW)
  446. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  447. wave.Color = COLOR
  448. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0, 0, 0))
  449. wave.CFrame = CFRAME
  450. coroutine.resume(coroutine.create(function(PART)
  451. for i = 1, WAIT do
  452. Swait()
  453. mesh.Scale = mesh.Scale + GROW
  454. wave.Transparency = wave.Transparency + 1 / WAIT
  455. if wave.Transparency > 0.99 then
  456. wave:remove()
  457. end
  458. end
  459. end))
  460. end
  461. function Slice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW)
  462. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  463. local mesh
  464. if KIND == "Base" then
  465. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0))
  466. elseif KIND == "Thin" then
  467. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
  468. elseif KIND == "Round" then
  469. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
  470. end
  471. wave.CFrame = CFRAME
  472. coroutine.resume(coroutine.create(function(PART)
  473. for i = 1, WAIT do
  474. Swait()
  475. mesh.Scale = mesh.Scale + GROW / 10
  476. wave.Transparency = wave.Transparency + 0.5 / WAIT
  477. if wave.Transparency > 0.99 then
  478. wave:remove()
  479. end
  480. end
  481. end))
  482. end
  483. function MakeForm(PART, TYPE)
  484. if TYPE == "Cyl" then
  485. local MSH = IT("CylinderMesh", PART)
  486. elseif TYPE == "Ball" then
  487. local MSH = IT("SpecialMesh", PART)
  488. MSH.MeshType = "Sphere"
  489. elseif TYPE == "Wedge" then
  490. local MSH = IT("SpecialMesh", PART)
  491. MSH.MeshType = "Wedge"
  492. end
  493. end
  494. function CheckTableForString(Table, String)
  495. for i, v in pairs(Table) do
  496. if string.find(string.lower(String), string.lower(v)) then
  497. return true
  498. end
  499. end
  500. return false
  501. end
  502. function CheckIntangible(Hit)
  503. local ProjectileNames = {
  504. "Water",
  505. "Arrow",
  506. "Projectile",
  507. "Effect",
  508. "Rail",
  509. "Lightning",
  510. "Bullet"
  511. }
  512. if Hit and Hit.Parent and (not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid") then
  513. return true
  514. end
  515. return false
  516. end
  517. Debris = game:GetService("Debris")
  518. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  519. local Direction = CFrame.new(StartPos, Vec).lookVector
  520. local Ignore = type(Ignore) == "table" and Ignore or {Ignore}
  521. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  522. if RayHit and CheckIntangible(RayHit) then
  523. if DelayIfHit then
  524. wait()
  525. end
  526. RayHit, RayPos, RayNormal = CastZapRay(RayPos + Vec * 0.01, Vec, Length - (StartPos - RayPos).magnitude, Ignore, DelayIfHit)
  527. end
  528. return RayHit, RayPos, RayNormal
  529. end
  530. function FireArc(Part, ToLocation, AmountOfTime, Height, DoesCourontine)
  531. if DoesCourontine == false then
  532. local Direction = CF(Part.Position, ToLocation)
  533. local Distance = (Part.Position - ToLocation).magnitude
  534. for i = 1, AmountOfTime do
  535. Swait()
  536. Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime)
  537. Direction = Part.CFrame
  538. end
  539. Part:remove()
  540. elseif DoesCourontine == true then
  541. coroutine.resume(coroutine.create(function()
  542. local Direction = CF(Part.Position, ToLocation)
  543. local Distance = (Part.Position - ToLocation).magnitude
  544. for i = 1, AmountOfTime do
  545. Swait()
  546. Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime)
  547. Direction = Part.CFrame
  548. end
  549. Part:remove()
  550. end))
  551. end
  552. end
  553. function turnto(position)
  554. RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0)
  555. end
  556. local naeeym2 = Instance.new("BillboardGui", Character)
  557. naeeym2.AlwaysOnTop = true
  558. naeeym2.Size = UDim2.new(5, 35, 2, 15)
  559. naeeym2.StudsOffset = Vector3.new(0, 3, 0)
  560. naeeym2.Adornee = Character.Head
  561. naeeym2.Name = "Name"
  562. naeeym2.PlayerToHideFrom = Player
  563. local tecks2 = Instance.new("TextLabel", naeeym2)
  564. tecks2.BackgroundTransparency = 1
  565. tecks2.TextScaled = true
  566. tecks2.BorderSizePixel = 0
  567. tecks2.Text = "Dominus Praefectus"
  568. tecks2.Font = "Fantasy"
  569. tecks2.TextSize = 30
  570. tecks2.TextStrokeTransparency = 0
  571. tecks2.TextColor3 = SKILLTEXTCOLOR
  572. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  573. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  574. tecks2.Parent = naeeym2
  575. function Transparency(TRANS)
  576. tecks2.TextTransparency = TRANS
  577. tecks2.TextStrokeTransparency = TRANS
  578. for _, c in pairs(Character:GetChildren()) do
  579. if c.ClassName == "Part" and c ~= RootPart then
  580. c.Transparency = TRANS
  581. if c:FindFirstChildOfClass("Decal") then
  582. c:FindFirstChildOfClass("Decal").Transparency = TRANS
  583. end
  584. elseif c.ClassName == "Accessory" then
  585. c.Handle.Transparency = TRANS
  586. elseif c.ClassName == "Model" then
  587. for _, q in pairs(c:GetChildren()) do
  588. if q.ClassName == "Part" then
  589. q.Transparency = TRANS
  590. if q:FindFirstChildOfClass("Decal") then
  591. q:FindFirstChildOfClass("Decal").Transparency = TRANS
  592. end
  593. end
  594. end
  595. end
  596. end
  597. end
  598. Humanoid.Died:connect(function()
  599. Humanoid.Parent = nil
  600. Humanoid.MaxHealth = "inf"
  601. Humanoid.Health = "inf"
  602. refit()
  603. Humanoid.Parent = Character
  604. CreateSound("907330011", Head, 10, 1)
  605. end)
  606. 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")
  607. 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")
  608. 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")
  609. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Governor Bomb", SKILLTEXTCOLOR, 7, "Fantasy", 0, 2, 0, "Text 1")
  610. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Command Rush", SKILLTEXTCOLOR, 7, "Fantasy", 0, 2, 0, "Text 2")
  611. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ruler", SKILLTEXTCOLOR, 12, "Antique", 0, 2, 0, "Text 3")
  612. 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")
  613. local SKILLETEXT = CreateLabel(SKILLEFRAME, "[Q] Monarch Hop", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0, "Text Warp")
  614. function killnearest(position, range, maxstrength)
  615. for i, v in ipairs(workspace:GetChildren()) do
  616. local body = v:GetChildren()
  617. for part = 1, #body do
  618. if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude then
  619. if v.ClassName == "Model" then
  620. v:BreakJoints()
  621. end
  622. local bv = Instance.new("BodyVelocity")
  623. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  624. bv.velocity = CF(position, body[part].Position).lookVector * maxstrength
  625. bv.Parent = body[part]
  626. Debris:AddItem(bv, 0.2)
  627. end
  628. end
  629. if v.ClassName == "Part" and v.Anchored == false and range > (v.Position - position).Magnitude then
  630. v.Velocity = CFrame.new(position, v.Position).lookVector * 5 * maxstrength
  631. end
  632. end
  633. end
  634. function Governor_Bomb()
  635. local CENTER = CreatePart(3, Effects, "SmoothPlastic", 0, 1, SKILLTEXTCOLOR, "CenterPart", VT(0, 0, 0))
  636. local RAY = CreatePart(3, Effects, "Neon", 0, 1, SKILLTEXTCOLOR, "Laser01", VT(25, 25, 25))
  637. RAY.Color = SKILLTEXTCOLOR
  638. MakeForm(RAY, "Ball")
  639. local ECH = Mouse.Hit.p
  640. CENTER.CFrame = CF(Mouse.Hit.p)
  641. RAY.CFrame = CENTER.CFrame
  642. CreateSound("814168787", CENTER, 10, 0.6)
  643. for i = 1, 80 do
  644. Swait()
  645. RAY.Size = RAY.Size * 0.98
  646. RAY.Transparency = RAY.Transparency - 0.016666666666666666
  647. end
  648. killnearest(ECH, 25, 250)
  649. MagicSphere(VT(1, 1, 1), 55, CF(ECH), SKILLTEXTCOLOR, VT(2, 2, 2))
  650. MagicSphere(VT(0, 0, 0), 45, CF(ECH), C3(0, 0, 0), VT(2, 2, 2))
  651. CreateSound("314970790", CENTER, 10, 1)
  652. Debris:AddItem(CENTER, 5)
  653. RAY:remove()
  654. end
  655. function Command_Rush()
  656. ATTACK = true
  657. Rooted = false
  658. for i = 0, 1, 0.1 / Animation_Speed do
  659. Swait()
  660. 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(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  661. 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)
  662. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(25 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  663. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-25 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  664. 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)
  665. 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)
  666. end
  667. Rooted = true
  668. local GYRO = IT("BodyGyro", RootPart)
  669. GYRO.D = 100
  670. GYRO.P = 2000
  671. GYRO.MaxTorque = VT(0, 4000000, 0)
  672. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  673. for i = 1, 15 do
  674. for i = 1, 15 do
  675. Swait()
  676. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  677. 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(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  678. 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)
  679. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(25 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  680. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-25 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  681. 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)
  682. 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)
  683. end
  684. coroutine.resume(coroutine.create(function()
  685. local EYE = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Eyeball", VT(0, 0, 0))
  686. CreateSound("814168787", EYE, 10, 1)
  687. EYE.CFrame = RootPart.CFrame * CF(MRANDOM(-15, 15), MRANDOM(8, 20), MRANDOM(-15, 15))
  688. local M = CreateMesh("SpecialMesh", EYE, "FileMesh", "82326541", "82327419", VT(0, 0, 0), VT(0, 0, 0))
  689. MagicSphere(VT(0, 0, 0), 15, CF(EYE.Position), SKILLTEXTCOLOR, VT(1, 1, 1))
  690. local ATTACKI = false
  691. local TORS
  692. for i = 1, 10 do
  693. Swait()
  694. M.Scale = M.Scale + VT(0.1, 0.1, 0.1) * 3
  695. EYE.CFrame = EYE.CFrame * CF(0, 0, -0.5)
  696. end
  697. for i = 1, 100 do
  698. Swait()
  699. for _, c in pairs(workspace:GetChildren()) do
  700. if c.ClassName == "Model" and c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
  701. local HUMANOID = c:FindFirstChildOfClass("Humanoid")
  702. if 0 < HUMANOID.Health then
  703. local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
  704. if (TORSO.Position - EYE.Position).Magnitude < 35 then
  705. ATTACKI = true
  706. TORS = TORSO
  707. end
  708. end
  709. end
  710. end
  711. if ATTACKI == true then
  712. break
  713. end
  714. EYE.CFrame = EYE.CFrame * CF(0, 0, -1)
  715. end
  716. if ATTACKI == false then
  717. for i = 1, 10 do
  718. Swait()
  719. M.Scale = M.Scale - VT(0.1, 0.1, 0.1) * 3
  720. EYE.CFrame = EYE.CFrame * CF(0, 0, -0.5)
  721. end
  722. else
  723. if TORS ~= nil then
  724. CreateSound("215395388", EYE, 10, 2)
  725. local DIST = (TORS.Position - EYE.Position).Magnitude
  726. MagicSphere(VT(0, 0, 0), 15, CF(EYE.Position), SKILLTEXTCOLOR, VT(1, 1, 1))
  727. MagicSphere(VT(1, 1, DIST), 15, CF(EYE.Position, TORS.Position) * CF(0, 0, -DIST / 2), SKILLTEXTCOLOR, VT(0, 0, 0))
  728. MagicSphere(VT(0, 0, 0), 15, CF(TORS.Position), SKILLTEXTCOLOR, VT(1, 1, 1))
  729. EYE.CFrame = CF(EYE.Position, TORS.Position)
  730. TORS.Parent:BreakJoints()
  731. Swait(35)
  732. end
  733. for i = 1, 10 do
  734. Swait()
  735. M.Scale = M.Scale - VT(0.1, 0.1, 0.1) * 3
  736. end
  737. end
  738. EYE:remove()
  739. end))
  740. end
  741. GYRO:remove()
  742. ATTACK = false
  743. Rooted = false
  744. end
  745. function Ruler()
  746. local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character)
  747. if HITFLOOR ~= nil then
  748. do
  749. local HITBODIES = {}
  750. ATTACK = true
  751. Rooted = true
  752. local ABSOLUTE = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "SuperNova", VT(0, 0, 0))
  753. ABSOLUTE.Color = SKILLTEXTCOLOR
  754. MakeForm(ABSOLUTE, "Ball")
  755. CreateSound("814168787", ABSOLUTE, 10, 0.3)
  756. for i = 0, 4, 0.1 / Animation_Speed do
  757. Swait()
  758. ABSOLUTE.Size = ABSOLUTE.Size + VT(0.2, 0.2, 0.2)
  759. ABSOLUTE.CFrame = RootPart.CFrame * CF(0, 5 + ABSOLUTE.Size.Y / 2, 0)
  760. ABSOLUTE.Transparency = ABSOLUTE.Transparency - 0.01
  761. local CHARGE = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Star", VT(1, 1, 1))
  762. MakeForm(CHARGE, "Ball")
  763. CHARGE.Color = C3(0, 0, 0)
  764. CHARGE.CFrame = CF(RootPart.Position) * CF(MRANDOM(-15, 15), -6, MRANDOM(-15, 15))
  765. FireArc(CHARGE, ABSOLUTE.Position, 45, 45, true)
  766. 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)
  767. 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)
  768. 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)
  769. 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)
  770. 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)
  771. 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)
  772. end
  773. CreateSound("907333406", Head, 10, 1)
  774. for i = 0, 2, 0.1 / Animation_Speed do
  775. Swait()
  776. 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)
  777. 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)
  778. 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)
  779. 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)
  780. 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)
  781. 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)
  782. end
  783. coroutine.resume(coroutine.create(function()
  784. local PITS = {}
  785. CreateSound("178452217", ABSOLUTE, 10, 0.7)
  786. for i = 1, 6 do
  787. for i = 1, 10 do
  788. Swait()
  789. Slice("Thin", ABSOLUTE.Size.X / 20, 15, ABSOLUTE.CFrame * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), "Really black", VT(-0.01, 0, -0.01))
  790. ABSOLUTE.Size = ABSOLUTE.Size * 0.9
  791. end
  792. for i = 1, 10 do
  793. Swait()
  794. ABSOLUTE.Size = ABSOLUTE.Size * 1.12
  795. end
  796. end
  797. CreateSound("215395388", ABSOLUTE, 10, 0.6)
  798. CreateSound("215395388", ABSOLUTE, 10, 0.65)
  799. CreateSound("215395388", ABSOLUTE, 10, 0.7)
  800. for i = 1, 75 do
  801. Swait()
  802. local ICICLE = IT("CornerWedgePart", Effects)
  803. ICICLE.Locked = true
  804. ICICLE.CanCollide = false
  805. ICICLE.Anchored = true
  806. ICICLE.Color = C3(0, 0, 0)
  807. ICICLE.Material = "Neon"
  808. ICICLE.Size = VT(i / 3, i * 2, i / 3)
  809. ICICLE.CFrame = CF(HITPOS) * CF(MRANDOM(-ABSOLUTE.Size.X, ABSOLUTE.Size.X), 0, MRANDOM(-ABSOLUTE.Size.X / 1.5, ABSOLUTE.Size.X / 1.5)) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-25, 25)))
  810. table.insert(PITS, ICICLE)
  811. killnearest(ICICLE.Position, ICICLE.Size.Y / 1.5, -100)
  812. ABSOLUTE.Size = ABSOLUTE.Size * 1.03
  813. killnearest(ABSOLUTE.Position, ABSOLUTE.Size.X / 1.9, -100)
  814. for i = 1, 3 do
  815. Slice("Thin", ABSOLUTE.Size.X / 20, 5, ABSOLUTE.CFrame * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), "Really black", VT(-0.01, 0, -0.01))
  816. end
  817. CreateWave(VT(ABSOLUTE.Size.X / 1.5, 35, ABSOLUTE.Size.X / 1.5), 25, CF(HITPOS) * ANGLES(RAD(0), RAD(i * 5), RAD(0)), false, 0, C3(0, 0, 0), VT(i / 3, 0, i / 3))
  818. end
  819. ABSOLUTE.Transparency = 0
  820. for i = 1, 10 do
  821. Swait()
  822. ABSOLUTE.Size = ABSOLUTE.Size * 0.9
  823. ABSOLUTE.Transparency = ABSOLUTE.Transparency + 0.1
  824. end
  825. Debris:AddItem(ABSOLUTE, 5)
  826. Swait(50)
  827. for i = 1, 10 do
  828. Swait()
  829. for e = 1, #PITS do
  830. if PITS[e] ~= nil then
  831. local E = PITS[e]
  832. E.Transparency = E.Transparency + 0.1
  833. end
  834. end
  835. end
  836. for e = 1, #PITS do
  837. if PITS[e] ~= nil then
  838. local E = PITS[e]
  839. E:remove()
  840. end
  841. end
  842. end))
  843. ATTACK = false
  844. Rooted = false
  845. end
  846. end
  847. end
  848. local Decal = IT("Decal")
  849. function Monarch_Hop()
  850. ATTACK = true
  851. Rooted = false
  852. local O1 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0, 0, 0))
  853. O1.CFrame = RootPart.CFrame * CF(0, 0, -3) * ANGLES(RAD(90), RAD(0), RAD(0))
  854. local decal = Decal:Clone()
  855. decal.Parent = O1
  856. decal.Face = "Top"
  857. decal.Texture = "http://www.roblox.com/asset/?id=332014171"
  858. local decal2 = Decal:Clone()
  859. decal2.Parent = O1
  860. decal2.Face = "Bottom"
  861. decal2.Texture = "http://www.roblox.com/asset/?id=332014171"
  862. local O2 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0, 0, 0))
  863. local POS = VT(RootPart.Position.X, Mouse.Hit.p.Y + 6, RootPart.Position.Z)
  864. O2.CFrame = CF(Mouse.Hit.p + VT(0, 6, 0), POS) * ANGLES(RAD(90), RAD(0), RAD(0))
  865. local ROOT = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0, 0, 0))
  866. ROOT.CFrame = CF(O2.Position, RootPart.Position)
  867. local decal = Decal:Clone()
  868. decal.Parent = O2
  869. decal.Face = "Top"
  870. decal.Texture = "http://www.roblox.com/asset/?id=332014171"
  871. local decal2 = Decal:Clone()
  872. decal2.Parent = O2
  873. decal2.Face = "Bottom"
  874. decal2.Texture = "http://www.roblox.com/asset/?id=332014171"
  875. CreateSound("84005018", O1, 10, 0.7)
  876. CreateSound("84005018", O2, 10, 0.7)
  877. for i = 1, 75 do
  878. Swait()
  879. O1.Size = O1.Size + VT(0.1, 0, 0.1)
  880. O1.CFrame = RootPart.CFrame * CF(0, 0, -3) * ANGLES(RAD(90), RAD(i), RAD(0))
  881. O2.Size = O2.Size + VT(0.1, 0, 0.1)
  882. O2.CFrame = O2.CFrame * ANGLES(RAD(0), RAD(i), RAD(0))
  883. 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)
  884. 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)
  885. 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)
  886. 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)
  887. 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)
  888. 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)
  889. end
  890. Rooted = true
  891. UNANCHOR = false
  892. RootPart.Anchored = true
  893. VALUE1 = true
  894. for i = 1, 15 do
  895. Transparency(i / 15)
  896. Swait()
  897. RootPart.CFrame = RootPart.CFrame * CF(0, 0, -0.13)
  898. 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)
  899. 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)
  900. 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)
  901. 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)
  902. 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)
  903. 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)
  904. end
  905. RootPart.CFrame = ROOT.CFrame
  906. ROOT:remove()
  907. for i = 1, 15 do
  908. Transparency(1 - i / 15)
  909. Swait()
  910. RootPart.CFrame = RootPart.CFrame * CF(0, 0, -0.5)
  911. 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)
  912. 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)
  913. 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)
  914. 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)
  915. 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)
  916. 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)
  917. end
  918. VALUE1 = false
  919. coroutine.resume(coroutine.create(function()
  920. for i = 1, 75 do
  921. Swait()
  922. O1.Size = O1.Size - VT(0.1, 0, 0.1)
  923. O1.CFrame = O1.CFrame * ANGLES(RAD(0), RAD(i), RAD(0))
  924. O2.Size = O2.Size - VT(0.1, 0, 0.1)
  925. O2.CFrame = O2.CFrame * ANGLES(RAD(0), RAD(i), RAD(0))
  926. end
  927. O1:remove()
  928. O2:remove()
  929. end))
  930. UNANCHOR = true
  931. RootPart.Anchored = false
  932. ATTACK = false
  933. Rooted = false
  934. end
  935. function Roar()
  936. ATTACK = true
  937. Rooted = true
  938. local ROAR = CreateSound("131172215", Head, 10, 1)
  939. Swait()
  940. repeat
  941. Swait()
  942. ROAR.Parent = Head
  943. 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)
  944. 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)
  945. 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)
  946. 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)
  947. 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)
  948. 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)
  949. until ROAR.Playing == false
  950. ATTACK = false
  951. Rooted = false
  952. end
  953. function MouseDown(Mouse)
  954. if ATTACK == false then
  955. end
  956. end
  957. function MouseUp(Mouse)
  958. HOLD = false
  959. end
  960. function KeyDown(Key)
  961. KEYHOLD = true
  962. if Key == "z" and ATTACK == false then
  963. Governor_Bomb()
  964. end
  965. if Key == "b" and ATTACK == false then
  966. Command_Rush()
  967. end
  968. if Key == "c" and ATTACK == false then
  969. Ruler()
  970. end
  971. if Key == "q" and ATTACK == false then
  972. Monarch_Hop()
  973. end
  974. if Key == "t" and ATTACK == false then
  975. Roar()
  976. end
  977. end
  978. function KeyUp(Key)
  979. KEYHOLD = false
  980. end
  981. Mouse.Button1Down:connect(function(NEWKEY)
  982. MouseDown(NEWKEY)
  983. end)
  984. Mouse.Button1Up:connect(function(NEWKEY)
  985. MouseUp(NEWKEY)
  986. end)
  987. Mouse.KeyDown:connect(function(NEWKEY)
  988. KeyDown(NEWKEY)
  989. end)
  990. Mouse.KeyUp:connect(function(NEWKEY)
  991. KeyUp(NEWKEY)
  992. end)
  993. function unanchor()
  994. if UNANCHOR == true then
  995. g = Character:GetChildren()
  996. for i = 1, #g do
  997. if g[i].ClassName == "Part" then
  998. g[i].Anchored = false
  999. end
  1000. end
  1001. end
  1002. end
  1003. Humanoid.Changed:connect(function(Jump)
  1004. if Jump == "Jump" and Disable_Jump == true then
  1005. Humanoid.Jump = false
  1006. end
  1007. end)
  1008. Humanoid.HipHeight = 2
  1009. Head:ClearAllChildren()
  1010. local FF = IT("ForceField", Character)
  1011. FF.Visible = false
  1012. Speed = 35
  1013. function refit()
  1014. RootJoint.Parent = RootPart
  1015. Neck.Parent = Torso
  1016. RightShoulder.Parent = Torso
  1017. LeftShoulder.Parent = Torso
  1018. RightHip.Parent = Torso
  1019. LeftHip.Parent = Torso
  1020. RootPart.Parent = Character
  1021. LeftArm.Parent = Character
  1022. RightArm.Parent = Character
  1023. RightLeg.Parent = Character
  1024. LeftLeg.Parent = Character
  1025. Torso.Parent = Character
  1026. Head.Parent = Character
  1027. end
  1028. local FOUNDFORGOTTEN = false
  1029. while true do
  1030. Swait()
  1031. ANIMATE.Parent = nil
  1032. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1033. IDLEANIMATION:Play()
  1034. SINE = SINE + CHANGE
  1035. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1036. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1037. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1038. local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character)
  1039. if ATTACK == false then
  1040. if TORSOVELOCITY < 1 then
  1041. 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)
  1042. 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)
  1043. 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)
  1044. 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)
  1045. 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)
  1046. 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)
  1047. elseif TORSOVELOCITY > 1 then
  1048. 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)
  1049. 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)
  1050. 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)
  1051. 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)
  1052. 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)
  1053. 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)
  1054. end
  1055. end
  1056. unanchor()
  1057. Humanoid.MaxHealth = "inf"
  1058. Humanoid.Health = "inf"
  1059. if Rooted == false then
  1060. Disable_Jump = false
  1061. Humanoid.WalkSpeed = Speed
  1062. elseif Rooted == true then
  1063. Disable_Jump = true
  1064. Humanoid.WalkSpeed = 0
  1065. end
  1066. for _, c in pairs(Character:GetChildren()) do
  1067. if c.ClassName == "Part" then
  1068. c.Material = "Neon"
  1069. if c:FindFirstChildOfClass("ParticleEmitter") then
  1070. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1071. end
  1072. if c == Torso then
  1073. c.Color = C3(0, 0, 0)
  1074. elseif c == RightArm then
  1075. c.Color = C3(0, 0.13, 0)
  1076. elseif c == LeftArm then
  1077. c.Color = C3(0, 0.13, 0)
  1078. elseif c == RightLeg then
  1079. c.Color = C3(0, 0.03, 0)
  1080. elseif c == LeftLeg then
  1081. c.Color = C3(0, 0.03, 0)
  1082. elseif c == Head then
  1083. if c:FindFirstChild("Dominus") == nil then
  1084. local M = CreateMesh("SpecialMesh", c, "FileMesh", "527245069", "527244862", VT(1, 1, 1) * 1.1, VT(0, 0, 0))
  1085. M.Name = "Dominus"
  1086. end
  1087. if c:FindFirstChild("face") then
  1088. c.face:remove()
  1089. end
  1090. end
  1091. elseif c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1092. c:remove()
  1093. end
  1094. end
  1095. FF.Parent = Character
  1096. sick.Parent = Character
  1097. refit()
  1098. script.Parent = WEAPONGUI
  1099. Character.Parent = workspace
  1100. Humanoid.PlatformStand = false
  1101. Humanoid.Name = "Praefectus"
  1102. for _, c in pairs(game.Players:GetChildren()) do
  1103. if c.Character ~= nil and c.Character.Parent ~= workspace and c.Character.Parent ~= nil then
  1104. c.Character:BreakJoints()
  1105. end
  1106. end
  1107. FOUNDFORGOTTEN = false
  1108. Humanoid.DisplayDistanceType = "None"
  1109. for _, c in pairs(workspace:GetChildren()) do
  1110. if c.ClassName == "Model" then
  1111. for _, q in pairs(c:GetChildren()) do
  1112. if q.Name == "Forgotten Dominus" then
  1113. FOUNDFORGOTTEN = true
  1114. end
  1115. end
  1116. end
  1117. end
  1118. if FOUNDFORGOTTEN == true then
  1119. sick:Stop()
  1120. else
  1121. sick.Playing = true
  1122. end
  1123. end
Add Comment
Please, Sign In to add comment