Zebula_The_Scripter

Water Warden

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