Advertisement
GojiGaming1337

Untitled

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