13242

Untitled

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