MellonYt

Again

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