Advertisement
hjkook

fe test2

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