Advertisement
Zebula_The_Scripter

FE Cyber Monarch Edit

Sep 7th, 2018
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.73 KB | None | 0 0
  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. wait(0.2)
  89.  
  90. Player = owner
  91. PlayerGui = Player.PlayerGui
  92. Cam = workspace.CurrentCamera
  93. Backpack = Player.Backpack
  94. Character = Player.Character
  95. Humanoid = Character.Humanoid
  96. RootPart = Character["HumanoidRootPart"]
  97. Torso = Character["Torso"]
  98. Head = Character["Head"]
  99. RightArm = Character["Right Arm"]
  100. LeftArm = Character["Left Arm"]
  101. RightLeg = Character["Right Leg"]
  102. LeftLeg = Character["Left Leg"]
  103. RootJoint = RootPart["RootJoint"]
  104. Neck = Torso["Neck"]
  105. RightShoulder = Torso["Right Shoulder"]
  106. LeftShoulder = Torso["Left Shoulder"]
  107. RightHip = Torso["Right Hip"]
  108. LeftHip = Torso["Left Hip"]
  109. local sick = Instance.new("Sound",Character)
  110. sick.SoundId = "rbxassetid://170282324"
  111. sick.Looped = true
  112. sick.Volume = 1
  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. --//=================================\\
  132. --|| USEFUL VALUES
  133. --\\=================================//
  134.  
  135. Animation_Speed = 3
  136. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  137. local Speed = 45
  138. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  139. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  140. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  141. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  142. local DAMAGEMULTIPLIER = 1
  143. local ANIM = "Idle"
  144. local ATTACK = false
  145. local EQUIPPED = false
  146. local HOLD = false
  147. local COMBO = 1
  148. local Rooted = false
  149. local SINE = 0
  150. local KEYHOLD = false
  151. local CHANGE = 2 / Animation_Speed
  152. local WALKINGANIM = false
  153. local VALUE1 = false
  154. local VALUE2 = false
  155. local ROBLOXIDLEANIMATION = IT("Animation")
  156. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  157. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  158. --ROBLOXIDLEANIMATION.Parent = Humanoid
  159. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  160. WEAPONGUI.Name = "Weapon GUI"
  161. local Effects = IT("Folder", Character)
  162. Effects.Name = "Effects"
  163. local ANIMATOR = Humanoid.Animator
  164. local ANIMATE = Character.Animate
  165. local UNANCHOR = true
  166. local HITPOS = nil
  167. local HITFLOOR = nil
  168. local LEFTWINGS = {}
  169. local RIGHTWINGS = {}
  170. local BODY = {}
  171.  
  172. --//=================================\\
  173. --\\=================================//
  174.  
  175.  
  176. --//=================================\\
  177. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  178. --\\=================================//
  179.  
  180. ArtificialHB = Instance.new("BindableEvent", script)
  181. ArtificialHB.Name = "ArtificialHB"
  182.  
  183. script:WaitForChild("ArtificialHB")
  184.  
  185. frame = Frame_Speed
  186. tf = 0
  187. allowframeloss = false
  188. tossremainder = false
  189. lastframe = tick()
  190. script.ArtificialHB:Fire()
  191.  
  192. game:GetService("RunService").Heartbeat:connect(function(s, p)
  193. tf = tf + s
  194. if tf >= frame then
  195. if allowframeloss then
  196. script.ArtificialHB:Fire()
  197. lastframe = tick()
  198. else
  199. for i = 1, math.floor(tf / frame) do
  200. script.ArtificialHB:Fire()
  201. end
  202. lastframe = tick()
  203. end
  204. if tossremainder then
  205. tf = 0
  206. else
  207. tf = tf - frame * math.floor(tf / frame)
  208. end
  209. end
  210. end)
  211.  
  212. --//=================================\\
  213. --\\=================================//
  214.  
  215. --//=================================\\
  216. --|| SOME FUNCTIONS
  217. --\\=================================//
  218.  
  219. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  220. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  221. end
  222.  
  223. function PositiveAngle(NUMBER)
  224. if NUMBER >= 0 then
  225. NUMBER = 0
  226. end
  227. return NUMBER
  228. end
  229.  
  230. function NegativeAngle(NUMBER)
  231. if NUMBER <= 0 then
  232. NUMBER = 0
  233. end
  234. return NUMBER
  235. end
  236.  
  237. function Swait(NUMBER)
  238. if NUMBER == 0 or NUMBER == nil then
  239. ArtificialHB.Event:wait()
  240. else
  241. for i = 1, NUMBER do
  242. ArtificialHB.Event:wait()
  243. end
  244. end
  245. end
  246.  
  247. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  248. local NEWMESH = IT(MESH)
  249. if MESH == "SpecialMesh" then
  250. NEWMESH.MeshType = MESHTYPE
  251. if MESHID ~= "nil" and MESHID ~= "" then
  252. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  253. end
  254. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  255. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  256. end
  257. end
  258. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  259. NEWMESH.Scale = SCALE
  260. NEWMESH.Parent = PARENT
  261. return NEWMESH
  262. end
  263.  
  264. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  265. local NEWPART = IT("Part")
  266. NEWPART.formFactor = FORMFACTOR
  267. NEWPART.Reflectance = REFLECTANCE
  268. NEWPART.Transparency = TRANSPARENCY
  269. NEWPART.CanCollide = false
  270. NEWPART.Locked = true
  271. NEWPART.Anchored = true
  272. if ANCHOR == false then
  273. NEWPART.Anchored = false
  274. end
  275. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  276. NEWPART.Name = NAME
  277. NEWPART.Size = SIZE
  278. NEWPART.Position = Torso.Position
  279. NEWPART.Material = MATERIAL
  280. NEWPART:BreakJoints()
  281. NEWPART.Parent = PARENT
  282. return NEWPART
  283. end
  284.  
  285. local function weldBetween(a, b)
  286. local weldd = Instance.new("ManualWeld")
  287. weldd.Part0 = a
  288. weldd.Part1 = b
  289. weldd.C0 = CFrame.new()
  290. weldd.C1 = b.CFrame:inverse() * a.CFrame
  291. weldd.Parent = a
  292. return weldd
  293. end
  294.  
  295.  
  296. function QuaternionFromCFrame(cf)
  297. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  298. local trace = m00 + m11 + m22
  299. if trace > 0 then
  300. local s = math.sqrt(1 + trace)
  301. local recip = 0.5 / s
  302. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  303. else
  304. local i = 0
  305. if m11 > m00 then
  306. i = 1
  307. end
  308. if m22 > (i == 0 and m00 or m11) then
  309. i = 2
  310. end
  311. if i == 0 then
  312. local s = math.sqrt(m00 - m11 - m22 + 1)
  313. local recip = 0.5 / s
  314. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  315. elseif i == 1 then
  316. local s = math.sqrt(m11 - m22 - m00 + 1)
  317. local recip = 0.5 / s
  318. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  319. elseif i == 2 then
  320. local s = math.sqrt(m22 - m00 - m11 + 1)
  321. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  322. end
  323. end
  324. end
  325.  
  326. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  327. local xs, ys, zs = x + x, y + y, z + z
  328. local wx, wy, wz = w * xs, w * ys, w * zs
  329. local xx = x * xs
  330. local xy = x * ys
  331. local xz = x * zs
  332. local yy = y * ys
  333. local yz = y * zs
  334. local zz = z * zs
  335. 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))
  336. end
  337.  
  338. function QuaternionSlerp(a, b, t)
  339. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  340. local startInterp, finishInterp;
  341. if cosTheta >= 0.0001 then
  342. if (1 - cosTheta) > 0.0001 then
  343. local theta = ACOS(cosTheta)
  344. local invSinTheta = 1 / SIN(theta)
  345. startInterp = SIN((1 - t) * theta) * invSinTheta
  346. finishInterp = SIN(t * theta) * invSinTheta
  347. else
  348. startInterp = 1 - t
  349. finishInterp = t
  350. end
  351. else
  352. if (1 + cosTheta) > 0.0001 then
  353. local theta = ACOS(-cosTheta)
  354. local invSinTheta = 1 / SIN(theta)
  355. startInterp = SIN((t - 1) * theta) * invSinTheta
  356. finishInterp = SIN(t * theta) * invSinTheta
  357. else
  358. startInterp = t - 1
  359. finishInterp = t
  360. end
  361. end
  362. 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
  363. end
  364.  
  365. function Clerp(a, b, t)
  366. local qa = {QuaternionFromCFrame(a)}
  367. local qb = {QuaternionFromCFrame(b)}
  368. local ax, ay, az = a.x, a.y, a.z
  369. local bx, by, bz = b.x, b.y, b.z
  370. local _t = 1 - t
  371. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  372. end
  373.  
  374. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  375. local frame = IT("Frame")
  376. frame.BackgroundTransparency = TRANSPARENCY
  377. frame.BorderSizePixel = BORDERSIZEPIXEL
  378. frame.Position = POSITION
  379. frame.Size = SIZE
  380. frame.BackgroundColor3 = COLOR
  381. frame.BorderColor3 = BORDERCOLOR
  382. frame.Name = NAME
  383. frame.Parent = PARENT
  384. return frame
  385. end
  386.  
  387. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  388. local label = IT("TextLabel")
  389. label.BackgroundTransparency = 1
  390. label.Size = UD2(1, 0, 1, 0)
  391. label.Position = UD2(0, 0, 0, 0)
  392. label.TextColor3 = TEXTCOLOR
  393. label.TextStrokeColor3 = BRICKC"Really red".Color
  394. label.TextStrokeTransparency = STROKETRANSPARENCY
  395. label.TextTransparency = TRANSPARENCY
  396. label.FontSize = TEXTFONTSIZE
  397. label.Font = TEXTFONT
  398. label.BorderSizePixel = BORDERSIZEPIXEL
  399. label.TextScaled = false
  400. label.Text = TEXT
  401. label.Name = NAME
  402. label.Parent = PARENT
  403. return label
  404. end
  405.  
  406. function NoOutlines(PART)
  407. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  408. end
  409.  
  410. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  411. local NEWWELD = IT(TYPE)
  412. NEWWELD.Part0 = PART0
  413. NEWWELD.Part1 = PART1
  414. NEWWELD.C0 = C0
  415. NEWWELD.C1 = C1
  416. NEWWELD.Parent = PARENT
  417. return NEWWELD
  418. end
  419.  
  420. local S = IT("Sound")
  421. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  422. local NEWSOUND = nil
  423. coroutine.resume(coroutine.create(function()
  424. NEWSOUND = S:Clone()
  425. NEWSOUND.Parent = PARENT
  426. NEWSOUND.Volume = VOLUME
  427. NEWSOUND.Pitch = PITCH
  428. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  429. NEWSOUND:play()
  430. NEWSOUND.Name = "Audio"
  431. if DOESLOOP == true then
  432. NEWSOUND.Looped = true
  433. else
  434. repeat Swait() until NEWSOUND.Playing == false
  435. NEWSOUND:remove()
  436. end
  437. end))
  438. return NEWSOUND
  439. end
  440.  
  441. function CFrameFromTopBack(at, top, back)
  442. local right = top:Cross(back)
  443. 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)
  444. end
  445.  
  446. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  447. function WACKYEFFECT(Table)
  448. local TYPE = (Table.EffectType or "Sphere")
  449. local SIZE = (Table.Size or VT(1,1,1))
  450. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  451. local TRANSPARENCY = (Table.Transparency or 0)
  452. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  453. local CFRAME = (Table.CFrame or Torso.CFrame)
  454. local MOVEDIRECTION = (Table.MoveToPos or nil)
  455. local ROTATION1 = (Table.RotationX or 0)
  456. local ROTATION2 = (Table.RotationY or 0)
  457. local ROTATION3 = (Table.RotationZ or 0)
  458. local MATERIAL = (Table.Material or "Neon")
  459. local COLOR = (Table.Color or C3(1,1,1))
  460. local TIME = (Table.Time or 45)
  461. local SOUNDID = (Table.SoundID or nil)
  462. local SOUNDPITCH = (Table.SoundPitch or nil)
  463. local SOUNDVOLUME = (Table.SoundVolume or nil)
  464. coroutine.resume(coroutine.create(function()
  465. local PLAYSSOUND = false
  466. local SOUND = nil
  467. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  468. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  469. PLAYSSOUND = true
  470. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  471. end
  472. EFFECT.Color = COLOR
  473. local MSH = nil
  474. if TYPE == "Sphere" then
  475. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  476. elseif TYPE == "Block" then
  477. MSH = IT("BlockMesh",EFFECT)
  478. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  479. elseif TYPE == "Box" then
  480. MSH = IT("BlockMesh",EFFECT)
  481. MSH.Scale = SIZE
  482. elseif TYPE == "Wave" then
  483. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  484. elseif TYPE == "Ring" then
  485. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  486. elseif TYPE == "Slash" then
  487. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  488. elseif TYPE == "Round Slash" then
  489. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  490. elseif TYPE == "Swirl" then
  491. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  492. elseif TYPE == "Skull" then
  493. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  494. elseif TYPE == "Crystal" then
  495. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  496. end
  497. if MSH ~= nil then
  498. local MOVESPEED = nil
  499. if MOVEDIRECTION ~= nil then
  500. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  501. end
  502. local GROWTH = SIZE - ENDSIZE
  503. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  504. if TYPE == "Block" then
  505. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  506. else
  507. EFFECT.CFrame = CFRAME
  508. end
  509. for LOOP = 1, TIME do
  510. Swait()
  511. MSH.Scale = MSH.Scale - GROWTH/TIME
  512. if TYPE == "Wave" then
  513. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  514. end
  515. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  516. if TYPE == "Block" then
  517. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  518. else
  519. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  520. end
  521. if MOVEDIRECTION ~= nil then
  522. local ORI = EFFECT.Orientation
  523. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  524. EFFECT.Orientation = ORI
  525. end
  526. end
  527. if PLAYSSOUND == false then
  528. EFFECT:remove()
  529. else
  530. repeat Swait() until SOUND.Playing == false
  531. EFFECT:remove()
  532. end
  533. else
  534. if PLAYSSOUND == false then
  535. EFFECT:remove()
  536. else
  537. repeat Swait() until SOUND.Playing == false
  538. EFFECT:remove()
  539. end
  540. end
  541. end))
  542. end
  543.  
  544. function Shatter(Part)
  545. if Part.Transparency == 0 then
  546. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, Part.BrickColor, "OOF", VT(0,0,0))
  547. Debris:AddItem(SOUNDPART,5)
  548. CreateSound("84005018", SOUNDPART, 3, MRANDOM(8,12)/10, false)
  549. local SIZE = Part.Size.X + Part.Size.Y + Part.Size.Z
  550. local SIZESET = SIZE/4
  551. local XOffset = Part.Size.X*1.5/SIZESET
  552. local YOffset = Part.Size.Y*1.5/SIZESET
  553. local ZOffset = Part.Size.Z*1.5/SIZESET
  554. for x = 1, math.ceil(XOffset) do
  555. for y = 1, math.ceil(YOffset) do
  556. for z = 1, math.ceil(ZOffset) do
  557. local SHARD = CreatePart(3, Effects, "Neon", 0, 0, Part.BrickColor, "Shard", VT(SIZE,SIZE,SIZE)/10, false)
  558. SHARD.CanCollide = true
  559. SHARD.CFrame = Part.CFrame*CF((Part.Size.X/2-x/4),(Part.Size.Y/2-y/4),(Part.Size.Z/2-z/4))
  560. SHARD.Velocity = VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))*3
  561. Debris:AddItem(SHARD,MRANDOM(10,25)/3)
  562. end
  563. end
  564. end
  565. end
  566. Part:remove()
  567. end
  568.  
  569. function MakeForm(PART,TYPE)
  570. if TYPE == "Cyl" then
  571. local MSH = IT("CylinderMesh",PART)
  572. elseif TYPE == "Ball" then
  573. local MSH = IT("SpecialMesh",PART)
  574. MSH.MeshType = "Sphere"
  575. elseif TYPE == "Wedge" then
  576. local MSH = IT("SpecialMesh",PART)
  577. MSH.MeshType = "Wedge"
  578. end
  579. end
  580.  
  581. Debris = game:GetService("Debris")
  582.  
  583. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  584. local DIRECTION = CF(StartPos,EndPos).lookVector
  585. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  586. end
  587.  
  588. function turnto(position)
  589. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  590. end
  591.  
  592. --//=================================\\
  593. --|| WEAPON CREATION
  594. --\\=================================//
  595.  
  596. local HAT1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Maroon", "Hat", VT(2,0.2,2),false)
  597. MakeForm(HAT1,"Cyl")
  598. HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0))
  599. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Maroon", "Hat", VT(2.01,0.15,2.01),false)
  600. BELT.Color = C3(15/255,15/255,15/255)
  601. MakeForm(BELT,"Cyl")
  602. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0))
  603. local HAT2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Maroon", "Hat", VT(1.3,2.2,1.3),false)
  604. MakeForm(HAT2,"Cyl")
  605. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0))
  606. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Maroon", "Hat", VT(1.31,0.2,1.31),false)
  607. BELT.Color = C3(15/255,15/255,15/255)
  608. MakeForm(BELT,"Cyl")
  609. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0))
  610. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Gem", VT(0.25,0.25,0.1),false)
  611. MakeForm(GEM,"Ball")
  612. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0))
  613. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Gem", VT(0.25,0.25,0.1),false)
  614. MakeForm(GEM,"Ball")
  615. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0))
  616. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Gem", VT(0.1,0.25,0.25),false)
  617. MakeForm(GEM,"Ball")
  618. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0))
  619. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Gem", VT(0.1,0.25,0.25),false)
  620. MakeForm(GEM,"Ball")
  621. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0))
  622. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Maroon", "Hat", VT(1.31,0.1,1.31),false)
  623. BELT.Color = C3(15/255,15/255,15/255)
  624. MakeForm(BELT,"Cyl")
  625. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0))
  626. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Maroon", "Hat", VT(1.31,0.1,1.31),false)
  627. BELT.Color = C3(15/255,15/255,15/255)
  628. MakeForm(BELT,"Cyl")
  629. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0))
  630. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Maroon", "Hat", VT(1.31,0.1,1.31),false)
  631. BELT.Color = C3(15/255,15/255,15/255)
  632. MakeForm(BELT,"Cyl")
  633. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0))
  634. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Maroon", "Hat", VT(1.31,0.1,1.31),false)
  635. BELT.Color = C3(15/255,15/255,15/255)
  636. MakeForm(BELT,"Cyl")
  637. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.35,0), CF(0, 0, 0))
  638. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Maroon", "Hat", VT(1.3,0.5,1.3),false)
  639. MakeForm(BELT,"Ball")
  640. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0))
  641.  
  642. local Hair = Instance.new("Part", Character)
  643. Hair.Name = "Horns"
  644. Hair.CanCollide = false
  645. Hair.BrickColor = BrickColor.new("Institutional white")
  646. Hair.Transparency = 0
  647. Hair.Material = "Plastic"
  648. Hair.Size = Vector3.new(1, 1, 2)
  649. Hair.TopSurface = Enum.SurfaceType.Smooth
  650. Hair.BottomSurface = Enum.SurfaceType.Smooth
  651.  
  652. local Weld = Instance.new("Weld", Hair)
  653. Weld.Part0 = Head
  654. Weld.Part1 = Hair
  655. Weld.C1 = CFrame.new(0, -.6, 0)
  656. Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0)
  657.  
  658. local M2 = Instance.new("SpecialMesh")
  659. M2.Parent = Hair
  660. M2.MeshId = "rbxassetid://215680403"
  661. M2.TextureId = "rbxassetid://1619172543"
  662. M2.Scale = Vector3.new(1, 1, 1)
  663.  
  664. local Character = Player.Character
  665. TrailSettings = {
  666. Lifetime = 1,
  667. Texture = "rbxassetid://124339738",
  668. Color1 = ColorSequence.new(BrickColor.new("Really red").Color),
  669. Color2 = ColorSequence.new(BrickColor.new("Maroon").Color),
  670. AllBody = true,
  671. UpperBodyOnly = false,
  672. LowerBodyOnly = false,
  673. Accessories = false,
  674. Extras = true,
  675. R15 = false,
  676. R15Parts = {"UpperTorso", "LowerTorso"}
  677. }
  678.  
  679. if Character:FindFirstChild("Dominus") == nil then
  680. local M = CreateMesh("SpecialMesh", Character, "FileMesh", "21057410", "1866225289", VT(1,1,1)*1.1, VT(0,0,0))
  681. M.Name = "Dominus"
  682. end
  683.  
  684. local Back = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(1,1,0.35),false)
  685. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Back, CF(0, 0.5, 1.2) * ANGLES(RAD(0),RAD(0),RAD(45)), CF(0, 0, 0))
  686.  
  687. local ANGLE = 35
  688. for i = 1, 5 do
  689. local Wing = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.15,2+(i/2),0.15),false)
  690. local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
  691. local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.25,1,0.25),false)
  692. CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
  693. ANGLE = ANGLE - 15
  694. table.insert(LEFTWINGS,WingWeld)
  695. end
  696. ANGLE = 35
  697. for i = 1, 5 do
  698. local Wing = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.15,2+(i/2),0.15),false)
  699. local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
  700. local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.25,1,0.25),false)
  701. CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
  702. ANGLE = ANGLE - 15
  703. table.insert(RIGHTWINGS,WingWeld)
  704. end
  705. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.3,0.3,0.3),false)
  706. local EyeWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(-5),RAD(25),RAD(0)) * CF(0,0,-0.45), CF(0,0,0))
  707. local Eye2 = CreatePart(3, Character, "Neon", 0, 0.5, "Really red", "Eye", VT(0.5,0.5,0.29),false)
  708. local EyeWeld2 = CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye2, CF(0,0.2,0) * ANGLES(RAD(-5),RAD(25),RAD(0)) * CF(0,0,-0.45), CF(0,0,0))
  709.  
  710. local Eye3 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,0.1,0.31),false)
  711. local EyeWeld3 = CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye3, CF(0,0.2,0) * ANGLES(RAD(-5),RAD(-25),RAD(0)) * CF(0,0,-0.45), CF(0,0,0))
  712.  
  713. local SKILLTEXTCOLOR = BRICKC"Really red".Color
  714. local SKILLFONT = "SciFi"
  715. local SKILLTEXTSIZE = 6
  716.  
  717. local naeeym2 = Instance.new("BillboardGui",Character)
  718. naeeym2.AlwaysOnTop = true
  719. naeeym2.Size = UDim2.new(5,35,2,15)
  720. naeeym2.StudsOffset = Vector3.new(0,1.2,0)
  721. naeeym2.Adornee = Character.Head
  722. naeeym2.Name = "Name"
  723. naeeym2.PlayerToHideFrom = Player
  724. local tecks2 = Instance.new("TextLabel",naeeym2)
  725. tecks2.BackgroundTransparency = 1
  726. tecks2.TextScaled = true
  727. tecks2.BorderSizePixel = 0
  728. tecks2.Text = "Cyber Monarch"
  729. tecks2.Font = SKILLFONT
  730. tecks2.TextSize = 30
  731. tecks2.TextStrokeTransparency = 0
  732. tecks2.TextColor3 = C3(0,0,0)
  733. tecks2.TextStrokeColor3 = BRICKC"Really red".Color
  734. tecks2.Size = UDim2.new(1,0,0.5,0)
  735. tecks2.Parent = naeeym2
  736.  
  737. for _, c in pairs(Character:GetChildren()) do
  738. if c.ClassName == "Part" then
  739. table.insert(BODY,{c,Character})
  740. for _, q in pairs(c:GetChildren()) do
  741. if q.ClassName == "Motor6D" or q.ClassName == "Weld" or q.ClassName == "ManualWeld" then
  742. table.insert(BODY,{q,c})
  743. end
  744. end
  745. end
  746. end
  747.  
  748. function refit()
  749. Character.Parent = workspace
  750. for e = 1, #BODY do
  751. if BODY[e] ~= nil then
  752. local STUFF = BODY[e]
  753. local PART = STUFF[1]
  754. local PARENT = STUFF[2]
  755. PART.Parent = PARENT
  756. end
  757. end
  758. end
  759.  
  760. Humanoid.HealthChanged:connect(function()
  761. Humanoid.Parent = nil
  762. Humanoid.MaxHealth = "inf"
  763. Humanoid.Health = "inf"
  764. refit()
  765. Humanoid.Parent = Character
  766. end)
  767.  
  768. Humanoid.Died:connect(function()
  769. Humanoid.Parent = nil
  770. Humanoid.MaxHealth = "inf"
  771. Humanoid.Health = "inf"
  772. refit()
  773. Humanoid.Parent = Character
  774. end)
  775.  
  776. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  777. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  778. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  779. local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  780.  
  781. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Cyber Out-Burst", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  782. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Techno Beam", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  783. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Techno Warp", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  784. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Cyber Smash", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  785.  
  786. --//=================================\\
  787. --|| DAMAGING
  788. --\\=================================//
  789.  
  790. function killnearest(position,range,EFFECT)
  791. for i,v in ipairs(workspace:GetChildren()) do
  792. local body = v:GetChildren()
  793. for part = 1, #body do
  794. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  795. local SIZE = body[part].Size.Magnitude
  796. if(body[part].Position - position).Magnitude < range + SIZE/2 then
  797. if v.ClassName == "Model" then
  798. if v:FindFirstChildOfClass("Humanoid") ~= nil then
  799. if v:FindFirstChildOfClass("Humanoid").Health > 0 then
  800. v:BreakJoints()
  801. if EFFECT == "Glitch" then
  802. coroutine.resume(coroutine.create(function()
  803. local ORIGINPOS = body[part].CFrame
  804. local SIZE = body[part].Size
  805. for i = 1, 100 do
  806. Swait()
  807. local PART = body[part]
  808. PART.Anchored = true
  809. PART.Size = SIZE*MRANDOM(5,15)/10
  810. PART.CFrame = ORIGINPOS*CF(MRANDOM(-15,15)/15,MRANDOM(-15,15)/15,MRANDOM(-15,15)/15)
  811. end
  812. body[part]:remove()
  813. end))
  814. elseif EFFECT == "Shatter" then
  815. for _, c in pairs(v:GetChildren()) do
  816. if c.ClassName == "Part" or c.ClassName == "MeshPart" then
  817. Shatter(c)
  818. end
  819. end
  820. end
  821. end
  822. end
  823. end
  824. end
  825. end
  826. end
  827. end
  828. end
  829.  
  830. --//=================================\\
  831. --|| ATTACK FUNCTIONS AND STUFF
  832. --\\=================================//
  833.  
  834. function CyberOutburst()
  835. if HITFLOOR ~= nil then
  836. ATTACK = true
  837. Rooted = true
  838. for i=0, 2, 0.1 / Animation_Speed do
  839. Swait()
  840. WACKYEFFECT({EffectType = "Box", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,15,0), MoveToPos = Torso.Position, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  841. 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)
  842. 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)
  843. 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)
  844. 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)
  845. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * 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)
  846. 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)
  847. end
  848. for i=0, 2, 0.1 / Animation_Speed do
  849. Swait()
  850. 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)
  851. 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)
  852. 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)
  853. 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)
  854. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * 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)
  855. 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)
  856. end
  857. WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(25,25,25), Transparency = 0.25, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 178452241, SoundPitch = 0.6, SoundVolume = 6})
  858. WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(35,35,35), Transparency = 0.5, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 178452241, SoundPitch = 0.8, SoundVolume = 4})
  859. WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(40,40,40), Transparency = 0.75, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 178452241, SoundPitch = 1, SoundVolume = 2})
  860. for i=0, 0.4, 0.1 / Animation_Speed do
  861. Swait()
  862. killnearest(Torso.Position,45,"Glitch")
  863. WACKYEFFECT({Time = 75, EffectType = "Box", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,15,0).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  864. WACKYEFFECT({Time = 45, EffectType = "Box", Size = VT(1,1,1), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = CF(HITPOS)*ANGLES(RAD(0),RAD(MRANDOM(-180,180)),RAD(0))*CF(0,0,55).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  865. 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(0)), 1 / Animation_Speed)
  866. 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)
  867. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(-35), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  868. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(-35), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  869. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(20.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  870. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(20.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  871. end
  872. ATTACK = false
  873. Rooted = false
  874. end
  875. end
  876.  
  877. function Technobeam()
  878. ATTACK = true
  879. Rooted = false
  880. local GYRO = IT("BodyGyro",RootPart)
  881. GYRO.D = 100
  882. GYRO.P = 2000
  883. GYRO.MaxTorque = VT(0,4000000,0)
  884. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  885. CreateSound("93724183", RightArm, 5, 1, false)
  886. for i=1, 35 do
  887. Swait()
  888. WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-5,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
  889. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  890. 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(45)), 1 / Animation_Speed)
  891. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
  892. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  893. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * 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)
  894. 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)
  895. 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)
  896. end
  897. local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Lazer", VT(0,0,0))
  898. local LOOP = CreateSound("415700134", RightArm, 5, 1, false)
  899. local TOCH = BEAM.Touched:Connect(function(hit)
  900. if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
  901. Shatter(hit)
  902. end
  903. end)
  904. local I = 0
  905. repeat
  906. Swait()
  907. I = I + 1
  908. if I <= 10 then
  909. BEAM.Transparency = BEAM.Transparency - 0.1
  910. end
  911. local STARTPOS = RightArm.CFrame*CF(0,-4,0).p
  912. local ENDHIT,ENDPOS = CastProperRay(STARTPOS,Mouse.Hit.p,650,Character)
  913. local DISTANCE = (STARTPOS - ENDPOS).Magnitude
  914. BEAM.CFrame = CF(STARTPOS,ENDPOS)*CF(0,0,-DISTANCE/2)*ANGLES(RAD(0),RAD(0),RAD(I*5))
  915. BEAM.Size = VT(2,2,DISTANCE)
  916. WACKYEFFECT({Time = 5, EffectType = "Box", Size = VT(1,1,1), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(ENDPOS), MoveToPos = CF(ENDPOS)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,15,0).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  917. WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-4,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
  918. WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.25, CFrame = CF(ENDPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
  919. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  920. 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(45)), 1 / Animation_Speed)
  921. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
  922. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  923. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * 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)
  924. 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)
  925. 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)
  926. if ENDHIT ~= nil then
  927. if ENDHIT.Anchored == false and ENDHIT.Parent ~= Effects then
  928. Shatter(ENDHIT)
  929. end
  930. end
  931. until LOOP.Playing == false
  932. GYRO:remove()
  933. BEAM:remove()
  934. ATTACK = false
  935. Rooted = false
  936. end
  937.  
  938. function Technowarp()
  939. local FRAME = RootPart.Position
  940. for i = 1, 6 do
  941. WACKYEFFECT({Time = 15, EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,35,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(Torso.Position)*ANGLES(RAD(0),RAD(i*(360/5)),RAD(0))*CF(6,0,0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2})
  942. end
  943. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0),VT(FRAME.X,RootPart.Position.Y,FRAME.Z))
  944. for i = 1, 6 do
  945. WACKYEFFECT({Time = 15, EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,35,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(Torso.Position)*ANGLES(RAD(0),RAD(i*(360/5)),RAD(0))*CF(6,0,0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2})
  946. end
  947. end
  948.  
  949. function CyberSmash()
  950. ATTACK = true
  951. Rooted = false
  952. local GYRO = IT("BodyGyro",RootPart)
  953. GYRO.D = 100
  954. GYRO.P = 2000
  955. GYRO.MaxTorque = VT(0,4000000,0)
  956. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  957. local SMASH = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Block", VT(25,25,25))
  958. SMASH.CanCollide = true
  959. SMASH.Color = C3(0,0,0)
  960. local EF = Instance.new("SelectionBox",SMASH)
  961. EF.Adornee = SMASH
  962. EF.Color = BrickColor.new("Really red")
  963. EF.LineThickness = 0.2
  964. EF.Transparency = 1
  965. coroutine.resume(coroutine.create(function()
  966. for i = 1, 20 do
  967. Swait()
  968. SMASH.Transparency = SMASH.Transparency - 0.05
  969. EF.Transparency = SMASH.Transparency
  970. end
  971. end))
  972. repeat
  973. SMASH.CFrame = CF(Mouse.Hit.p)*CF(0,35,0)
  974. Swait()
  975. GYRO.cframe = CF(RootPart.Position,SMASH.Position)
  976. 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(45)), 1 / Animation_Speed)
  977. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
  978. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(130), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  979. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * 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)
  980. 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)
  981. 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)
  982. until HOLD == true and SMASH.Transparency < 0.99
  983. for i = 1, 25 do
  984. Swait()
  985. SMASH.CFrame = SMASH.CFrame*CF(0,15/25,0)
  986. 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(45)), 1 / Animation_Speed)
  987. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
  988. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(160), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  989. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * 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)
  990. 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)
  991. 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)
  992. end
  993. local TOCH = SMASH.Touched:Connect(function(hit)
  994. if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
  995. Shatter(hit)
  996. end
  997. end)
  998. local n0 = nil
  999. local HITFLOOR,HITPOS = Raycast(SMASH.Position, (CF(SMASH.Position, SMASH.Position + VT(0, -1, 0))).lookVector, 25000, Character)
  1000. if HITFLOOR ~= nil then
  1001. if HITFLOOR.Anchored == false and HITFLOOR.Parent ~= workspace then
  1002. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") or HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1003. if HITFLOOR.Parent.ClassName == "Model" then
  1004. HITFLOOR.Parent:BreakJoints()
  1005. elseif HITFLOOR.Parent.Parent.ClassName == "Model" then
  1006. HITFLOOR.Parent.Parent:BreakJoints()
  1007. end
  1008. end
  1009. local POS = HITPOS
  1010. n0,HITPOS = Raycast(POS, (CF(POS, POS + VT(0, -1, 0))).lookVector, 25000, HITFLOOR.Parent)
  1011. end
  1012. end
  1013. killnearest(HITPOS,SMASH.Size.X/1.3,"Shatter")
  1014. SMASH.CFrame = CF(HITPOS+VT(0,SMASH.Size.Y/2,0))
  1015. WACKYEFFECT({Time = 25, EffectType = "Box", Size = VT(24,0,24), Size2 = VT(75,2,75), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 130972023, SoundPitch = 1, SoundVolume = 10})
  1016. for i = 1, 25 do
  1017. Swait()
  1018. 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(45)), 1 / Animation_Speed)
  1019. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
  1020. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(30), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1021. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * 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)
  1022. 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)
  1023. 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)
  1024. end
  1025. coroutine.resume(coroutine.create(function()
  1026. wait(0.2)
  1027. TOCH:disconnect()
  1028. wait(1.8)
  1029. for i = 1, 100 do
  1030. Swait()
  1031. SMASH.Transparency = i/100
  1032. end
  1033. for i = 1, 10 do
  1034. Swait()
  1035. EF.Transparency = EF.Transparency + 0.1
  1036. end
  1037. SMASH:remove()
  1038. end))
  1039. GYRO:remove()
  1040. ATTACK = false
  1041. Rooted = false
  1042. end
  1043.  
  1044. function CyberDash()
  1045. ATTACK = true
  1046. Rooted = true
  1047. UNANCHOR = false
  1048. for i=0, 0.4, 0.1 / Animation_Speed do
  1049. Swait()
  1050. 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)
  1051. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1052. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5 + 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)
  1053. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 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)
  1054. 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(-15)), 1 / Animation_Speed)
  1055. LeftHip.C0 = Clerp(LeftHip.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(15)), 1 / Animation_Speed)
  1056. end
  1057. CreateSound(1177785010,Torso,2,1,false)
  1058. CreateSound(971125740,Torso,5,1,false)
  1059. WACKYEFFECT({Time = 65, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(25,25,25), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 331666014, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
  1060. for index, CHILD in pairs(Character:GetChildren()) do
  1061. if CHILD:IsA("BasePart") then
  1062. CHILD.Transparency = CHILD.Transparency + 1
  1063. elseif CHILD:IsA("Accessory") then
  1064. CHILD.Handle.Transparency = CHILD.Handle.Transparency + 1
  1065. end
  1066. end
  1067. local HITS = {}
  1068. for i=0, 1, 0.1 / Animation_Speed do
  1069. Swait()
  1070. for index, CHILD in pairs(workspace:GetDescendants()) do
  1071. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1072. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1073. if HUM then
  1074. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1075. if TORSO then
  1076. if (TORSO.Position - RootPart.Position).Magnitude <= 25 then
  1077. local PASS = true
  1078. for E = 1, #HITS do
  1079. if HITS[E] == CHILD then
  1080. PASS = false
  1081. end
  1082. end
  1083. if PASS == true then
  1084. local DMG = MRANDOM(25,45)
  1085. table.insert(HITS,CHILD)
  1086. end
  1087. end
  1088. end
  1089. end
  1090. end
  1091. end
  1092. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(25,0,25), Transparency = 0.8, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,0,-6) * ANGLES(RAD(-90), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 50})
  1093. for i = 1, 2 do
  1094. RootPart.CFrame = RootPart.CFrame*CF(0,0,-1)
  1095. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(65), RAD(0), RAD(0)), 1 / Animation_Speed)
  1096. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1097. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5 + 0.05 * SIN(SINE / 12), -0.7) * ANGLES(RAD(-25), RAD(0), RAD(-95)) * ANGLES(RAD(5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1098. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), -0.6) * ANGLES(RAD(-25), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1099. 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)
  1100. 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)
  1101. end
  1102. end
  1103. for index, CHILD in pairs(Character:GetChildren()) do
  1104. if CHILD:IsA("BasePart") then
  1105. CHILD.Transparency = CHILD.Transparency - 1
  1106. elseif CHILD:IsA("Accessory") then
  1107. CHILD.Handle.Transparency = CHILD.Handle.Transparency - 1
  1108. end
  1109. end
  1110. for i=1, 25 do
  1111. Swait()
  1112. RootPart.CFrame = RootPart.CFrame*CF(0,0,-((25-i)/25))
  1113. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1114. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1115. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-35), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1116. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-35), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1117. 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(-45)), 1 / Animation_Speed)
  1118. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-25), RAD(-70), RAD(0)) * ANGLES(RAD(1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1119. end
  1120. UNANCHOR = true
  1121. ATTACK = false
  1122. Rooted = false
  1123. end
  1124. --//=================================\\
  1125. --|| ASSIGN THINGS TO KEYS
  1126. --\\=================================//
  1127.  
  1128. function MouseDown(Mouse)
  1129. HOLD = true
  1130. if ATTACK == false then
  1131. end
  1132. end
  1133.  
  1134. function MouseUp(Mouse)
  1135. HOLD = false
  1136. end
  1137.  
  1138. function KeyDown(Key)
  1139. if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
  1140. KEYHOLD = true
  1141. if Key == "z" and ATTACK == false then
  1142. CyberOutburst()
  1143. end
  1144.  
  1145. if Key == "b" and ATTACK == false then
  1146. Technobeam()
  1147. end
  1148.  
  1149. if Key == "c" and ATTACK == false then
  1150. Technowarp()
  1151. end
  1152.  
  1153. if Key == "v" and ATTACK == false then
  1154. CyberSmash()
  1155. end
  1156.  
  1157. if Key == "t" then
  1158. local TAUNT = CreateSound("132392118", Head, 10, 0.8)
  1159. TAUNT.TimePosition = 1.1
  1160. if Key == "m" then
  1161. CyberDash()
  1162. end
  1163. -------------------------------------------------------------------------------
  1164. end
  1165. end
  1166. end
  1167.  
  1168. function KeyUp(Key)
  1169. if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
  1170. KEYHOLD = false
  1171. end
  1172. end
  1173.  
  1174. Mouse.Button1Down:connect(function(NEWKEY)
  1175. MouseDown(NEWKEY)
  1176. end)
  1177. Mouse.Button1Up:connect(function(NEWKEY)
  1178. MouseUp(NEWKEY)
  1179. end)
  1180. Mouse.KeyDown:connect(function(NEWKEY)
  1181. KeyDown(NEWKEY)
  1182. end)
  1183. Mouse.KeyUp:connect(function(NEWKEY)
  1184. KeyUp(NEWKEY)
  1185. end)
  1186.  
  1187. --//=================================\\
  1188. --\\=================================//
  1189.  
  1190.  
  1191. function unanchor()
  1192. if UNANCHOR == true then
  1193. g = Character:GetChildren()
  1194. for i = 1, #g do
  1195. if g[i].ClassName == "Part" then
  1196. g[i].Anchored = false
  1197. end
  1198. end
  1199. end
  1200. end
  1201.  
  1202.  
  1203. --//=================================\\
  1204. --|| WRAP THE WHOLE SCRIPT UP
  1205. --\\=================================//
  1206.  
  1207. Humanoid.Changed:connect(function(Jump)
  1208. if Jump == "Jump" and (Disable_Jump == true) then
  1209. Humanoid.Jump = false
  1210. end
  1211. end)
  1212.  
  1213. Humanoid.HipHeight = 2
  1214.  
  1215. while true do
  1216. Swait()
  1217. refit()
  1218. Character.Parent = workspace
  1219. Humanoid.Parent = Character
  1220. ANIMATE.Parent = nil
  1221. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1222. IDLEANIMATION:Play()
  1223. SINE = SINE + CHANGE
  1224. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1225. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1226. HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25, Character)
  1227. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1228. EyeWeld3.C1 = Clerp(EyeWeld3.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed)
  1229. EyeWeld2.C1 = Clerp(EyeWeld2.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed)
  1230. EyeWeld.C1 = Clerp(EyeWeld.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(SINE*2)), 1 / Animation_Speed)
  1231. for LW = 1, #LEFTWINGS do
  1232. if LEFTWINGS[LW] ~= nil then
  1233. LEFTWINGS[LW].C1 = Clerp(LEFTWINGS[LW].C1, CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(2.5 * SIN(SINE / 12)), RAD(0), RAD(-3 + 3 * SIN(SINE / 12))), 1 / Animation_Speed)
  1234. end
  1235. end
  1236. for RW = 1, #RIGHTWINGS do
  1237. if RIGHTWINGS[RW] ~= nil then
  1238. RIGHTWINGS[RW].C1 = Clerp(RIGHTWINGS[RW].C1, CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(2.5 * SIN(SINE / 12)), RAD(0), RAD(3 - 3 * SIN(SINE / 12))), 1 / Animation_Speed)
  1239. end
  1240. end
  1241. if ATTACK == false then
  1242. if TORSOVELOCITY < 1 then
  1243. 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)
  1244. 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)
  1245. 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)
  1246. 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)
  1247. 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)
  1248. 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)
  1249. elseif TORSOVELOCITY > 1 then
  1250. 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)
  1251. 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)
  1252. 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)
  1253. 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)
  1254. 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)
  1255. 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)
  1256. end
  1257. end
  1258. for _, c in pairs(Character:GetChildren()) do
  1259. if c.ClassName == "Part" and c.Name ~= "Eye" then
  1260. c.Material = "Neon"
  1261. if c:FindFirstChildOfClass("ParticleEmitter") then
  1262. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1263. end
  1264. if c ~= Head and c ~= RootPart and c:FindFirstChild("BoxEffect") == nil then
  1265. local EF = Instance.new("SelectionBox",c)
  1266. EF.Adornee = c
  1267. EF.Color = BrickColor.new("Really red")
  1268. EF.LineThickness = 0.01
  1269. EF.Transparency = 0
  1270. EF.Name = "BoxEffect"
  1271. end
  1272. c.Color = C3(0,0,0)
  1273. if c == Head then
  1274. --[[if c:FindFirstChild("Dominus") == nil then
  1275. local M = CreateMesh("SpecialMesh", c, "FileMesh", "162384581", "162384608", VT(1,1,1)*1.1, VT(0,0,0))
  1276. M.Name = "Dominus"
  1277. end]]--
  1278. if c:FindFirstChild("face") then
  1279. c.face:remove()
  1280. end
  1281. end
  1282. elseif c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1283. c:remove()
  1284. end
  1285. end
  1286. if HITFLOOR ~= nil and MRANDOM(1,6) == 1 then
  1287. local POSITION = CF(HITPOS)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(MRANDOM(5,15),0,0).p
  1288. local BOXFLOOR,BOXPOS = Raycast(POSITION+VT(0,1,0), (CF(POSITION, POSITION + VT(0, -1, 0))).lookVector, 5, Character)
  1289. if BOXFLOOR ~= nil then
  1290. WACKYEFFECT({EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,15,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(BOXPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1291. end
  1292. end
  1293. unanchor()
  1294. Humanoid.MaxHealth = "inf"
  1295. Humanoid.Health = "inf"
  1296. if Rooted == false then
  1297. Disable_Jump = false
  1298. Humanoid.WalkSpeed = Speed
  1299. elseif Rooted == true then
  1300. Disable_Jump = true
  1301. Humanoid.WalkSpeed = 0
  1302. end
  1303. for _, c in pairs(workspace:GetChildren()) do
  1304. if c.ClassName == "Model" and c:FindFirstChild("Humanoid") and c ~= Character then
  1305. end
  1306. end
  1307. script.Parent = WEAPONGUI
  1308. Humanoid.Name = "Monarch"
  1309. sick.Parent = Effects
  1310. sick.Pitch = 0.85
  1311. sick.Playing = true
  1312. for _, q in pairs(Head:GetChildren()) do
  1313. if q.ClassName == "Sound" and q.Name ~= "Audio" then
  1314. q:remove()
  1315. end
  1316. end
  1317. Humanoid.DisplayDistanceType = "None"
  1318. end
  1319.  
  1320. --//=================================\\
  1321. --\\=================================//
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327. --//====================================================\\--
  1328. --|| END OF SCRIPT
  1329. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement