Advertisement
AlitraxMine

Untitled

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