Advertisement
Sinderblock

...

Feb 19th, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 61.99 KB | None | 0 0
  1.  
  2.  
  3. wait(0.2)
  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 = 3
  54. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  55. local Speed = 25
  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 = 1
  61. local ANIM = "Idle"
  62. local ATTACK = false
  63. local EQUIPPED = false
  64. local HOLD = false
  65. local COMBO = 1
  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("Alder").Color,BRICKC("Lavender").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("Pearl"), "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"Lavender".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"Lavender".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"Lavender".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"Lavender".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("Pearl"), "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("Pearl"), "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, "Lavender", "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, "Lavender", "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, "Lavender", "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, "Lavender", "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 = "The 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"Lavender".Color
  759. tecks2.Size = UDim2.new(1,0,0.5,0)
  760. tecks2.Parent = naeeym2
  761. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Lilac", "FaceGradient", VT(0.15,0.15,0.15),false)
  762. MakeForm(EYE,"Ball")
  763. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.22,-0.55), CF(0, 0, 0))
  764. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Lilac", "FaceGradient", VT(0.05,0.14,0.05),false)
  765. EYE.Color = C3(0,0,0)
  766. MakeForm(EYE,"Ball")
  767. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.22,-0.6), CF(0, 0, 0))
  768. local top = Instance.new("Shirt")
  769. top.ShirtTemplate = "rbxassetid://676428254"
  770. top.Parent = Character
  771. top.Name = "Cloth"
  772. local bottom = Instance.new("Pants")
  773. bottom.PantsTemplate = "rbxassetid://676428351"
  774. bottom.Parent = Character
  775. bottom.Name = "Cloth"
  776. for _, c in pairs(Character:GetChildren()) do
  777. if c.ClassName == "Part" and c.Name ~= "FaceGradient" and c.Name ~= "Hat" and c.Name ~= "Gem" then
  778. c.Material = "Neon"
  779. if c:FindFirstChildOfClass("ParticleEmitter") then
  780. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  781. end
  782. c.Color = C3(1,1,1)
  783. if c == Head then
  784. if c:FindFirstChild("face") then
  785. c.face:remove()
  786. end
  787. end
  788. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  789. c:remove()
  790. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  791. c:remove()
  792. end
  793. end
  794. local BODY = {}
  795. for _, c in pairs(Character:GetDescendants()) do
  796. if c:IsA("BasePart") and c.Name ~= "Handle" then
  797. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  798. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  799. end
  800. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  801. elseif c:IsA("JointInstance") then
  802. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  803. end
  804. end
  805. for e = 1, #BODY do
  806. if BODY[e] ~= nil then
  807. local STUFF = BODY[e]
  808. local PART = STUFF[1]
  809. local PARENT = STUFF[2]
  810. local MATERIAL = STUFF[3]
  811. local COLOR = STUFF[4]
  812. local TRANSPARENCY = STUFF[5]
  813. if PART.ClassName == "Part" and PART ~= RootPart then
  814. PART.Material = MATERIAL
  815. PART.Color = COLOR
  816. PART.Transparency = TRANSPARENCY
  817. end
  818. PART.AncestryChanged:Connect(function()
  819. PART.Parent = PARENT
  820. end)
  821. end
  822. end
  823. function refit()
  824. Character.Parent = workspace
  825. for e = 1, #BODY do
  826. if BODY[e] ~= nil then
  827. local STUFF = BODY[e]
  828. local PART = STUFF[1]
  829. local PARENT = STUFF[2]
  830. local MATERIAL = STUFF[3]
  831. local COLOR = STUFF[4]
  832. local TRANSPARENCY = STUFF[5]
  833. if PART.ClassName == "Part" and PART ~= RootPart then
  834. PART.Material = MATERIAL
  835. PART.Color = COLOR
  836. PART.Transparency = TRANSPARENCY
  837. end
  838. if PART.Parent ~= PARENT then
  839. Humanoid:remove()
  840. PART.Parent = PARENT
  841. Humanoid = IT("Humanoid",Character)
  842. end
  843. end
  844. end
  845. end
  846. local SKILLTEXTCOLOR = BRICKC"Lavender".Color
  847. local SKILLFONT = "Bodoni"
  848. local SKILLTEXTSIZE = 7
  849.  
  850. Humanoid.Died:connect(function()
  851. refit()
  852. end)
  853.  
  854. 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")
  855. 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")
  856. 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")
  857. 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")
  858. 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")
  859.  
  860. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Warden Zap", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
  861. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Warden Thunder", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
  862. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Inferno Ring", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  863. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Warden Wall", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
  864. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Prison Key", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
  865.  
  866. --//=================================\\
  867. --|| DAMAGING
  868. --\\=================================//
  869.  
  870. function ApplyAoE(POSITION,RANGE,FLING,BURN)
  871. local CHILDREN = workspace:GetDescendants()
  872. for index, CHILD in pairs(CHILDREN) do
  873. if CHILD.ClassName == "Model" and CHILD ~= Character then
  874. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  875. if HUM then
  876. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  877. if TORSO then
  878. if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
  879. CHILD:BreakJoints()
  880. if FLING ~= 0 then
  881. for _, c in pairs(CHILD:GetChildren()) do
  882. if c:IsA("BasePart") and c.Transparency == 0 then
  883. if BURN == true then
  884. Fire(c)
  885. end
  886. local bv = Instance.new("BodyVelocity")
  887. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  888. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  889. bv.Parent = c
  890. Debris:AddItem(bv,0.05)
  891. end
  892. end
  893. end
  894. end
  895. end
  896. end
  897. end
  898. end
  899. end
  900.  
  901. --//=================================\\
  902. --|| ATTACK FUNCTIONS AND STUFF
  903. --\\=================================//
  904.  
  905. function Warden_Zap()
  906. ATTACK = true
  907. Rooted = false
  908. local GYRO = IT("BodyGyro",RootPart)
  909. GYRO.D = 750
  910. GYRO.P = 20000
  911. GYRO.MaxTorque = VT(0,40000000,0)
  912. CreateSound(348663022,RightArm,1.5,2,false)
  913. Pose("Cast1",0.8,1,true,GYRO)
  914. 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})
  915. local Hitpos = LightningTable.End
  916. ApplyAoE(Hitpos,10,35)
  917. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(1,1,1)*15, Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  918. for i = 1, 4 do
  919. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(0,45,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  920. end
  921. Pose("Cast1",0.8,1,true)
  922. GYRO:remove()
  923. ATTACK = false
  924. Rooted = false
  925. end
  926.  
  927. function Warden_Thunder()
  928. ATTACK = true
  929. Rooted = false
  930. local GYRO = IT("BodyGyro",RootPart)
  931. GYRO.D = 750
  932. GYRO.P = 20000
  933. GYRO.MaxTorque = VT(0,40000000,0)
  934. CreateSound(469345336,Torso,3,2,false)
  935. Pose("Cast2",1.5,2,true,GYRO)
  936. coroutine.resume(coroutine.create(function()
  937. local FRAME = RootPart.CFrame
  938. for i = 1, 25 do
  939. local POS = FRAME*CF(MRANDOM(-17,17),0,-i*15)
  940. 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})
  941. local Hitpos = LightningTable.End
  942. ApplyAoE(Hitpos,20,15)
  943. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(1,1,1)*15, Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  944. for i = 1, 4 do
  945. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(0,75,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  946. end
  947. wait(0.05)
  948. end
  949. end))
  950. Pose("Cast2",1.5,0.7,true)
  951. GYRO:remove()
  952. ATTACK = false
  953. Rooted = false
  954. end
  955.  
  956. function Inferno_Ring()
  957. ATTACK = true
  958. Rooted = false
  959. local GYRO = IT("BodyGyro",RootPart)
  960. GYRO.D = 750
  961. GYRO.P = 20000
  962. GYRO.MaxTorque = VT(0,40000000,0)
  963. local FIRE = IT("Model",Effects)
  964. FIRE.Name = "Fire"
  965. local MAIN = CreatePart(3, FIRE, "Neon", 0, 1, "Lavender", "Center", VT(0,0,0))
  966. FIRE.PrimaryPart = MAIN
  967. local FIRES = {}
  968. for i = 1, 45 do
  969. local PRT = CreatePart(3, FIRE, "Neon", 0, 1, "Lavender", "RingPart", VT(3,3,3))
  970. PRT.CFrame = MAIN.CFrame*ANGLES(RAD(0),RAD((360/45)*i),RAD(0))*CF(0,0,20)
  971. local F = Fire(PRT)
  972. table.insert(FIRES,F)
  973. end
  974. repeat
  975. FIRE:SetPrimaryPartCFrame(CF(Mouse.Hit.p))
  976. Pose("Cast1",1.5,0.01,false,GYRO)
  977. until HOLD == true
  978. coroutine.resume(coroutine.create(function()
  979. for i = 1, 4 do
  980. ApplyAoE(MAIN.Position,21,-15,true)
  981. CreateSound(463598785,MAIN,3,1,false)
  982. for E = 1, #FIRES do
  983. if FIRES[E] ~= nil then
  984. FIRES[E].Acceleration = VT(0,300,0)
  985. FIRES[E].Lifetime=NumberRange.new(0.35,1.5)
  986. end
  987. end
  988. wait(0.3)
  989. end
  990. for E = 1, #FIRES do
  991. if FIRES[E] ~= nil then
  992. FIRES[E].Enabled = false
  993. end
  994. end
  995. Debris:AddItem(FIRE,5)
  996. end))
  997. CreateSound(215395388,RightArm,3,2,false)
  998. Pose("RightArmUp",1.5,0.5,true)
  999. GYRO:remove()
  1000. ATTACK = false
  1001. Rooted = false
  1002. end
  1003.  
  1004. function Warden_Wall()
  1005. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 8, Character)
  1006. if HITFLOOR ~= nil then
  1007. if HITFLOOR.Anchored == true then
  1008. local WALL = HITFLOOR:Clone()
  1009. WALL.Size = VT(45,45,5)
  1010. WALL.Parent = Effects
  1011. WALL.Name = "Wall"
  1012. WALL.CFrame = RootPart.CFrame*CF(0,-65/2.1,-5)*ANGLES(RAD(-15),RAD(0),RAD(0))
  1013. CreateSound(130972023,WALL,5,0.8,false)
  1014. ATTACK = true
  1015. Rooted = true
  1016. local HIT = WALL.Touched:Connect(function(hit)
  1017. if hit.Parent ~= Character then
  1018. hit:BreakJoints()
  1019. end
  1020. end)
  1021. coroutine.resume(coroutine.create(function()
  1022. WACKYEFFECT({Time = 35, EffectType = "Box", Size = WALL.Size, Size2 = WALL.Size*2, Transparency = 0, Transparency2 = 1, CFrame = WALL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1023. for i = 1, 90 do
  1024. Swait()
  1025. WALL.CFrame = WALL.CFrame*CF(0,0.5,0)
  1026. end
  1027. HIT:disconnect()
  1028. wait(5)
  1029. for i = 1, 46 do
  1030. Swait()
  1031. WALL.CFrame = WALL.CFrame*CF(0,-1,0)
  1032. end
  1033. WALL:remove()
  1034. end))
  1035. Pose("RightArmUp",1.5,1.2,true)
  1036. ATTACK = false
  1037. Rooted = false
  1038. end
  1039. end
  1040. end
  1041.  
  1042. function Prison_Key()
  1043. if Mouse.Target ~= nil then
  1044. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1045. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1046. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1047. local GYRO = IT("BodyGyro",RootPart)
  1048. GYRO.D = 750
  1049. GYRO.P = 20000
  1050. GYRO.MaxTorque = VT(0,40000000,0)
  1051. local grav = Instance.new("BodyPosition",TORSO)
  1052. grav.D = 15
  1053. grav.P = 20000
  1054. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1055. grav.position = TORSO.Position
  1056. local GYRO2 = IT("BodyGyro",TORSO)
  1057. GYRO2.D = 750
  1058. GYRO2.P = 20000
  1059. GYRO2.MaxTorque = VT(0,40000000,0)
  1060. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1061. grav.Name = "Jail"
  1062. local LOCKPARTS = {}
  1063. ATTACK = true
  1064. Rooted = false
  1065. local LOCK = IT("Model",Effects)
  1066. LOCK.Name = "Lock"
  1067. local LOCK2 = IT("Model",LOCK)
  1068. LOCK2.Name = "Metal"
  1069. --CREATE LOCK--
  1070. local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1))
  1071. LOCK.PrimaryPart = BASE
  1072. BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
  1073. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3))
  1074. PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
  1075. MakeForm(PRT,"Cyl")
  1076. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
  1077. PRT.Color = C3(0,0,0)
  1078. PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
  1079. MakeForm(PRT,"Cyl")
  1080. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1))
  1081. PRT.Color = C3(0,0,0)
  1082. PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
  1083. for i = 1, 45 do
  1084. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  1085. PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
  1086. end
  1087. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  1088. PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
  1089. LOCK2.PrimaryPart = PRT
  1090. ---------------
  1091. local CHILDREN = LOCK:GetDescendants()
  1092. for index, CHILD in pairs(CHILDREN) do
  1093. if CHILD:IsA("BasePart") then
  1094. CHILD.Transparency = 1
  1095. end
  1096. end
  1097. for i = 1, 75 do
  1098. LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
  1099. Swait()
  1100. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1101. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1102. local CHILDREN = LOCK:GetDescendants()
  1103. for index, CHILD in pairs(CHILDREN) do
  1104. if CHILD:IsA("BasePart") then
  1105. CHILD.Transparency = CHILD.Transparency - 1/75
  1106. end
  1107. end
  1108. end
  1109. HUM.DisplayDistanceType = "None"
  1110. local KEY = IT("Model",Effects)
  1111. KEY.Name = "Key"
  1112. --CREATE KEY--
  1113. local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "KeyBase", VT(0.1, 1, 0.1),false)
  1114. KEY.PrimaryPart = KBASE
  1115. KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
  1116. local WLD = weldBetween(RightArm,KBASE)
  1117. for i = 1, 45 do
  1118. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.1, 0.1, 0.1),false)
  1119. PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
  1120. weldBetween(KBASE,PRT)
  1121. end
  1122. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.3, 0.1, 0.1),false)
  1123. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
  1124. weldBetween(KBASE,PRT)
  1125. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.3, 0.1, 0.1),false)
  1126. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
  1127. weldBetween(KBASE,PRT)
  1128. --------------
  1129. Rooted = true
  1130. Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
  1131. coroutine.resume(coroutine.create(function()
  1132. for i = 1, 10 do
  1133. Swait()
  1134. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1135. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1136. end
  1137. CreateSound(1149318312,BASE,5,1,false)
  1138. CreateSound(160772554,BASE,3,1,false)
  1139. LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
  1140. for i = 1, 4 do
  1141. WACKYEFFECT({Time = 35, EffectType = "Crystal", Size = VT(1,1,1), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(1,1.45,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1142. end
  1143. WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1)*25, Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  1144. wait(1)
  1145. TORSO.Parent.Parent = LOCK
  1146. for i = 1, 75 do
  1147. Swait()
  1148. local CHILDREN = KEY:GetDescendants()
  1149. for index, CHILD in pairs(CHILDREN) do
  1150. if CHILD:IsA("BasePart") then
  1151. CHILD.Transparency = i/25
  1152. end
  1153. end
  1154. local CHILDREN = LOCK:GetDescendants()
  1155. for index, CHILD in pairs(CHILDREN) do
  1156. if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
  1157. CHILD.Transparency = CHILD.Transparency + 1/75
  1158. elseif CHILD.ClassName == "Decal" then
  1159. CHILD.Transparency = CHILD.Transparency + 1/75
  1160. end
  1161. end
  1162. end
  1163. TORSO.Parent:ClearAllChildren()
  1164. KEY:remove()
  1165. LOCK:remove()
  1166. end))
  1167. Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
  1168. GYRO:remove()
  1169. ATTACK = false
  1170. Rooted = false
  1171. end
  1172. end
  1173. end
  1174.  
  1175. function Hat()
  1176. ATTACK = true
  1177. Rooted = false
  1178. Pose("Taunt",0.4,1.2,false)
  1179. ATTACK = false
  1180. Rooted = false
  1181. end
  1182.  
  1183. --//=================================\\
  1184. --|| ASSIGN THINGS TO KEYS
  1185. --\\=================================//
  1186.  
  1187. function MouseDown(Mouse)
  1188. HOLD = true
  1189. if ATTACK == false then
  1190. end
  1191. end
  1192.  
  1193. function MouseUp(Mouse)
  1194. HOLD = false
  1195. end
  1196.  
  1197. function KeyDown(Key)
  1198. KEYHOLD = true
  1199. if Key == "z" and ATTACK == false then
  1200. Warden_Zap()
  1201. end
  1202.  
  1203. if Key == "b" and ATTACK == false then
  1204. Warden_Thunder()
  1205. end
  1206.  
  1207. if Key == "c" and ATTACK == false then
  1208. Inferno_Ring()
  1209. end
  1210.  
  1211. if Key == "v" and ATTACK == false then
  1212. Warden_Wall()
  1213. end
  1214.  
  1215. if Key == "x" and ATTACK == false then
  1216. Prison_Key()
  1217. end
  1218.  
  1219. if Key == "t" and ATTACK == false then
  1220. Hat()
  1221. end
  1222. end
  1223.  
  1224. function KeyUp(Key)
  1225. KEYHOLD = false
  1226. end
  1227.  
  1228. Mouse.Button1Down:connect(function(NEWKEY)
  1229. MouseDown(NEWKEY)
  1230. end)
  1231. Mouse.Button1Up:connect(function(NEWKEY)
  1232. MouseUp(NEWKEY)
  1233. end)
  1234. Mouse.KeyDown:connect(function(NEWKEY)
  1235. KeyDown(NEWKEY)
  1236. end)
  1237. Mouse.KeyUp:connect(function(NEWKEY)
  1238. KeyUp(NEWKEY)
  1239. end)
  1240.  
  1241. --//=================================\\
  1242. --\\=================================//
  1243.  
  1244.  
  1245. function unanchor()
  1246. if UNANCHOR == true then
  1247. g = Character:GetChildren()
  1248. for i = 1, #g do
  1249. if g[i].ClassName == "Part" then
  1250. g[i].Anchored = false
  1251. end
  1252. end
  1253. end
  1254. end
  1255.  
  1256.  
  1257. --//=================================\\
  1258. --|| WRAP THE WHOLE SCRIPT UP
  1259. --\\=================================//
  1260.  
  1261. Humanoid.Changed:connect(function(Jump)
  1262. if Jump == "Jump" and (Disable_Jump == true) then
  1263. Humanoid.Jump = false
  1264. end
  1265. end)
  1266.  
  1267. while true do
  1268. Swait()
  1269. script.Parent = WEAPONGUI
  1270. Humanoid.Parent = Character
  1271. if Humanoid then
  1272. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1273. IDLEANIMATION:Play()
  1274. end
  1275. if ANIMATE.Parent == Character then
  1276. ANIMATE:Destroy()
  1277. end
  1278. SINE = SINE + CHANGE
  1279. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1280. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1281. Humanoid.HipHeight = 1
  1282. Humanoid.Name = "Warden"
  1283. Humanoid.PlatformStand = false
  1284. if PLAYMAINANIM == true then
  1285. if TORSOVELOCITY < 1 then
  1286. 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)
  1287. 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)
  1288. 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)
  1289. 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)
  1290. 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)
  1291. 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)
  1292. elseif TORSOVELOCITY > 1 then
  1293. 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)
  1294. 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)
  1295. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-35), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1296. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-35), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1297. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-20)), 0.15 / Animation_Speed)
  1298. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(10)), 0.15 / Animation_Speed)
  1299. end
  1300. end
  1301. unanchor()
  1302. Humanoid.MaxHealth = "inf"
  1303. Humanoid.Health = "inf"
  1304. if Rooted == false then
  1305. Disable_Jump = false
  1306. Humanoid.WalkSpeed = Speed
  1307. elseif Rooted == true then
  1308. Disable_Jump = true
  1309. Humanoid.WalkSpeed = 0
  1310. end
  1311. for _, c in pairs(Character:GetChildren()) do
  1312. if c.ClassName == "Part" and c.Name ~= "Eye" then
  1313. c.Material = "Neon"
  1314. if c:FindFirstChildOfClass("ParticleEmitter") then
  1315. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1316. end
  1317. c.Color = C3(1,1,1)
  1318. if c == Head then
  1319. if c:FindFirstChild("face") then
  1320. c.face:remove()
  1321. end
  1322. end
  1323. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  1324. c:remove()
  1325. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1326. c:remove()
  1327. end
  1328. end
  1329. sick.SoundId = "rbxassetid://1494340971"
  1330. sick.Looped = true
  1331. sick.Pitch = 1
  1332. sick.Volume = 3
  1333. sick:Resume()
  1334. sick.Parent = Torso
  1335. refit()
  1336. if Head:FindFirstChildOfClass("Sound") then
  1337. Head:FindFirstChildOfClass("Sound"):remove()
  1338. end
  1339. end
  1340.  
  1341. --//=================================\\
  1342. --\\=================================//
  1343.  
  1344.  
  1345.  
  1346.  
  1347.  
  1348. --//====================================================\\--
  1349. --|| END OF SCRIPT
  1350. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement