Advertisement
Doggdogg1

Untitled

Jul 20th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --//====================================================\\--
  2. --|| EDITED BY DOGGDOGG1
  3. --\\====================================================//--
  4.  
  5. wait(0.2)
  6.  
  7. Player = game:GetService("Players").LocalPlayer
  8. PlayerGui = Player.PlayerGui
  9. Cam = workspace.CurrentCamera
  10. Backpack = Player.Backpack
  11. Character = Player.Character
  12. Humanoid = Character.Humanoid
  13. Mouse = Player:GetMouse()
  14. RootPart = Character["HumanoidRootPart"]
  15. Torso = Character["Torso"]
  16. Head = Character["Head"]
  17. RightArm = Character["Right Arm"]
  18. LeftArm = Character["Left Arm"]
  19. RightLeg = Character["Right Leg"]
  20. LeftLeg = Character["Left Leg"]
  21. RootJoint = RootPart["RootJoint"]
  22. Neck = Torso["Neck"]
  23. RightShoulder = Torso["Right Shoulder"]
  24. LeftShoulder = Torso["Left Shoulder"]
  25. RightHip = Torso["Right Hip"]
  26. LeftHip = Torso["Left Hip"]
  27. local sick = Instance.new("Sound",Character)
  28. sick.SoundId = "rbxassetid://894909759"
  29. sick.Looped = true
  30. sick.Volume = 2
  31.  
  32. IT = Instance.new
  33. CF = CFrame.new
  34. VT = Vector3.new
  35. RAD = math.rad
  36. C3 = Color3.new
  37. UD2 = UDim2.new
  38. BRICKC = BrickColor.new
  39. ANGLES = CFrame.Angles
  40. EULER = CFrame.fromEulerAnglesXYZ
  41. COS = math.cos
  42. ACOS = math.acos
  43. SIN = math.sin
  44. ASIN = math.asin
  45. ABS = math.abs
  46. MRANDOM = math.random
  47. FLOOR = math.floor
  48.  
  49. --//=================================\\
  50. --|| USEFUL VALUES
  51. --\\=================================//
  52.  
  53. Animation_Speed = 3
  54. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  55. local Speed = 45
  56. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  57. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  58. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  59. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  60. local DAMAGEMULTIPLIER = 1
  61. local ANIM = "Idle"
  62. local ATTACK = false
  63. local EQUIPPED = false
  64. local HOLD = false
  65. local COMBO = 1
  66. local Rooted = false
  67. local SINE = 0
  68. local KEYHOLD = false
  69. local CHANGE = 2 / Animation_Speed
  70. local WALKINGANIM = false
  71. local VALUE1 = false
  72. local VALUE2 = false
  73. local ROBLOXIDLEANIMATION = IT("Animation")
  74. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  75. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  76. --ROBLOXIDLEANIMATION.Parent = Humanoid
  77. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  78. WEAPONGUI.Name = "Weapon GUI"
  79. local Effects = IT("Folder", Character)
  80. Effects.Name = "Effects"
  81. local ANIMATOR = Humanoid.Animator
  82. local ANIMATE = Character.Animate
  83. local UNANCHOR = true
  84. local HITPOS = nil
  85. local HITFLOOR = nil
  86. local LEFTWINGS = {}
  87. local RIGHTWINGS = {}
  88. local BODY = {}
  89.  
  90. --//=================================\\
  91. --\\=================================//
  92.  
  93.  
  94. --//=================================\\
  95. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  96. --\\=================================//
  97.  
  98. ArtificialHB = Instance.new("BindableEvent", script)
  99. ArtificialHB.Name = "ArtificialHB"
  100.  
  101. script:WaitForChild("ArtificialHB")
  102.  
  103. frame = Frame_Speed
  104. tf = 0
  105. allowframeloss = false
  106. tossremainder = false
  107. lastframe = tick()
  108. script.ArtificialHB:Fire()
  109.  
  110. game:GetService("RunService").Heartbeat:connect(function(s, p)
  111. tf = tf + s
  112. if tf >= frame then
  113. if allowframeloss then
  114. script.ArtificialHB:Fire()
  115. lastframe = tick()
  116. else
  117. for i = 1, math.floor(tf / frame) do
  118. script.ArtificialHB:Fire()
  119. end
  120. lastframe = tick()
  121. end
  122. if tossremainder then
  123. tf = 0
  124. else
  125. tf = tf - frame * math.floor(tf / frame)
  126. end
  127. end
  128. end)
  129.  
  130. --//=================================\\
  131. --\\=================================//
  132.  
  133. --//=================================\\
  134. --|| SOME FUNCTIONS
  135. --\\=================================//
  136.  
  137. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  138. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  139. end
  140.  
  141. function PositiveAngle(NUMBER)
  142. if NUMBER >= 0 then
  143. NUMBER = 0
  144. end
  145. return NUMBER
  146. end
  147.  
  148. function NegativeAngle(NUMBER)
  149. if NUMBER <= 0 then
  150. NUMBER = 0
  151. end
  152. return NUMBER
  153. end
  154.  
  155. function Swait(NUMBER)
  156. if NUMBER == 0 or NUMBER == nil then
  157. ArtificialHB.Event:wait()
  158. else
  159. for i = 1, NUMBER do
  160. ArtificialHB.Event:wait()
  161. end
  162. end
  163. end
  164.  
  165. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  166. local NEWMESH = IT(MESH)
  167. if MESH == "SpecialMesh" then
  168. NEWMESH.MeshType = MESHTYPE
  169. if MESHID ~= "nil" and MESHID ~= "" then
  170. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  171. end
  172. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  173. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  174. end
  175. end
  176. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  177. NEWMESH.Scale = SCALE
  178. NEWMESH.Parent = PARENT
  179. return NEWMESH
  180. end
  181.  
  182. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  183. local NEWPART = IT("Part")
  184. NEWPART.formFactor = FORMFACTOR
  185. NEWPART.Reflectance = REFLECTANCE
  186. NEWPART.Transparency = TRANSPARENCY
  187. NEWPART.CanCollide = false
  188. NEWPART.Locked = true
  189. NEWPART.Anchored = true
  190. if ANCHOR == false then
  191. NEWPART.Anchored = false
  192. end
  193. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  194. NEWPART.Name = NAME
  195. NEWPART.Size = SIZE
  196. NEWPART.Position = Torso.Position
  197. NEWPART.Material = MATERIAL
  198. NEWPART:BreakJoints()
  199. NEWPART.Parent = PARENT
  200. return NEWPART
  201. end
  202.  
  203. local function weldBetween(a, b)
  204. local weldd = Instance.new("ManualWeld")
  205. weldd.Part0 = a
  206. weldd.Part1 = b
  207. weldd.C0 = CFrame.new()
  208. weldd.C1 = b.CFrame:inverse() * a.CFrame
  209. weldd.Parent = a
  210. return weldd
  211. end
  212.  
  213.  
  214. function QuaternionFromCFrame(cf)
  215. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  216. local trace = m00 + m11 + m22
  217. if trace > 0 then
  218. local s = math.sqrt(1 + trace)
  219. local recip = 0.5 / s
  220. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  221. else
  222. local i = 0
  223. if m11 > m00 then
  224. i = 1
  225. end
  226. if m22 > (i == 0 and m00 or m11) then
  227. i = 2
  228. end
  229. if i == 0 then
  230. local s = math.sqrt(m00 - m11 - m22 + 1)
  231. local recip = 0.5 / s
  232. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  233. elseif i == 1 then
  234. local s = math.sqrt(m11 - m22 - m00 + 1)
  235. local recip = 0.5 / s
  236. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  237. elseif i == 2 then
  238. local s = math.sqrt(m22 - m00 - m11 + 1)
  239. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  240. end
  241. end
  242. end
  243.  
  244. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  245. local xs, ys, zs = x + x, y + y, z + z
  246. local wx, wy, wz = w * xs, w * ys, w * zs
  247. local xx = x * xs
  248. local xy = x * ys
  249. local xz = x * zs
  250. local yy = y * ys
  251. local yz = y * zs
  252. local zz = z * zs
  253. 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))
  254. end
  255.  
  256. function QuaternionSlerp(a, b, t)
  257. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  258. local startInterp, finishInterp;
  259. if cosTheta >= 0.0001 then
  260. if (1 - cosTheta) > 0.0001 then
  261. local theta = ACOS(cosTheta)
  262. local invSinTheta = 1 / SIN(theta)
  263. startInterp = SIN((1 - t) * theta) * invSinTheta
  264. finishInterp = SIN(t * theta) * invSinTheta
  265. else
  266. startInterp = 1 - t
  267. finishInterp = t
  268. end
  269. else
  270. if (1 + cosTheta) > 0.0001 then
  271. local theta = ACOS(-cosTheta)
  272. local invSinTheta = 1 / SIN(theta)
  273. startInterp = SIN((t - 1) * theta) * invSinTheta
  274. finishInterp = SIN(t * theta) * invSinTheta
  275. else
  276. startInterp = t - 1
  277. finishInterp = t
  278. end
  279. end
  280. 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
  281. end
  282.  
  283. function Clerp(a, b, t)
  284. local qa = {QuaternionFromCFrame(a)}
  285. local qb = {QuaternionFromCFrame(b)}
  286. local ax, ay, az = a.x, a.y, a.z
  287. local bx, by, bz = b.x, b.y, b.z
  288. local _t = 1 - t
  289. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  290. end
  291.  
  292. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  293. local frame = IT("Frame")
  294. frame.BackgroundTransparency = TRANSPARENCY
  295. frame.BorderSizePixel = BORDERSIZEPIXEL
  296. frame.Position = POSITION
  297. frame.Size = SIZE
  298. frame.BackgroundColor3 = COLOR
  299. frame.BorderColor3 = BORDERCOLOR
  300. frame.Name = NAME
  301. frame.Parent = PARENT
  302. return frame
  303. end
  304.  
  305. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  306. local label = IT("TextLabel")
  307. label.BackgroundTransparency = 1
  308. label.Size = UD2(1, 0, 1, 0)
  309. label.Position = UD2(0, 0, 0, 0)
  310. label.TextColor3 = TEXTCOLOR
  311. label.TextStrokeColor3 = BRICKC"Pink".Color
  312. label.TextStrokeTransparency = STROKETRANSPARENCY
  313. label.TextTransparency = TRANSPARENCY
  314. label.FontSize = TEXTFONTSIZE
  315. label.Font = TEXTFONT
  316. label.BorderSizePixel = BORDERSIZEPIXEL
  317. label.TextScaled = false
  318. label.Text = TEXT
  319. label.Name = NAME
  320. label.Parent = PARENT
  321. return label
  322. end
  323.  
  324. function NoOutlines(PART)
  325. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  326. end
  327.  
  328. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  329. local NEWWELD = IT(TYPE)
  330. NEWWELD.Part0 = PART0
  331. NEWWELD.Part1 = PART1
  332. NEWWELD.C0 = C0
  333. NEWWELD.C1 = C1
  334. NEWWELD.Parent = PARENT
  335. return NEWWELD
  336. end
  337.  
  338. local S = IT("Sound")
  339. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  340. local NEWSOUND = nil
  341. coroutine.resume(coroutine.create(function()
  342. NEWSOUND = S:Clone()
  343. NEWSOUND.Parent = PARENT
  344. NEWSOUND.Volume = VOLUME
  345. NEWSOUND.Pitch = PITCH
  346. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  347. NEWSOUND:play()
  348. NEWSOUND.Name = "Audio"
  349. if DOESLOOP == true then
  350. NEWSOUND.Looped = true
  351. else
  352. repeat Swait() until NEWSOUND.Playing == false
  353. NEWSOUND:remove()
  354. end
  355. end))
  356. return NEWSOUND
  357. end
  358.  
  359. function CFrameFromTopBack(at, top, back)
  360. local right = top:Cross(back)
  361. 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)
  362. end
  363.  
  364. --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})
  365. function WACKYEFFECT(Table)
  366. local TYPE = (Table.EffectType or "Sphere")
  367. local SIZE = (Table.Size or VT(1,1,1))
  368. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  369. local TRANSPARENCY = (Table.Transparency or 0)
  370. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  371. local CFRAME = (Table.CFrame or Torso.CFrame)
  372. local MOVEDIRECTION = (Table.MoveToPos or nil)
  373. local ROTATION1 = (Table.RotationX or 0)
  374. local ROTATION2 = (Table.RotationY or 0)
  375. local ROTATION3 = (Table.RotationZ or 0)
  376. local MATERIAL = (Table.Material or "Neon")
  377. local COLOR = (Table.Color or C3(1,1,1))
  378. local TIME = (Table.Time or 45)
  379. local SOUNDID = (Table.SoundID or nil)
  380. local SOUNDPITCH = (Table.SoundPitch or nil)
  381. local SOUNDVOLUME = (Table.SoundVolume or nil)
  382. coroutine.resume(coroutine.create(function()
  383. local PLAYSSOUND = false
  384. local SOUND = nil
  385. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  386. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  387. PLAYSSOUND = true
  388. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  389. end
  390. EFFECT.Color = COLOR
  391. local MSH = nil
  392. if TYPE == "Sphere" then
  393. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  394. elseif TYPE == "Block" then
  395. MSH = IT("BlockMesh",EFFECT)
  396. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  397. elseif TYPE == "Box" then
  398. MSH = IT("BlockMesh",EFFECT)
  399. MSH.Scale = SIZE
  400. elseif TYPE == "Wave" then
  401. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  402. elseif TYPE == "Ring" then
  403. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  404. elseif TYPE == "Slash" then
  405. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  406. elseif TYPE == "Round Slash" then
  407. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  408. elseif TYPE == "Swirl" then
  409. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  410. elseif TYPE == "Skull" then
  411. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  412. elseif TYPE == "Crystal" then
  413. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  414. end
  415. if MSH ~= nil then
  416. local MOVESPEED = nil
  417. if MOVEDIRECTION ~= nil then
  418. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  419. end
  420. local GROWTH = SIZE - ENDSIZE
  421. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  422. if TYPE == "Block" then
  423. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  424. else
  425. EFFECT.CFrame = CFRAME
  426. end
  427. for LOOP = 1, TIME do
  428. Swait()
  429. MSH.Scale = MSH.Scale - GROWTH/TIME
  430. if TYPE == "Wave" then
  431. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  432. end
  433. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  434. if TYPE == "Block" then
  435. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  436. else
  437. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  438. end
  439. if MOVEDIRECTION ~= nil then
  440. local ORI = EFFECT.Orientation
  441. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  442. EFFECT.Orientation = ORI
  443. end
  444. end
  445. if PLAYSSOUND == false then
  446. EFFECT:remove()
  447. else
  448. repeat Swait() until SOUND.Playing == false
  449. EFFECT:remove()
  450. end
  451. else
  452. if PLAYSSOUND == false then
  453. EFFECT:remove()
  454. else
  455. repeat Swait() until SOUND.Playing == false
  456. EFFECT:remove()
  457. end
  458. end
  459. end))
  460. end
  461.  
  462. function Shatter(Part)
  463. if Part.Transparency == 0 then
  464. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, Part.BrickColor, "OOF", VT(0,0,0))
  465. Debris:AddItem(SOUNDPART,5)
  466. CreateSound("84005018", SOUNDPART, 3, MRANDOM(8,12)/10, false)
  467. local SIZE = Part.Size.X + Part.Size.Y + Part.Size.Z
  468. local SIZESET = SIZE/4
  469. local XOffset = Part.Size.X*1.5/SIZESET
  470. local YOffset = Part.Size.Y*1.5/SIZESET
  471. local ZOffset = Part.Size.Z*1.5/SIZESET
  472. for x = 1, math.ceil(XOffset) do
  473. for y = 1, math.ceil(YOffset) do
  474. for z = 1, math.ceil(ZOffset) do
  475. local SHARD = CreatePart(3, Effects, "Neon", 0, 0, Part.BrickColor, "Shard", VT(SIZE,SIZE,SIZE)/10, false)
  476. SHARD.CanCollide = true
  477. SHARD.CFrame = Part.CFrame*CF((Part.Size.X/2-x/4),(Part.Size.Y/2-y/4),(Part.Size.Z/2-z/4))
  478. SHARD.Velocity = VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))*3
  479. Debris:AddItem(SHARD,MRANDOM(10,25)/3)
  480. end
  481. end
  482. end
  483. end
  484. Part:remove()
  485. end
  486.  
  487. function MakeForm(PART,TYPE)
  488. if TYPE == "Cyl" then
  489. local MSH = IT("CylinderMesh",PART)
  490. elseif TYPE == "Ball" then
  491. local MSH = IT("SpecialMesh",PART)
  492. MSH.MeshType = "Sphere"
  493. elseif TYPE == "Wedge" then
  494. local MSH = IT("SpecialMesh",PART)
  495. MSH.MeshType = "Wedge"
  496. end
  497. end
  498.  
  499. Debris = game:GetService("Debris")
  500.  
  501. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  502. local DIRECTION = CF(StartPos,EndPos).lookVector
  503. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  504. end
  505.  
  506. function turnto(position)
  507. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  508. end
  509.  
  510. --//=================================\\
  511. --|| WEAPON CREATION
  512. --\\=================================//
  513.  
  514. local Back = CreatePart(3, Character, "Neon", 0, 0, "Pink", "Wing", VT(1,1,0.35),false)
  515. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Back, CF(0, 0.5, 1.2) * ANGLES(RAD(0),RAD(0),RAD(45)), CF(0, 0, 0))
  516.  
  517. local ANGLE = 35
  518. for i = 1, 5 do
  519. local Wing = CreatePart(3, Character, "Neon", 0, 0, "Pink", "Wing", VT(0.15,2+(i/2),0.15),false)
  520. 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))
  521. local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Pink", "Wing", VT(0.25,1,0.25),false)
  522. CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
  523. ANGLE = ANGLE - 15
  524. table.insert(LEFTWINGS,WingWeld)
  525. end
  526. ANGLE = 35
  527. for i = 1, 5 do
  528. local Wing = CreatePart(3, Character, "Neon", 0, 0, "Pink", "Wing", VT(0.15,2+(i/2),0.15),false)
  529. 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))
  530. local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Pink", "Wing", VT(0.25,1,0.25),false)
  531. CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
  532. ANGLE = ANGLE - 15
  533. table.insert(RIGHTWINGS,WingWeld)
  534. end
  535. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Pink", "Eye", VT(0.3,0.3,0.3),false)
  536. 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))
  537. local Eye2 = CreatePart(3, Character, "Neon", 0, 0.5, "Pink", "Eye", VT(0.5,0.5,0.29),false)
  538. 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))
  539.  
  540. local Eye3 = CreatePart(3, Character, "Neon", 0, 0, "Pink", "Eye", VT(0.1,0.1,0.31),false)
  541. 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))
  542.  
  543. local SKILLTEXTCOLOR = BRICKC"Pink".Color
  544. local SKILLFONT = "SciFi"
  545. local SKILLTEXTSIZE = 6
  546.  
  547. local naeeym2 = Instance.new("BillboardGui",Character)
  548. naeeym2.AlwaysOnTop = true
  549. naeeym2.Size = UDim2.new(5,35,2,15)
  550. naeeym2.StudsOffset = Vector3.new(0,1.2,0)
  551. naeeym2.Adornee = Character.Head
  552. naeeym2.Name = "Name"
  553. naeeym2.PlayerToHideFrom = Player
  554. local tecks2 = Instance.new("TextLabel",naeeym2)
  555. tecks2.BackgroundTransparency = 1
  556. tecks2.TextScaled = true
  557. tecks2.BorderSizePixel = 0
  558. tecks2.Text = "Pink Cyber Monarch :3 "
  559. tecks2.Font = SKILLFONT
  560. tecks2.TextSize = 30
  561. tecks2.TextStrokeTransparency = 0
  562. tecks2.TextColor3 = C3(0,0,0)
  563. tecks2.TextStrokeColor3 = BRICKC"Pink".Color
  564. tecks2.Size = UDim2.new(1,0,0.5,0)
  565. tecks2.Parent = naeeym2
  566.  
  567. for _, c in pairs(Character:GetChildren()) do
  568. if c.ClassName == "Part" then
  569. table.insert(BODY,{c,Character})
  570. for _, q in pairs(c:GetChildren()) do
  571. if q.ClassName == "Motor6D" or q.ClassName == "Weld" or q.ClassName == "ManualWeld" then
  572. table.insert(BODY,{q,c})
  573. end
  574. end
  575. end
  576. end
  577.  
  578. function refit()
  579. Character.Parent = workspace
  580. for e = 1, #BODY do
  581. if BODY[e] ~= nil then
  582. local STUFF = BODY[e]
  583. local PART = STUFF[1]
  584. local PARENT = STUFF[2]
  585. PART.Parent = PARENT
  586. end
  587. end
  588. end
  589.  
  590. Humanoid.HealthChanged:connect(function()
  591. Humanoid.Parent = nil
  592. Humanoid.MaxHealth = "inf"
  593. Humanoid.Health = "inf"
  594. refit()
  595. Humanoid.Parent = Character
  596. end)
  597.  
  598. Humanoid.Died:connect(function()
  599. Humanoid.Parent = nil
  600. Humanoid.MaxHealth = "inf"
  601. Humanoid.Health = "inf"
  602. refit()
  603. Humanoid.Parent = Character
  604. end)
  605.  
  606. 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")
  607. 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")
  608. 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")
  609. 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")
  610.  
  611. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Magic Cyber Out-Burst", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  612. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Pink Techno Beam", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  613. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Retro Techno Warp", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  614. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Intense Cyber Smash", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  615.  
  616. --//=================================\\
  617. --|| DAMAGING
  618. --\\=================================//
  619.  
  620. function killnearest(position,range,EFFECT)
  621. for i,v in ipairs(workspace:GetChildren()) do
  622. local body = v:GetChildren()
  623. for part = 1, #body do
  624. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  625. local SIZE = body[part].Size.Magnitude
  626. if(body[part].Position - position).Magnitude < range + SIZE/2 then
  627. if v.ClassName == "Model" then
  628. if v:FindFirstChildOfClass("Humanoid") ~= nil then
  629. if v:FindFirstChildOfClass("Humanoid").Health > 0 then
  630. v:BreakJoints()
  631. if EFFECT == "Glitch" then
  632. coroutine.resume(coroutine.create(function()
  633. local ORIGINPOS = body[part].CFrame
  634. local SIZE = body[part].Size
  635. for i = 1, 100 do
  636. Swait()
  637. local PART = body[part]
  638. PART.Anchored = true
  639. PART.Size = SIZE*MRANDOM(5,15)/10
  640. PART.CFrame = ORIGINPOS*CF(MRANDOM(-15,15)/15,MRANDOM(-15,15)/15,MRANDOM(-15,15)/15)
  641. end
  642. body[part]:remove()
  643. end))
  644. elseif EFFECT == "Shatter" then
  645. for _, c in pairs(v:GetChildren()) do
  646. if c.ClassName == "Part" or c.ClassName == "MeshPart" then
  647. Shatter(c)
  648. end
  649. end
  650. end
  651. end
  652. end
  653. end
  654. end
  655. end
  656. end
  657. end
  658. end
  659.  
  660. --//=================================\\
  661. --|| ATTACK FUNCTIONS AND STUFF
  662. --\\=================================//
  663.  
  664. function CyberOutburst()
  665. if HITFLOOR ~= nil then
  666. ATTACK = true
  667. Rooted = true
  668. for i=0, 2, 0.1 / Animation_Speed do
  669. Swait()
  670. 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})
  671. 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)
  672. 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)
  673. 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)
  674. 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)
  675. 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)
  676. 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)
  677. end
  678. for i=0, 2, 0.1 / Animation_Speed do
  679. Swait()
  680. 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)
  681. 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)
  682. 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)
  683. 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)
  684. 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)
  685. 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)
  686. end
  687. 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})
  688. 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})
  689. 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})
  690. for i=0, 0.4, 0.1 / Animation_Speed do
  691. Swait()
  692. killnearest(Torso.Position,45,"Glitch")
  693. 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})
  694. 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})
  695. 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)
  696. 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)
  697. 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)
  698. 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)
  699. 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)
  700. 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)
  701. end
  702. ATTACK = false
  703. Rooted = false
  704. end
  705. end
  706.  
  707. function Technobeam()
  708. ATTACK = true
  709. Rooted = false
  710. local GYRO = IT("BodyGyro",RootPart)
  711. GYRO.D = 100
  712. GYRO.P = 2000
  713. GYRO.MaxTorque = VT(0,4000000,0)
  714. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  715. CreateSound("93724183", RightArm, 5, 1, false)
  716. for i=1, 35 do
  717. Swait()
  718. 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})
  719. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  720. 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)
  721. 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)
  722. 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)
  723. 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)
  724. 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)
  725. 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)
  726. end
  727. local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Pink", "Lazer", VT(0,0,0))
  728. local LOOP = CreateSound("415700134", RightArm, 5, 1, false)
  729. local TOCH = BEAM.Touched:Connect(function(hit)
  730. if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
  731. Shatter(hit)
  732. end
  733. end)
  734. local I = 0
  735. repeat
  736. Swait()
  737. I = I + 1
  738. if I <= 10 then
  739. BEAM.Transparency = BEAM.Transparency - 0.1
  740. end
  741. local STARTPOS = RightArm.CFrame*CF(0,-4,0).p
  742. local ENDHIT,ENDPOS = CastProperRay(STARTPOS,Mouse.Hit.p,650,Character)
  743. local DISTANCE = (STARTPOS - ENDPOS).Magnitude
  744. BEAM.CFrame = CF(STARTPOS,ENDPOS)*CF(0,0,-DISTANCE/2)*ANGLES(RAD(0),RAD(0),RAD(I*5))
  745. BEAM.Size = VT(2,2,DISTANCE)
  746. 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})
  747. 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})
  748. 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})
  749. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  750. 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)
  751. 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)
  752. 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)
  753. 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)
  754. 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)
  755. 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)
  756. if ENDHIT ~= nil then
  757. if ENDHIT.Anchored == false and ENDHIT.Parent ~= Effects then
  758. Shatter(ENDHIT)
  759. end
  760. end
  761. until LOOP.Playing == false
  762. GYRO:remove()
  763. BEAM:remove()
  764. ATTACK = false
  765. Rooted = false
  766. end
  767.  
  768. function Technowarp()
  769. local FRAME = RootPart.Position
  770. for i = 1, 6 do
  771. 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"Pink".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2})
  772. end
  773. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0),VT(FRAME.X,RootPart.Position.Y,FRAME.Z))
  774. for i = 1, 6 do
  775. 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"Pink".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2})
  776. end
  777. end
  778.  
  779. function CyberSmash()
  780. ATTACK = true
  781. Rooted = false
  782. local GYRO = IT("BodyGyro",RootPart)
  783. GYRO.D = 100
  784. GYRO.P = 2000
  785. GYRO.MaxTorque = VT(0,4000000,0)
  786. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  787. local SMASH = CreatePart(3, Effects, "Neon", 0, 1, "Pink", "Block", VT(25,25,25))
  788. SMASH.CanCollide = true
  789. SMASH.Color = C3(0,0,0)
  790. local EF = Instance.new("SelectionBox",SMASH)
  791. EF.Adornee = SMASH
  792. EF.Color = BrickColor.new("Pink")
  793. EF.LineThickness = 0.2
  794. EF.Transparency = 1
  795. coroutine.resume(coroutine.create(function()
  796. for i = 1, 20 do
  797. Swait()
  798. SMASH.Transparency = SMASH.Transparency - 0.05
  799. EF.Transparency = SMASH.Transparency
  800. end
  801. end))
  802. repeat
  803. SMASH.CFrame = CF(Mouse.Hit.p)*CF(0,35,0)
  804. Swait()
  805. GYRO.cframe = CF(RootPart.Position,SMASH.Position)
  806. 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)
  807. 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)
  808. 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)
  809. 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)
  810. 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)
  811. 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)
  812. until HOLD == true and SMASH.Transparency < 0.99
  813. for i = 1, 25 do
  814. Swait()
  815. SMASH.CFrame = SMASH.CFrame*CF(0,15/25,0)
  816. 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)
  817. 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)
  818. 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)
  819. 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)
  820. 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)
  821. 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)
  822. end
  823. local TOCH = SMASH.Touched:Connect(function(hit)
  824. if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
  825. Shatter(hit)
  826. end
  827. end)
  828. local n0 = nil
  829. local HITFLOOR,HITPOS = Raycast(SMASH.Position, (CF(SMASH.Position, SMASH.Position + VT(0, -1, 0))).lookVector, 25000, Character)
  830. if HITFLOOR ~= nil then
  831. if HITFLOOR.Anchored == false and HITFLOOR.Parent ~= workspace then
  832. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") or HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  833. if HITFLOOR.Parent.ClassName == "Model" then
  834. HITFLOOR.Parent:BreakJoints()
  835. elseif HITFLOOR.Parent.Parent.ClassName == "Model" then
  836. HITFLOOR.Parent.Parent:BreakJoints()
  837. end
  838. end
  839. local POS = HITPOS
  840. n0,HITPOS = Raycast(POS, (CF(POS, POS + VT(0, -1, 0))).lookVector, 25000, HITFLOOR.Parent)
  841. end
  842. end
  843. killnearest(HITPOS,SMASH.Size.X/1.3,"Shatter")
  844. SMASH.CFrame = CF(HITPOS+VT(0,SMASH.Size.Y/2,0))
  845. 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})
  846. for i = 1, 25 do
  847. Swait()
  848. 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)
  849. 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)
  850. 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)
  851. 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)
  852. 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)
  853. 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)
  854. end
  855. coroutine.resume(coroutine.create(function()
  856. wait(0.2)
  857. TOCH:disconnect()
  858. wait(1.8)
  859. for i = 1, 100 do
  860. Swait()
  861. SMASH.Transparency = i/100
  862. end
  863. for i = 1, 10 do
  864. Swait()
  865. EF.Transparency = EF.Transparency + 0.1
  866. end
  867. SMASH:remove()
  868. end))
  869. GYRO:remove()
  870. ATTACK = false
  871. Rooted = false
  872. end
  873.  
  874. --//=================================\\
  875. --|| ASSIGN THINGS TO KEYS
  876. --\\=================================//
  877.  
  878. function MouseDown(Mouse)
  879. HOLD = true
  880. if ATTACK == false then
  881. end
  882. end
  883.  
  884. function MouseUp(Mouse)
  885. HOLD = false
  886. end
  887.  
  888. function KeyDown(Key)
  889. if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
  890. KEYHOLD = true
  891. if Key == "z" and ATTACK == false then
  892. CyberOutburst()
  893. end
  894.  
  895. if Key == "b" and ATTACK == false then
  896. Technobeam()
  897. end
  898.  
  899. if Key == "c" and ATTACK == false then
  900. Technowarp()
  901. end
  902.  
  903. if Key == "v" and ATTACK == false then
  904. CyberSmash()
  905. end
  906.  
  907. if Key == "t" then
  908. local TAUNT = CreateSound("282338123", Head, 10, 0.8)
  909. TAUNT.TimePosition = 1.1
  910. end
  911. end
  912. end
  913.  
  914. function KeyUp(Key)
  915. if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
  916. KEYHOLD = false
  917. end
  918. end
  919.  
  920. Mouse.Button1Down:connect(function(NEWKEY)
  921. MouseDown(NEWKEY)
  922. end)
  923. Mouse.Button1Up:connect(function(NEWKEY)
  924. MouseUp(NEWKEY)
  925. end)
  926. Mouse.KeyDown:connect(function(NEWKEY)
  927. KeyDown(NEWKEY)
  928. end)
  929. Mouse.KeyUp:connect(function(NEWKEY)
  930. KeyUp(NEWKEY)
  931. end)
  932.  
  933. --//=================================\\
  934. --\\=================================//
  935.  
  936.  
  937. function unanchor()
  938. if UNANCHOR == true then
  939. g = Character:GetChildren()
  940. for i = 1, #g do
  941. if g[i].ClassName == "Part" then
  942. g[i].Anchored = false
  943. end
  944. end
  945. end
  946. end
  947.  
  948.  
  949. --//=================================\\
  950. --|| WRAP THE WHOLE SCRIPT UP
  951. --\\=================================//
  952.  
  953. Humanoid.Changed:connect(function(Jump)
  954. if Jump == "Jump" and (Disable_Jump == true) then
  955. Humanoid.Jump = false
  956. end
  957. end)
  958.  
  959. Humanoid.HipHeight = 2
  960.  
  961. while true do
  962. Swait()
  963. refit()
  964. Character.Parent = workspace
  965. Humanoid.Parent = Character
  966. ANIMATE.Parent = nil
  967. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  968. IDLEANIMATION:Play()
  969. SINE = SINE + CHANGE
  970. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  971. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  972. HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25, Character)
  973. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  974. EyeWeld3.C1 = Clerp(EyeWeld3.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed)
  975. EyeWeld2.C1 = Clerp(EyeWeld2.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed)
  976. EyeWeld.C1 = Clerp(EyeWeld.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(SINE*2)), 1 / Animation_Speed)
  977. for LW = 1, #LEFTWINGS do
  978. if LEFTWINGS[LW] ~= nil then
  979. 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)
  980. end
  981. end
  982. for RW = 1, #RIGHTWINGS do
  983. if RIGHTWINGS[RW] ~= nil then
  984. 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)
  985. end
  986. end
  987. if ATTACK == false then
  988. if TORSOVELOCITY < 1 then
  989. 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)
  990. 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)
  991. 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)
  992. 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)
  993. 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)
  994. 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)
  995. elseif TORSOVELOCITY > 1 then
  996. 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)
  997. 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)
  998. 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)
  999. 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)
  1000. 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)
  1001. 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)
  1002. end
  1003. end
  1004. for _, c in pairs(Character:GetChildren()) do
  1005. if c.ClassName == "Part" and c.Name ~= "Eye" then
  1006. c.Material = "Neon"
  1007. if c:FindFirstChildOfClass("ParticleEmitter") then
  1008. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1009. end
  1010. if c ~= Head and c ~= RootPart and c:FindFirstChild("BoxEffect") == nil then
  1011. local EF = Instance.new("SelectionBox",c)
  1012. EF.Adornee = c
  1013. EF.Color = BrickColor.new("Pink")
  1014. EF.LineThickness = 0.01
  1015. EF.Transparency = 0
  1016. EF.Name = "BoxEffect"
  1017. end
  1018. c.Color = C3(0,0,0)
  1019. if c == Head then
  1020. --[[if c:FindFirstChild("Dominus") == nil then
  1021. local M = CreateMesh("SpecialMesh", c, "FileMesh", "162384581", "162384608", VT(1,1,1)*1.1, VT(0,0,0))
  1022. M.Name = "Dominus"
  1023. end]]--
  1024. if c:FindFirstChild("face") then
  1025. c.face:remove()
  1026. end
  1027. end
  1028. elseif c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1029. c:remove()
  1030. end
  1031. end
  1032. if HITFLOOR ~= nil and MRANDOM(1,6) == 1 then
  1033. local POSITION = CF(HITPOS)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(MRANDOM(5,15),0,0).p
  1034. local BOXFLOOR,BOXPOS = Raycast(POSITION+VT(0,1,0), (CF(POSITION, POSITION + VT(0, -1, 0))).lookVector, 5, Character)
  1035. if BOXFLOOR ~= nil then
  1036. 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"Pink".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1037. end
  1038. end
  1039. unanchor()
  1040. Humanoid.MaxHealth = "inf"
  1041. Humanoid.Health = "inf"
  1042. if Rooted == false then
  1043. Disable_Jump = false
  1044. Humanoid.WalkSpeed = Speed
  1045. elseif Rooted == true then
  1046. Disable_Jump = true
  1047. Humanoid.WalkSpeed = 0
  1048. end
  1049. for _, c in pairs(workspace:GetChildren()) do
  1050. if c.ClassName == "Model" and c:FindFirstChild("Humanoid") and c ~= Character then
  1051. end
  1052. end
  1053. script.Parent = WEAPONGUI
  1054. Humanoid.Name = "Monarch"
  1055. sick.Parent = Effects
  1056. sick.Pitch = 0.85
  1057. sick.Playing = true
  1058. for _, q in pairs(Head:GetChildren()) do
  1059. if q.ClassName == "Sound" and q.Name ~= "Audio" then
  1060. q:remove()
  1061. end
  1062. end
  1063. Humanoid.DisplayDistanceType = "None"
  1064. end
  1065.  
  1066. --//=================================\\
  1067. --\\=================================//
  1068.  
  1069.  
  1070.  
  1071.  
  1072.  
  1073. --//====================================================\\--
  1074. --|| END OF SCRIPT
  1075. --\\====================================================//---//====================================================\\--
  1076. --|| CREATED BY SHACKLUSTER
  1077. --\\====================================================//--
  1078.  
  1079. wait(0.2)
  1080.  
  1081. Player = game:GetService("Players").LocalPlayer
  1082. PlayerGui = Player.PlayerGui
  1083. Cam = workspace.CurrentCamera
  1084. Backpack = Player.Backpack
  1085. Character = Player.Character
  1086. Humanoid = Character.Humanoid
  1087. Mouse = Player:GetMouse()
  1088. RootPart = Character["HumanoidRootPart"]
  1089. Torso = Character["Torso"]
  1090. Head = Character["Head"]
  1091. RightArm = Character["Right Arm"]
  1092. LeftArm = Character["Left Arm"]
  1093. RightLeg = Character["Right Leg"]
  1094. LeftLeg = Character["Left Leg"]
  1095. RootJoint = RootPart["RootJoint"]
  1096. Neck = Torso["Neck"]
  1097. RightShoulder = Torso["Right Shoulder"]
  1098. LeftShoulder = Torso["Left Shoulder"]
  1099. RightHip = Torso["Right Hip"]
  1100. LeftHip = Torso["Left Hip"]
  1101. local sick = Instance.new("Sound",Character)
  1102. sick.SoundId = "rbxassetid://1494340971"
  1103. sick.Looped = true
  1104. sick.Pitch = 1
  1105. sick.Volume = 1
  1106. sick:Play()
  1107.  
  1108. IT = Instance.new
  1109. CF = CFrame.new
  1110. VT = Vector3.new
  1111. RAD = math.rad
  1112. C3 = Color3.new
  1113. UD2 = UDim2.new
  1114. BRICKC = BrickColor.new
  1115. ANGLES = CFrame.Angles
  1116. EULER = CFrame.fromEulerAnglesXYZ
  1117. COS = math.cos
  1118. ACOS = math.acos
  1119. SIN = math.sin
  1120. ASIN = math.asin
  1121. ABS = math.abs
  1122. MRANDOM = math.random
  1123. FLOOR = math.floor
  1124.  
  1125. --//=================================\\
  1126. --|| USEFUL VALUES
  1127. --\\=================================//
  1128.  
  1129. Animation_Speed = 3
  1130. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  1131. local Speed = 25
  1132. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1133. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1134. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  1135. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  1136. local DAMAGEMULTIPLIER = 1
  1137. local ANIM = "Idle"
  1138. local ATTACK = false
  1139. local EQUIPPED = false
  1140. local HOLD = false
  1141. local COMBO = 1
  1142. local Rooted = false
  1143. local SINE = 0
  1144. local KEYHOLD = false
  1145. local CHANGE = 2 / Animation_Speed
  1146. local WALKINGANIM = false
  1147. local VALUE1 = false
  1148. local VALUE2 = false
  1149. local ROBLOXIDLEANIMATION = IT("Animation")
  1150. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  1151. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1152. --ROBLOXIDLEANIMATION.Parent = Humanoid
  1153. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  1154. WEAPONGUI.Name = "Weapon GUI"
  1155. local Effects = IT("Folder", Character)
  1156. Effects.Name = "Effects"
  1157. local ANIMATOR = Humanoid.Animator
  1158. local ANIMATE = Character.Animate
  1159. local UNANCHOR = true
  1160. local PLAYMAINANIM = true
  1161. local BOLTSOUNDS = {168586621,168586586,178452241}
  1162.  
  1163. --//=================================\\
  1164. --\\=================================//
  1165.  
  1166.  
  1167. --//=================================\\
  1168. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  1169. --\\=================================//
  1170.  
  1171. ArtificialHB = Instance.new("BindableEvent", script)
  1172. ArtificialHB.Name = "ArtificialHB"
  1173.  
  1174. script:WaitForChild("ArtificialHB")
  1175.  
  1176. frame = Frame_Speed
  1177. tf = 0
  1178. allowframeloss = false
  1179. tossremainder = false
  1180. lastframe = tick()
  1181. script.ArtificialHB:Fire()
  1182.  
  1183. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1184. tf = tf + s
  1185. if tf >= frame then
  1186. if allowframeloss then
  1187. script.ArtificialHB:Fire()
  1188. lastframe = tick()
  1189. else
  1190. for i = 1, math.floor(tf / frame) do
  1191. script.ArtificialHB:Fire()
  1192. end
  1193. lastframe = tick()
  1194. end
  1195. if tossremainder then
  1196. tf = 0
  1197. else
  1198. tf = tf - frame * math.floor(tf / frame)
  1199. end
  1200. end
  1201. end)
  1202.  
  1203. --//=================================\\
  1204. --\\=================================//
  1205.  
  1206. --//=================================\\
  1207. --|| SOME FUNCTIONS
  1208. --\\=================================//
  1209.  
  1210. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1211. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1212. end
  1213.  
  1214. function PositiveAngle(NUMBER)
  1215. if NUMBER >= 0 then
  1216. NUMBER = 0
  1217. end
  1218. return NUMBER
  1219. end
  1220.  
  1221. function NegativeAngle(NUMBER)
  1222. if NUMBER <= 0 then
  1223. NUMBER = 0
  1224. end
  1225. return NUMBER
  1226. end
  1227.  
  1228. function Swait(NUMBER)
  1229. if NUMBER == 0 or NUMBER == nil then
  1230. ArtificialHB.Event:wait()
  1231. else
  1232. for i = 1, NUMBER do
  1233. ArtificialHB.Event:wait()
  1234. end
  1235. end
  1236. end
  1237.  
  1238. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  1239. local NEWMESH = IT(MESH)
  1240. if MESH == "SpecialMesh" then
  1241. NEWMESH.MeshType = MESHTYPE
  1242. if MESHID ~= "nil" and MESHID ~= "" then
  1243. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  1244. end
  1245. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  1246. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  1247. end
  1248. end
  1249. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  1250. NEWMESH.Scale = SCALE
  1251. NEWMESH.Parent = PARENT
  1252. return NEWMESH
  1253. end
  1254.  
  1255. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  1256. local NEWPART = IT("Part")
  1257. NEWPART.formFactor = FORMFACTOR
  1258. NEWPART.Reflectance = REFLECTANCE
  1259. NEWPART.Transparency = TRANSPARENCY
  1260. NEWPART.CanCollide = false
  1261. NEWPART.Locked = true
  1262. NEWPART.Anchored = true
  1263. if ANCHOR == false then
  1264. NEWPART.Anchored = false
  1265. end
  1266. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  1267. NEWPART.Name = NAME
  1268. NEWPART.Size = SIZE
  1269. NEWPART.Position = Torso.Position
  1270. NEWPART.Material = MATERIAL
  1271. NEWPART:BreakJoints()
  1272. NEWPART.Parent = PARENT
  1273. return NEWPART
  1274. end
  1275.  
  1276. local function weldBetween(a, b)
  1277. local weldd = Instance.new("ManualWeld")
  1278. weldd.Part0 = a
  1279. weldd.Part1 = b
  1280. weldd.C0 = CFrame.new()
  1281. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1282. weldd.Parent = a
  1283. return weldd
  1284. end
  1285.  
  1286.  
  1287. function QuaternionFromCFrame(cf)
  1288. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1289. local trace = m00 + m11 + m22
  1290. if trace > 0 then
  1291. local s = math.sqrt(1 + trace)
  1292. local recip = 0.5 / s
  1293. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1294. else
  1295. local i = 0
  1296. if m11 > m00 then
  1297. i = 1
  1298. end
  1299. if m22 > (i == 0 and m00 or m11) then
  1300. i = 2
  1301. end
  1302. if i == 0 then
  1303. local s = math.sqrt(m00 - m11 - m22 + 1)
  1304. local recip = 0.5 / s
  1305. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1306. elseif i == 1 then
  1307. local s = math.sqrt(m11 - m22 - m00 + 1)
  1308. local recip = 0.5 / s
  1309. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1310. elseif i == 2 then
  1311. local s = math.sqrt(m22 - m00 - m11 + 1)
  1312. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1313. end
  1314. end
  1315. end
  1316.  
  1317. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1318. local xs, ys, zs = x + x, y + y, z + z
  1319. local wx, wy, wz = w * xs, w * ys, w * zs
  1320. local xx = x * xs
  1321. local xy = x * ys
  1322. local xz = x * zs
  1323. local yy = y * ys
  1324. local yz = y * zs
  1325. local zz = z * zs
  1326. 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))
  1327. end
  1328.  
  1329. function QuaternionSlerp(a, b, t)
  1330. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1331. local startInterp, finishInterp;
  1332. if cosTheta >= 0.0001 then
  1333. if (1 - cosTheta) > 0.0001 then
  1334. local theta = ACOS(cosTheta)
  1335. local invSinTheta = 1 / SIN(theta)
  1336. startInterp = SIN((1 - t) * theta) * invSinTheta
  1337. finishInterp = SIN(t * theta) * invSinTheta
  1338. else
  1339. startInterp = 1 - t
  1340. finishInterp = t
  1341. end
  1342. else
  1343. if (1 + cosTheta) > 0.0001 then
  1344. local theta = ACOS(-cosTheta)
  1345. local invSinTheta = 1 / SIN(theta)
  1346. startInterp = SIN((t - 1) * theta) * invSinTheta
  1347. finishInterp = SIN(t * theta) * invSinTheta
  1348. else
  1349. startInterp = t - 1
  1350. finishInterp = t
  1351. end
  1352. end
  1353. 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
  1354. end
  1355.  
  1356. function Clerp(a, b, t)
  1357. local qa = {QuaternionFromCFrame(a)}
  1358. local qb = {QuaternionFromCFrame(b)}
  1359. local ax, ay, az = a.x, a.y, a.z
  1360. local bx, by, bz = b.x, b.y, b.z
  1361. local _t = 1 - t
  1362. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1363. end
  1364.  
  1365. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  1366. local frame = IT("Frame")
  1367. frame.BackgroundTransparency = TRANSPARENCY
  1368. frame.BorderSizePixel = BORDERSIZEPIXEL
  1369. frame.Position = POSITION
  1370. frame.Size = SIZE
  1371. frame.BackgroundColor3 = COLOR
  1372. frame.BorderColor3 = BORDERCOLOR
  1373. frame.Name = NAME
  1374. frame.Parent = PARENT
  1375. return frame
  1376. end
  1377.  
  1378. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1379. local label = IT("TextLabel")
  1380. label.BackgroundTransparency = 1
  1381. label.Size = UD2(1, 0, 1, 0)
  1382. label.Position = UD2(0, 0, 0, 0)
  1383. label.TextColor3 = TEXTCOLOR
  1384. label.TextStrokeTransparency = STROKETRANSPARENCY
  1385. label.TextTransparency = TRANSPARENCY
  1386. label.FontSize = TEXTFONTSIZE
  1387. label.Font = TEXTFONT
  1388. label.BorderSizePixel = BORDERSIZEPIXEL
  1389. label.TextScaled = false
  1390. label.Text = TEXT
  1391. label.Name = NAME
  1392. label.Parent = PARENT
  1393. return label
  1394. end
  1395.  
  1396. function NoOutlines(PART)
  1397. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  1398. end
  1399.  
  1400. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1401. local NEWWELD = IT(TYPE)
  1402. NEWWELD.Part0 = PART0
  1403. NEWWELD.Part1 = PART1
  1404. NEWWELD.C0 = C0
  1405. NEWWELD.C1 = C1
  1406. NEWWELD.Parent = PARENT
  1407. return NEWWELD
  1408. end
  1409.  
  1410. local S = IT("Sound")
  1411. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  1412. local NEWSOUND = nil
  1413. coroutine.resume(coroutine.create(function()
  1414. NEWSOUND = S:Clone()
  1415. NEWSOUND.Parent = PARENT
  1416. NEWSOUND.Volume = VOLUME
  1417. NEWSOUND.Pitch = PITCH
  1418. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1419. NEWSOUND:play()
  1420. if DOESLOOP == true then
  1421. NEWSOUND.Looped = true
  1422. else
  1423. repeat wait(1) until NEWSOUND.Playing == false
  1424. NEWSOUND:remove()
  1425. end
  1426. end))
  1427. return NEWSOUND
  1428. end
  1429.  
  1430. local EyeSizes={
  1431. NumberSequenceKeypoint.new(0,2,0),
  1432. NumberSequenceKeypoint.new(1,0,0)
  1433. }
  1434. local EyeTrans={
  1435. NumberSequenceKeypoint.new(0,0.5,0),
  1436. NumberSequenceKeypoint.new(1,1,0)
  1437. }
  1438. local PE=Instance.new("ParticleEmitter",nil)
  1439. PE.LightEmission=.8
  1440. PE.Color = ColorSequence.new(BRICKC("Lime green").Color,BRICKC("Lime green").Color)
  1441. PE.Size=NumberSequence.new(EyeSizes)
  1442. PE.Transparency=NumberSequence.new(EyeTrans)
  1443. PE.Lifetime=NumberRange.new(0.35,1)
  1444. PE.Rotation=NumberRange.new(0,360)
  1445. PE.Rate=100
  1446. PE.VelocitySpread = 10000
  1447. PE.Acceleration = Vector3.new(0,85,0)
  1448. PE.Drag = 5
  1449. PE.Speed = NumberRange.new(0.1,5)
  1450. PE.Texture="http://www.roblox.com/asset/?id=1460745664"
  1451. PE.ZOffset = 0.5
  1452. PE.Name = "PE"
  1453. PE.Enabled = false
  1454.  
  1455. function Fire(art)
  1456. local PARTICLES = PE:Clone()
  1457. PARTICLES.Parent = art
  1458. PARTICLES.Enabled = true
  1459. return PARTICLES
  1460. end
  1461.  
  1462. function CFrameFromTopBack(at, top, back)
  1463. local right = top:Cross(back)
  1464. 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)
  1465. end
  1466.  
  1467. --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})
  1468. function WACKYEFFECT(Table)
  1469. local TYPE = (Table.EffectType or "Sphere")
  1470. local SIZE = (Table.Size or VT(1,1,1))
  1471. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  1472. local TRANSPARENCY = (Table.Transparency or 0)
  1473. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  1474. local CFRAME = (Table.CFrame or Torso.CFrame)
  1475. local MOVEDIRECTION = (Table.MoveToPos or nil)
  1476. local ROTATION1 = (Table.RotationX or 0)
  1477. local ROTATION2 = (Table.RotationY or 0)
  1478. local ROTATION3 = (Table.RotationZ or 0)
  1479. local MATERIAL = (Table.Material or "Neon")
  1480. local COLOR = (Table.Color or C3(1,1,1))
  1481. local TIME = (Table.Time or 45)
  1482. local SOUNDID = (Table.SoundID or nil)
  1483. local SOUNDPITCH = (Table.SoundPitch or nil)
  1484. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1485. coroutine.resume(coroutine.create(function()
  1486. local PLAYSSOUND = false
  1487. local SOUND = nil
  1488. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Lime green"), "Effect", VT(1,1,1), true)
  1489. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1490. PLAYSSOUND = true
  1491. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1492. end
  1493. EFFECT.Color = COLOR
  1494. local MSH = nil
  1495. if TYPE == "Sphere" then
  1496. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  1497. elseif TYPE == "Block" or TYPE == "Box" then
  1498. MSH = IT("BlockMesh",EFFECT)
  1499. MSH.Scale = SIZE
  1500. elseif TYPE == "Wave" then
  1501. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1502. elseif TYPE == "Ring" then
  1503. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  1504. elseif TYPE == "Slash" then
  1505. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1506. elseif TYPE == "Round Slash" then
  1507. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1508. elseif TYPE == "Swirl" then
  1509. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1510. elseif TYPE == "Skull" then
  1511. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  1512. elseif TYPE == "Crystal" then
  1513. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  1514. end
  1515. if MSH ~= nil then
  1516. local MOVESPEED = nil
  1517. if MOVEDIRECTION ~= nil then
  1518. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1519. end
  1520. local GROWTH = SIZE - ENDSIZE
  1521. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1522. if TYPE == "Block" then
  1523. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1524. else
  1525. EFFECT.CFrame = CFRAME
  1526. end
  1527. for LOOP = 1, TIME+1 do
  1528. Swait()
  1529. MSH.Scale = MSH.Scale - GROWTH/TIME
  1530. if TYPE == "Wave" then
  1531. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  1532. end
  1533. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1534. if TYPE == "Block" then
  1535. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1536. else
  1537. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1538. end
  1539. if MOVEDIRECTION ~= nil then
  1540. local ORI = EFFECT.Orientation
  1541. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1542. EFFECT.Orientation = ORI
  1543. end
  1544. end
  1545. if PLAYSSOUND == false then
  1546. EFFECT:remove()
  1547. else
  1548. repeat wait(1) until SOUND.Playing == false
  1549. EFFECT:remove()
  1550. end
  1551. else
  1552. if PLAYSSOUND == false then
  1553. EFFECT:remove()
  1554. else
  1555. repeat Swait() until SOUND.Playing == false
  1556. EFFECT:remove()
  1557. end
  1558. end
  1559. end))
  1560. end
  1561.  
  1562. function MakeForm(PART,TYPE)
  1563. if TYPE == "Cyl" then
  1564. local MSH = IT("CylinderMesh",PART)
  1565. elseif TYPE == "Ball" then
  1566. local MSH = IT("SpecialMesh",PART)
  1567. MSH.MeshType = "Sphere"
  1568. elseif TYPE == "Wedge" then
  1569. local MSH = IT("SpecialMesh",PART)
  1570. MSH.MeshType = "Wedge"
  1571. end
  1572. end
  1573.  
  1574. Debris = game:GetService("Debris")
  1575.  
  1576. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1577. local DIRECTION = CF(StartPos,EndPos).lookVector
  1578. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  1579. end
  1580.  
  1581. local HATWELD = nil
  1582. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  1583. PLAYMAINANIM = false
  1584. if WhichPose == "Cast1" then
  1585. for i=0, Time, 0.1 / Animation_Speed do
  1586. Swait()
  1587. if Magic == true then
  1588. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lime green".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1589. end
  1590. if Gyro ~= nil and Gyro ~= false then
  1591. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1592. end
  1593. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed)
  1594. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed)
  1595. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1596. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1597. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1598. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1599. end
  1600. elseif WhichPose == "Cast2" then
  1601. for i=0, Time, 0.1 / Animation_Speed do
  1602. Swait()
  1603. if Magic == true then
  1604. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lime green".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1605. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lime green".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1606. end
  1607. if Gyro ~= nil and Gyro ~= false then
  1608. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1609. end
  1610. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  1611. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  1612. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1613. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1614. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1615. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1616. end
  1617. elseif WhichPose == "RightArmUp" then
  1618. for i=0, Time, 0.1 / Animation_Speed do
  1619. Swait()
  1620. if Magic == true then
  1621. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lime green".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1622. end
  1623. if Gyro ~= nil and Gyro ~= false then
  1624. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1625. end
  1626. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed)
  1627. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1628. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1629. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1630. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1631. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1632. end
  1633. elseif WhichPose == "Taunt" then
  1634. for i=0, Time, 0.1 / Animation_Speed do
  1635. Swait()
  1636. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  1637. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  1638. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1639. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1640. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1641. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1642. end
  1643. HATWELD.Part0 = RightArm
  1644. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  1645. CreateSound(221057812,Torso,10,1,false)
  1646. for i=0, Time*2, 0.1 / Animation_Speed do
  1647. Swait()
  1648. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  1649. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed)
  1650. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1651. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1652. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1653. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1654. end
  1655. for i=0, Time, 0.1 / Animation_Speed do
  1656. Swait()
  1657. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed)
  1658. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  1659. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1660. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1661. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1662. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1663. HATWELD.C0 = Clerp(HATWELD.C0, CF(-0.5,-1.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(35), RAD(0), RAD(35)), Speed / Animation_Speed)
  1664. end
  1665. HATWELD.Part0 = Head
  1666. HATWELD.C0 = CF(0,0.35,0)
  1667. elseif WhichPose == "Prepare key" then
  1668. for i=0, Time, 0.1 / Animation_Speed do
  1669. Swait()
  1670. if Gyro ~= nil and Gyro ~= false then
  1671. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  1672. end
  1673. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed)
  1674. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed)
  1675. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1676. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1677. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1678. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1679. end
  1680. elseif WhichPose == "Turn key" then
  1681. for i=0, Time, 0.1 / Animation_Speed do
  1682. Swait()
  1683. if Gyro ~= nil and Gyro ~= false then
  1684. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  1685. end
  1686. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed)
  1687. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed)
  1688. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1689. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  1690. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  1691. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  1692. end
  1693. end
  1694. PLAYMAINANIM = true
  1695. end
  1696.  
  1697. --Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false})
  1698. function Lightning(Table)
  1699. local Color = Table.Color or C3(1,1,1)
  1700. local StartPos = Table.Start or Torso.Position
  1701. local EndPos = Table.End or Mouse.Hit.p
  1702. local SegmentLength = Table.SegmentL or 2
  1703. local Thickness = Table.Thickness or 0.1
  1704. local Dissapear = Table.DoesFade or false
  1705. local Parent = Table.Ignore or Character
  1706. local MaxDist = Table.MaxDist or 400
  1707. local Branches = Table.Branches or false
  1708. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  1709. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
  1710. local LIGHTNINGMODEL = IT("Model",Effects)
  1711. LIGHTNINGMODEL.Name = "Lightning"
  1712. local LastBolt = nil
  1713. for E = 1, DISTANCE do
  1714. local ExtraSize = (DISTANCE-E)/15
  1715. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Lime green"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  1716. PART.Color = Color
  1717. MakeForm(PART,"Cyl")
  1718. if LastBolt == nil then
  1719. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  1720. else
  1721. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  1722. end
  1723. LastBolt = PART
  1724. if Branches == true then
  1725. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  1726. if CHOICE == 1 then
  1727. local LASTBRANCH = nil
  1728. for i = 1, MRANDOM(2,5) do
  1729. local ExtraSize2 = ((DISTANCE-E)/25)/i
  1730. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Lime green"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  1731. PART.Color = Color
  1732. MakeForm(PART,"Cyl")
  1733. if LASTBRANCH == nil then
  1734. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  1735. else
  1736. PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  1737. end
  1738. LASTBRANCH = PART
  1739. end
  1740. end
  1741. end
  1742. end
  1743. if Dissapear == true then
  1744. coroutine.resume(coroutine.create(function()
  1745. for i = 1, 10 do
  1746. Swait()
  1747. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  1748. if c.ClassName == "Part" then
  1749. c.Transparency = i/10
  1750. end
  1751. end
  1752. end
  1753. LIGHTNINGMODEL:remove()
  1754. end))
  1755. elseif Dissapear == false then
  1756. Debris:AddItem(LIGHTNINGMODEL,0.1)
  1757. end
  1758. return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  1759. end
  1760.  
  1761. --//=================================\\
  1762. --|| WEAPON CREATION
  1763. --\\=================================//
  1764.  
  1765. for i = 1, 15 do
  1766. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/15.2, "Dark stone grey", "FaceGradient", VT(1.01,0.58,1.01),false)
  1767. FACE.Color = C3(0,0,0)
  1768. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  1769. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/35,0), CF(0, 0, 0))
  1770. end
  1771. local HAT1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2,0.2,2),false)
  1772. MakeForm(HAT1,"Cyl")
  1773. HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0))
  1774. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2.01,0.15,2.01),false)
  1775. BELT.Color = C3(15/255,15/255,15/255)
  1776. MakeForm(BELT,"Cyl")
  1777. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0))
  1778. local HAT2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,2.2,1.3),false)
  1779. MakeForm(HAT2,"Cyl")
  1780. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0))
  1781. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.2,1.31),false)
  1782. BELT.Color = C3(15/255,15/255,15/255)
  1783. MakeForm(BELT,"Cyl")
  1784. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0))
  1785. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Gem", VT(0.25,0.25,0.1),false)
  1786. MakeForm(GEM,"Ball")
  1787. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0))
  1788. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Gem", VT(0.25,0.25,0.1),false)
  1789. MakeForm(GEM,"Ball")
  1790. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0))
  1791. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Gem", VT(0.1,0.25,0.25),false)
  1792. MakeForm(GEM,"Ball")
  1793. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0))
  1794. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Gem", VT(0.1,0.25,0.25),false)
  1795. MakeForm(GEM,"Ball")
  1796. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0))
  1797. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  1798. BELT.Color = C3(15/255,15/255,15/255)
  1799. MakeForm(BELT,"Cyl")
  1800. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0))
  1801. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  1802. BELT.Color = C3(15/255,15/255,15/255)
  1803. MakeForm(BELT,"Cyl")
  1804. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0))
  1805. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  1806. BELT.Color = C3(15/255,15/255,15/255)
  1807. MakeForm(BELT,"Cyl")
  1808. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0))
  1809. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  1810. BELT.Color = C3(15/255,15/255,15/255)
  1811. MakeForm(BELT,"Cyl")
  1812. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.35,0), CF(0, 0, 0))
  1813. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,0.5,1.3),false)
  1814. MakeForm(BELT,"Ball")
  1815. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0))
  1816. Humanoid.DisplayDistanceType = "None"
  1817. local naeeym2 = IT("BillboardGui",Character)
  1818. naeeym2.AlwaysOnTop = true
  1819. naeeym2.Size = UDim2.new(5,35,2,15)
  1820. naeeym2.StudsOffset = Vector3.new(0,3,0)
  1821. naeeym2.MaxDistance = 75
  1822. naeeym2.Adornee = Character.Head
  1823. naeeym2.Name = "Name"
  1824. naeeym2.PlayerToHideFrom = Player
  1825. local tecks2 = IT("TextLabel",naeeym2)
  1826. tecks2.BackgroundTransparency = 1
  1827. tecks2.TextScaled = true
  1828. tecks2.BorderSizePixel = 0
  1829. tecks2.Text = "Warden (leaked version)"
  1830. tecks2.Font = "Bodoni"
  1831. tecks2.TextSize = 30
  1832. tecks2.TextStrokeTransparency = 0.5
  1833. tecks2.TextColor3 = C3(0,0,0)
  1834. tecks2.TextStrokeColor3 = BRICKC"Lime green".Color
  1835. tecks2.Size = UDim2.new(1,0,0.5,0)
  1836. tecks2.Parent = naeeym2
  1837. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "FaceGradient", VT(0.6,0.1,1)/2,false)
  1838. MakeForm(EYE,"Ball")
  1839. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  1840. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "FaceGradient", VT(0.6,0.1,1)/2,false)
  1841. MakeForm(EYE,"Ball")
  1842. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  1843. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "FaceGradient", VT(0.1,1,1)/2,false)
  1844. MakeForm(EYE,"Ball")
  1845. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  1846. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "FaceGradient", VT(0.1,1,1)/2,false)
  1847. MakeForm(EYE,"Ball")
  1848. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  1849.  
  1850. local top = Instance.new("Shirt")
  1851. top.ShirtTemplate = "rbxassetid://676428254"
  1852. top.Parent = Character
  1853. top.Name = "Cloth"
  1854. local bottom = Instance.new("Pants")
  1855. bottom.PantsTemplate = "rbxassetid://676428351"
  1856. bottom.Parent = Character
  1857. bottom.Name = "Cloth"
  1858. for _, c in pairs(Character:GetChildren()) do
  1859. if c.ClassName == "Part" and c.Name ~= "FaceGradient" and c.Name ~= "Hat" and c.Name ~= "Gem" then
  1860. c.Material = "Neon"
  1861. if c:FindFirstChildOfClass("ParticleEmitter") then
  1862. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1863. end
  1864. c.Color = C3(1,1,1)
  1865. if c == Head then
  1866. if c:FindFirstChild("face") then
  1867. c.face:remove()
  1868. end
  1869. end
  1870. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  1871. c:remove()
  1872. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1873. c:remove()
  1874. end
  1875. end
  1876. local BODY = {}
  1877. for _, c in pairs(Character:GetDescendants()) do
  1878. if c:IsA("BasePart") and c.Name ~= "Handle" then
  1879. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  1880. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1881. end
  1882. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  1883. elseif c:IsA("JointInstance") then
  1884. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  1885. end
  1886. end
  1887. for e = 1, #BODY do
  1888. if BODY[e] ~= nil then
  1889. local STUFF = BODY[e]
  1890. local PART = STUFF[1]
  1891. local PARENT = STUFF[2]
  1892. local MATERIAL = STUFF[3]
  1893. local COLOR = STUFF[4]
  1894. local TRANSPARENCY = STUFF[5]
  1895. if PART.ClassName == "Part" and PART ~= RootPart then
  1896. PART.Material = MATERIAL
  1897. PART.Color = COLOR
  1898. PART.Transparency = TRANSPARENCY
  1899. end
  1900. PART.AncestryChanged:Connect(function()
  1901. PART.Parent = PARENT
  1902. end)
  1903. end
  1904. end
  1905. function refit()
  1906. Character.Parent = workspace
  1907. for e = 1, #BODY do
  1908. if BODY[e] ~= nil then
  1909. local STUFF = BODY[e]
  1910. local PART = STUFF[1]
  1911. local PARENT = STUFF[2]
  1912. local MATERIAL = STUFF[3]
  1913. local COLOR = STUFF[4]
  1914. local TRANSPARENCY = STUFF[5]
  1915. if PART.ClassName == "Part" and PART ~= RootPart then
  1916. PART.Material = MATERIAL
  1917. PART.Color = COLOR
  1918. PART.Transparency = TRANSPARENCY
  1919. end
  1920. if PART.Parent ~= PARENT then
  1921. Humanoid:remove()
  1922. PART.Parent = PARENT
  1923. Humanoid = IT("Humanoid",Character)
  1924. end
  1925. end
  1926. end
  1927. end
  1928. local SKILLTEXTCOLOR = BRICKC"Lime green".Color
  1929. local SKILLFONT = "Bodoni"
  1930. local SKILLTEXTSIZE = 7
  1931.  
  1932. Humanoid.Died:connect(function()
  1933. refit()
  1934. end)
  1935.  
  1936. 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")
  1937. 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")
  1938. 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")
  1939. 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")
  1940. 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")
  1941.  
  1942. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Warden Zap", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
  1943. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Warden Thunder", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
  1944. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Inferno Ring", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  1945. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Warden Wall", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
  1946. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Prison Key", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
  1947.  
  1948. --//=================================\\
  1949. --|| DAMAGING
  1950. --\\=================================//
  1951.  
  1952. function ApplyAoE(POSITION,RANGE,FLING,BURN)
  1953. local CHILDREN = workspace:GetDescendants()
  1954. for index, CHILD in pairs(CHILDREN) do
  1955. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1956. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1957. if HUM then
  1958. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1959. if TORSO then
  1960. if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
  1961. CHILD:BreakJoints()
  1962. if FLING ~= 0 then
  1963. for _, c in pairs(CHILD:GetChildren()) do
  1964. if c:IsA("BasePart") and c.Transparency == 0 then
  1965. if BURN == true then
  1966. Fire(c)
  1967. end
  1968. local bv = Instance.new("BodyVelocity")
  1969. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1970. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1971. bv.Parent = c
  1972. Debris:AddItem(bv,0.05)
  1973. end
  1974. end
  1975. end
  1976. end
  1977. end
  1978. end
  1979. end
  1980. end
  1981. end
  1982.  
  1983. --//=================================\\
  1984. --|| ATTACK FUNCTIONS AND STUFF
  1985. --\\=================================//
  1986.  
  1987. function Warden_Zap()
  1988. ATTACK = true
  1989. Rooted = false
  1990. local GYRO = IT("BodyGyro",RootPart)
  1991. GYRO.D = 750
  1992. GYRO.P = 20000
  1993. GYRO.MaxTorque = VT(0,40000000,0)
  1994. CreateSound(348663022,RightArm,1.5,2,false)
  1995. Pose("Cast1",0.8,1,true,GYRO)
  1996. local LightningTable = Lightning({Color = SKILLTEXTCOLOR, Start = RightArm.CFrame*CF(0,-1,0).p, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.2, DoesFade = true, Ignore = Character, MaxDist = 100, Branches = false})
  1997. local Hitpos = LightningTable.End
  1998. ApplyAoE(Hitpos,10,35)
  1999. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(1,1,1)*15, Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*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"Lime green".Color, SoundID = BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  2000. for i = 1, 4 do
  2001. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(0,45,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*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"Lime green".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2002. end
  2003. Pose("Cast1",0.8,1,true)
  2004. GYRO:remove()
  2005. ATTACK = false
  2006. Rooted = false
  2007. end
  2008.  
  2009. function Warden_Thunder()
  2010. ATTACK = true
  2011. Rooted = false
  2012. local GYRO = IT("BodyGyro",RootPart)
  2013. GYRO.D = 750
  2014. GYRO.P = 20000
  2015. GYRO.MaxTorque = VT(0,40000000,0)
  2016. CreateSound(469345336,Torso,3,2,false)
  2017. Pose("Cast2",1.5,2,true,GYRO)
  2018. coroutine.resume(coroutine.create(function()
  2019. local FRAME = RootPart.CFrame
  2020. for i = 1, 25 do
  2021. local POS = FRAME*CF(MRANDOM(-17,17),0,-i*15)
  2022. local LightningTable = Lightning({Color = SKILLTEXTCOLOR, Start = POS*CF(0,85,0).p, End = POS*CF(0,-15,0).p, SegmentL = 3, Thickness = 0.4, DoesFade = true, Ignore = Character, MaxDist = 400, Branches = true})
  2023. local Hitpos = LightningTable.End
  2024. ApplyAoE(Hitpos,20,15)
  2025. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(1,1,1)*15, Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*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"Lime green".Color, SoundID = BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  2026. for i = 1, 4 do
  2027. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(0,75,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*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"Lime green".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2028. end
  2029. wait(0.05)
  2030. end
  2031. end))
  2032. Pose("Cast2",1.5,0.7,true)
  2033. GYRO:remove()
  2034. ATTACK = false
  2035. Rooted = false
  2036. end
  2037.  
  2038. function Inferno_Ring()
  2039. ATTACK = true
  2040. Rooted = false
  2041. local GYRO = IT("BodyGyro",RootPart)
  2042. GYRO.D = 750
  2043. GYRO.P = 20000
  2044. GYRO.MaxTorque = VT(0,40000000,0)
  2045. local FIRE = IT("Model",Effects)
  2046. FIRE.Name = "Fire"
  2047. local MAIN = CreatePart(3, FIRE, "Neon", 0, 1, "Deep orange", "Center", VT(0,0,0))
  2048. FIRE.PrimaryPart = MAIN
  2049. local FIRES = {}
  2050. for i = 1, 45 do
  2051. local PRT = CreatePart(3, FIRE, "Neon", 0, 1, "Deep orange", "RingPart", VT(3,3,3))
  2052. PRT.CFrame = MAIN.CFrame*ANGLES(RAD(0),RAD((360/45)*i),RAD(0))*CF(0,0,20)
  2053. local F = Fire(PRT)
  2054. table.insert(FIRES,F)
  2055. end
  2056. repeat
  2057. FIRE:SetPrimaryPartCFrame(CF(Mouse.Hit.p))
  2058. Pose("Cast1",1.5,0.01,false,GYRO)
  2059. until HOLD == true
  2060. coroutine.resume(coroutine.create(function()
  2061. for i = 1, 4 do
  2062. ApplyAoE(MAIN.Position,21,-15,true)
  2063. CreateSound(463598785,MAIN,3,1,false)
  2064. for E = 1, #FIRES do
  2065. if FIRES[E] ~= nil then
  2066. FIRES[E].Acceleration = VT(0,300,0)
  2067. FIRES[E].Lifetime=NumberRange.new(0.35,1.5)
  2068. end
  2069. end
  2070. wait(0.3)
  2071. end
  2072. for E = 1, #FIRES do
  2073. if FIRES[E] ~= nil then
  2074. FIRES[E].Enabled = false
  2075. end
  2076. end
  2077. Debris:AddItem(FIRE,5)
  2078. end))
  2079. CreateSound(215395388,RightArm,3,2,false)
  2080. Pose("RightArmUp",1.5,0.5,true)
  2081. GYRO:remove()
  2082. ATTACK = false
  2083. Rooted = false
  2084. end
  2085.  
  2086. function Warden_Wall()
  2087. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 8, Character)
  2088. if HITFLOOR ~= nil then
  2089. if HITFLOOR.Anchored == true then
  2090. local WALL = HITFLOOR:Clone()
  2091. WALL.Size = VT(45,45,5)
  2092. WALL.Parent = Effects
  2093. WALL.Name = "Wall"
  2094. WALL.CFrame = RootPart.CFrame*CF(0,-65/2.1,-5)*ANGLES(RAD(-15),RAD(0),RAD(0))
  2095. CreateSound(130972023,WALL,5,0.8,false)
  2096. ATTACK = true
  2097. Rooted = true
  2098. local HIT = WALL.Touched:Connect(function(hit)
  2099. if hit.Parent ~= Character then
  2100. hit:BreakJoints()
  2101. end
  2102. end)
  2103. coroutine.resume(coroutine.create(function()
  2104. 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"Lime green".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2105. for i = 1, 90 do
  2106. Swait()
  2107. WALL.CFrame = WALL.CFrame*CF(0,0.5,0)
  2108. end
  2109. HIT:disconnect()
  2110. wait(5)
  2111. for i = 1, 46 do
  2112. Swait()
  2113. WALL.CFrame = WALL.CFrame*CF(0,-1,0)
  2114. end
  2115. WALL:remove()
  2116. end))
  2117. Pose("RightArmUp",1.5,1.2,true)
  2118. ATTACK = false
  2119. Rooted = false
  2120. end
  2121. end
  2122. end
  2123.  
  2124. function Prison_Key()
  2125. if Mouse.Target ~= nil then
  2126. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2127. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  2128. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  2129. local GYRO = IT("BodyGyro",RootPart)
  2130. GYRO.D = 750
  2131. GYRO.P = 20000
  2132. GYRO.MaxTorque = VT(0,40000000,0)
  2133. local grav = Instance.new("BodyPosition",TORSO)
  2134. grav.D = 15
  2135. grav.P = 20000
  2136. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2137. grav.position = TORSO.Position
  2138. local GYRO2 = IT("BodyGyro",TORSO)
  2139. GYRO2.D = 750
  2140. GYRO2.P = 20000
  2141. GYRO2.MaxTorque = VT(0,40000000,0)
  2142. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  2143. grav.Name = "Jail"
  2144. local LOCKPARTS = {}
  2145. ATTACK = true
  2146. Rooted = false
  2147. local LOCK = IT("Model",Effects)
  2148. LOCK.Name = "Lock"
  2149. local LOCK2 = IT("Model",LOCK)
  2150. LOCK2.Name = "Metal"
  2151. --CREATE LOCK--
  2152. local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1))
  2153. LOCK.PrimaryPart = BASE
  2154. BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
  2155. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3))
  2156. PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
  2157. MakeForm(PRT,"Cyl")
  2158. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
  2159. PRT.Color = C3(0,0,0)
  2160. PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
  2161. MakeForm(PRT,"Cyl")
  2162. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1))
  2163. PRT.Color = C3(0,0,0)
  2164. PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
  2165. for i = 1, 45 do
  2166. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  2167. PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
  2168. end
  2169. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  2170. PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
  2171. LOCK2.PrimaryPart = PRT
  2172. ---------------
  2173. local CHILDREN = LOCK:GetDescendants()
  2174. for index, CHILD in pairs(CHILDREN) do
  2175. if CHILD:IsA("BasePart") then
  2176. CHILD.Transparency = 1
  2177. end
  2178. end
  2179. for i = 1, 75 do
  2180. LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
  2181. Swait()
  2182. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  2183. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  2184. local CHILDREN = LOCK:GetDescendants()
  2185. for index, CHILD in pairs(CHILDREN) do
  2186. if CHILD:IsA("BasePart") then
  2187. CHILD.Transparency = CHILD.Transparency - 1/75
  2188. end
  2189. end
  2190. end
  2191. HUM.DisplayDistanceType = "None"
  2192. local KEY = IT("Model",Effects)
  2193. KEY.Name = "Key"
  2194. --CREATE KEY--
  2195. local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Lime green", "KeyBase", VT(0.1, 1, 0.1),false)
  2196. KEY.PrimaryPart = KBASE
  2197. KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
  2198. local WLD = weldBetween(RightArm,KBASE)
  2199. for i = 1, 45 do
  2200. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lime green", "Key", VT(0.1, 0.1, 0.1),false)
  2201. PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
  2202. weldBetween(KBASE,PRT)
  2203. end
  2204. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lime green", "Key", VT(0.3, 0.1, 0.1),false)
  2205. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
  2206. weldBetween(KBASE,PRT)
  2207. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lime green", "Key", VT(0.3, 0.1, 0.1),false)
  2208. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
  2209. weldBetween(KBASE,PRT)
  2210. --------------
  2211. Rooted = true
  2212. Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
  2213. coroutine.resume(coroutine.create(function()
  2214. for i = 1, 10 do
  2215. Swait()
  2216. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  2217. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  2218. end
  2219. CreateSound(1149318312,BASE,5,1,false)
  2220. CreateSound(160772554,BASE,3,1,false)
  2221. LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
  2222. for i = 1, 4 do
  2223. 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"Lime green".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2224. end
  2225. 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"Lime green".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  2226. wait(1)
  2227. TORSO.Parent.Parent = LOCK
  2228. for i = 1, 75 do
  2229. Swait()
  2230. local CHILDREN = KEY:GetDescendants()
  2231. for index, CHILD in pairs(CHILDREN) do
  2232. if CHILD:IsA("BasePart") then
  2233. CHILD.Transparency = i/25
  2234. end
  2235. end
  2236. local CHILDREN = LOCK:GetDescendants()
  2237. for index, CHILD in pairs(CHILDREN) do
  2238. if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
  2239. CHILD.Transparency = CHILD.Transparency + 1/75
  2240. elseif CHILD.ClassName == "Decal" then
  2241. CHILD.Transparency = CHILD.Transparency + 1/75
  2242. end
  2243. end
  2244. end
  2245. TORSO.Parent:ClearAllChildren()
  2246. KEY:remove()
  2247. LOCK:remove()
  2248. end))
  2249. Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
  2250. GYRO:remove()
  2251. ATTACK = false
  2252. Rooted = false
  2253. end
  2254. end
  2255. end
  2256.  
  2257. function Hat()
  2258. ATTACK = true
  2259. Rooted = false
  2260. Pose("Taunt",0.4,1.2,false)
  2261. ATTACK = false
  2262. Rooted = false
  2263. end
  2264.  
  2265. --//=================================\\
  2266. --|| ASSIGN THINGS TO KEYS
  2267. --\\=================================//
  2268.  
  2269. function MouseDown(Mouse)
  2270. HOLD = true
  2271. if ATTACK == false then
  2272. end
  2273. end
  2274.  
  2275. function MouseUp(Mouse)
  2276. HOLD = false
  2277. end
  2278.  
  2279. function KeyDown(Key)
  2280. KEYHOLD = true
  2281. if Key == "z" and ATTACK == false then
  2282. Warden_Zap()
  2283. end
  2284.  
  2285. if Key == "b" and ATTACK == false then
  2286. Warden_Thunder()
  2287. end
  2288.  
  2289. if Key == "c" and ATTACK == false then
  2290. Inferno_Ring()
  2291. end
  2292.  
  2293. if Key == "v" and ATTACK == false then
  2294. Warden_Wall()
  2295. end
  2296.  
  2297. if Key == "x" and ATTACK == false then
  2298. Prison_Key()
  2299. end
  2300.  
  2301. if Key == "t" and ATTACK == false then
  2302. Hat()
  2303. end
  2304. end
  2305.  
  2306. function KeyUp(Key)
  2307. KEYHOLD = false
  2308. end
  2309.  
  2310. Mouse.Button1Down:connect(function(NEWKEY)
  2311. MouseDown(NEWKEY)
  2312. end)
  2313. Mouse.Button1Up:connect(function(NEWKEY)
  2314. MouseUp(NEWKEY)
  2315. end)
  2316. Mouse.KeyDown:connect(function(NEWKEY)
  2317. KeyDown(NEWKEY)
  2318. end)
  2319. Mouse.KeyUp:connect(function(NEWKEY)
  2320. KeyUp(NEWKEY)
  2321. end)
  2322.  
  2323. --//=================================\\
  2324. --\\=================================//
  2325.  
  2326.  
  2327. function unanchor()
  2328. if UNANCHOR == true then
  2329. g = Character:GetChildren()
  2330. for i = 1, #g do
  2331. if g[i].ClassName == "Part" then
  2332. g[i].Anchored = false
  2333. end
  2334. end
  2335. end
  2336. end
  2337.  
  2338.  
  2339. --//=================================\\
  2340. --|| WRAP THE WHOLE SCRIPT UP
  2341. --\\=================================//
  2342.  
  2343. Humanoid.Changed:connect(function(Jump)
  2344. if Jump == "Jump" and (Disable_Jump == true) then
  2345. Humanoid.Jump = false
  2346. end
  2347. end)
  2348.  
  2349. while true do
  2350. Swait()
  2351. script.Parent = WEAPONGUI
  2352. Humanoid.Parent = Character
  2353. if Humanoid then
  2354. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2355. IDLEANIMATION:Play()
  2356. end
  2357. if ANIMATE.Parent == Character then
  2358. ANIMATE:Destroy()
  2359. end
  2360. SINE = SINE + CHANGE
  2361. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2362. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2363. Humanoid.HipHeight = 1
  2364. Humanoid.Name = "Warden"
  2365. Humanoid.PlatformStand = false
  2366. if PLAYMAINANIM == true then
  2367. if TORSOVELOCITY < 1 then
  2368. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2369. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2370. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2371. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2372. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
  2373. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2374. elseif TORSOVELOCITY > 1 then
  2375. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2376. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2377. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-35), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2378. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-35), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2379. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-20)), 0.15 / Animation_Speed)
  2380. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(10)), 0.15 / Animation_Speed)
  2381. end
  2382. end
  2383. unanchor()
  2384. Humanoid.MaxHealth = "inf"
  2385. Humanoid.Health = "inf"
  2386. if Rooted == false then
  2387. Disable_Jump = false
  2388. Humanoid.WalkSpeed = Speed
  2389. elseif Rooted == true then
  2390. Disable_Jump = true
  2391. Humanoid.WalkSpeed = 0
  2392. end
  2393. for _, c in pairs(Character:GetChildren()) do
  2394. if c.ClassName == "Part" and c.Name ~= "Eye" then
  2395. c.Material = "Neon"
  2396. if c:FindFirstChildOfClass("ParticleEmitter") then
  2397. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  2398. end
  2399. c.Color = C3(1,1,1)
  2400. if c == Head then
  2401. if c:FindFirstChild("face") then
  2402. c.face:remove()
  2403. end
  2404. end
  2405. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  2406. c:remove()
  2407. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  2408. c:remove()
  2409. end
  2410. end
  2411. sick.SoundId = "rbxassetid://1494340971"
  2412. sick.Looped = true
  2413. sick.Pitch = 1
  2414. sick.Volume = 3
  2415. sick:Resume()
  2416. sick.Parent = Torso
  2417. refit()
  2418. if Head:FindFirstChildOfClass("Sound") then
  2419. Head:FindFirstChildOfClass("Sound"):remove()
  2420. end
  2421. end
  2422.  
  2423. --//=================================\\
  2424. --\\=================================//
  2425.  
  2426.  
  2427.  
  2428.  
  2429.  
  2430. --//====================================================\\--
  2431. --|| END OF SCRIPT
  2432. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement