Advertisement
ForkFullFight

Test aaauuggghhhh

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