Advertisement
wamandnj

Untitled

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