Advertisement
firasj082

Warden script

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