Advertisement
MrSlakyx

Wrd

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