ItzPartapika

Soviet Warden (Soviet Edit)

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