Advertisement
gecksad

Untitled

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