Advertisement
cubanmixed2

Unfe Justice Warden

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