Advertisement
ItzInfern

dominus praefectus

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