Advertisement
gecksad

Untitled

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