DISTROYER190

Untitled

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