Advertisement
MellonYt

NewWorking

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