Advertisement
DISTROYER190

Untitled

Dec 14th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 67.56 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88. --//====================================================\\--
  89. --|| EDITED BY DISTROYER190
  90. --\\====================================================//--
  91.  
  92. wait(0.2)
  93.  
  94. Player = owner
  95. PlayerGui = Player.PlayerGui
  96. Cam = workspace.CurrentCamera
  97. Backpack = Player.Backpack
  98. Character = Player.Character
  99. Humanoid = Character.Humanoid
  100. RootPart = Character["HumanoidRootPart"]
  101. Torso = Character["Torso"]
  102. Head = Character["Head"]
  103. RightArm = Character["Right Arm"]
  104. LeftArm = Character["Left Arm"]
  105. RightLeg = Character["Right Leg"]
  106. LeftLeg = Character["Left Leg"]
  107. RootJoint = RootPart["RootJoint"]
  108. Neck = Torso["Neck"]
  109. RightShoulder = Torso["Right Shoulder"]
  110. LeftShoulder = Torso["Left Shoulder"]
  111. RightHip = Torso["Right Hip"]
  112. LeftHip = Torso["Left Hip"]
  113. local sick = Instance.new("Sound",Character)
  114. sick.SoundId = "rbxassetid://454778775"
  115. sick.Looped = true
  116. sick.Volume = 1
  117. sick.Pitch = 1
  118.  
  119. IT = Instance.new
  120. CF = CFrame.new
  121. VT = Vector3.new
  122. RAD = math.rad
  123. C3 = Color3.new
  124. UD2 = UDim2.new
  125. BRICKC = BrickColor.new
  126. ANGLES = CFrame.Angles
  127. EULER = CFrame.fromEulerAnglesXYZ
  128. COS = math.cos
  129. ACOS = math.acos
  130. SIN = math.sin
  131. ASIN = math.asin
  132. ABS = math.abs
  133. MRANDOM = math.random
  134. FLOOR = math.floor
  135.  
  136. --//=================================\\
  137. --|| USEFUL VALUES
  138. --\\=================================//
  139.  
  140. Animation_Speed = 3
  141. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  142. local Speed = 45
  143. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  144. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  145. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  146. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  147. local DAMAGEMULTIPLIER = 1
  148. local ANIM = "Idle"
  149. local ATTACK = false
  150. local EQUIPPED = false
  151. local HOLD = false
  152. local COMBO = 1
  153. local Rooted = false
  154. local SINE = 0
  155. local KEYHOLD = false
  156. local CHANGE = 2 / Animation_Speed
  157. local WALKINGANIM = false
  158. local VALUE1 = false
  159. local VALUE2 = false
  160. local ROBLOXIDLEANIMATION = IT("Animation")
  161. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  162. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  163. --ROBLOXIDLEANIMATION.Parent = Humanoid
  164. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  165. WEAPONGUI.Name = "Weapon GUI"
  166. local Effects = IT("Folder", Character)
  167. Effects.Name = "Effects"
  168. local ANIMATOR = Humanoid.Animator
  169. local ANIMATE = Character.Animate
  170. local UNANCHOR = true
  171. local HITPOS = nil
  172. local HITFLOOR = nil
  173. local LEFTWINGS = {}
  174. local RIGHTWINGS = {}
  175. local BODY = {}
  176.  
  177. --//=================================\\
  178. --\\=================================//
  179.  
  180.  
  181. --//=================================\\
  182. --|| ARTIFICIAL HEARTBEAT
  183. --\\=================================//
  184.  
  185. ArtificialHB = Instance.new("BindableEvent", script)
  186. ArtificialHB.Name = "ArtificialHB"
  187.  
  188. script:WaitForChild("ArtificialHB")
  189.  
  190. frame = Frame_Speed
  191. tf = 0
  192. allowframeloss = false
  193. tossremainder = false
  194. lastframe = tick()
  195. script.ArtificialHB:Fire()
  196.  
  197. game:GetService("RunService").Heartbeat:connect(function(s, p)
  198. tf = tf + s
  199. if tf >= frame then
  200. if allowframeloss then
  201. script.ArtificialHB:Fire()
  202. lastframe = tick()
  203. else
  204. for i = 1, math.floor(tf / frame) do
  205. script.ArtificialHB:Fire()
  206. end
  207. lastframe = tick()
  208. end
  209. if tossremainder then
  210. tf = 0
  211. else
  212. tf = tf - frame * math.floor(tf / frame)
  213. end
  214. end
  215. end)
  216.  
  217. --//=================================\\
  218. --\\=================================//
  219.  
  220. --//=================================\\
  221. --|| SOME FUNCTIONS
  222. --\\=================================//
  223.  
  224. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  225. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  226. end
  227.  
  228. function PositiveAngle(NUMBER)
  229. if NUMBER >= 0 then
  230. NUMBER = 0
  231. end
  232. return NUMBER
  233. end
  234.  
  235. function NegativeAngle(NUMBER)
  236. if NUMBER <= 0 then
  237. NUMBER = 0
  238. end
  239. return NUMBER
  240. end
  241.  
  242. function Swait(NUMBER)
  243. if NUMBER == 0 or NUMBER == nil then
  244. ArtificialHB.Event:wait()
  245. else
  246. for i = 1, NUMBER do
  247. ArtificialHB.Event:wait()
  248. end
  249. end
  250. end
  251.  
  252. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  253. local NEWMESH = IT(MESH)
  254. if MESH == "SpecialMesh" then
  255. NEWMESH.MeshType = MESHTYPE
  256. if MESHID ~= "nil" and MESHID ~= "" then
  257. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  258. end
  259. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  260. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  261. end
  262. end
  263. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  264. NEWMESH.Scale = SCALE
  265. NEWMESH.Parent = PARENT
  266. return NEWMESH
  267. end
  268.  
  269. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  270. local NEWPART = IT("Part")
  271. NEWPART.formFactor = FORMFACTOR
  272. NEWPART.Reflectance = REFLECTANCE
  273. NEWPART.Transparency = TRANSPARENCY
  274. NEWPART.CanCollide = false
  275. NEWPART.Locked = true
  276. NEWPART.Anchored = true
  277. if ANCHOR == false then
  278. NEWPART.Anchored = false
  279. end
  280. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  281. NEWPART.Name = NAME
  282. NEWPART.Size = SIZE
  283. NEWPART.Position = Torso.Position
  284. NEWPART.Material = MATERIAL
  285. NEWPART:BreakJoints()
  286. NEWPART.Parent = PARENT
  287. return NEWPART
  288. end
  289.  
  290. local function weldBetween(a, b)
  291. local weldd = Instance.new("ManualWeld")
  292. weldd.Part0 = a
  293. weldd.Part1 = b
  294. weldd.C0 = CFrame.new()
  295. weldd.C1 = b.CFrame:inverse() * a.CFrame
  296. weldd.Parent = a
  297. return weldd
  298. end
  299.  
  300.  
  301. function QuaternionFromCFrame(cf)
  302. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  303. local trace = m00 + m11 + m22
  304. if trace > 0 then
  305. local s = math.sqrt(1 + trace)
  306. local recip = 0.5 / s
  307. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  308. else
  309. local i = 0
  310. if m11 > m00 then
  311. i = 1
  312. end
  313. if m22 > (i == 0 and m00 or m11) then
  314. i = 2
  315. end
  316. if i == 0 then
  317. local s = math.sqrt(m00 - m11 - m22 + 1)
  318. local recip = 0.5 / s
  319. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  320. elseif i == 1 then
  321. local s = math.sqrt(m11 - m22 - m00 + 1)
  322. local recip = 0.5 / s
  323. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  324. elseif i == 2 then
  325. local s = math.sqrt(m22 - m00 - m11 + 1)
  326. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  327. end
  328. end
  329. end
  330.  
  331. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  332. local xs, ys, zs = x + x, y + y, z + z
  333. local wx, wy, wz = w * xs, w * ys, w * zs
  334. local xx = x * xs
  335. local xy = x * ys
  336. local xz = x * zs
  337. local yy = y * ys
  338. local yz = y * zs
  339. local zz = z * zs
  340. 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))
  341. end
  342.  
  343. function QuaternionSlerp(a, b, t)
  344. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  345. local startInterp, finishInterp;
  346. if cosTheta >= 0.0001 then
  347. if (1 - cosTheta) > 0.0001 then
  348. local theta = ACOS(cosTheta)
  349. local invSinTheta = 1 / SIN(theta)
  350. startInterp = SIN((1 - t) * theta) * invSinTheta
  351. finishInterp = SIN(t * theta) * invSinTheta
  352. else
  353. startInterp = 1 - t
  354. finishInterp = t
  355. end
  356. else
  357. if (1 + cosTheta) > 0.0001 then
  358. local theta = ACOS(-cosTheta)
  359. local invSinTheta = 1 / SIN(theta)
  360. startInterp = SIN((t - 1) * theta) * invSinTheta
  361. finishInterp = SIN(t * theta) * invSinTheta
  362. else
  363. startInterp = t - 1
  364. finishInterp = t
  365. end
  366. end
  367. 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
  368. end
  369.  
  370. function Clerp(a, b, t)
  371. local qa = {QuaternionFromCFrame(a)}
  372. local qb = {QuaternionFromCFrame(b)}
  373. local ax, ay, az = a.x, a.y, a.z
  374. local bx, by, bz = b.x, b.y, b.z
  375. local _t = 1 - t
  376. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  377. end
  378.  
  379. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  380. local frame = IT("Frame")
  381. frame.BackgroundTransparency = TRANSPARENCY
  382. frame.BorderSizePixel = BORDERSIZEPIXEL
  383. frame.Position = POSITION
  384. frame.Size = SIZE
  385. frame.BackgroundColor3 = COLOR
  386. frame.BorderColor3 = BORDERCOLOR
  387. frame.Name = NAME
  388. frame.Parent = PARENT
  389. return frame
  390. end
  391.  
  392. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  393. local label = IT("TextLabel")
  394. label.BackgroundTransparency = 1
  395. label.Size = UD2(1, 0, 1, 0)
  396. label.Position = UD2(0, 0, 0, 0)
  397. label.TextColor3 = TEXTCOLOR
  398. label.TextStrokeColor3 = BRICKC"Really blue".Color
  399. label.TextStrokeTransparency = STROKETRANSPARENCY
  400. label.TextTransparency = TRANSPARENCY
  401. label.FontSize = TEXTFONTSIZE
  402. label.Font = TEXTFONT
  403. label.BorderSizePixel = BORDERSIZEPIXEL
  404. label.TextScaled = false
  405. label.Text = TEXT
  406. label.Name = NAME
  407. label.Parent = PARENT
  408. return label
  409. end
  410.  
  411. function NoOutlines(PART)
  412. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  413. end
  414.  
  415. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  416. local NEWWELD = IT(TYPE)
  417. NEWWELD.Part0 = PART0
  418. NEWWELD.Part1 = PART1
  419. NEWWELD.C0 = C0
  420. NEWWELD.C1 = C1
  421. NEWWELD.Parent = PARENT
  422. return NEWWELD
  423. end
  424.  
  425. local S = IT("Sound")
  426. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  427. local NEWSOUND = nil
  428. coroutine.resume(coroutine.create(function()
  429. NEWSOUND = S:Clone()
  430. NEWSOUND.Parent = PARENT
  431. NEWSOUND.Volume = VOLUME
  432. NEWSOUND.Pitch = PITCH
  433. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  434. NEWSOUND:play()
  435. NEWSOUND.Name = "Audio"
  436. if DOESLOOP == true then
  437. NEWSOUND.Looped = true
  438. else
  439. repeat Swait() until NEWSOUND.Playing == false
  440. NEWSOUND:remove()
  441. end
  442. end))
  443. return NEWSOUND
  444. end
  445.  
  446. function CFrameFromTopBack(at, top, back)
  447. local right = top:Cross(back)
  448. 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)
  449. end
  450.  
  451. --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})
  452. function WACKYEFFECT(Table)
  453. local TYPE = (Table.EffectType or "Sphere")
  454. local SIZE = (Table.Size or VT(1,1,1))
  455. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  456. local TRANSPARENCY = (Table.Transparency or 0)
  457. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  458. local CFRAME = (Table.CFrame or Torso.CFrame)
  459. local MOVEDIRECTION = (Table.MoveToPos or nil)
  460. local ROTATION1 = (Table.RotationX or 0)
  461. local ROTATION2 = (Table.RotationY or 0)
  462. local ROTATION3 = (Table.RotationZ or 0)
  463. local MATERIAL = (Table.Material or "Neon")
  464. local COLOR = (Table.Color or C3(1,1,1))
  465. local TIME = (Table.Time or 45)
  466. local SOUNDID = (Table.SoundID or nil)
  467. local SOUNDPITCH = (Table.SoundPitch or nil)
  468. local SOUNDVOLUME = (Table.SoundVolume or nil)
  469. coroutine.resume(coroutine.create(function()
  470. local PLAYSSOUND = false
  471. local SOUND = nil
  472. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  473. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  474. PLAYSSOUND = true
  475. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  476. end
  477. EFFECT.Color = COLOR
  478. local MSH = nil
  479. if TYPE == "Sphere" then
  480. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  481. elseif TYPE == "Block" then
  482. MSH = IT("BlockMesh",EFFECT)
  483. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  484. elseif TYPE == "Box" then
  485. MSH = IT("BlockMesh",EFFECT)
  486. MSH.Scale = SIZE
  487. elseif TYPE == "Wave" then
  488. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  489. elseif TYPE == "Ring" then
  490. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  491. elseif TYPE == "Slash" then
  492. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  493. elseif TYPE == "Round Slash" then
  494. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  495. elseif TYPE == "Swirl" then
  496. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  497. elseif TYPE == "Skull" then
  498. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  499. elseif TYPE == "Crystal" then
  500. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  501. end
  502. if MSH ~= nil then
  503. local MOVESPEED = nil
  504. if MOVEDIRECTION ~= nil then
  505. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  506. end
  507. local GROWTH = SIZE - ENDSIZE
  508. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  509. if TYPE == "Block" then
  510. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  511. else
  512. EFFECT.CFrame = CFRAME
  513. end
  514. for LOOP = 1, TIME do
  515. Swait()
  516. MSH.Scale = MSH.Scale - GROWTH/TIME
  517. if TYPE == "Wave" then
  518. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  519. end
  520. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  521. if TYPE == "Block" then
  522. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  523. else
  524. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  525. end
  526. if MOVEDIRECTION ~= nil then
  527. local ORI = EFFECT.Orientation
  528. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  529. EFFECT.Orientation = ORI
  530. end
  531. end
  532. if PLAYSSOUND == false then
  533. EFFECT:remove()
  534. else
  535. repeat Swait() until SOUND.Playing == false
  536. EFFECT:remove()
  537. end
  538. else
  539. if PLAYSSOUND == false then
  540. EFFECT:remove()
  541. else
  542. repeat Swait() until SOUND.Playing == false
  543. EFFECT:remove()
  544. end
  545. end
  546. end))
  547. end
  548.  
  549. function ApplyAoE(POSITION, RANGE, MINDMG, MAXDMG, FLING, INSTAKILL)
  550. local CHILDREN = workspace:GetDescendants()
  551. for index, CHILD in pairs(CHILDREN) do
  552. if CHILD.ClassName == "Model" and CHILD ~= Character then
  553. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  554. if HUM then
  555. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  556. if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
  557. if INSTAKILL == true then
  558. Petrify(CHILD)
  559. else
  560. local DMG = MRANDOM(MINDMG, MAXDMG)
  561. ApplyDamage(HUM, DMG, TORSO)
  562. end
  563. if FLING > 0 then
  564. for _, c in pairs(CHILD:GetChildren()) do
  565. if c:IsA("BasePart") then
  566. local bv = Instance.new("BodyVelocity")
  567. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  568. bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING
  569. bv.Parent = c
  570. Debris:AddItem(bv, 0.05)
  571. end
  572. end
  573. end
  574. end
  575. end
  576. end
  577. end
  578. end
  579. function Petrify(Foe)
  580. local STONEMODEL = IT("Model", Effects)
  581. local CHILDREN = Foe:GetDescendants()
  582. for index, CHILD in pairs(CHILDREN) do
  583. if CHILD:IsA("BasePart") and CHILD.Parent.ClassName ~= "Folder" then
  584. CHILD.Parent = STONEMODEL
  585. CHILD.Material = "Slate"
  586. CHILD.Color = C3(0.5, 0.5, 0.5)
  587. if CHILD:FindFirstChildOfClass("SpecialMesh") then
  588. local mesh = CHILD:FindFirstChildOfClass("SpecialMesh")
  589. mesh.TextureId = ""
  590. end
  591. if CHILD:FindFirstChildOfClass("Decal") then
  592. local mesh = CHILD:FindFirstChildOfClass("Decal")
  593. mesh:remove()
  594. end
  595. if CHILD.ClassName == "MeshPart" then
  596. CHILD.TextureID = ""
  597. end
  598. if CHILD.ClassName == "UnionOperation" then
  599. CHILD.UsePartColor = true
  600. end
  601. CHILD.CanCollide = true
  602. end
  603. end
  604. Debris:AddItem(STONEMODEL, 5)
  605. end
  606.  
  607.  
  608. function Shatter(Part)
  609. if Part.Transparency == 0 then
  610. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, Part.BrickColor, "OOF", VT(0,0,0))
  611. Debris:AddItem(SOUNDPART,5)
  612. CreateSound("84005018", SOUNDPART, 3, MRANDOM(8,12)/10, false)
  613. local SIZE = Part.Size.X + Part.Size.Y + Part.Size.Z
  614. local SIZESET = SIZE/4
  615. local XOffset = Part.Size.X*1.5/SIZESET
  616. local YOffset = Part.Size.Y*1.5/SIZESET
  617. local ZOffset = Part.Size.Z*1.5/SIZESET
  618. for x = 1, math.ceil(XOffset) do
  619. for y = 1, math.ceil(YOffset) do
  620. for z = 1, math.ceil(ZOffset) do
  621. local SHARD = CreatePart(3, Effects, "Neon", 0, 0, Part.BrickColor, "Shard", VT(SIZE,SIZE,SIZE)/10, false)
  622. SHARD.CanCollide = true
  623. SHARD.CFrame = Part.CFrame*CF((Part.Size.X/2-x/4),(Part.Size.Y/2-y/4),(Part.Size.Z/2-z/4))
  624. SHARD.Velocity = VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))*3
  625. Debris:AddItem(SHARD,MRANDOM(10,25)/3)
  626. end
  627. end
  628. end
  629. end
  630. Part:remove()
  631. end
  632.  
  633. function MakeForm(PART,TYPE)
  634. if TYPE == "Cyl" then
  635. local MSH = IT("CylinderMesh",PART)
  636. elseif TYPE == "Ball" then
  637. local MSH = IT("SpecialMesh",PART)
  638. MSH.MeshType = "Sphere"
  639. elseif TYPE == "Wedge" then
  640. local MSH = IT("SpecialMesh",PART)
  641. MSH.MeshType = "Wedge"
  642. end
  643. end
  644.  
  645. Debris = game:GetService("Debris")
  646.  
  647. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  648. local DIRECTION = CF(StartPos,EndPos).lookVector
  649. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  650. end
  651.  
  652. function turnto(position)
  653. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  654. end
  655.  
  656. --//=================================\\
  657. --|| WEAPON CREATION
  658. --\\=================================//
  659.  
  660. local Back = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Wing", VT(1,1,0.35),false)
  661. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Back, CF(0, 0.5, 1.2) * ANGLES(RAD(0),RAD(0),RAD(45)), CF(0, 0, 0))
  662.  
  663. local ANGLE = 35
  664. for i = 1, 5 do
  665. local Wing = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Wing", VT(0.15,2+(i/2),0.15),false)
  666. 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))
  667. local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Wing", VT(0.25,1,0.25),false)
  668. CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
  669. ANGLE = ANGLE - 15
  670. table.insert(LEFTWINGS,WingWeld)
  671. end
  672. ANGLE = 35
  673. for i = 1, 5 do
  674. local Wing = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "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 blue", "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(RIGHTWINGS,WingWeld)
  680. end
  681. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Eye", VT(0.3,0.3,0.3),false)
  682. 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))
  683. local Eye2 = CreatePart(3, Character, "Neon", 0, 0.5, "Really blue", "Eye", VT(0.5,0.5,0.29),false)
  684. 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))
  685.  
  686. local Eye3 = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Eye", VT(0.1,0.1,0.31),false)
  687. 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))
  688.  
  689. local SKILLTEXTCOLOR = BRICKC"Really blue".Color
  690. local SKILLFONT = "SciFi"
  691. local SKILLTEXTSIZE = 6
  692.  
  693. local naeeym2 = Instance.new("BillboardGui",Character)
  694. naeeym2.AlwaysOnTop = true
  695. naeeym2.Size = UDim2.new(5,35,2,15)
  696. naeeym2.StudsOffset = Vector3.new(0,1.2,0)
  697. naeeym2.Adornee = Character.Head
  698. naeeym2.Name = "Name"
  699. naeeym2.PlayerToHideFrom = Player
  700. local tecks2 = Instance.new("TextLabel",naeeym2)
  701. tecks2.BackgroundTransparency = 1
  702. tecks2.TextScaled = true
  703. tecks2.BorderSizePixel = 0
  704. tecks2.Text = ""
  705. tecks2.Font = SKILLFONT
  706. tecks2.TextSize = 30
  707. tecks2.TextStrokeTransparency = 0
  708. tecks2.TextColor3 = C3(0,0,0)
  709. tecks2.TextStrokeColor3 = BRICKC"Really blue".Color
  710. tecks2.Size = UDim2.new(1,0,0.5,0)
  711. tecks2.Parent = naeeym2
  712.  
  713. for _, c in pairs(Character:GetChildren()) do
  714. if c.ClassName == "Part" then
  715. table.insert(BODY,{c,Character})
  716. for _, q in pairs(c:GetChildren()) do
  717. if q.ClassName == "Motor6D" or q.ClassName == "Weld" or q.ClassName == "ManualWeld" then
  718. table.insert(BODY,{q,c})
  719. end
  720. end
  721. end
  722. end
  723.  
  724. function refit()
  725. Character.Parent = workspace
  726. for e = 1, #BODY do
  727. if BODY[e] ~= nil then
  728. local STUFF = BODY[e]
  729. local PART = STUFF[1]
  730. local PARENT = STUFF[2]
  731. PART.Parent = PARENT
  732. end
  733. end
  734. end
  735.  
  736. Humanoid.HealthChanged:connect(function()
  737. Humanoid.Parent = nil
  738. Humanoid.MaxHealth = "inf"
  739. Humanoid.Health = "inf"
  740. refit()
  741. Humanoid.Parent = Character
  742. end)
  743.  
  744. Humanoid.Died:connect(function()
  745. Humanoid.Parent = nil
  746. Humanoid.MaxHealth = "inf"
  747. Humanoid.Health = "inf"
  748. refit()
  749. Humanoid.Parent = Character
  750. end)
  751.  
  752. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.08, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  753. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.65, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  754. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.08, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  755. local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  756. local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  757. local SKILL6FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.65, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  758. local SKILL7FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  759.  
  760. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[V] Cyber Smash", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
  761. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Techno Beam", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
  762. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Techno Warp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  763. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[Z] Cyber Out-Burst", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
  764. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Prison Key", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
  765. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[N] Cyber Wall", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
  766. local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[M] Psycho", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
  767.  
  768. --//=================================\\
  769. --|| DAMAGING
  770. --\\=================================//
  771.  
  772. function killnearest(position,range,EFFECT)
  773. for i,v in ipairs(workspace:GetChildren()) do
  774. local body = v:GetChildren()
  775. for part = 1, #body do
  776. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  777. local SIZE = body[part].Size.Magnitude
  778. if(body[part].Position - position).Magnitude < range + SIZE/2 then
  779. if v.ClassName == "Model" then
  780. if v:FindFirstChildOfClass("Humanoid") ~= nil then
  781. if v:FindFirstChildOfClass("Humanoid").Health > 0 then
  782. v:BreakJoints()
  783. if EFFECT == "Glitch" then
  784. coroutine.resume(coroutine.create(function()
  785. local ORIGINPOS = body[part].CFrame
  786. local SIZE = body[part].Size
  787. for i = 1, 100 do
  788. Swait()
  789. local PART = body[part]
  790. PART.Anchored = true
  791. PART.Size = SIZE*MRANDOM(5,15)/10
  792. PART.CFrame = ORIGINPOS*CF(MRANDOM(-15,15)/15,MRANDOM(-15,15)/15,MRANDOM(-15,15)/15)
  793. end
  794. body[part]:remove()
  795. end))
  796. elseif EFFECT == "Shatter" then
  797. for _, c in pairs(v:GetChildren()) do
  798. if c.ClassName == "Part" or c.ClassName == "MeshPart" then
  799. Shatter(c)
  800. end
  801. end
  802. end
  803. end
  804. end
  805. end
  806. end
  807. end
  808. end
  809. end
  810. end
  811.  
  812. --//=================================\\
  813. --|| ATTACK FUNCTIONS AND STUFF
  814. --\\=================================//
  815.  
  816. function CyberOutburst()
  817. if HITFLOOR ~= nil then
  818. ATTACK = true
  819. Rooted = true
  820. for i=0, 2, 0.1 / Animation_Speed do
  821. Swait()
  822. 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})
  823. 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)
  824. 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)
  825. 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)
  826. 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)
  827. 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)
  828. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  829. end
  830. for i=0, 2, 0.1 / Animation_Speed do
  831. Swait()
  832. 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)
  833. 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)
  834. 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)
  835. 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)
  836. 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)
  837. 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)
  838. end
  839. 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})
  840. 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})
  841. 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})
  842. for i=0, 0.4, 0.1 / Animation_Speed do
  843. Swait()
  844. killnearest(Torso.Position,45,"Glitch")
  845. 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})
  846. 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})
  847. 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)
  848. 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)
  849. 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)
  850. 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)
  851. 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)
  852. 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)
  853. end
  854. ATTACK = false
  855. Rooted = false
  856. end
  857. end
  858.  
  859. function Technobeam()
  860. ATTACK = true
  861. Rooted = false
  862. local GYRO = IT("BodyGyro",RootPart)
  863. GYRO.D = 100
  864. GYRO.P = 2000
  865. GYRO.MaxTorque = VT(0,4000000,0)
  866. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  867. CreateSound("93724183", RightArm, 5, 1, false)
  868. for i=1, 35 do
  869. Swait()
  870. 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})
  871. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  872. 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)
  873. 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)
  874. 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)
  875. 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)
  876. 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)
  877. 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)
  878. end
  879. local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Really blue", "Lazer", VT(0,0,0))
  880. local LOOP = CreateSound("415700134", RightArm, 5, 1, false)
  881. local TOCH = BEAM.Touched:Connect(function(hit)
  882. if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
  883. Shatter(hit)
  884. end
  885. end)
  886. local I = 0
  887. repeat
  888. Swait()
  889. I = I + 1
  890. if I <= 10 then
  891. BEAM.Transparency = BEAM.Transparency - 0.1
  892. end
  893. local STARTPOS = RightArm.CFrame*CF(0,-4,0).p
  894. local ENDHIT,ENDPOS = CastProperRay(STARTPOS,Mouse.Hit.p,650,Character)
  895. local DISTANCE = (STARTPOS - ENDPOS).Magnitude
  896. BEAM.CFrame = CF(STARTPOS,ENDPOS)*CF(0,0,-DISTANCE/2)*ANGLES(RAD(0),RAD(0),RAD(I*5))
  897. BEAM.Size = VT(2,2,DISTANCE)
  898. 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})
  899. 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})
  900. 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})
  901. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  902. 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)
  903. 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)
  904. 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)
  905. 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)
  906. 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)
  907. 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)
  908. if ENDHIT ~= nil then
  909. if ENDHIT.Anchored == false and ENDHIT.Parent ~= Effects then
  910. Shatter(ENDHIT)
  911. end
  912. end
  913. until LOOP.Playing == false
  914. GYRO:remove()
  915. BEAM:remove()
  916. ATTACK = false
  917. Rooted = false
  918. end
  919.  
  920. function Technowarp()
  921. local FRAME = RootPart.Position
  922. for i = 1, 6 do
  923. 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 blue".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2})
  924. end
  925. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0),VT(FRAME.X,RootPart.Position.Y,FRAME.Z))
  926. for i = 1, 6 do
  927. 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 blue".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2})
  928. end
  929. end
  930.  
  931. function CyberSmash()
  932. ATTACK = true
  933. Rooted = false
  934. local GYRO = IT("BodyGyro",RootPart)
  935. GYRO.D = 100
  936. GYRO.P = 2000
  937. GYRO.MaxTorque = VT(0,4000000,0)
  938. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  939. local SMASH = CreatePart(3, Effects, "Neon", 0, 1, "Really blue", "Block", VT(25,25,25))
  940. SMASH.CanCollide = true
  941. SMASH.Color = C3(0,0,0)
  942. local EF = Instance.new("SelectionBox",SMASH)
  943. EF.Adornee = SMASH
  944. EF.Color = BrickColor.new("Really blue")
  945. EF.LineThickness = 0.2
  946. EF.Transparency = 1
  947. coroutine.resume(coroutine.create(function()
  948. for i = 1, 20 do
  949. Swait()
  950. SMASH.Transparency = SMASH.Transparency - 0.05
  951. EF.Transparency = SMASH.Transparency
  952. end
  953. end))
  954. repeat
  955. SMASH.CFrame = CF(Mouse.Hit.p)*CF(0,35,0)
  956. Swait()
  957. GYRO.cframe = CF(RootPart.Position,SMASH.Position)
  958. 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)
  959. 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)
  960. 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)
  961. 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)
  962. 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)
  963. 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)
  964. until HOLD == true and SMASH.Transparency < 0.99
  965. for i = 1, 25 do
  966. Swait()
  967. SMASH.CFrame = SMASH.CFrame*CF(0,15/25,0)
  968. 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)
  969. 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)
  970. 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)
  971. 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)
  972. 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)
  973. 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)
  974. end
  975. local TOCH = SMASH.Touched:Connect(function(hit)
  976. if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
  977. Shatter(hit)
  978. end
  979. end)
  980. local n0 = nil
  981. local HITFLOOR,HITPOS = Raycast(SMASH.Position, (CF(SMASH.Position, SMASH.Position + VT(0, -1, 0))).lookVector, 25000, Character)
  982. if HITFLOOR ~= nil then
  983. if HITFLOOR.Anchored == false and HITFLOOR.Parent ~= workspace then
  984. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") or HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  985. if HITFLOOR.Parent.ClassName == "Model" then
  986. HITFLOOR.Parent:BreakJoints()
  987. elseif HITFLOOR.Parent.Parent.ClassName == "Model" then
  988. HITFLOOR.Parent.Parent:BreakJoints()
  989. end
  990. end
  991. local POS = HITPOS
  992. n0,HITPOS = Raycast(POS, (CF(POS, POS + VT(0, -1, 0))).lookVector, 25000, HITFLOOR.Parent)
  993. end
  994. end
  995. killnearest(HITPOS,SMASH.Size.X/1.3,"Shatter")
  996. SMASH.CFrame = CF(HITPOS+VT(0,SMASH.Size.Y/2,0))
  997. 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})
  998. for i = 1, 25 do
  999. Swait()
  1000. 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)
  1001. 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)
  1002. 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)
  1003. 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)
  1004. 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)
  1005. 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)
  1006. end
  1007. coroutine.resume(coroutine.create(function()
  1008. wait(0.2)
  1009. TOCH:disconnect()
  1010. wait(1.8)
  1011. for i = 1, 100 do
  1012. Swait()
  1013. SMASH.Transparency = i/100
  1014. end
  1015. for i = 1, 10 do
  1016. Swait()
  1017. EF.Transparency = EF.Transparency + 0.1
  1018. end
  1019. SMASH:remove()
  1020. end))
  1021. GYRO:remove()
  1022. ATTACK = false
  1023. Rooted = false
  1024. end
  1025.  
  1026.  
  1027. function Warden_Wall()
  1028. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 8, Character)
  1029. if HITFLOOR ~= nil then
  1030. if HITFLOOR.Anchored == true then
  1031. local WALL = HITFLOOR:Clone()
  1032. WALL.Size = VT(45,45,5)
  1033. WALL.Parent = Effects
  1034. WALL.Name = "Wall"
  1035. WALL.CFrame = RootPart.CFrame*CF(0,-65/2.1,-5)*ANGLES(RAD(-15),RAD(0),RAD(0))
  1036. CreateSound(130972023,WALL,5,0.8,false)
  1037. ATTACK = true
  1038. Rooted = true
  1039. local HIT = WALL.Touched:Connect(function(hit)
  1040. if hit.Parent ~= Character then
  1041. hit:BreakJoints()
  1042. end
  1043. end)
  1044. coroutine.resume(coroutine.create(function()
  1045. WACKYEFFECT({Time = 35, EffectType = "Box", Size = WALL.Size, Size2 = WALL.Size*2, Transparency = 0, Transparency2 = 1, CFrame = WALL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1046. for i = 1, 90 do
  1047. Swait()
  1048. WALL.CFrame = WALL.CFrame*CF(0,0.5,0)
  1049. end
  1050. HIT:disconnect()
  1051. wait(5)
  1052. for i = 1, 46 do
  1053. Swait()
  1054. WALL.CFrame = WALL.CFrame*CF(0,-1,0)
  1055. end
  1056. WALL:remove()
  1057. end))
  1058. ATTACK = false
  1059. Rooted = false
  1060. end
  1061. end
  1062. end
  1063.  
  1064. function Psycho()
  1065. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1066. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1067. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1068. if TORSO and HUM.Health > 0 then
  1069. ATTACK = true
  1070. Rooted = false
  1071. local GYRO = IT("BodyGyro",RootPart)
  1072. GYRO.D = 275
  1073. GYRO.P = 20000
  1074. GYRO.MaxTorque = VT(0,40000,0)
  1075. for i=0, 0.8, 0.1 / Animation_Speed do
  1076. Swait()
  1077. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1078. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1079. 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)
  1080. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1081. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1082. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1083. 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)
  1084. end
  1085. local grav = Instance.new("BodyPosition",TORSO)
  1086. grav.D = 1500
  1087. grav.P = 20000
  1088. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1089. grav.position = TORSO.Position+VT(0,15,0)
  1090. Debris:AddItem(grav,10)
  1091. CreateSound(429459101, Torso, 7, 1, false)
  1092. CreateSound(429459101, TORSO, 7, 1, false)
  1093. for i=0, 1, 0.1 / Animation_Speed do
  1094. Swait()
  1095. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1096. 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)
  1097. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(-45), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1098. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(125), RAD(45), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1099. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1100. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1101. end
  1102. GYRO:remove()
  1103. ATTACK = false
  1104. Rooted = false
  1105. end
  1106. end
  1107. end
  1108.  
  1109.  
  1110. function Imperfect_Command()
  1111. ATTACK = true
  1112. Rooted = true
  1113. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1114. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1115. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1116. if TORSO then
  1117. local GYRO = IT("BodyGyro", RootPart)
  1118. GYRO.D = 750
  1119. GYRO.P = 2000
  1120. GYRO.MaxTorque = VT(0, 40000, 0)
  1121. CreateSound("907330103", Torso, 10, 1)
  1122. for i = 0, 1.6, 0.1 / Animation_Speed do
  1123. Swait()
  1124. WACKYEFFECT({
  1125. Time = 5,
  1126. EffectType = "Round Slash",
  1127. Size = VT(0, 0, 0),
  1128. Size2 = VT(0.01, 0, 0.01),
  1129. Transparency = 0.5,
  1130. Transparency2 = 1,
  1131. CFrame = CF(EYE.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
  1132. MoveToPos = nil,
  1133. RotationX = MRANDOM(-50, 50) / 10,
  1134. RotationY = MRANDOM(-50, 50) / 10,
  1135. RotationZ = MRANDOM(-50, 50) / 10,
  1136. Material = "Neon",
  1137. Color = C3(1, 0, 0),
  1138. SoundID = nil,
  1139. SoundPitch = nil,
  1140. SoundVolume = nil
  1141. })
  1142. GYRO.cframe = CF(RootPart.Position, TORSO.Position)
  1143. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.2 / Animation_Speed)
  1144. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.2 / Animation_Speed)
  1145. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(120), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-45)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1146. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1147. if ANIM == "Idle" then
  1148. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1149. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1150. elseif ANIM == "Walk" then
  1151. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1152. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1153. elseif ANIM == "Jump" or ANIM == "Fall" then
  1154. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1155. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1156. end
  1157. end
  1158. GYRO:remove()
  1159. for i = 1, 15 do
  1160. WACKYEFFECT({
  1161. Time = MRANDOM(15, 85),
  1162. EffectType = "Round Slash",
  1163. Size = VT(0, 0, 0),
  1164. Size2 = VT(0.3, 0, 0.3),
  1165. Transparency = 0.5,
  1166. Transparency2 = 1,
  1167. CFrame = CF(TORSO.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
  1168. MoveToPos = nil,
  1169. RotationX = MRANDOM(-50, 50) / 10,
  1170. RotationY = MRANDOM(-50, 50) / 10,
  1171. RotationZ = MRANDOM(-50, 50) / 10,
  1172. Material = "Neon",
  1173. Color = C3(1, 0, 0),
  1174. SoundID = nil,
  1175. SoundPitch = nil,
  1176. SoundVolume = nil
  1177. })
  1178. end
  1179. local bv = Instance.new("BodyVelocity")
  1180. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1181. bv.velocity = CF(Torso.Position, TORSO.Position).lookVector * 5
  1182. bv.Parent = TORSO
  1183. Debris:AddItem(bv, 0.05)
  1184. CreateSound("1222405264", TORSO, 10, 1)
  1185. Petrify(HUM.Parent)
  1186. for i = 0, 0.5, 0.1 / Animation_Speed do
  1187. Swait()
  1188. WACKYEFFECT({
  1189. Time = 5,
  1190. EffectType = "Round Slash",
  1191. Size = VT(0, 0, 0),
  1192. Size2 = VT(0.01, 0, 0.01),
  1193. Transparency = 0.5,
  1194. Transparency2 = 1,
  1195. CFrame = CF(EYE.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
  1196. MoveToPos = nil,
  1197. RotationX = MRANDOM(-50, 50) / 10,
  1198. RotationY = MRANDOM(-50, 50) / 10,
  1199. RotationZ = MRANDOM(-50, 50) / 10,
  1200. Material = "Neon",
  1201. Color = C3(1, 0, 0),
  1202. SoundID = nil,
  1203. SoundPitch = nil,
  1204. SoundVolume = nil
  1205. })
  1206.  
  1207. end
  1208. end
  1209. end
  1210. ATTACK = false
  1211. Rooted = false
  1212. end
  1213.  
  1214.  
  1215.  
  1216. function Prison_Key()
  1217. if Mouse.Target ~= nil then
  1218. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1219. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1220. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1221. local GYRO = IT("BodyGyro",RootPart)
  1222. GYRO.D = 750
  1223. GYRO.P = 20000
  1224. GYRO.MaxTorque = VT(0,40000000,0)
  1225. local grav = Instance.new("BodyPosition",TORSO)
  1226. grav.D = 15
  1227. grav.P = 20000
  1228. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1229. grav.position = TORSO.Position
  1230. local GYRO2 = IT("BodyGyro",TORSO)
  1231. GYRO2.D = 750
  1232. GYRO2.P = 20000
  1233. GYRO2.MaxTorque = VT(0,40000000,0)
  1234. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1235. grav.Name = "Jail"
  1236. local LOCKPARTS = {}
  1237. ATTACK = true
  1238. Rooted = false
  1239. local LOCK = IT("Model",Effects)
  1240. LOCK.Name = "Lock"
  1241. local LOCK2 = IT("Model",LOCK)
  1242. LOCK2.Name = "Metal"
  1243. --CREATE LOCK--
  1244. local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1))
  1245. LOCK.PrimaryPart = BASE
  1246. BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
  1247. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3))
  1248. PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
  1249. MakeForm(PRT,"Cyl")
  1250. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
  1251. PRT.Color = C3(0,0,0)
  1252. PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
  1253. MakeForm(PRT,"Cyl")
  1254. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1))
  1255. PRT.Color = C3(0,0,0)
  1256. PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
  1257. for i = 1, 45 do
  1258. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  1259. PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
  1260. end
  1261. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  1262. PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
  1263. LOCK2.PrimaryPart = PRT
  1264. ---------------
  1265. local CHILDREN = LOCK:GetDescendants()
  1266. for index, CHILD in pairs(CHILDREN) do
  1267. if CHILD:IsA("BasePart") then
  1268. CHILD.Transparency = 1
  1269. end
  1270. end
  1271. for i = 1, 75 do
  1272. LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
  1273. Swait()
  1274. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1275. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1276. local CHILDREN = LOCK:GetDescendants()
  1277. for index, CHILD in pairs(CHILDREN) do
  1278. if CHILD:IsA("BasePart") then
  1279. CHILD.Transparency = CHILD.Transparency - 1/75
  1280. end
  1281. end
  1282. end
  1283. HUM.DisplayDistanceType = "None"
  1284. local KEY = IT("Model",Effects)
  1285. KEY.Name = "Key"
  1286. --CREATE KEY--
  1287. local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Really blue", "KeyBase", VT(0.1, 1, 0.1),false)
  1288. KEY.PrimaryPart = KBASE
  1289. KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
  1290. local WLD = weldBetween(RightArm,KBASE)
  1291. for i = 1, 45 do
  1292. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really blue", "Key", VT(0.1, 0.1, 0.1),false)
  1293. PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
  1294. weldBetween(KBASE,PRT)
  1295. end
  1296. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Really blue", "Key", VT(0.3, 0.1, 0.1),false)
  1297. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
  1298. weldBetween(KBASE,PRT)
  1299. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Reall blue", "Key", VT(0.3, 0.1, 0.1),false)
  1300. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
  1301. weldBetween(KBASE,PRT)
  1302. --------------
  1303. Rooted = true
  1304.  
  1305. for i = 1, 10 do
  1306. Swait()
  1307. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1308. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1309. end
  1310. CreateSound(1149318312,BASE,5,1,false)
  1311. CreateSound(160772554,BASE,3,1,false)
  1312. LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
  1313. for i = 1, 4 do
  1314. WACKYEFFECT({Time = 35, EffectType = "Crystal", Size = VT(1,1,1), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(1,1.45,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really blu".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1315. end
  1316. WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1)*25, Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really blue".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  1317. wait(1)
  1318. TORSO.Parent.Parent = LOCK
  1319. for i = 1, 75 do
  1320. Swait()
  1321. local CHILDREN = KEY:GetDescendants()
  1322. for index, CHILD in pairs(CHILDREN) do
  1323. if CHILD:IsA("BasePart") then
  1324. CHILD.Transparency = i/25
  1325. end
  1326. end
  1327. local CHILDREN = LOCK:GetDescendants()
  1328. for index, CHILD in pairs(CHILDREN) do
  1329. if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
  1330. CHILD.Transparency = CHILD.Transparency + 1/75
  1331. elseif CHILD.ClassName == "Decal" then
  1332. CHILD.Transparency = CHILD.Transparency + 1/75
  1333. end
  1334. end
  1335. end
  1336. TORSO.Parent:ClearAllChildren()
  1337. KEY:remove()
  1338. LOCK:remove()
  1339.  
  1340. GYRO:remove()
  1341. ATTACK = false
  1342. Rooted = false
  1343. end
  1344. end
  1345. end
  1346.  
  1347.  
  1348.  
  1349.  
  1350. --//=================================\\
  1351. --|| ASSIGN THINGS TO KEYS
  1352. --\\=================================//
  1353.  
  1354. function MouseDown(Mouse)
  1355. HOLD = true
  1356. if ATTACK == false then
  1357. end
  1358. end
  1359.  
  1360. function MouseUp(Mouse)
  1361. HOLD = false
  1362. end
  1363.  
  1364. function KeyDown(Key)
  1365. if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
  1366. KEYHOLD = true
  1367. if Key == "z" and ATTACK == false then
  1368. CyberOutburst()
  1369. end
  1370.  
  1371. if Key == "b" and ATTACK == false then
  1372. Technobeam()
  1373. end
  1374.  
  1375. if Key == "x" and ATTACK == false then
  1376. Prison_Key()
  1377. end
  1378.  
  1379.  
  1380. if Key == "n" and ATTACK == false then
  1381. Warden_Wall()
  1382. end
  1383.  
  1384.  
  1385. if Key == "m" and ATTACK == false then
  1386. Psycho()
  1387. end
  1388.  
  1389.  
  1390. if Key == "c" and ATTACK == false then
  1391. Technowarp()
  1392. end
  1393.  
  1394. if Key == "f" and ATTACK == false then
  1395. Imperfect_Command()
  1396. end
  1397.  
  1398. if Key == "v" and ATTACK == false then
  1399. CyberSmash()
  1400. end
  1401.  
  1402. if Key == "t" then
  1403. local TAUNT = CreateSound("132392118", Head, 10, 0.8)
  1404. TAUNT.TimePosition = 1.1
  1405. end
  1406.  
  1407. if Key == "r" then
  1408. local TAUNT = CreateSound("944163953", Head, 10, 0.8)
  1409. TAUNT.TimePosition = 1.1
  1410.  
  1411. end
  1412.  
  1413.  
  1414. if Key == "y" then
  1415. local TAUNT = CreateSound("132392101", Head, 10, 0.8)
  1416. TAUNT.TimePosition = 1.1
  1417.  
  1418. end
  1419. end
  1420. end
  1421.  
  1422. function KeyUp(Key)
  1423. if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
  1424. KEYHOLD = false
  1425. end
  1426. end
  1427.  
  1428. Mouse.Button1Down:connect(function(NEWKEY)
  1429. MouseDown(NEWKEY)
  1430. end)
  1431. Mouse.Button1Up:connect(function(NEWKEY)
  1432. MouseUp(NEWKEY)
  1433. end)
  1434. Mouse.KeyDown:connect(function(NEWKEY)
  1435. KeyDown(NEWKEY)
  1436. end)
  1437. Mouse.KeyUp:connect(function(NEWKEY)
  1438. KeyUp(NEWKEY)
  1439. end)
  1440.  
  1441. --//=================================\\
  1442. --\\=================================//
  1443.  
  1444.  
  1445. function unanchor()
  1446. if UNANCHOR == true then
  1447. g = Character:GetChildren()
  1448. for i = 1, #g do
  1449. if g[i].ClassName == "Part" then
  1450. g[i].Anchored = false
  1451. end
  1452. end
  1453. end
  1454. end
  1455.  
  1456.  
  1457. --//=================================\\
  1458. --|| WRAP THE WHOLE SCRIPT UP
  1459. --\\=================================//
  1460.  
  1461. Humanoid.Changed:connect(function(Jump)
  1462. if Jump == "Jump" and (Disable_Jump == true) then
  1463. Humanoid.Jump = false
  1464. end
  1465. end)
  1466.  
  1467. Humanoid.HipHeight = 2
  1468.  
  1469. while true do
  1470. Swait()
  1471. refit()
  1472. Character.Parent = workspace
  1473. Humanoid.Parent = Character
  1474. ANIMATE.Parent = nil
  1475. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1476. IDLEANIMATION:Play()
  1477. SINE = SINE + CHANGE
  1478. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1479. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1480. HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25, Character)
  1481. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1482. EyeWeld3.C1 = Clerp(EyeWeld3.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed)
  1483. EyeWeld2.C1 = Clerp(EyeWeld2.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed)
  1484. EyeWeld.C1 = Clerp(EyeWeld.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(SINE*2)), 1 / Animation_Speed)
  1485. for LW = 1, #LEFTWINGS do
  1486. if LEFTWINGS[LW] ~= nil then
  1487. 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)
  1488. end
  1489. end
  1490. for RW = 1, #RIGHTWINGS do
  1491. if RIGHTWINGS[RW] ~= nil then
  1492. 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)
  1493. end
  1494. end
  1495. if ATTACK == false then
  1496. if TORSOVELOCITY < 1 then
  1497. 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)
  1498. 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)
  1499. 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)
  1500. 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)
  1501. 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)
  1502. 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)
  1503. elseif TORSOVELOCITY > 1 then
  1504. 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)
  1505. 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)
  1506. 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)
  1507. 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)
  1508. 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)
  1509. 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)
  1510. end
  1511. end
  1512. for _, c in pairs(Character:GetChildren()) do
  1513. if c.ClassName == "Part" and c.Name ~= "Eye" then
  1514. c.Material = "Neon"
  1515. if c:FindFirstChildOfClass("ParticleEmitter") then
  1516. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1517. end
  1518. if c ~= Head and c ~= RootPart and c:FindFirstChild("BoxEffect") == nil then
  1519. local EF = Instance.new("SelectionBox",c)
  1520. EF.Adornee = c
  1521. EF.Color = BrickColor.new("Really blue")
  1522. EF.LineThickness = 0.01
  1523. EF.Transparency = 0
  1524. EF.Name = "BoxEffect"
  1525. end
  1526. c.Color = C3(0,0,0)
  1527. if c == Head then
  1528. --[[if c:FindFirstChild("Dominus") == nil then
  1529. local M = CreateMesh("SpecialMesh", c, "FileMesh", "379552190", "379541232", VT(1,1,1)*1.1, VT(0,0,0))
  1530. M.Name = "Dominus"
  1531. end]]--
  1532. if c:FindFirstChild("face") then
  1533. c.face:remove()
  1534. end
  1535. end
  1536. elseif c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "CharacterMesh" then
  1537. c:remove()
  1538. end
  1539. end
  1540. if HITFLOOR ~= nil and MRANDOM(1,6) == 1 then
  1541. local POSITION = CF(HITPOS)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(MRANDOM(5,15),0,0).p
  1542. local BOXFLOOR,BOXPOS = Raycast(POSITION+VT(0,1,0), (CF(POSITION, POSITION + VT(0, -1, 0))).lookVector, 5, Character)
  1543. if BOXFLOOR ~= nil then
  1544. 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 blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1545. end
  1546. end
  1547. unanchor()
  1548. Humanoid.MaxHealth = "inf"
  1549. Humanoid.Health = "inf"
  1550. if Rooted == false then
  1551. Disable_Jump = false
  1552. Humanoid.WalkSpeed = Speed
  1553. elseif Rooted == true then
  1554. Disable_Jump = true
  1555. Humanoid.WalkSpeed = 0
  1556. end
  1557. for _, c in pairs(workspace:GetChildren()) do
  1558. if c.ClassName == "Model" and c:FindFirstChild("Humanoid") and c ~= Character then
  1559. end
  1560. end
  1561. script.Parent = WEAPONGUI
  1562. Humanoid.Name = "Monarch"
  1563. sick.Parent = Effects
  1564. sick.Pitch = 1
  1565. sick.Playing = true
  1566. for _, q in pairs(Head:GetChildren()) do
  1567. if q.ClassName == "Sound" and q.Name ~= "Audio" then
  1568. q:remove()
  1569. end
  1570. end
  1571. Humanoid.DisplayDistanceType = "None"
  1572. end
  1573.  
  1574. --//=================================\\
  1575. --\\=================================//
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581. --//====================================================\\--
  1582. --|| END OF SCRIPT
  1583. --\\====================================================//--
  1584.  
  1585. -------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement