cat568

Untitled

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