Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2018
423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 85.33 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5. wait(0.2)
  6.  
  7. Player = game:GetService("Players").LocalPlayer
  8. PlayerGui = Player.PlayerGui
  9. Cam = workspace.CurrentCamera
  10. Backpack = Player.Backpack
  11. Character = Player.Character
  12. Humanoid = Character.Humanoid
  13. Mouse = Player:GetMouse()
  14. RootPart = Character["HumanoidRootPart"]
  15. Torso = Character["Torso"]
  16. Head = Character["Head"]
  17. RightArm = Character["Right Arm"]
  18. LeftArm = Character["Left Arm"]
  19. RightLeg = Character["Right Leg"]
  20. LeftLeg = Character["Left Leg"]
  21. RootJoint = RootPart["RootJoint"]
  22. Neck = Torso["Neck"]
  23. RightShoulder = Torso["Right Shoulder"]
  24. LeftShoulder = Torso["Left Shoulder"]
  25. RightHip = Torso["Right Hip"]
  26. LeftHip = Torso["Left Hip"]
  27. local sick = Instance.new("Sound",Character)
  28. sick.SoundId = "rbxassetid://1494340971"
  29. sick.Looped = true
  30. sick.Pitch = 1
  31. sick.Volume = 1
  32. sick:Play()
  33.  
  34. IT = Instance.new
  35. CF = CFrame.new
  36. VT = Vector3.new
  37. RAD = math.rad
  38. C3 = Color3.new
  39. UD2 = UDim2.new
  40. BRICKC = BrickColor.new
  41. ANGLES = CFrame.Angles
  42. EULER = CFrame.fromEulerAnglesXYZ
  43. COS = math.cos
  44. ACOS = math.acos
  45. SIN = math.sin
  46. ASIN = math.asin
  47. ABS = math.abs
  48. MRANDOM = math.random
  49. FLOOR = math.floor
  50.  
  51. --//=================================\\
  52. --|| USEFUL VALUES
  53. --\\=================================//
  54.  
  55. Animation_Speed = 3
  56. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  57. local Speed = 25
  58. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  59. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  60. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  61. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  62. local DAMAGEMULTIPLIER = 1
  63. local ANIM = "Idle"
  64. local ATTACK = false
  65. local EQUIPPED = false
  66. local HOLD = false
  67. local COMBO = 1
  68. local Rooted = false
  69. local SINE = 0
  70. local KEYHOLD = false
  71. local CHANGE = 2 / Animation_Speed
  72. local WALKINGANIM = false
  73. local VALUE1 = false
  74. local VALUE2 = false
  75. local ROBLOXIDLEANIMATION = IT("Animation")
  76. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  77. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  78. --ROBLOXIDLEANIMATION.Parent = Humanoid
  79. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  80. WEAPONGUI.Name = "Weapon GUI"
  81. local Effects = IT("Folder", Character)
  82. Effects.Name = "Effects"
  83. local ANIMATOR = Humanoid.Animator
  84. local ANIMATE = Character.Animate
  85. local UNANCHOR = true
  86. local PLAYMAINANIM = true
  87. local BOLTSOUNDS = {168586621,168586586,178452241}
  88.  
  89. --//=================================\\
  90. --\\=================================//
  91.  
  92.  
  93. --//=================================\\
  94. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  95. --\\=================================//
  96.  
  97. ArtificialHB = Instance.new("BindableEvent", script)
  98. ArtificialHB.Name = "ArtificialHB"
  99.  
  100. script:WaitForChild("ArtificialHB")
  101.  
  102. frame = Frame_Speed
  103. tf = 0
  104. allowframeloss = false
  105. tossremainder = false
  106. lastframe = tick()
  107. script.ArtificialHB:Fire()
  108.  
  109. game:GetService("RunService").Heartbeat:connect(function(s, p)
  110. tf = tf + s
  111. if tf >= frame then
  112. if allowframeloss then
  113. script.ArtificialHB:Fire()
  114. lastframe = tick()
  115. else
  116. for i = 1, math.floor(tf / frame) do
  117. script.ArtificialHB:Fire()
  118. end
  119. lastframe = tick()
  120. end
  121. if tossremainder then
  122. tf = 0
  123. else
  124. tf = tf - frame * math.floor(tf / frame)
  125. end
  126. end
  127. end)
  128.  
  129. --//=================================\\
  130. --\\=================================//
  131.  
  132. --//=================================\\
  133. --|| SOME FUNCTIONS
  134. --\\=================================//
  135.  
  136. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  137. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  138. end
  139.  
  140. function PositiveAngle(NUMBER)
  141. if NUMBER >= 0 then
  142. NUMBER = 0
  143. end
  144. return NUMBER
  145. end
  146.  
  147. function NegativeAngle(NUMBER)
  148. if NUMBER <= 0 then
  149. NUMBER = 0
  150. end
  151. return NUMBER
  152. end
  153.  
  154. function Swait(NUMBER)
  155. if NUMBER == 0 or NUMBER == nil then
  156. ArtificialHB.Event:wait()
  157. else
  158. for i = 1, NUMBER do
  159. ArtificialHB.Event:wait()
  160. end
  161. end
  162. end
  163.  
  164. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  165. local NEWMESH = IT(MESH)
  166. if MESH == "SpecialMesh" then
  167. NEWMESH.MeshType = MESHTYPE
  168. if MESHID ~= "nil" and MESHID ~= "" then
  169. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  170. end
  171. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  172. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  173. end
  174. end
  175. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  176. NEWMESH.Scale = SCALE
  177. NEWMESH.Parent = PARENT
  178. return NEWMESH
  179. end
  180.  
  181. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  182. local NEWPART = IT("Part")
  183. NEWPART.formFactor = FORMFACTOR
  184. NEWPART.Reflectance = REFLECTANCE
  185. NEWPART.Transparency = TRANSPARENCY
  186. NEWPART.CanCollide = false
  187. NEWPART.Locked = true
  188. NEWPART.Anchored = true
  189. if ANCHOR == false then
  190. NEWPART.Anchored = false
  191. end
  192. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  193. NEWPART.Name = NAME
  194. NEWPART.Size = SIZE
  195. NEWPART.Position = Torso.Position
  196. NEWPART.Material = MATERIAL
  197. NEWPART:BreakJoints()
  198. NEWPART.Parent = PARENT
  199. return NEWPART
  200. end
  201.  
  202. local function weldBetween(a, b)
  203. local weldd = Instance.new("ManualWeld")
  204. weldd.Part0 = a
  205. weldd.Part1 = b
  206. weldd.C0 = CFrame.new()
  207. weldd.C1 = b.CFrame:inverse() * a.CFrame
  208. weldd.Parent = a
  209. return weldd
  210. end
  211.  
  212.  
  213. function QuaternionFromCFrame(cf)
  214. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  215. local trace = m00 + m11 + m22
  216. if trace > 0 then
  217. local s = math.sqrt(1 + trace)
  218. local recip = 0.5 / s
  219. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  220. else
  221. local i = 0
  222. if m11 > m00 then
  223. i = 1
  224. end
  225. if m22 > (i == 0 and m00 or m11) then
  226. i = 2
  227. end
  228. if i == 0 then
  229. local s = math.sqrt(m00 - m11 - m22 + 1)
  230. local recip = 0.5 / s
  231. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  232. elseif i == 1 then
  233. local s = math.sqrt(m11 - m22 - m00 + 1)
  234. local recip = 0.5 / s
  235. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  236. elseif i == 2 then
  237. local s = math.sqrt(m22 - m00 - m11 + 1)
  238. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  239. end
  240. end
  241. end
  242.  
  243. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  244. local xs, ys, zs = x + x, y + y, z + z
  245. local wx, wy, wz = w * xs, w * ys, w * zs
  246. local xx = x * xs
  247. local xy = x * ys
  248. local xz = x * zs
  249. local yy = y * ys
  250. local yz = y * zs
  251. local zz = z * zs
  252. 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))
  253. end
  254.  
  255. function QuaternionSlerp(a, b, t)
  256. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  257. local startInterp, finishInterp;
  258. if cosTheta >= 0.0001 then
  259. if (1 - cosTheta) > 0.0001 then
  260. local theta = ACOS(cosTheta)
  261. local invSinTheta = 1 / SIN(theta)
  262. startInterp = SIN((1 - t) * theta) * invSinTheta
  263. finishInterp = SIN(t * theta) * invSinTheta
  264. else
  265. startInterp = 1 - t
  266. finishInterp = t
  267. end
  268. else
  269. if (1 + cosTheta) > 0.0001 then
  270. local theta = ACOS(-cosTheta)
  271. local invSinTheta = 1 / SIN(theta)
  272. startInterp = SIN((t - 1) * theta) * invSinTheta
  273. finishInterp = SIN(t * theta) * invSinTheta
  274. else
  275. startInterp = t - 1
  276. finishInterp = t
  277. end
  278. end
  279. 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
  280. end
  281.  
  282. function Clerp(a, b, t)
  283. local qa = {QuaternionFromCFrame(a)}
  284. local qb = {QuaternionFromCFrame(b)}
  285. local ax, ay, az = a.x, a.y, a.z
  286. local bx, by, bz = b.x, b.y, b.z
  287. local _t = 1 - t
  288. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  289. end
  290.  
  291. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  292. local frame = IT("Frame")
  293. frame.BackgroundTransparency = TRANSPARENCY
  294. frame.BorderSizePixel = BORDERSIZEPIXEL
  295. frame.Position = POSITION
  296. frame.Size = SIZE
  297. frame.BackgroundColor3 = COLOR
  298. frame.BorderColor3 = BORDERCOLOR
  299. frame.Name = NAME
  300. frame.Parent = PARENT
  301. return frame
  302. end
  303.  
  304. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  305. local label = IT("TextLabel")
  306. label.BackgroundTransparency = 1
  307. label.Size = UD2(1, 0, 1, 0)
  308. label.Position = UD2(0, 0, 0, 0)
  309. label.TextColor3 = TEXTCOLOR
  310. label.TextStrokeTransparency = STROKETRANSPARENCY
  311. label.TextTransparency = TRANSPARENCY
  312. label.FontSize = TEXTFONTSIZE
  313. label.Font = TEXTFONT
  314. label.BorderSizePixel = BORDERSIZEPIXEL
  315. label.TextScaled = false
  316. label.Text = TEXT
  317. label.Name = NAME
  318. label.Parent = PARENT
  319. return label
  320. end
  321.  
  322. function NoOutlines(PART)
  323. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  324. end
  325.  
  326. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  327. local NEWWELD = IT(TYPE)
  328. NEWWELD.Part0 = PART0
  329. NEWWELD.Part1 = PART1
  330. NEWWELD.C0 = C0
  331. NEWWELD.C1 = C1
  332. NEWWELD.Parent = PARENT
  333. return NEWWELD
  334. end
  335.  
  336. local S = IT("Sound")
  337. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  338. local NEWSOUND = nil
  339. coroutine.resume(coroutine.create(function()
  340. NEWSOUND = S:Clone()
  341. NEWSOUND.Parent = PARENT
  342. NEWSOUND.Volume = VOLUME
  343. NEWSOUND.Pitch = PITCH
  344. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  345. NEWSOUND:play()
  346. if DOESLOOP == true then
  347. NEWSOUND.Looped = true
  348. else
  349. repeat wait(1) until NEWSOUND.Playing == false
  350. NEWSOUND:remove()
  351. end
  352. end))
  353. return NEWSOUND
  354. end
  355.  
  356. local EyeSizes={
  357. NumberSequenceKeypoint.new(0,2,0),
  358. NumberSequenceKeypoint.new(1,0,0)
  359. }
  360. local EyeTrans={
  361. NumberSequenceKeypoint.new(0,0.5,0),
  362. NumberSequenceKeypoint.new(1,1,0)
  363. }
  364. local PE=Instance.new("ParticleEmitter",nil)
  365. PE.LightEmission=.8
  366. PE.Color = ColorSequence.new(BRICKC("Alder").Color,BRICKC("Lavender").Color)
  367. PE.Size=NumberSequence.new(EyeSizes)
  368. PE.Transparency=NumberSequence.new(EyeTrans)
  369. PE.Lifetime=NumberRange.new(0.35,1)
  370. PE.Rotation=NumberRange.new(0,360)
  371. PE.Rate=100
  372. PE.VelocitySpread = 10000
  373. PE.Acceleration = Vector3.new(0,85,0)
  374. PE.Drag = 5
  375. PE.Speed = NumberRange.new(0.1,5)
  376. PE.Texture="http://www.roblox.com/asset/?id=1460745664"
  377. PE.ZOffset = 0.5
  378. PE.Name = "PE"
  379. PE.Enabled = false
  380.  
  381. function Fire(art)
  382. local PARTICLES = PE:Clone()
  383. PARTICLES.Parent = art
  384. PARTICLES.Enabled = true
  385. return PARTICLES
  386. end
  387.  
  388. function CFrameFromTopBack(at, top, back)
  389. local right = top:Cross(back)
  390. 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)
  391. end
  392.  
  393. --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})
  394. function WACKYEFFECT(Table)
  395. local TYPE = (Table.EffectType or "Sphere")
  396. local SIZE = (Table.Size or VT(1,1,1))
  397. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  398. local TRANSPARENCY = (Table.Transparency or 0)
  399. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  400. local CFRAME = (Table.CFrame or Torso.CFrame)
  401. local MOVEDIRECTION = (Table.MoveToPos or nil)
  402. local ROTATION1 = (Table.RotationX or 0)
  403. local ROTATION2 = (Table.RotationY or 0)
  404. local ROTATION3 = (Table.RotationZ or 0)
  405. local MATERIAL = (Table.Material or "Neon")
  406. local COLOR = (Table.Color or C3(1,1,1))
  407. local TIME = (Table.Time or 45)
  408. local SOUNDID = (Table.SoundID or nil)
  409. local SOUNDPITCH = (Table.SoundPitch or nil)
  410. local SOUNDVOLUME = (Table.SoundVolume or nil)
  411. coroutine.resume(coroutine.create(function()
  412. local PLAYSSOUND = false
  413. local SOUND = nil
  414. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  415. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  416. PLAYSSOUND = true
  417. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  418. end
  419. EFFECT.Color = COLOR
  420. local MSH = nil
  421. if TYPE == "Sphere" then
  422. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  423. elseif TYPE == "Block" or TYPE == "Box" then
  424. MSH = IT("BlockMesh",EFFECT)
  425. MSH.Scale = SIZE
  426. elseif TYPE == "Wave" then
  427. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  428. elseif TYPE == "Ring" then
  429. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  430. elseif TYPE == "Slash" then
  431. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  432. elseif TYPE == "Round Slash" then
  433. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  434. elseif TYPE == "Swirl" then
  435. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  436. elseif TYPE == "Skull" then
  437. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  438. elseif TYPE == "Crystal" then
  439. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  440. end
  441. if MSH ~= nil then
  442. local MOVESPEED = nil
  443. if MOVEDIRECTION ~= nil then
  444. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  445. end
  446. local GROWTH = SIZE - ENDSIZE
  447. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  448. if TYPE == "Block" then
  449. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  450. else
  451. EFFECT.CFrame = CFRAME
  452. end
  453. for LOOP = 1, TIME+1 do
  454. Swait()
  455. MSH.Scale = MSH.Scale - GROWTH/TIME
  456. if TYPE == "Wave" then
  457. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  458. end
  459. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  460. if TYPE == "Block" then
  461. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  462. else
  463. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  464. end
  465. if MOVEDIRECTION ~= nil then
  466. local ORI = EFFECT.Orientation
  467. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  468. EFFECT.Orientation = ORI
  469. end
  470. end
  471. if PLAYSSOUND == false then
  472. EFFECT:remove()
  473. else
  474. repeat wait(1) until SOUND.Playing == false
  475. EFFECT:remove()
  476. end
  477. else
  478. if PLAYSSOUND == false then
  479. EFFECT:remove()
  480. else
  481. repeat Swait() until SOUND.Playing == false
  482. EFFECT:remove()
  483. end
  484. end
  485. end))
  486. end
  487.  
  488. function MakeForm(PART,TYPE)
  489. if TYPE == "Cyl" then
  490. local MSH = IT("CylinderMesh",PART)
  491. elseif TYPE == "Ball" then
  492. local MSH = IT("SpecialMesh",PART)
  493. MSH.MeshType = "Sphere"
  494. elseif TYPE == "Wedge" then
  495. local MSH = IT("SpecialMesh",PART)
  496. MSH.MeshType = "Wedge"
  497. end
  498. end
  499.  
  500. Debris = game:GetService("Debris")
  501.  
  502. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  503. local DIRECTION = CF(StartPos,EndPos).lookVector
  504. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  505. end
  506.  
  507. local HATWELD = nil
  508. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  509. PLAYMAINANIM = false
  510. if WhichPose == "Cast1" then
  511. for i=0, Time, 0.1 / Animation_Speed do
  512. Swait()
  513. if Magic == true then
  514. 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})
  515. end
  516. if Gyro ~= nil and Gyro ~= false then
  517. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  518. end
  519. 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)
  520. 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)
  521. 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)
  522. 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)
  523. 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)
  524. 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)
  525. end
  526. elseif WhichPose == "Cast2" then
  527. for i=0, Time, 0.1 / Animation_Speed do
  528. Swait()
  529. if Magic == true then
  530. 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})
  531. 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})
  532. end
  533. if Gyro ~= nil and Gyro ~= false then
  534. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  535. end
  536. 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)
  537. 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)
  538. 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)
  539. 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)
  540. 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)
  541. 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)
  542. end
  543. elseif WhichPose == "RightArmUp" then
  544. for i=0, Time, 0.1 / Animation_Speed do
  545. Swait()
  546. if Magic == true then
  547. 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})
  548. end
  549. if Gyro ~= nil and Gyro ~= false then
  550. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  551. end
  552. 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)
  553. 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)
  554. 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)
  555. 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)
  556. 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)
  557. 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)
  558. end
  559. elseif WhichPose == "Taunt" then
  560. for i=0, Time, 0.1 / Animation_Speed do
  561. Swait()
  562. 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)
  563. 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)
  564. 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)
  565. 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)
  566. 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)
  567. 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)
  568. end
  569. HATWELD.Part0 = RightArm
  570. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  571. CreateSound(221057812,Torso,10,1,false)
  572. for i=0, Time*2, 0.1 / Animation_Speed do
  573. Swait()
  574. 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)
  575. 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)
  576. 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)
  577. 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)
  578. 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)
  579. 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)
  580. end
  581. for i=0, Time, 0.1 / Animation_Speed do
  582. Swait()
  583. 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)
  584. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  585. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  586. 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)
  587. 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)
  588. 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)
  589. 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)
  590. end
  591. HATWELD.Part0 = Head
  592. HATWELD.C0 = CF(0,0.72*SIZE,0.1) * ANGLES(RAD(15), RAD(0), RAD(0))
  593. elseif WhichPose == "FacePose" then
  594. for i=0, Time, 0.1 / Animation_Speed do
  595. Swait()
  596. 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)
  597. 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)
  598. 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)
  599. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  600. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  601. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  602. end
  603. FACEWELD.Part0 = RightArm
  604. FACEWELD2.Part0 = RightArm
  605. FACEWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  606. FACEWELD2.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  607. CreateSound(221057812,Torso,10,1,false)
  608. for i=0, Time*2, 0.1 / Animation_Speed do
  609. Swait()
  610. 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)
  611. 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)
  612. 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)
  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(5), RAD(25), RAD(-15)) * 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. for i=0, Time, 0.1 / Animation_Speed do
  618. Swait()
  619. 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)
  620. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  621. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  622. 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)
  623. 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)
  624. 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)
  625. FACEWELD.C0 = Clerp(FACEWELD.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)
  626. FACEWELD2.C0 = Clerp(FACEWELD2.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)
  627. end
  628. FACEWELD.Part0 = Head
  629. FACEWELD2.Part0 = Head
  630. FACEWELD.C0 = CF(0,0,-.5*SIZE) * ANGLES(RAD(15), RAD(0), RAD(0))
  631. FACEWELD2.C0 = CF(0,0,-.5*SIZE)
  632. elseif WhichPose == "Prepare key" then
  633. for i=0, Time, 0.1 / Animation_Speed do
  634. Swait()
  635. if Gyro ~= nil and Gyro ~= false then
  636. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  637. end
  638. 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)
  639. 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)
  640. 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)
  641. 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)
  642. 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)
  643. 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)
  644. end
  645. elseif WhichPose == "Turn key" then
  646. for i=0, Time, 0.1 / Animation_Speed do
  647. Swait()
  648. if Gyro ~= nil and Gyro ~= false then
  649. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  650. end
  651. 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)
  652. 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)
  653. 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)
  654. 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)
  655. 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)
  656. 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)
  657. end
  658. end
  659. PLAYMAINANIM = true
  660. end
  661.  
  662. --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})
  663. function Lightning(Table)
  664. local Color = Table.Color or C3(1,1,1)
  665. local StartPos = Table.Start or Torso.Position
  666. local EndPos = Table.End or Mouse.Hit.p
  667. local SegmentLength = Table.SegmentL or 2
  668. local Thickness = Table.Thickness or 0.1
  669. local Dissapear = Table.DoesFade or false
  670. local Parent = Table.Ignore or Character
  671. local MaxDist = Table.MaxDist or 400
  672. local Branches = Table.Branches or false
  673. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  674. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
  675. local LIGHTNINGMODEL = IT("Model",Effects)
  676. LIGHTNINGMODEL.Name = "Lightning"
  677. local LastBolt = nil
  678. for E = 1, DISTANCE do
  679. local ExtraSize = (DISTANCE-E)/15
  680. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  681. PART.Color = Color
  682. MakeForm(PART,"Cyl")
  683. if LastBolt == nil then
  684. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  685. else
  686. 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)
  687. end
  688. LastBolt = PART
  689. if Branches == true then
  690. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  691. if CHOICE == 1 then
  692. local LASTBRANCH = nil
  693. for i = 1, MRANDOM(2,5) do
  694. local ExtraSize2 = ((DISTANCE-E)/25)/i
  695. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  696. PART.Color = Color
  697. MakeForm(PART,"Cyl")
  698. if LASTBRANCH == nil then
  699. 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)
  700. else
  701. 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)
  702. end
  703. LASTBRANCH = PART
  704. end
  705. end
  706. end
  707. end
  708. if Dissapear == true then
  709. coroutine.resume(coroutine.create(function()
  710. for i = 1, 10 do
  711. Swait()
  712. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  713. if c.ClassName == "Part" then
  714. c.Transparency = i/10
  715. end
  716. end
  717. end
  718. LIGHTNINGMODEL:remove()
  719. end))
  720. elseif Dissapear == false then
  721. Debris:AddItem(LIGHTNINGMODEL,0.1)
  722. end
  723. return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  724. end
  725.  
  726. --//=================================\\
  727. --|| WEAPON CREATION
  728. --\\=================================//
  729.  
  730. for i = 1, 15 do
  731. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/15.2, "Dark stone grey", "FaceGradient", VT(1.01,0.58,1.01),false)
  732. FACE.Color = C3(0,0,0)
  733. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  734. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/35,0), CF(0, 0, 0))
  735. end
  736.  
  737. Humanoid.DisplayDistanceType = "None"
  738. local naeeym2 = IT("BillboardGui",Character)
  739. naeeym2.AlwaysOnTop = true
  740. naeeym2.Size = UDim2.new(5,35,2,15)
  741. naeeym2.StudsOffset = Vector3.new(0,3,0)
  742. naeeym2.MaxDistance = 75
  743. naeeym2.Adornee = Character.Head
  744. naeeym2.Name = "Name"
  745. naeeym2.PlayerToHideFrom = Player
  746. local tecks2 = IT("TextLabel",naeeym2)
  747. tecks2.BackgroundTransparency = 1
  748. tecks2.TextScaled = true
  749. tecks2.BorderSizePixel = 0
  750. tecks2.Text = "The Warden"
  751. tecks2.Font = "Bodoni"
  752. tecks2.TextSize = 30
  753. tecks2.TextStrokeTransparency = 0.5
  754. tecks2.TextColor3 = C3(0,0,0)
  755. tecks2.TextStrokeColor3 = BRICKC"Lavender".Color
  756. tecks2.Size = UDim2.new(1,0,0.5,0)
  757. tecks2.Parent = naeeym2
  758. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Lilac", "FaceGradient", VT(0.15,0.15,0.15),false)
  759. MakeForm(EYE,"Ball")
  760. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.22,-0.55), CF(0, 0, 0))
  761. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Lilac", "FaceGradient", VT(0.05,0.14,0.05),false)
  762. EYE.Color = C3(0,0,0)
  763. MakeForm(EYE,"Ball")
  764. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.22,-0.6), CF(0, 0, 0))
  765. local top = Instance.new("Shirt")
  766. top.ShirtTemplate = "rbxassetid://676428254"
  767. top.Parent = Character
  768. top.Name = "Cloth"
  769. local bottom = Instance.new("Pants")
  770. bottom.PantsTemplate = "rbxassetid://676428351"
  771. bottom.Parent = Character
  772. bottom.Name = "Cloth"
  773. for _, c in pairs(Character:GetChildren()) do
  774. if c.ClassName == "Part" and c.Name ~= "FaceGradient" and c.Name ~= "Hat" and c.Name ~= "Gem" then
  775. c.Material = "Neon"
  776. if c:FindFirstChildOfClass("ParticleEmitter") then
  777. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  778. end
  779. c.Color = C3(1,1,1)
  780. if c == Head then
  781. if c:FindFirstChild("face") then
  782. c.face:remove()
  783. end
  784. end
  785. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  786. c:remove()
  787. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  788. c:remove()
  789. end
  790. end
  791. local BODY = {}
  792. for _, c in pairs(Character:GetDescendants()) do
  793. if c:IsA("BasePart") and c.Name ~= "Handle" then
  794. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  795. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  796. end
  797. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  798. elseif c:IsA("JointInstance") then
  799. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  800. end
  801. end
  802. for e = 1, #BODY do
  803. if BODY[e] ~= nil then
  804. local STUFF = BODY[e]
  805. local PART = STUFF[1]
  806. local PARENT = STUFF[2]
  807. local MATERIAL = STUFF[3]
  808. local COLOR = STUFF[4]
  809. local TRANSPARENCY = STUFF[5]
  810. if PART.ClassName == "Part" and PART ~= RootPart then
  811. PART.Material = MATERIAL
  812. PART.Color = COLOR
  813. PART.Transparency = TRANSPARENCY
  814. end
  815. PART.AncestryChanged:Connect(function()
  816. PART.Parent = PARENT
  817. end)
  818. end
  819. end
  820. function refit()
  821. Character.Parent = workspace
  822. for e = 1, #BODY do
  823. if BODY[e] ~= nil then
  824. local STUFF = BODY[e]
  825. local PART = STUFF[1]
  826. local PARENT = STUFF[2]
  827. local MATERIAL = STUFF[3]
  828. local COLOR = STUFF[4]
  829. local TRANSPARENCY = STUFF[5]
  830. if PART.ClassName == "Part" and PART ~= RootPart then
  831. PART.Material = MATERIAL
  832. PART.Color = COLOR
  833. PART.Transparency = TRANSPARENCY
  834. end
  835. if PART.Parent ~= PARENT then
  836. Humanoid:remove()
  837. PART.Parent = PARENT
  838. Humanoid = IT("Humanoid",Character)
  839. end
  840. end
  841. end
  842. end
  843. local SKILLTEXTCOLOR = BRICKC"Lavender".Color
  844. local SKILLFONT = "Bodoni"
  845. local SKILLTEXTSIZE = 7
  846.  
  847. Humanoid.Died:connect(function()
  848. refit()
  849. end)
  850.  
  851. 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")
  852. 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")
  853. 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")
  854. 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")
  855. 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")
  856. local SKILL6FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.05, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
  857. local SKILL7FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.15, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame")
  858.  
  859. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Warden Zap", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
  860. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Warden Thunder", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
  861. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Inferno Ring", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  862. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Warden Wall", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
  863. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Prison Key", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
  864. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[N] Shoot", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 6")
  865. local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[M] Burst", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7")
  866.  
  867. --//=================================\\
  868. --|| DAMAGING
  869. --\\=================================//
  870.  
  871. function ApplyAoE(POSITION,RANGE,FLING,BURN)
  872. local CHILDREN = workspace:GetDescendants()
  873. for index, CHILD in pairs(CHILDREN) do
  874. if CHILD.ClassName == "Model" and CHILD ~= Character then
  875. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  876. if HUM then
  877. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  878. if TORSO then
  879. if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
  880. CHILD:BreakJoints()
  881. if FLING ~= 0 then
  882. for _, c in pairs(CHILD:GetChildren()) do
  883. if c:IsA("BasePart") and c.Transparency == 0 then
  884. if BURN == true then
  885. Fire(c)
  886. end
  887. local bv = Instance.new("BodyVelocity")
  888. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  889. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  890. bv.Parent = c
  891. Debris:AddItem(bv,0.05)
  892. end
  893. end
  894. end
  895. end
  896. end
  897. end
  898. end
  899. end
  900. end
  901.  
  902. --//=================================\\
  903. --|| ATTACK FUNCTIONS AND STUFF
  904. --\\=================================//
  905.  
  906. function Warden_Zap()
  907. ATTACK = true
  908. Rooted = false
  909. local GYRO = IT("BodyGyro",RootPart)
  910. GYRO.D = 750
  911. GYRO.P = 20000
  912. GYRO.MaxTorque = VT(0,40000000,0)
  913. CreateSound(348663022,RightArm,1.5,2,false)
  914. Pose("Cast1",0.8,1,true,GYRO)
  915. 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})
  916. local Hitpos = LightningTable.End
  917. ApplyAoE(Hitpos,10,35)
  918. 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})
  919. for i = 1, 4 do
  920. 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})
  921. end
  922. Pose("Cast1",0.8,1,true)
  923. GYRO:remove()
  924. ATTACK = false
  925. Rooted = false
  926. end
  927.  
  928. function Warden_Thunder()
  929. ATTACK = true
  930. Rooted = false
  931. local GYRO = IT("BodyGyro",RootPart)
  932. GYRO.D = 750
  933. GYRO.P = 20000
  934. GYRO.MaxTorque = VT(0,40000000,0)
  935. CreateSound(469345336,Torso,3,2,false)
  936. Pose("Cast2",1.5,2,true,GYRO)
  937. coroutine.resume(coroutine.create(function()
  938. local FRAME = RootPart.CFrame
  939. for i = 1, 25 do
  940. local POS = FRAME*CF(MRANDOM(-17,17),0,-i*15)
  941. 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})
  942. local Hitpos = LightningTable.End
  943. ApplyAoE(Hitpos,20,15)
  944. 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})
  945. for i = 1, 4 do
  946. 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})
  947. end
  948. wait(0.05)
  949. end
  950. end))
  951. Pose("Cast2",1.5,0.7,true)
  952. GYRO:remove()
  953. ATTACK = false
  954. Rooted = false
  955. end
  956.  
  957. function Inferno_Ring()
  958. ATTACK = true
  959. Rooted = false
  960. local GYRO = IT("BodyGyro",RootPart)
  961. GYRO.D = 750
  962. GYRO.P = 20000
  963. GYRO.MaxTorque = VT(0,40000000,0)
  964. local FIRE = IT("Model",Effects)
  965. FIRE.Name = "Fire"
  966. local MAIN = CreatePart(3, FIRE, "Neon", 0, 1, "Lavender", "Center", VT(0,0,0))
  967. FIRE.PrimaryPart = MAIN
  968. local FIRES = {}
  969. for i = 1, 45 do
  970. local PRT = CreatePart(3, FIRE, "Neon", 0, 1, "Lavender", "RingPart", VT(3,3,3))
  971. PRT.CFrame = MAIN.CFrame*ANGLES(RAD(0),RAD((360/45)*i),RAD(0))*CF(0,0,20)
  972. local F = Fire(PRT)
  973. table.insert(FIRES,F)
  974. end
  975. repeat
  976. FIRE:SetPrimaryPartCFrame(CF(Mouse.Hit.p))
  977. Pose("Cast1",1.5,0.01,false,GYRO)
  978. until HOLD == true
  979. coroutine.resume(coroutine.create(function()
  980. for i = 1, 4 do
  981. ApplyAoE(MAIN.Position,21,-15,true)
  982. CreateSound(463598785,MAIN,3,1,false)
  983. for E = 1, #FIRES do
  984. if FIRES[E] ~= nil then
  985. FIRES[E].Acceleration = VT(0,300,0)
  986. FIRES[E].Lifetime=NumberRange.new(0.35,1.5)
  987. end
  988. end
  989. wait(0.3)
  990. end
  991. for E = 1, #FIRES do
  992. if FIRES[E] ~= nil then
  993. FIRES[E].Enabled = false
  994. end
  995. end
  996. Debris:AddItem(FIRE,5)
  997. end))
  998. CreateSound(215395388,RightArm,3,2,false)
  999. Pose("RightArmUp",1.5,0.5,true)
  1000. GYRO:remove()
  1001. ATTACK = false
  1002. Rooted = false
  1003. end
  1004.  
  1005. function Warden_Wall()
  1006. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 8, Character)
  1007. if HITFLOOR ~= nil then
  1008. if HITFLOOR.Anchored == true then
  1009. local WALL = HITFLOOR:Clone()
  1010. WALL.Size = VT(45,45,5)
  1011. WALL.Parent = Effects
  1012. WALL.Name = "Wall"
  1013. WALL.CFrame = RootPart.CFrame*CF(0,-65/2.1,-5)*ANGLES(RAD(-15),RAD(0),RAD(0))
  1014. CreateSound(130972023,WALL,5,0.8,false)
  1015. ATTACK = true
  1016. Rooted = true
  1017. local HIT = WALL.Touched:Connect(function(hit)
  1018. if hit.Parent ~= Character then
  1019. hit:BreakJoints()
  1020. end
  1021. end)
  1022. coroutine.resume(coroutine.create(function()
  1023. 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})
  1024. for i = 1, 90 do
  1025. Swait()
  1026. WALL.CFrame = WALL.CFrame*CF(0,0.5,0)
  1027. end
  1028. HIT:disconnect()
  1029. wait(5)
  1030. for i = 1, 46 do
  1031. Swait()
  1032. WALL.CFrame = WALL.CFrame*CF(0,-1,0)
  1033. end
  1034. WALL:remove()
  1035. end))
  1036. Pose("RightArmUp",1.5,1.2,true)
  1037. ATTACK = false
  1038. Rooted = false
  1039. end
  1040. end
  1041. end
  1042.  
  1043. function Prison_Key()
  1044. if Mouse.Target ~= nil then
  1045. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1046. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1047. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1048. local GYRO = IT("BodyGyro",RootPart)
  1049. GYRO.D = 750
  1050. GYRO.P = 20000
  1051. GYRO.MaxTorque = VT(0,40000000,0)
  1052. local grav = Instance.new("BodyPosition",TORSO)
  1053. grav.D = 15
  1054. grav.P = 20000
  1055. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1056. grav.position = TORSO.Position
  1057. local GYRO2 = IT("BodyGyro",TORSO)
  1058. GYRO2.D = 750
  1059. GYRO2.P = 20000
  1060. GYRO2.MaxTorque = VT(0,40000000,0)
  1061. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1062. grav.Name = "Jail"
  1063. local LOCKPARTS = {}
  1064. ATTACK = true
  1065. Rooted = false
  1066. local LOCK = IT("Model",Effects)
  1067. LOCK.Name = "Lock"
  1068. local LOCK2 = IT("Model",LOCK)
  1069. LOCK2.Name = "Metal"
  1070. --CREATE LOCK--
  1071. local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1))
  1072. LOCK.PrimaryPart = BASE
  1073. BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
  1074. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3))
  1075. PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
  1076. MakeForm(PRT,"Cyl")
  1077. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
  1078. PRT.Color = C3(0,0,0)
  1079. PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
  1080. MakeForm(PRT,"Cyl")
  1081. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1))
  1082. PRT.Color = C3(0,0,0)
  1083. PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
  1084. for i = 1, 45 do
  1085. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  1086. PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
  1087. end
  1088. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  1089. PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
  1090. LOCK2.PrimaryPart = PRT
  1091. ---------------
  1092. local CHILDREN = LOCK:GetDescendants()
  1093. for index, CHILD in pairs(CHILDREN) do
  1094. if CHILD:IsA("BasePart") then
  1095. CHILD.Transparency = 1
  1096. end
  1097. end
  1098. for i = 1, 75 do
  1099. LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
  1100. Swait()
  1101. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1102. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1103. local CHILDREN = LOCK:GetDescendants()
  1104. for index, CHILD in pairs(CHILDREN) do
  1105. if CHILD:IsA("BasePart") then
  1106. CHILD.Transparency = CHILD.Transparency - 1/75
  1107. end
  1108. end
  1109. end
  1110. HUM.DisplayDistanceType = "None"
  1111. local KEY = IT("Model",Effects)
  1112. KEY.Name = "Key"
  1113. --CREATE KEY--
  1114. local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "KeyBase", VT(0.1, 1, 0.1),false)
  1115. KEY.PrimaryPart = KBASE
  1116. KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
  1117. local WLD = weldBetween(RightArm,KBASE)
  1118. for i = 1, 45 do
  1119. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.1, 0.1, 0.1),false)
  1120. PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
  1121. weldBetween(KBASE,PRT)
  1122. end
  1123. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.3, 0.1, 0.1),false)
  1124. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
  1125. weldBetween(KBASE,PRT)
  1126. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.3, 0.1, 0.1),false)
  1127. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
  1128. weldBetween(KBASE,PRT)
  1129. --------------
  1130. Rooted = true
  1131. Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
  1132. coroutine.resume(coroutine.create(function()
  1133. for i = 1, 10 do
  1134. Swait()
  1135. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1136. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1137. end
  1138. CreateSound(1149318312,BASE,5,1,false)
  1139. CreateSound(160772554,BASE,3,1,false)
  1140. LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
  1141. for i = 1, 4 do
  1142. 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})
  1143. end
  1144. 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})
  1145. wait(1)
  1146. TORSO.Parent.Parent = LOCK
  1147. for i = 1, 75 do
  1148. Swait()
  1149. local CHILDREN = KEY:GetDescendants()
  1150. for index, CHILD in pairs(CHILDREN) do
  1151. if CHILD:IsA("BasePart") then
  1152. CHILD.Transparency = i/25
  1153. end
  1154. end
  1155. local CHILDREN = LOCK:GetDescendants()
  1156. for index, CHILD in pairs(CHILDREN) do
  1157. if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
  1158. CHILD.Transparency = CHILD.Transparency + 1/75
  1159. elseif CHILD.ClassName == "Decal" then
  1160. CHILD.Transparency = CHILD.Transparency + 1/75
  1161. end
  1162. end
  1163. end
  1164. TORSO.Parent:ClearAllChildren()
  1165. KEY:remove()
  1166. LOCK:remove()
  1167. end))
  1168. Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
  1169. GYRO:remove()
  1170. ATTACK = false
  1171. Rooted = false
  1172. end
  1173. end
  1174. end
  1175.  
  1176. function Hat()
  1177. ATTACK = true
  1178. Rooted = false
  1179. Pose("Taunt",0.4,1.2,false)
  1180. ATTACK = false
  1181. Rooted = false
  1182. end
  1183.  
  1184. local Particle = IT("ParticleEmitter",nil)
  1185. Particle.Enabled = false
  1186. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  1187. Particle.LightEmission = 0.5
  1188. Particle.Rate = 150
  1189. Particle.ZOffset = 0.2
  1190. Particle.Rotation = NumberRange.new(-180, 180)
  1191. Particle.RotSpeed = NumberRange.new(-180, 180)
  1192. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  1193. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
  1194.  
  1195. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  1196. function ParticleEmitter(Table)
  1197. local PRTCL = Particle:Clone()
  1198. local Speed = Table.Speed or 5
  1199. local Drag = Table.Drag or 0
  1200. local Size1 = Table.Size1 or 1
  1201. local Size2 = Table.Size2 or 5
  1202. local Lifetime1 = Table.Lifetime1 or 1
  1203. local Lifetime2 = Table.Lifetime2 or 1.5
  1204. local Parent = Table.Parent or Torso
  1205. local Emit = Table.Emit or 100
  1206. local Offset = Table.Offset or 360
  1207. local Acel = Table.Acel or VT(0,0,0)
  1208. local Enabled = Table.Enabled or false
  1209. PRTCL.Parent = Parent
  1210. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1211. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1212. PRTCL.Speed = NumberRange.new(Speed)
  1213. PRTCL.VelocitySpread = Offset
  1214. PRTCL.Drag = Drag
  1215. PRTCL.Acceleration = Acel
  1216. if Enabled == false then
  1217. PRTCL:Emit(Emit)
  1218. Debris:AddItem(PRTCL,Lifetime2)
  1219. else
  1220. PRTCL.Enabled = true
  1221. end
  1222. return PRTCL
  1223. end
  1224.  
  1225. local Weapon = IT("Model")
  1226. Weapon.Name = "Adds"
  1227. local Effects = IT("Folder", Weapon)
  1228. Effects.Name = "Effects"
  1229.  
  1230. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  1231. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  1232. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1233. MakeForm(Part,"Wedge")
  1234. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1235. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  1236. MakeForm(Part,"Wedge")
  1237. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  1238. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  1239. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1240. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  1241. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1242. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1243. MakeForm(Part,"Cyl")
  1244. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1245. for i = 1, 8 do
  1246. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1247. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1248. end
  1249. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  1250. MakeForm(Part,"Cyl")
  1251. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1252. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  1253. MakeForm(Part,"Ball")
  1254. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1255. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  1256. MakeForm(Part,"Wedge")
  1257. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  1258. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  1259. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1260. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  1261. MakeForm(Part,"Cyl")
  1262. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1263. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  1264. MakeForm(Part,"Cyl")
  1265. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1266. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  1267. MakeForm(Part,"Cyl")
  1268. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1269. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1270. MakeForm(Part,"Wedge")
  1271. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1272. local LASTPART = Handle
  1273. for i = 1, 10 do
  1274. if LASTPART == Handle then
  1275. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  1276. LASTPART = Part
  1277. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1278. else
  1279. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  1280. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  1281. LASTPART = Part
  1282. end
  1283. end
  1284.  
  1285. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  1286. MakeForm(Barrel,"Cyl")
  1287. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1288. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  1289. MakeForm(Part,"Cyl")
  1290. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  1291. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  1292. MakeForm(Part,"Wedge")
  1293. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1294. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  1295. MakeForm(Hole,"Cyl")
  1296. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  1297. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  1298. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1299. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  1300. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  1301. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1302. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  1303. coroutine.resume(coroutine.create(function()
  1304. while wait() do
  1305. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  1306. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  1307. end
  1308. end))
  1309.  
  1310. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  1311. --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  1312.  
  1313. for _, c in pairs(Weapon:GetDescendants()) do
  1314. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1315. c.Material = "Glass"
  1316. c.Color = C3(0,0,0)
  1317. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1318. c.Color = C3(1,0,0)
  1319. c.Material = "Neon"
  1320. end
  1321. end
  1322.  
  1323. Weapon.Parent = Character
  1324. for _, c in pairs(Weapon:GetChildren()) do
  1325. if c.ClassName == "Part" then
  1326. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1327. end
  1328. end
  1329. function turnto(position)
  1330. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1331. end
  1332. function SpawnTrail(FROM,TO,BIG)
  1333. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  1334. MakeForm(TRAIL,"Cyl")
  1335. local DIST = (FROM - TO).Magnitude
  1336. if BIG == true then
  1337. TRAIL.Size = VT(0.5,DIST,0.5)
  1338. else
  1339. TRAIL.Size = VT(0.25,DIST,0.25)
  1340. end
  1341. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  1342. coroutine.resume(coroutine.create(function()
  1343. for i = 1, 5 do
  1344. Swait()
  1345. TRAIL.Transparency = TRAIL.Transparency + 0.1
  1346. end
  1347. TRAIL:remove()
  1348. end))
  1349. end
  1350. local TOBANISH = {}
  1351. function printbye(Name)
  1352. local MESSAGES = {"You are so beautiful, ","Wow, ","Hello, ","NUGE!!!!!, ","so i had to banish ","OK, ","sorry, ","nope, ","ok goodbye, ","return for die, ","NUGI, ","hahaahhahahaha, ","yes this is copied from ","x, ","d, ","a, ","okbye ","a, "}
  1353. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1354. end
  1355. function Banish(Foe)
  1356. if Foe then
  1357. coroutine.resume(coroutine.create(function()
  1358. --if game.Players:FindFirstChild(Foe.Name) then
  1359. table.insert(TOBANISH,Foe.Name)
  1360. printbye(Foe.Name)
  1361. --end
  1362. Foe.Archivable = true
  1363. local CLONE = Foe:Clone()
  1364. Foe:Destroy()
  1365. CLONE.Parent = Effects
  1366. CLONE:BreakJoints()
  1367. local MATERIALS = {"Glass","Neon"}
  1368. for _, c in pairs(CLONE:GetDescendants()) do
  1369. if c:IsA("BasePart") then
  1370. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1371. CreateSound(340722848, c, 10, 1, false)
  1372. end
  1373. c.Anchored = true
  1374. c.Transparency = c.Transparency + 0.2
  1375. c.Material = MATERIALS[MRANDOM(1,2)]
  1376. c.Color = C3(1,0,0)
  1377. if c.ClassName == "MeshPart" then
  1378. c.TextureID = ""
  1379. end
  1380. if c:FindFirstChildOfClass("SpecialMesh") then
  1381. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1382. end
  1383. if c:FindFirstChildOfClass("Decal") then
  1384. c:FindFirstChildOfClass("Decal"):remove()
  1385. end
  1386. c.Name = "Banished"
  1387. c.CanCollide = false
  1388. else
  1389. c:remove()
  1390. end
  1391. end
  1392. local A = false
  1393. for i = 1, 35 do
  1394. if A == false then
  1395. A = true
  1396. elseif A == true then
  1397. A = false
  1398. end
  1399. for _, c in pairs(CLONE:GetDescendants()) do
  1400. if c:IsA("BasePart") then
  1401. c.Anchored = true
  1402. c.Material = MATERIALS[MRANDOM(1,2)]
  1403. c.Transparency = c.Transparency + 0.8/35
  1404. if A == false then
  1405. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1406. elseif A == true then
  1407. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1408. end
  1409. end
  1410. end
  1411. Swait()
  1412. end
  1413. CLONE:remove()
  1414. end))
  1415. end
  1416. end
  1417. workspace.ChildAdded:connect(function(instance)
  1418. for BANISH = 1, #TOBANISH do
  1419. if TOBANISH[BANISH] ~= nil then
  1420. if instance.Name == TOBANISH[BANISH] then
  1421. coroutine.resume(coroutine.create(function()
  1422. printbye(instance.Name)
  1423. instance:ClearAllChildren()
  1424. Debris:AddItem(instance,0.0005)
  1425. end))
  1426. end
  1427. end
  1428. end
  1429. end)
  1430. function Shot()
  1431. ATTACK = true
  1432. Rooted = false
  1433. for i=0, 0.4, 0.1 / Animation_Speed do
  1434. Swait()
  1435. turnto(Mouse.Hit.p)
  1436. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1437. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1438. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1439. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1440. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1441. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1442. end
  1443. repeat
  1444. for i=0, 0.2, 0.1 / Animation_Speed do
  1445. Swait()
  1446. turnto(Mouse.Hit.p)
  1447. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1448. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1449. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1450. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1451. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1452. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1453. end
  1454. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  1455. SpawnTrail(Hole.Position,POS)
  1456. if HIT ~= nil then
  1457. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1458. Banish(HIT.Parent)
  1459. end
  1460. end
  1461. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1462. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1463. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1464. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1465. for i=0, 0.3, 0.1 / Animation_Speed do
  1466. Swait()
  1467. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1468. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1469. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1470. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1471. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1472. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1473. end
  1474. until KEYHOLD == false
  1475. ATTACK = false
  1476. Rooted = false
  1477. end
  1478.  
  1479. SIZE = 1.4
  1480.  
  1481. local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false)
  1482. PRT.Color = C3(0,0,0)
  1483. HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.72*SIZE,0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), CF(0, 0, 0))
  1484. CreateMesh("SpecialMesh", PRT, "FileMesh", "26768040", "", VT(1,1,1)*SIZE, VT(0,0,0))
  1485. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Detail", VT(1,1,1),false)
  1486. PRT.Color = C3(1,1,1)
  1487. FACEWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
  1488. CreateMesh("SpecialMesh", PRT, "FileMesh", "13520257", "", VT(1,1,1)*SIZE, VT(0,0,0))
  1489. local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(1,1.2,0.2),false)
  1490. PRT.Color = C3(159/255, 111/255, 183/255)
  1491. MakeForm(PRT,"Ball")
  1492. FACEWELD2 = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
  1493.  
  1494. function Face()
  1495. ATTACK = true
  1496. Rooted = false
  1497. Pose("FacePose",0.4,1.2,false)
  1498. ATTACK = false
  1499. Rooted = false
  1500. end
  1501.  
  1502. rainbowmode = true
  1503. chaosmode = true
  1504.  
  1505. function sphereMK(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
  1506. local type = type
  1507. local rng = Instance.new("Part", Character)
  1508. rng.Anchored = true
  1509. rng.BrickColor = color
  1510. rng.CanCollide = false
  1511. rng.FormFactor = 3
  1512. rng.Name = "Ring"
  1513. rng.Material = "Neon"
  1514. rng.Size = Vector3.new(1, 1, 1)
  1515. rng.Transparency = 0
  1516. rng.TopSurface = 0
  1517. rng.BottomSurface = 0
  1518. rng.CFrame = pos
  1519. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  1520. local rngm = Instance.new("SpecialMesh", rng)
  1521. rngm.MeshType = "Sphere"
  1522. rngm.Scale = Vec3(x1, y1, z1)
  1523. if rainbowmode == true then
  1524. rng.Color = Color3.new(255 / 255, 255 / 255, 255 / 255)
  1525. end
  1526. local scaler2 = 1
  1527. local speeder = FastSpeed
  1528. if type == "Add" then
  1529. scaler2 = 1 * value
  1530. elseif type == "Divide" then
  1531. scaler2 = 1 / value
  1532. end
  1533. coroutine.resume(coroutine.create(function()
  1534. for i = 0, 10 / bonuspeed, 0.1 do
  1535. Swait()
  1536. if rainbowmode == true then
  1537. rng.Color = Color3.new(255 / 255, 0 / 255, 0 / 255)
  1538. end
  1539. if type == "Add" then
  1540. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1541. elseif type == "Divide" then
  1542. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1543. end
  1544. if chaosmode == true then
  1545. rng.BrickColor = BrickColor.random()
  1546. end
  1547. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1548. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1549. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1550. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1551. end
  1552. rng:Destroy()
  1553. end))
  1554. end
  1555. function sphere(bonuspeed, type, pos, scale, value, color)
  1556. local type = type
  1557. local rng = Instance.new("Part", Character)
  1558. rng.Anchored = true
  1559. rng.BrickColor = color
  1560. rng.CanCollide = false
  1561. rng.FormFactor = 3
  1562. rng.Name = "Ring"
  1563. rng.Material = "Neon"
  1564. rng.Size = Vector3.new(1, 1, 1)
  1565. rng.Transparency = 0
  1566. rng.TopSurface = 0
  1567. rng.BottomSurface = 0
  1568. rng.CFrame = pos
  1569. local rngm = Instance.new("SpecialMesh", rng)
  1570. rngm.MeshType = "Sphere"
  1571. rngm.Scale = scale
  1572. if rainbowmode == true then
  1573. rng.Color = Color3.new(255 / 255, 255 / 255, 255 / 255)
  1574. end
  1575. local scaler2 = 1
  1576. if type == "Add" then
  1577. scaler2 = 1 * value
  1578. elseif type == "Divide" then
  1579. scaler2 = 1 / value
  1580. end
  1581. coroutine.resume(coroutine.create(function()
  1582. for i = 0, 10 / bonuspeed, 0.1 do
  1583. Swait()
  1584. if rainbowmode == true then
  1585. rng.Color = Color3.new(255 / 255, 255 / 255, 255 / 255)
  1586. end
  1587. if type == "Add" then
  1588. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1589. elseif type == "Divide" then
  1590. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1591. end
  1592. if chaosmode == true then
  1593. rng.BrickColor = BrickColor.random()
  1594. end
  1595. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1596. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  1597. end
  1598. rng:Destroy()
  1599. end))
  1600. end
  1601.  
  1602. function RemoveOutlines(part)
  1603. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1604. end
  1605.  
  1606. CFuncs = {
  1607. Part = {
  1608. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1609. local Part = Instance.new("Part")
  1610. Part.Parent = Parent
  1611. Part.Reflectance = Reflectance
  1612. Part.Transparency = Transparency
  1613. Part.CanCollide = false
  1614. Part.Locked = true
  1615. Part.BrickColor = BrickColor.new(tostring(BColor))
  1616. Part.Name = Name
  1617. Part.Size = Size
  1618. Part.Material = Material
  1619.  
  1620. RemoveOutlines(Part)
  1621. return Part
  1622. end
  1623. },
  1624. Mesh = {
  1625. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1626. local Msh = Instance.new(Mesh)
  1627. Msh.Parent = Part
  1628. Msh.Offset = OffSet
  1629. Msh.Scale = Scale
  1630. if Mesh == "SpecialMesh" then
  1631. Msh.MeshType = MeshType
  1632. Msh.MeshId = MeshId
  1633. end
  1634. return Msh
  1635. end
  1636. },
  1637. Weld = {
  1638. Create = function(Parent, Part0, Part1, C0, C1)
  1639. local Weld = Instance.new("Weld")
  1640. Weld.Parent = Parent
  1641. Weld.Part0 = Part0
  1642. Weld.Part1 = Part1
  1643. Weld.C0 = C0
  1644. Weld.C1 = C1
  1645.  
  1646. return Weld
  1647. end
  1648. },
  1649. Sound = {
  1650. Create = function(id, par, vol, pit)
  1651. coroutine.resume(coroutine.create(function()
  1652. local S = Instance.new("Sound")
  1653. S.Volume = vol
  1654. S.Pitch = pit or 1
  1655. S.SoundId = id
  1656. S.Parent = par or workspace
  1657.  
  1658. wait()
  1659. S:Play()
  1660. game:GetService("Debris"):AddItem(S, 6)
  1661. end))
  1662. end
  1663. },
  1664. ParticleEmitter = {
  1665. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1666. local fp = Instance.new("ParticleEmitter")
  1667. fp.Parent = Parent
  1668. fp.Color = ColorSequence.new(Color1, Color2)
  1669. fp.LightEmission = LightEmission
  1670. fp.Size = Size
  1671. fp.Texture = Texture
  1672. fp.Transparency = Transparency
  1673. fp.ZOffset = ZOffset
  1674. fp.Acceleration = Accel
  1675. fp.Drag = Drag
  1676. fp.LockedToPart = LockedToPart
  1677. fp.VelocityInheritance = VelocityInheritance
  1678. fp.EmissionDirection = EmissionDirection
  1679. fp.Enabled = Enabled
  1680. fp.Lifetime = LifeTime
  1681. fp.Rate = Rate
  1682. fp.Rotation = Rotation
  1683. fp.RotSpeed = RotSpeed
  1684. fp.Speed = Speed
  1685. fp.VelocitySpread = VelocitySpread
  1686. return fp
  1687. end
  1688. }
  1689. }
  1690.  
  1691. radian = math.rad
  1692. random = math.random
  1693. Vec3 = Vector3.new
  1694. Inst = Instance.new
  1695. cFrame = CFrame.new
  1696. Euler = CFrame.fromEulerAnglesXYZ
  1697. vt = Vector3.new
  1698. bc = BrickColor.new
  1699. br = BrickColor.random
  1700. it = Instance.new
  1701. cf = CFrame.new
  1702.  
  1703. function CameraEnshaking(Length, Intensity)
  1704. coroutine.resume(coroutine.create(function()
  1705. local intensity = 1 * Intensity
  1706. local rotM = 0.01 * Intensity
  1707. for i = 0, Length, 0.1 do
  1708. Swait()
  1709. intensity = intensity - 0.05 * Intensity / Length
  1710. rotM = rotM - 5.0E-4 * Intensity / Length
  1711. Humanoid.CameraOffset = Vector3.new(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  1712. workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  1713. end
  1714. Humanoid.CameraOffset = Vec3(0, 0, 0)
  1715. end))
  1716. end
  1717.  
  1718. function dmg(dude)
  1719. if dude.Name ~= Character then
  1720. local bgf = Instance.new("BodyGyro", dude.Head)
  1721. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
  1722. local val = Instance.new("BoolValue", dude)
  1723. val.Name = "IsHit"
  1724. local ds = coroutine.wrap(function()
  1725. dude:WaitForChild("Head"):BreakJoints()
  1726. wait(0.5)
  1727. targetted = nil
  1728. CFuncs.Sound.Create("rbxassetid://62339698", char, 0.5, 0.3)
  1729. coroutine.resume(coroutine.create(function()
  1730. for i, v in pairs(dude:GetChildren()) do
  1731. if v:IsA("Accessory") then
  1732. v:Destroy()
  1733. end
  1734. if v:IsA("Humanoid") then
  1735. v:Destroy()
  1736. end
  1737. if v:IsA("CharacterMesh") then
  1738. v:Destroy()
  1739. end
  1740. if v:IsA("Model") then
  1741. v:Destroy()
  1742. end
  1743. if v:IsA("Part") or v:IsA("MeshPart") then
  1744. for x, o in pairs(v:GetChildren()) do
  1745. if o:IsA("Decal") then
  1746. o:Destroy()
  1747. end
  1748. end
  1749. coroutine.resume(coroutine.create(function()
  1750. v.Material = "Neon"
  1751. v.CanCollide = false
  1752. local bld = Instance.new("ParticleEmitter", v)
  1753. bld.LightEmission = 1
  1754. bld.Texture = "rbxassetid://284205403"
  1755. bld.Color = ColorSequence.new(Color3.new(1, 1, 1))
  1756. bld.Rate = 50
  1757. bld.Lifetime = NumberRange.new(1)
  1758. bld.Size = NumberSequence.new({
  1759. NumberSequenceKeypoint.new(0, 0.75, 0),
  1760. NumberSequenceKeypoint.new(1, 0, 0)
  1761. })
  1762. bld.Transparency = NumberSequence.new({
  1763. NumberSequenceKeypoint.new(0, 0, 0),
  1764. NumberSequenceKeypoint.new(1, 1, 0)
  1765. })
  1766. bld.Speed = NumberRange.new(0, 0)
  1767. bld.VelocitySpread = 50000
  1768. bld.Rotation = NumberRange.new(-500, 500)
  1769. bld.RotSpeed = NumberRange.new(-500, 500)
  1770. local sbs = Instance.new("BodyPosition", v)
  1771. sbs.P = 3000
  1772. sbs.D = 1000
  1773. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1774. sbs.position = v.Position + Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5))
  1775. v.Color = Color3.new(1, 1, 1)
  1776. coroutine.resume(coroutine.create(function()
  1777. for i = 0, 49 do
  1778. Swait(1)
  1779. v.Transparency = v.Transparency + 0.02
  1780. end
  1781. CFuncs.Sound.Create("rbxassetid://1192402877", v, 0.25, 1)
  1782. bld.Speed = NumberRange.new(1, 5)
  1783. bld.Acceleration = vt(0, 10, 0)
  1784. wait(0.5)
  1785. bld.Enabled = false
  1786. wait(3)
  1787. v:Destroy()
  1788. dude:Destroy()
  1789. end))
  1790. end))
  1791. end
  1792. end
  1793. end))
  1794. end)
  1795. ds()
  1796. end
  1797. end
  1798. function FindNearestHead(Position, Distance, SinglePlayer)
  1799. if SinglePlayer then
  1800. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1801. end
  1802. local List = {}
  1803. for i, v in pairs(workspace:GetChildren()) do
  1804. if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then
  1805. table.insert(List, v)
  1806. end
  1807. end
  1808. return List
  1809. end
  1810.  
  1811. function ChaosGroundStrike()
  1812. ATTACK = true
  1813. RH = RightHip
  1814. LH = LeftHip
  1815. RootCF = ROOTC0
  1816. necko = NECKC0
  1817. RW = RightShoulder
  1818. LW = LeftShoulder
  1819. angles = ANGLES
  1820. root = RootPart
  1821. ATTACK = true
  1822. for i = 0, 2, 0.1 do
  1823. Swait()
  1824. RightHip.C0 = Clerp(RightHip.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
  1825. LeftHip.C0 = Clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2)
  1826. RootJoint.C0 = Clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  1827. Torso.Neck.C0 = Clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  1828. RW.C0 = Clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
  1829. LW.C0 = Clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
  1830. end
  1831. CFuncs.Sound.Create("rbxassetid://438666141", root, 7.5, 1)
  1832. CFuncs.Sound.Create("rbxassetid://1208650519", root, 7.5, 1)
  1833. CameraEnshaking(4, 12)
  1834. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  1835. if v:FindFirstChild("Head") then
  1836. dmg(v)
  1837. end
  1838. end
  1839. sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1, BrickColor.random())
  1840. sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2, BrickColor.random())
  1841. sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100, 0.1, 100), 0.01, BrickColor.random())
  1842. spawn(function()
  1843. for i = 0, 2, 0.1 do
  1844. Swait()
  1845. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-52.5, 52.5), -5, math.random(-52.5, 52.5)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  1846. sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-52.5, 52.5), -5, math.random(-52.5, 52.5)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0)
  1847. RH.C0 = Clerp(RH.C0, cf(1, -1, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
  1848. LH.C0 = Clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4)
  1849. RootJoint.C0 = Clerp()(RootJoint.C0, RootCF * cf(0.01, 0.01, 0.01) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  1850. Torso.Neck.C0 = Clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
  1851. RW.C0 = Clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
  1852. LW.C0 = Clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
  1853. end
  1854. end)
  1855. for i = 0, 2, 0.1 do
  1856. Swait()
  1857. end
  1858. ATTACK = false
  1859. end
  1860.  
  1861. --//=================================\\
  1862. --|| ASSIGN THINGS TO KEYS
  1863. --\\=================================//
  1864.  
  1865. function MouseDown(Mouse)
  1866. HOLD = true
  1867. if ATTACK == false then
  1868. end
  1869. end
  1870.  
  1871. function MouseUp(Mouse)
  1872. HOLD = false
  1873. end
  1874.  
  1875. function KeyDown(Key)
  1876. KEYHOLD = true
  1877. if Key == "z" and ATTACK == false then
  1878. Warden_Zap()
  1879. end
  1880.  
  1881. if Key == "b" and ATTACK == false then
  1882. Warden_Thunder()
  1883. end
  1884.  
  1885. if Key == "c" and ATTACK == false then
  1886. Inferno_Ring()
  1887. end
  1888.  
  1889. if Key == "v" and ATTACK == false then
  1890. Warden_Wall()
  1891. end
  1892.  
  1893. if Key == "x" and ATTACK == false then
  1894. Prison_Key()
  1895. end
  1896.  
  1897. if Key == "t" and ATTACK == false then
  1898. Hat()
  1899. end
  1900. if Key == "n" and ATTACK == false then
  1901. Shot()
  1902. end
  1903. if Key == "y" and ATTACK == false then
  1904. Face()
  1905. end
  1906. if Key == "m" and ATTACK == false then
  1907. ChaosGroundStrike()
  1908. end
  1909. end
  1910.  
  1911. function KeyUp(Key)
  1912. KEYHOLD = false
  1913. end
  1914.  
  1915. Mouse.Button1Down:connect(function(NEWKEY)
  1916. MouseDown(NEWKEY)
  1917. end)
  1918. Mouse.Button1Up:connect(function(NEWKEY)
  1919. MouseUp(NEWKEY)
  1920. end)
  1921. Mouse.KeyDown:connect(function(NEWKEY)
  1922. KeyDown(NEWKEY)
  1923. end)
  1924. Mouse.KeyUp:connect(function(NEWKEY)
  1925. KeyUp(NEWKEY)
  1926. end)
  1927.  
  1928. --//=================================\\
  1929. --\\=================================//
  1930.  
  1931.  
  1932. function unanchor()
  1933. if UNANCHOR == true then
  1934. g = Character:GetChildren()
  1935. for i = 1, #g do
  1936. if g[i].ClassName == "Part" then
  1937. g[i].Anchored = false
  1938. end
  1939. end
  1940. end
  1941. end
  1942.  
  1943.  
  1944. --//=================================\\
  1945. --|| WRAP THE WHOLE SCRIPT UP
  1946. --\\=================================//
  1947.  
  1948. Humanoid.Changed:connect(function(Jump)
  1949. if Jump == "Jump" and (Disable_Jump == true) then
  1950. Humanoid.Jump = false
  1951. end
  1952. end)
  1953.  
  1954. while true do
  1955. Swait()
  1956. script.Parent = WEAPONGUI
  1957. Humanoid.Parent = Character
  1958. if Humanoid then
  1959. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1960. IDLEANIMATION:Play()
  1961. end
  1962. if ANIMATE.Parent == Character then
  1963. ANIMATE:Destroy()
  1964. end
  1965. SINE = SINE + CHANGE
  1966. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1967. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1968. Humanoid.HipHeight = 1
  1969. Humanoid.Name = "Warden"
  1970. Humanoid.PlatformStand = false
  1971. if PLAYMAINANIM == true then
  1972. if TORSOVELOCITY < 1 then
  1973. 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)
  1974. 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)
  1975. 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)
  1976. 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)
  1977. 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)
  1978. 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)
  1979. elseif TORSOVELOCITY > 1 then
  1980. 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)
  1981. 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)
  1982. 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)
  1983. 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)
  1984. 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)
  1985. 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)
  1986. end
  1987. end
  1988. unanchor()
  1989. Humanoid.MaxHealth = "inf"
  1990. Humanoid.Health = "inf"
  1991. if Rooted == false then
  1992. Disable_Jump = false
  1993. Humanoid.WalkSpeed = Speed
  1994. elseif Rooted == true then
  1995. Disable_Jump = true
  1996. Humanoid.WalkSpeed = 0
  1997. end
  1998. for _, c in pairs(Character:GetChildren()) do
  1999. if c.ClassName == "Part" and c.Name ~= "Eye" then
  2000. c.Material = "Neon"
  2001. if c:FindFirstChildOfClass("ParticleEmitter") then
  2002. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  2003. end
  2004. c.Color = C3(1,1,1)
  2005. if c == Head then
  2006. if c:FindFirstChild("face") then
  2007. c.face:remove()
  2008. end
  2009. end
  2010. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  2011. c:remove()
  2012. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  2013. c:remove()
  2014. end
  2015. end
  2016. sick.SoundId = "rbxassetid://1494340971"
  2017. sick.Looped = true
  2018. sick.Pitch = 1
  2019. sick.Volume = 3
  2020. sick:Resume()
  2021. sick.Parent = Torso
  2022. refit()
  2023. if Head:FindFirstChildOfClass("Sound") then
  2024. Head:FindFirstChildOfClass("Sound"):remove()
  2025. end
  2026. end
  2027.  
  2028. --//=================================\\
  2029. --\\=================================//
  2030.  
  2031.  
  2032.  
  2033.  
  2034.  
  2035. --//====================================================\\--
  2036. --|| END OF SCRIPT
  2037. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement