sawgamer1

Untitled

Jun 20th, 2018
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 118.65 KB | None | 0 0
  1. --//========================================================================\\--
  2. --|| CREATED BY SHACKLUSTER | EDITED BY SHYIME
  3. --\\========================================================================//--
  4.  
  5.  
  6. --Edited by SHYIME Please Do not Leak it Thx :D. Thanks for sawgamer1 for Idea.
  7.  
  8. local Player = game:GetService("Players").LocalPlayer
  9. repeat
  10. wait()
  11. until Player.Character
  12. local Character = Player.Character
  13.  
  14. TrailSettings = {
  15. Lifetime = 2,
  16. Texture = "http://www.roblox.com/asset/?id=246689799",
  17. Color1 = ColorSequence.new(BrickColor.new("Really black").Color, BrickColor.new("Dark indigo").Color),
  18. Color2 = ColorSequence.new(BrickColor.new("Really black").Color, BrickColor.new("Dark indigo").Color),
  19. AllBody = true,
  20. UpperBodyOnly = false,
  21. LowerBodyOnly = false,
  22. Accessories = false,
  23. Extras = true,
  24. R15 = false,
  25. R15Parts = {"UpperTorso", "LowerTorso"}
  26. }
  27. local Trail
  28. function UpperBody()
  29. if TrailSettings.R15 == false then
  30. A0 = Instance.new("Attachment", Character.Torso)
  31. A1 = Instance.new("Attachment", Character.Head)
  32. A2 = Instance.new("Attachment", Character["Right Arm"])
  33. A3 = Instance.new("Attachment", Character["Left Arm"])
  34. Trail = Instance.new("Trail", Character)
  35. Trail.Attachment0 = A0
  36. Trail.Attachment1 = A1
  37. Trail.Texture = TrailSettings.Texture
  38. Trail.Color = TrailSettings.Color1
  39. Trail.Lifetime = TrailSettings.Lifetime
  40. local Trail2 = Trail:Clone()
  41. Trail2.Parent = Character
  42. Trail2.Attachment1 = A2
  43. local Trail3 = Trail:Clone()
  44. Trail3.Parent = Character
  45. Trail3.Attachment1 = A3
  46. local Trail6 = Trail:Clone()
  47. Trail6.Parent = Character
  48. Trail6.Attachment0 = A1
  49. Trail6.Attachment1 = A2
  50. local Trail7 = Trail:Clone()
  51. Trail7.Parent = Character
  52. Trail7.Attachment0 = A1
  53. Trail7.Attachment1 = A3
  54. else
  55. A0 = Instance.new("Attachment", Character[TrailSettings.R15Parts[1]])
  56. A0R = Instance.new("Attachment", Character[TrailSettings.R15Parts[2]])
  57. A1 = Instance.new("Attachment", Character.Head)
  58. A2 = Instance.new("Attachment", Character.RightUpperArm)
  59. A2R = Instance.new("Attachment", Character.RightLowerArm)
  60. A3 = Instance.new("Attachment", Character.LeftUpperArm)
  61. A3R = Instance.new("Attachment", Character.LeftLowerArm)
  62. Trail = Instance.new("Trail", Character)
  63. Trail.Attachment0 = A0
  64. Trail.Attachment1 = A1
  65. Trail.Texture = TrailSettings.Texture
  66. Trail.Color = TrailSettings.Color1
  67. Trail.Lifetime = TrailSettings.Lifetime
  68. local Trail2 = Trail:Clone()
  69. Trail2.Parent = Character
  70. Trail2.Attachment1 = A2
  71. local Trail3 = Trail:Clone()
  72. Trail3.Parent = Character
  73. Trail3.Attachment1 = A3
  74. local Trail6 = Trail:Clone()
  75. Trail6.Parent = Character
  76. Trail6.Attachment0 = A1
  77. Trail6.Attachment1 = A2
  78. local Trail7 = Trail:Clone()
  79. Trail7.Parent = Character
  80. Trail7.Attachment0 = A1
  81. Trail7.Attachment1 = A3
  82. local Trail1R = Trail:Clone()
  83. Trail1R.Parent = Character
  84. Trail1R.Attachment1 = A2R
  85. local Trail2R = Trail:Clone()
  86. Trail2R.Parent = Character
  87. Trail2R.Attachment1 = A3R
  88. local Trail6R = Trail:Clone()
  89. Trail6.Parent = Character
  90. Trail6.Attachment0 = A1
  91. Trail6.Attachment1 = A2R
  92. local Trail7R = Trail:Clone()
  93. Trail7.Parent = Character
  94. Trail7.Attachment0 = A1
  95. Trail7.Attachment1 = A3R
  96. end
  97. end
  98. function LowerBody()
  99. if TrailSettings.R15 == false then
  100. A4 = Instance.new("Attachment", Character["Right Leg"])
  101. A5 = Instance.new("Attachment", Character["Left Leg"])
  102. local Trail4 = Trail:Clone()
  103. Trail4.Parent = Character
  104. Trail4.Attachment1 = A4
  105. local Trail5 = Trail:Clone()
  106. Trail5.Parent = Character
  107. Trail5.Attachment1 = A5
  108. local Trail8 = Trail:Clone()
  109. Trail8.Parent = Character
  110. Trail8.Attachment0 = A2
  111. Trail8.Attachment1 = A4
  112. Trail8.Color = TrailSettings.Color2
  113. local Trail9 = Trail:Clone()
  114. Trail9.Parent = Character
  115. Trail9.Attachment0 = A3
  116. Trail9.Attachment1 = A5
  117. Trail9.Color = TrailSettings.Color2
  118. local FT = Trail:Clone()
  119. FT.Parent = Character
  120. FT.Attachment0 = A4
  121. FT.Attachment1 = A5
  122. FT.Color = TrailSettings.Color2
  123. else
  124. A4 = Instance.new("Attachment", Character.RightLowerLeg)
  125. A4R = Instance.new("Attachment", Character.RightUpperLeg)
  126. A5 = Instance.new("Attachment", Character.LeftLowerLeg)
  127. A5R = Instance.new("Attachment", Character.LeftUpperLeg)
  128. local Trail4 = Trail:Clone()
  129. Trail4.Parent = Character
  130. Trail4.Attachment1 = A4
  131. local Trail5 = Trail:Clone()
  132. Trail5.Parent = Character
  133. Trail5.Attachment1 = A5
  134. local Trail8 = Trail:Clone()
  135. Trail8.Parent = Character
  136. Trail8.Attachment0 = A2
  137. Trail8.Attachment1 = A4
  138. Trail8.Color = TrailSettings.Color2
  139. local Trail9 = Trail:Clone()
  140. Trail9.Parent = Character
  141. Trail9.Attachment0 = A3
  142. Trail9.Attachment1 = A5
  143. Trail9.Color = TrailSettings.Color2
  144. local FT = Trail:Clone()
  145. FT.Parent = Character
  146. FT.Attachment0 = A4
  147. FT.Attachment1 = A5
  148. FT.Color = TrailSettings.Color2
  149. local Trail3R = Trail:Clone()
  150. Trail3R.Parent = Character
  151. Trail3R.Attachment1 = A4R
  152. local Trail4R = Trail:Clone()
  153. Trail4R.Parent = Character
  154. Trail4R.Attachment1 = A5R
  155. local Trail8 = Trail:Clone()
  156. Trail8.Parent = Character
  157. Trail8.Attachment0 = A2R
  158. Trail8.Attachment1 = A4R
  159. Trail8.Color = TrailSettings.Color2
  160. local Trail9 = Trail:Clone()
  161. Trail9.Parent = Character
  162. Trail9.Attachment0 = A3R
  163. Trail9.Attachment1 = A5R
  164. Trail9.Color = TrailSettings.Color2
  165. local FT2R = Trail:Clone()
  166. FT2R.Parent = Character
  167. FT2R.Attachment0 = A4R
  168. FT2R.Attachment1 = A5R
  169. FT2R.Color = TrailSettings.Color2
  170. end
  171. end
  172. function AllBody()
  173. UpperBody()
  174. LowerBody()
  175. end
  176. if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
  177. TrailSettings.UpperBodyOnly = false
  178. TrailSettings.LowerBodyOnly = false
  179. elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then
  180. TrailSettings.UpperBodyOnly = false
  181. TrailSettings.LowerBodyOnly = false
  182. elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then
  183. TrailSettings.UpperBodyOnly = false
  184. TrailSettings.LowerBodyOnly = false
  185. elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
  186. TrailSettings.AllBody = true
  187. TrailSettings.UpperBodyOnly = false
  188. TrailSettings.LowerBodyOnly = false
  189. end
  190. if TrailSettings.UpperBodyOnly == true then
  191. UpperBody()
  192. print("Called Upper Body Trail")
  193. elseif TrailSettings.LowerBodyOnly == true then
  194. LowerBody()
  195. print("Called Lower Body Trail")
  196. elseif TrailSettings.AllBody == true then
  197. AllBody()
  198. print("Called Full Body Trail")
  199. end
  200. if TrailSettings.Accessories == true then
  201. for Index, Item in pairs(Character:GetChildren()) do
  202. if Item:IsA("Accessory") then
  203. local AA = Instance.new("Attachment", Item.Handle)
  204. local ATrail = Trail:Clone()
  205. ATrail.Parent = Character
  206. ATrail.Attachment1 = AA
  207. end
  208. end
  209. end
  210. if TrailSettings.Extras == true then
  211. spawn(function()
  212. repeat
  213. wait()
  214. until Trail
  215. local AB = Instance.new("Attachment", a)
  216. local ABT = Trail:Clone()
  217. ABT.Parent = Character
  218. ABT.Attachment0 = A4
  219. ABT.Attachment1 = AB
  220. ABT.Color = TrailSettings.Color2
  221. local ABT2 = Trail:Clone()
  222. ABT2.Parent = Character
  223. ABT2.Attachment0 = A5
  224. ABT2.Attachment1 = AB
  225. ABT2.Color = TrailSettings.Color2
  226. end)
  227. end
  228.  
  229.  
  230. wait(0.2)
  231.  
  232. Player = game:GetService("Players").LocalPlayer
  233. PlayerGui = Player.PlayerGui
  234. Cam = workspace.CurrentCamera
  235. Backpack = Player.Backpack
  236. Character = Player.Character
  237. Humanoid = Character.Humanoid
  238. Mouse = Player:GetMouse()
  239. RootPart = Character["HumanoidRootPart"]
  240. Torso = Character["Torso"]
  241. Head = Character["Head"]
  242. RightArm = Character["Right Arm"]
  243. LeftArm = Character["Left Arm"]
  244. RightLeg = Character["Right Leg"]
  245. LeftLeg = Character["Left Leg"]
  246. RootJoint = RootPart["RootJoint"]
  247. Neck = Torso["Neck"]
  248. RightShoulder = Torso["Right Shoulder"]
  249. LeftShoulder = Torso["Left Shoulder"]
  250. RightHip = Torso["Right Hip"]
  251. LeftHip = Torso["Left Hip"]
  252.  
  253. local sick = Instance.new("Sound",Character)
  254. sick.SoundId = "rbxassetid://1383202399"
  255. sick.Looped = true
  256. sick.Pitch = 1
  257. sick.Volume = 1.3
  258. sick:Play()
  259.  
  260. IT = Instance.new
  261. CF = CFrame.new
  262. VT = Vector3.new
  263. RAD = math.rad
  264. C3 = Color3.new
  265. UD2 = UDim2.new
  266. BRICKC = BrickColor.new
  267. ANGLES = CFrame.Angles
  268. EULER = CFrame.fromEulerAnglesXYZ
  269. COS = math.cos
  270. ACOS = math.acos
  271. SIN = math.sin
  272. ASIN = math.asin
  273. ABS = math.abs
  274. MRANDOM = math.random
  275. FLOOR = math.floor
  276. local CLOAKED = false
  277. local KILLINSTINCT = 0
  278. local SONGS = {1591230720,608671887,1589211339,1383202399,699827050}
  279. local CHOICE = MRANDOM(1,4)
  280.  
  281. --//=================================\\
  282. --|| SOME OTHER STUFF
  283. --\\=================================//
  284.  
  285. --//=================================\\
  286. --|| USEFUL VALUES
  287. --\\=================================//
  288.  
  289. Animation_Speed = 3
  290. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  291. local Speed = 16
  292. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  293. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  294. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  295. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  296. local DAMAGEMULTIPLIER = 1
  297. local ANIM = "Idle"
  298. local ATTACK = false
  299. local char = game.Players.LocalPlayer.Character
  300. local EQUIPPED = false
  301. local HOLD = false
  302. local COMBO = 1
  303. local Rooted = false
  304. local SINE = 0
  305. local KEYHOLD = false
  306. local CHANGE = 2 / Animation_Speed
  307. local WALKINGANIM = false
  308. local VALUE1 = false
  309. local VALUE2 = false
  310. local ROBLOXIDLEANIMATION = IT("Animation")
  311. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  312. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  313. --ROBLOXIDLEANIMATION.Parent = Humanoid
  314. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  315. WEAPONGUI.Name = "Weapon GUI"
  316. local Weapon = IT("Model")
  317. Weapon.Name = "Adds"
  318. local Effects = IT("Folder", Weapon)
  319. Effects.Name = "Effects"
  320. local ANIMATOR = Humanoid.Animator
  321. local ANIMATE = Character.Animate
  322. local UNANCHOR = true
  323. local ENERGYSOUND = 1417051162
  324. local BEAMSOUND = 1417056781
  325. local EXPLOSIONSOUND = 1417056081
  326.  
  327. --//=================================\\
  328. --\\=================================//
  329.  
  330. local asd = Instance.new("ParticleEmitter")
  331. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  332. asd.LightEmission = .1
  333. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  334. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  335. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  336. asd.Transparency = bbb
  337. asd.Size = aaa
  338. asd.ZOffset = .9
  339. asd.Acceleration = Vector3.new(0, -15, 0)
  340. asd.LockedToPart = false
  341. asd.EmissionDirection = "Back"
  342. asd.Lifetime = NumberRange.new(1, 2)
  343. asd.Rotation = NumberRange.new(-100, 100)
  344. asd.RotSpeed = NumberRange.new(-100, 100)
  345. asd.Speed = NumberRange.new(10)
  346. asd.Enabled = false
  347. asd.VelocitySpread = 999
  348.  
  349. shirts = Instance.new("Shirt", char)
  350. pants = Instance.new("Pants", char)
  351. pants.Name = "Pants"
  352. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1590296743"
  353. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=1639329800"
  354.  
  355. function getbloody(victim,amount)
  356. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  357. PART.CFrame = victim.CFrame
  358. local HITPLAYERSOUNDS = {"356551938","264486467"}
  359. Debris:AddItem(PART,5)
  360. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  361. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  362. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  363. local prtcl = asd:Clone()
  364. prtcl.Parent = PART
  365. prtcl:Emit(amount*10)
  366. end
  367.  
  368. --//=================================\\
  369. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  370. --\\=================================//
  371.  
  372. ArtificialHB = Instance.new("BindableEvent", script)
  373. ArtificialHB.Name = "ArtificialHB"
  374.  
  375. script:WaitForChild("ArtificialHB")
  376.  
  377. local Sky = IT("Sky")
  378. Sky.Parent = game.Lighting
  379. Sky.MoonAngularSize = 45
  380. Sky.MoonTextureId = "http://www.roblox.com/asset/?id=1055904136"
  381.  
  382. frame = Frame_Speed
  383. tf = 0
  384. allowframeloss = false
  385. tossremainder = false
  386. lastframe = tick()
  387. script.ArtificialHB:Fire()
  388.  
  389. game:GetService("RunService").Heartbeat:connect(function(s, p)
  390. tf = tf + s
  391. if tf >= frame then
  392. if allowframeloss then
  393. script.ArtificialHB:Fire()
  394. lastframe = tick()
  395. else
  396. for i = 1, math.floor(tf / frame) do
  397. script.ArtificialHB:Fire()
  398. end
  399. lastframe = tick()
  400. end
  401. if tossremainder then
  402. tf = 0
  403. else
  404. tf = tf - frame * math.floor(tf / frame)
  405. end
  406. end
  407. end)
  408.  
  409. --//=============================================\\
  410. --|| LIGHTNING AND STUFF LIKE THAT
  411. --\\=============================================//
  412. local l = game.Lighting
  413. local sky = Instance.new("Sky",l)
  414. l.GlobalShadows = false
  415. l.TimeOfDay = "00:00:00"
  416. l.Brightness = 1
  417. l.Ambient = Color3.new(0.25, 0.5, 0.75)
  418. ---
  419.  
  420.  
  421.  
  422. --//=================================\\
  423. --|| SOME FUNCTIONS
  424. --\\=================================//
  425.  
  426. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  427. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  428. end
  429.  
  430. function PositiveAngle(NUMBER)
  431. if NUMBER >= 0 then
  432. NUMBER = 0
  433. end
  434. return NUMBER
  435. end
  436.  
  437. function NegativeAngle(NUMBER)
  438. if NUMBER <= 0 then
  439. NUMBER = 0
  440. end
  441. return NUMBER
  442. end
  443.  
  444. function Swait(NUMBER)
  445. if NUMBER == 0 or NUMBER == nil then
  446. ArtificialHB.Event:wait()
  447. else
  448. for i = 1, NUMBER do
  449. ArtificialHB.Event:wait()
  450. end
  451. end
  452. end
  453.  
  454. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  455. local NEWMESH = IT(MESH)
  456. if MESH == "SpecialMesh" then
  457. NEWMESH.MeshType = MESHTYPE
  458. if MESHID ~= "nil" and MESHID ~= "" then
  459. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  460. end
  461. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  462. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  463. end
  464. end
  465. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  466. NEWMESH.Scale = SCALE
  467. NEWMESH.Parent = PARENT
  468. return NEWMESH
  469. end
  470.  
  471. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  472. local NEWPART = IT("Part")
  473. NEWPART.formFactor = FORMFACTOR
  474. NEWPART.Reflectance = REFLECTANCE
  475. NEWPART.Transparency = TRANSPARENCY
  476. NEWPART.CanCollide = false
  477. NEWPART.Locked = true
  478. NEWPART.Anchored = true
  479. if ANCHOR == false then
  480. NEWPART.Anchored = false
  481. end
  482. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  483. NEWPART.Name = NAME
  484. NEWPART.Size = SIZE
  485. NEWPART.Position = Torso.Position
  486. NEWPART.Material = MATERIAL
  487. NEWPART:BreakJoints()
  488. NEWPART.Parent = PARENT
  489. return NEWPART
  490. end
  491.  
  492. local function weldBetween(a, b)
  493. local weldd = Instance.new("ManualWeld")
  494. weldd.Part0 = a
  495. weldd.Part1 = b
  496. weldd.C0 = CFrame.new()
  497. weldd.C1 = b.CFrame:inverse() * a.CFrame
  498. weldd.Parent = a
  499. return weldd
  500. end
  501.  
  502.  
  503. function QuaternionFromCFrame(cf)
  504. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  505. local trace = m00 + m11 + m22
  506. if trace > 0 then
  507. local s = math.sqrt(1 + trace)
  508. local recip = 0.5 / s
  509. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  510. else
  511. local i = 0
  512. if m11 > m00 then
  513. i = 1
  514. end
  515. if m22 > (i == 0 and m00 or m11) then
  516. i = 2
  517. end
  518. if i == 0 then
  519. local s = math.sqrt(m00 - m11 - m22 + 1)
  520. local recip = 0.5 / s
  521. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  522. elseif i == 1 then
  523. local s = math.sqrt(m11 - m22 - m00 + 1)
  524. local recip = 0.5 / s
  525. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  526. elseif i == 2 then
  527. local s = math.sqrt(m22 - m00 - m11 + 1)
  528. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  529. end
  530. end
  531. end
  532.  
  533. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  534. local xs, ys, zs = x + x, y + y, z + z
  535. local wx, wy, wz = w * xs, w * ys, w * zs
  536. local xx = x * xs
  537. local xy = x * ys
  538. local xz = x * zs
  539. local yy = y * ys
  540. local yz = y * zs
  541. local zz = z * zs
  542. 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))
  543. end
  544.  
  545. function QuaternionSlerp(a, b, t)
  546. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  547. local startInterp, finishInterp;
  548. if cosTheta >= 0.0001 then
  549. if (1 - cosTheta) > 0.0001 then
  550. local theta = ACOS(cosTheta)
  551. local invSinTheta = 1 / SIN(theta)
  552. startInterp = SIN((1 - t) * theta) * invSinTheta
  553. finishInterp = SIN(t * theta) * invSinTheta
  554. else
  555. startInterp = 1 - t
  556. finishInterp = t
  557. end
  558. else
  559. if (1 + cosTheta) > 0.0001 then
  560. local theta = ACOS(-cosTheta)
  561. local invSinTheta = 1 / SIN(theta)
  562. startInterp = SIN((t - 1) * theta) * invSinTheta
  563. finishInterp = SIN(t * theta) * invSinTheta
  564. else
  565. startInterp = t - 1
  566. finishInterp = t
  567. end
  568. end
  569. 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
  570. end
  571.  
  572. function Clerp(a, b, t)
  573. local qa = {QuaternionFromCFrame(a)}
  574. local qb = {QuaternionFromCFrame(b)}
  575. local ax, ay, az = a.x, a.y, a.z
  576. local bx, by, bz = b.x, b.y, b.z
  577. local _t = 1 - t
  578. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  579. end
  580.  
  581. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  582. local frame = IT("Frame")
  583. frame.BackgroundTransparency = TRANSPARENCY
  584. frame.BorderSizePixel = BORDERSIZEPIXEL
  585. frame.Position = POSITION
  586. frame.Size = SIZE
  587. frame.BackgroundColor3 = COLOR
  588. frame.BorderColor3 = BORDERCOLOR
  589. frame.Name = NAME
  590. frame.Parent = PARENT
  591. return frame
  592. end
  593.  
  594. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  595. local label = IT("TextLabel")
  596. label.BackgroundTransparency = 1
  597. label.Size = UD2(1, 0, 1, 0)
  598. label.Position = UD2(0, 0, 0, 0)
  599. label.TextColor3 = TEXTCOLOR
  600. label.TextStrokeTransparency = STROKETRANSPARENCY
  601. label.TextTransparency = TRANSPARENCY
  602. label.FontSize = TEXTFONTSIZE
  603. label.Font = TEXTFONT
  604. label.BorderSizePixel = BORDERSIZEPIXEL
  605. label.TextScaled = false
  606. label.Text = TEXT
  607. label.Name = NAME
  608. label.Parent = PARENT
  609. return label
  610. end
  611.  
  612. function NoOutlines(PART)
  613. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  614. end
  615.  
  616. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  617. local NEWWELD = IT(TYPE)
  618. NEWWELD.Part0 = PART0
  619. NEWWELD.Part1 = PART1
  620. NEWWELD.C0 = C0
  621. NEWWELD.C1 = C1
  622. NEWWELD.Parent = PARENT
  623. return NEWWELD
  624. end
  625.  
  626. local S = IT("Sound")
  627. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  628. local NEWSOUND = nil
  629. coroutine.resume(coroutine.create(function()
  630. NEWSOUND = S:Clone()
  631. NEWSOUND.Parent = PARENT
  632. NEWSOUND.Volume = VOLUME
  633. NEWSOUND.Pitch = PITCH
  634. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  635. NEWSOUND:play()
  636. if DOESLOOP == true then
  637. NEWSOUND.Looped = true
  638. else
  639. repeat wait(1) until NEWSOUND.Playing == false
  640. NEWSOUND:remove()
  641. end
  642. end))
  643. return NEWSOUND
  644. end
  645.  
  646. function CFrameFromTopBack(at, top, back)
  647. local right = top:Cross(back)
  648. 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)
  649. end
  650.  
  651. --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})
  652. function WACKYEFFECT(Table)
  653. local TYPE = (Table.EffectType or "Sphere")
  654. local SIZE = (Table.Size or VT(1,1,1))
  655. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  656. local TRANSPARENCY = (Table.Transparency or 0)
  657. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  658. local CFRAME = (Table.CFrame or Torso.CFrame)
  659. local MOVEDIRECTION = (Table.MoveToPos or nil)
  660. local ROTATION1 = (Table.RotationX or 0)
  661. local ROTATION2 = (Table.RotationY or 0)
  662. local ROTATION3 = (Table.RotationZ or 0)
  663. local MATERIAL = (Table.Material or "Neon")
  664. local COLOR = (Table.Color or C3(1,1,1))
  665. local TIME = (Table.Time or 45)
  666. local SOUNDID = (Table.SoundID or nil)
  667. local SOUNDPITCH = (Table.SoundPitch or nil)
  668. local SOUNDVOLUME = (Table.SoundVolume or nil)
  669. coroutine.resume(coroutine.create(function()
  670. local PLAYSSOUND = false
  671. local SOUND = nil
  672. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  673. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  674. PLAYSSOUND = true
  675. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  676. end
  677. EFFECT.Color = COLOR
  678. local MSH = nil
  679. if TYPE == "Sphere" then
  680. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  681. elseif TYPE == "Block" then
  682. MSH = IT("BlockMesh",EFFECT)
  683. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  684. elseif TYPE == "Wave" then
  685. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  686. elseif TYPE == "Ring" then
  687. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  688. elseif TYPE == "Slash" then
  689. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  690. elseif TYPE == "Round Slash" then
  691. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  692. elseif TYPE == "Swirl" then
  693. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  694. elseif TYPE == "Skull" then
  695. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  696. elseif TYPE == "Crystal" then
  697. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  698. end
  699. if MSH ~= nil then
  700. local MOVESPEED = nil
  701. if MOVEDIRECTION ~= nil then
  702. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  703. end
  704. local GROWTH = SIZE - ENDSIZE
  705. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  706. if TYPE == "Block" then
  707. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  708. else
  709. EFFECT.CFrame = CFRAME
  710. end
  711. for LOOP = 1, TIME+1 do
  712. Swait()
  713. MSH.Scale = MSH.Scale - GROWTH/TIME
  714. if TYPE == "Wave" then
  715. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  716. end
  717. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  718. if TYPE == "Block" then
  719. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  720. else
  721. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  722. end
  723. if MOVEDIRECTION ~= nil then
  724. local ORI = EFFECT.Orientation
  725. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  726. EFFECT.Orientation = ORI
  727. end
  728. end
  729. if PLAYSSOUND == false then
  730. EFFECT:remove()
  731. else
  732. repeat Swait() until SOUND.Playing == false
  733. EFFECT:remove()
  734. end
  735. else
  736. if PLAYSSOUND == false then
  737. EFFECT:remove()
  738. else
  739. repeat Swait() until SOUND.Playing == false
  740. EFFECT:remove()
  741. end
  742. end
  743. end))
  744. end
  745.  
  746. function MakeForm(PART,TYPE)
  747. if TYPE == "Cyl" then
  748. local MSH = IT("CylinderMesh",PART)
  749. elseif TYPE == "Ball" then
  750. local MSH = IT("SpecialMesh",PART)
  751. MSH.MeshType = "Sphere"
  752. elseif TYPE == "Wedge" then
  753. local MSH = IT("SpecialMesh",PART)
  754. MSH.MeshType = "Wedge"
  755. end
  756. end
  757.  
  758. Debris = game:GetService("Debris")
  759.  
  760. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  761. local DIRECTION = CF(StartPos,EndPos).lookVector
  762. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  763. end
  764.  
  765. function turnto(position)
  766. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  767. end
  768.  
  769. --//=================================\\
  770. --|| WEAPON CREATION
  771. --\\=================================//
  772.  
  773. --[[
  774. Thanks for using Build-To-Lua by jarredbcv.
  775. ]]--
  776.  
  777. New = function(Object, Parent, Name, Data)
  778. local Object = Instance.new(Object)
  779. for Index, Value in pairs(Data or {}) do
  780. Object[Index] = Value
  781. end
  782. Object.Parent = Parent
  783. Object.Name = Name
  784. return Object
  785. end
  786.  
  787.  
  788. Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000252, 0.660000384, 0.0500000007),CFrame = CFrame.new(-67.6787415, 1.33912802, 93.9772263, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
  789. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LeftLeg,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.0127105713, 0.339127064, 0.487541199, 0, 0, 1, 0, 1, 0, -1, 0, 0),})
  790. Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000252, 0.660000384, 0.0500000007),CFrame = CFrame.new(-66.6787415, 1.33912802, 93.9772263, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
  791. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LeftLeg,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.0127105713, 0.339127064, -0.512458801, 0, 0, 1, 0, 1, 0, -1, 0, 0),})
  792.  
  793. Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.140000015, 0.0500000007),CFrame = CFrame.new(-67.6787415, 3.12643075, 92.6921463, -9.31322575e-10, -1.86264515e-09, -0.999999285, 0.777135551, 0.629333496, 9.31322575e-10, 0.6293329, -0.777134895, 0),})
  794. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, -1, 0, 0),C1 = CFrame.new(-0.766067505, 0.138611317, 0.515716553, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
  795. Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.12999988, 1.12000012, 0.0500000007),CFrame = CFrame.new(-67.6951752, 3.43133378, 93.991272, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
  796. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.533157349, 0.443484068, 0.50994873, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
  797. Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.450000018, 0.590000272, 0.0500000007),CFrame = CFrame.new(-67.6951752, 2.60608268, 94.3512573, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
  798. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.893096924, -0.381786108, 0.509513855, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
  799. Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000013, 0.590000272, 0.0500000007),CFrame = CFrame.new(-66.6951752, 2.60608268, 94.2912598, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
  800. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.817497253, -0.388065577, -0.489402771, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
  801. Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.220000237, 0.660000384, 0.0500000007),CFrame = CFrame.new(-66.6787338, 2.57395577, 93.9222183, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
  802. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.448242188, -0.420258999, -0.49987793, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
  803. Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.07999992, 1.12000012, 0.0500000007),CFrame = CFrame.new(-66.6951752, 3.43133354, 93.9662704, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
  804. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.492546082, 0.437201023, -0.489517212, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
  805. Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.340000302, 0.0500000007),CFrame = CFrame.new(-66.6787415, 3.2281816, 93.1287689, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
  806. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(-0.345108032, 0.234031916, -0.491600037, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
  807. Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.0999999, 0.0500000007, 1.00999975),CFrame = CFrame.new(-67.1759109, 3.99574399, 93.9762726, 0, -0.0260759834, -0.999659359, 0, 0.999660075, -0.0260760002, 0.999999225, -2.91038305e-11, -9.31322575e-10),})
  808. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, -0.0260760002, 0.999660015, 0, -0.999660015, -0.0260760002, 0),C1 = CFrame.new(0.510047913, 1.00462079, -0.0125579834, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
  809.  
  810. Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.419999987, 0.870000064),CFrame = CFrame.new(-67.0815201, 2.81366396, 91.9528885, 0, 0, -1, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, 0),})
  811. mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LeftArm,C0 = CFrame.new(0, 0, 0, 0, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, -1, 0, 0),C1 = CFrame.new(-0.00936126709, -0.184385061, -0.0693511963, 0, 0, 1, 0, 1, 0, -1, 0, 0),})
  812.  
  813.  
  814.  
  815. for i = 1, 35 do
  816. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false)
  817. FACE.Color = C3(0,0,0)
  818. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  819. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  820. end
  821.  
  822. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Dark indigo", "Eye", VT(0.6,0.1,1)/2,false)
  823. MakeForm(Eye,"Ball")
  824. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  825. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Dark indigo", "Eye", VT(0.6,0.1,1)/2,false)
  826. MakeForm(Eye,"Ball")
  827. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  828. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Dark indigo", "Eye", VT(0.1,1,1)/2,false)
  829. MakeForm(Eye,"Ball")
  830. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  831. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Dark indigo", "Eye", VT(0.1,1,1)/2,false)
  832. MakeForm(Eye,"Ball")
  833. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  834.  
  835. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Dark indigo", "BraceletPart", VT(1.01,0.3,1.01),false)
  836. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  837. for i = 1, 3 do
  838. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Royal purple", "BraceletPart", VT(0.2,1.02,0.2),false)
  839. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0, 0, 0.6-0.3*i) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  840. MakeForm(Part,"Cyl")
  841. end
  842. for i = 1, 3 do
  843. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Dark indigo", "BraceletPart", VT(0.2,1.02,0.2),false)
  844. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.6-0.3*i, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(90)), CF(0, 0, 0))
  845. MakeForm(Part,"Cyl")
  846. end
  847. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Dark indigo", "BraceletPart", VT(0.51,0.6,0.25),false)
  848. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0))
  849. MakeForm(Part,"Wedge")
  850. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Dark indigo", "BraceletPart", VT(0.51,0.6,0.25),false)
  851. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0))
  852. MakeForm(Part,"Wedge")
  853. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Dark indigo", "BraceletPart", VT(0.52,0.5,0.25/2.3),false)
  854. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0))
  855. MakeForm(Part,"Wedge")
  856. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Dark indigo", "BraceletPart", VT(0.52,0.5,0.25/2.3),false)
  857. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0))
  858. MakeForm(Part,"Wedge")
  859.  
  860.  
  861. for _, c in pairs(Weapon:GetChildren()) do
  862. if c.ClassName == "Part" then
  863. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  864. local AURA = c:Clone()
  865. AURA:BreakJoints()
  866. AURA.Parent = c
  867. AURA.CFrame = c.CFrame
  868. AURA.Size = AURA.Size*1.001
  869. AURA.Transparency = 0.8
  870. AURA.BrickColor = BRICKC"Royal purple"
  871. AURA.Material = "Neon"
  872. weldBetween(c,AURA)
  873. end
  874. end
  875.  
  876. local SKILLTEXTCOLOR = BRICKC"Dark indigo".Color
  877. local SKILLFONT = "Bodoni"
  878. local SKILLTEXTSIZE = 7
  879.  
  880. Weapon.Parent = Character
  881.  
  882. Humanoid.Died:connect(function()
  883.  
  884. ATTACK = true
  885. end)
  886.  
  887. 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")
  888. 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")
  889. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  890.  
  891. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Corrupted Beam", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1")
  892. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X] Corrupted Explosion", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2")
  893. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Corrupted Stun", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3")
  894.  
  895. --//=================================\\
  896. --|| DAMAGE FUNCTIONS
  897. --\\=================================//
  898.  
  899. function StatLabel(CFRAME, TEXT, COLOR)
  900. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  901. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  902. local BODYGYRO = IT("BodyGyro", STATPART)
  903. game:GetService("Debris"):AddItem(STATPART ,5)
  904. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  905. BILLBOARDGUI.Adornee = STATPART
  906. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  907. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  908. BILLBOARDGUI.AlwaysOnTop = false
  909. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  910. TEXTLABEL.BackgroundTransparency = 1
  911. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  912. TEXTLABEL.Text = TEXT
  913. TEXTLABEL.Font = SKILLFONT
  914. TEXTLABEL.FontSize="Size42"
  915. TEXTLABEL.TextColor3 = COLOR
  916. TEXTLABEL.TextStrokeTransparency = 0
  917. TEXTLABEL.TextScaled = true
  918. TEXTLABEL.TextWrapped = true
  919. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  920. for i = 1, 50 do
  921. Swait()
  922. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  923. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  924. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  925. end
  926. THEPART.Parent = nil
  927. end),STATPART, TEXTLABEL)
  928. end
  929.  
  930. --//=================================\\
  931. --|| RAGDOLL STUFF
  932. --\\=================================//
  933.  
  934. function recurse(root,callback,i)
  935. i= i or 0
  936. for _,v in pairs(root:GetChildren()) do
  937. i = i + 1
  938. callback(i,v)
  939.  
  940. if #v:GetChildren() > 0 then
  941. i = recurse(v,callback,i)
  942. end
  943. end
  944.  
  945. return i
  946. end
  947.  
  948. function ragdollJoint(character, part0, part1, attachmentName, className, properties)
  949. attachmentName = attachmentName.."RigAttachment"
  950. local constraint = Instance.new(className.."Constraint")
  951. constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  952. constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  953. constraint.Name = "RagdollConstraint"..part1.Name
  954.  
  955. for _,propertyData in next,properties or {} do
  956. constraint[propertyData[1]] = propertyData[2]
  957. end
  958.  
  959. constraint.Parent = character
  960. end
  961.  
  962. function getAttachment0(character, attachmentName)
  963. for _,child in next,character:GetChildren() do
  964. local attachment = child:FindFirstChild(attachmentName)
  965. if attachment then
  966. return attachment
  967. end
  968. end
  969. end
  970.  
  971. function ArtificialHitbox(Part)
  972. local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false)
  973. HITBOX.CanCollide = true
  974. HITBOX.CFrame = Part.CFrame
  975. weldBetween(Part,HITBOX)
  976. end
  977.  
  978. function R15Ragdoll(character,KeepArms)
  979. character:BreakJoints()
  980. coroutine.resume(coroutine.create(function()
  981. recurse(character, function(_,v)
  982. if v:IsA("Attachment") then
  983. v.Axis = Vector3.new(0, 1, 0)
  984. v.SecondaryAxis = Vector3.new(0, 0, 1)
  985. v.Rotation = Vector3.new(0, 0, 0)
  986. end
  987. end)
  988. for _,child in next,character:GetChildren() do
  989. if child:IsA("Accoutrement") then
  990. for _,part in next,child:GetChildren() do
  991. if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  992. local attachment1 = part:FindFirstChildOfClass("Attachment")
  993. local attachment0 = getAttachment0(character,attachment1.Name)
  994. if attachment0 and attachment1 then
  995. local constraint = Instance.new("HingeConstraint")
  996. constraint.Attachment0 = attachment0
  997. constraint.Attachment1 = attachment1
  998. constraint.LimitsEnabled = true
  999. constraint.UpperAngle = 0
  1000. constraint.LowerAngle = 0
  1001. constraint.Parent = character
  1002. end
  1003. ArtificialHitbox(part)
  1004. elseif part.Name == "HumanoidRootPart" then
  1005. part:remove()
  1006. end
  1007. end
  1008. end
  1009. end
  1010.  
  1011. ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
  1012. {"LimitsEnabled",true};
  1013. {"UpperAngle",5};
  1014. })
  1015. if character:FindFirstChild("Head") then
  1016. ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
  1017. {"LimitsEnabled",true};
  1018. {"UpperAngle",15};
  1019. })
  1020. end
  1021.  
  1022. local handProperties = {
  1023. {"LimitsEnabled", true};
  1024. {"UpperAngle",0};
  1025. {"LowerAngle",0};
  1026. }
  1027. ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
  1028. ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
  1029.  
  1030. local shinProperties = {
  1031. {"LimitsEnabled", true};
  1032. {"UpperAngle", 0};
  1033. {"LowerAngle", -75};
  1034. }
  1035. ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
  1036. ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
  1037.  
  1038. local footProperties = {
  1039. {"LimitsEnabled", true};
  1040. {"UpperAngle", 15};
  1041. {"LowerAngle", -45};
  1042. }
  1043. ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
  1044. ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
  1045. if KeepArms == true then
  1046. ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
  1047. ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
  1048. ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
  1049. ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
  1050. end
  1051. ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
  1052. ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
  1053. Debris:AddItem(character,5)
  1054. end))
  1055. end
  1056.  
  1057. function Ragdoll(Character2,CharTorso,KeepArms)
  1058. coroutine.resume(coroutine.create(function()
  1059. Character2:BreakJoints()
  1060. local hum = Character2:findFirstChild("Humanoid")
  1061. hum:remove()
  1062. local function Scan(ch)
  1063. local e
  1064. for e = 1,#ch do
  1065. Scan(ch[e]:GetChildren())
  1066. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  1067. ch[e]:remove()
  1068. end
  1069. end
  1070. end
  1071. local NEWHUM = IT("Humanoid")
  1072. NEWHUM.Name = "Corpse"
  1073. NEWHUM.Health = 0
  1074. NEWHUM.MaxHealth = 0
  1075. NEWHUM.PlatformStand = true
  1076. NEWHUM.Parent = Character2
  1077. NEWHUM.DisplayDistanceType = "None"
  1078.  
  1079. local ch = Character2:GetChildren()
  1080. local i
  1081. for i = 1,#ch do
  1082. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  1083. ch[i]:remove()
  1084. end
  1085. end
  1086.  
  1087. local Torso2 = Character2.Torso
  1088. local movevector = Vector3.new()
  1089.  
  1090. if Torso2 then
  1091. movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  1092. local Head = Character2:FindFirstChild("Head")
  1093. if Head then
  1094. local Neck = Instance.new("Weld")
  1095. Neck.Name = "Neck"
  1096. Neck.Part0 = Torso2
  1097. Neck.Part1 = Head
  1098. Neck.C0 = CFrame.new(0, 1.5, 0)
  1099. Neck.C1 = CFrame.new()
  1100. Neck.Parent = Torso2
  1101.  
  1102. end
  1103. local Limb = Character2:FindFirstChild("Right Arm")
  1104. if Limb and KeepArms == true then
  1105.  
  1106. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  1107. local Joint = Instance.new("Glue")
  1108. Joint.Name = "RightShoulder"
  1109. Joint.Part0 = Torso2
  1110. Joint.Part1 = Limb
  1111. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1112. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1113. Joint.Parent = Torso2
  1114.  
  1115. local B = Instance.new("Part")
  1116. B.TopSurface = 0
  1117. B.BottomSurface = 0
  1118. B.formFactor = "Symmetric"
  1119. B.Size = Vector3.new(1, 1, 1)
  1120. B.Transparency = 1
  1121. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1122. B.Parent = Character2
  1123. local W = Instance.new("Weld")
  1124. W.Part0 = Limb
  1125. W.Part1 = B
  1126. W.C0 = CFrame.new(0, -0.5, 0)
  1127. W.Parent = Limb
  1128.  
  1129. end
  1130. local Limb = Character2:FindFirstChild("Left Arm")
  1131. if Limb and KeepArms == true then
  1132.  
  1133. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  1134. local Joint = Instance.new("Glue")
  1135. Joint.Name = "LeftShoulder"
  1136. Joint.Part0 = Torso2
  1137. Joint.Part1 = Limb
  1138. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1139. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1140. Joint.Parent = Torso2
  1141.  
  1142. local B = Instance.new("Part")
  1143. B.TopSurface = 0
  1144. B.BottomSurface = 0
  1145. B.formFactor = "Symmetric"
  1146. B.Size = Vector3.new(1, 1, 1)
  1147. B.Transparency = 1
  1148. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1149. B.Parent = Character2
  1150. local W = Instance.new("Weld")
  1151. W.Part0 = Limb
  1152. W.Part1 = B
  1153. W.C0 = CFrame.new(0, -0.5, 0)
  1154. W.Parent = Limb
  1155.  
  1156. end
  1157. local Limb = Character2:FindFirstChild("Right Leg")
  1158. if Limb then
  1159.  
  1160. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  1161. local Joint = Instance.new("Glue")
  1162. Joint.Name = "RightHip"
  1163. Joint.Part0 = Torso2
  1164. Joint.Part1 = Limb
  1165. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1166. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1167. Joint.Parent = Torso2
  1168.  
  1169. local B = Instance.new("Part")
  1170. B.TopSurface = 0
  1171. B.BottomSurface = 0
  1172. B.formFactor = "Symmetric"
  1173. B.Size = Vector3.new(1, 1, 1)
  1174. B.Transparency = 1
  1175. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1176. B.Parent = Character2
  1177. local W = Instance.new("Weld")
  1178. W.Part0 = Limb
  1179. W.Part1 = B
  1180. W.C0 = CFrame.new(0, -0.5, 0)
  1181. W.Parent = Limb
  1182.  
  1183. end
  1184. local Limb = Character2:FindFirstChild("Left Leg")
  1185. if Limb then
  1186.  
  1187. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  1188. local Joint = Instance.new("Glue")
  1189. Joint.Name = "LeftHip"
  1190. Joint.Part0 = Torso2
  1191. Joint.Part1 = Limb
  1192. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1193. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1194. Joint.Parent = Torso2
  1195.  
  1196. local B = Instance.new("Part")
  1197. B.TopSurface = 0
  1198. B.BottomSurface = 0
  1199. B.formFactor = "Symmetric"
  1200. B.Size = Vector3.new(1, 1, 1)
  1201. B.Transparency = 1
  1202. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1203. B.Parent = Character2
  1204. local W = Instance.new("Weld")
  1205. W.Part0 = Limb
  1206. W.Part1 = B
  1207. W.C0 = CFrame.new(0, -0.5, 0)
  1208. W.Parent = Limb
  1209.  
  1210. end
  1211. --[
  1212. local Bar = Instance.new("Part")
  1213. Bar.TopSurface = 0
  1214. Bar.BottomSurface = 0
  1215. Bar.formFactor = "Symmetric"
  1216. Bar.Size = Vector3.new(1, 1, 1)
  1217. Bar.Transparency = 1
  1218. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  1219. Bar.Parent = Character2
  1220. local Weld = Instance.new("Weld")
  1221. Weld.Part0 = Torso2
  1222. Weld.Part1 = Bar
  1223. Weld.C0 = CFrame.new(0, 0.5, 0)
  1224. Weld.Parent = Torso2
  1225. --]]
  1226. end
  1227. Character2.Parent = workspace
  1228. Debris:AddItem(Character2,5)
  1229.  
  1230. return Character2,Torso2
  1231. end))
  1232. end
  1233.  
  1234. --//=================================\\
  1235. --|| DAMAGING
  1236. --\\=================================//
  1237. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  1238. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Dark indigo"), "Effect", VT(1,1,1), true)
  1239. local mesh = IT("SpecialMesh",wave)
  1240. mesh.MeshType = "Sphere"
  1241. mesh.Scale = SIZE
  1242. mesh.Offset = VT(0,0,0)
  1243. wave.CFrame = CFRAME
  1244. coroutine.resume(coroutine.create(function(PART)
  1245. for i = 1, WAIT do
  1246. Swait()
  1247. mesh.Scale = mesh.Scale + GROW
  1248. wave.Transparency = wave.Transparency + (1/WAIT)
  1249. if wave.Transparency > 0.99 then
  1250. wave:remove()
  1251. end
  1252. end
  1253. end))
  1254. end
  1255.  
  1256. function killnearest(position,range,maxstrength,direction)
  1257. for i,v in ipairs(workspace:GetChildren()) do
  1258. local body = v:GetChildren()
  1259. for part = 1, #body do
  1260. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  1261. if(body[part].Position - position).Magnitude < range then
  1262. if v.ClassName == "Model" then
  1263. --v:BreakJoints()
  1264. end
  1265. local POS = position
  1266. coroutine.resume(coroutine.create(function()
  1267. body[part].Anchored = true
  1268. body[part].Parent = Effects
  1269. body[part].CanCollide = true
  1270. local SIZE = body[part].Size
  1271. body[part].Material = "Neon"
  1272. CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10)
  1273. for i = 1, 75 do
  1274. Swait()
  1275. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1276. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1277. end
  1278. coroutine.resume(coroutine.create(function()
  1279. while true do
  1280. Swait()
  1281. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1282. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1283. end
  1284. end))
  1285. body[part].Anchored = false
  1286. body[part].Velocity = direction.lookVector*maxstrength
  1287. end))
  1288. end
  1289. end
  1290. end
  1291. if v.ClassName == "Part" then
  1292. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1293. local POS = position
  1294. coroutine.resume(coroutine.create(function()
  1295. v.Anchored = true
  1296. v.Parent = Effects
  1297. local SIZE = v.Size
  1298. v.Material = "Neon"
  1299. CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10)
  1300. for i = 1, 75 do
  1301. Swait()
  1302. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1303. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1304. end
  1305. coroutine.resume(coroutine.create(function()
  1306. while true do
  1307. Swait()
  1308. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1309. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1310. end
  1311. end))
  1312. v.Anchored = false
  1313. v.Velocity = direction.lookVector*maxstrength
  1314. end))
  1315. end
  1316. end
  1317. end
  1318. end
  1319.  
  1320.  
  1321. function Kill(Char)
  1322. local NewCharacter = IT("Model",Effects)
  1323. NewCharacter.Name = "Ow im ded ;-;"
  1324. for _, c in pairs(Char:GetDescendants()) do
  1325. if c:IsA("BasePart") and c.Transparency == 0 then
  1326. if c.Parent == Char then
  1327. getbloody(c,5)
  1328. end
  1329. c:BreakJoints()
  1330. c.Material = "Glass"
  1331. c.Color = C3(0.5,0,0)
  1332. c.CanCollide = true
  1333. c.Transparency = 0.3
  1334. if c:FindFirstChildOfClass("SpecialMesh") then
  1335. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1336. end
  1337. if c.Name == "Head" then
  1338. c:ClearAllChildren()
  1339. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1340. end
  1341. if c.ClassName == "MeshPart" then
  1342. c.TextureID = ""
  1343. end
  1344. if c:FindFirstChildOfClass("BodyPosition") then
  1345. c:FindFirstChildOfClass("BodyPosition"):remove()
  1346. end
  1347. if c:FindFirstChildOfClass("ParticleEmitter") then
  1348. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1349. end
  1350. c.Parent = NewCharacter
  1351. c.Name = "DeadPart"
  1352. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1353. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1354. end
  1355. end
  1356. Char:remove()
  1357. Debris:AddItem(NewCharacter,5)
  1358. end
  1359.  
  1360. function ApplyAoE(POSITION,RANGE,BRUTAL)
  1361. local CHILDREN = workspace:GetDescendants()
  1362. for index, CHILD in pairs(CHILDREN) do
  1363. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1364. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1365. if HUM then
  1366. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1367. if TORSO then
  1368. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1369. if BRUTAL == true then
  1370. Kill(CHILD)
  1371. else
  1372. CHILD:BreakJoints()
  1373. end
  1374. end
  1375. end
  1376. end
  1377. end
  1378. end
  1379. end
  1380.  
  1381.  
  1382. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1383. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Dark indigo"), "Effect", VT(0,0,0))
  1384. local mesh = IT("SpecialMesh",wave)
  1385. mesh.MeshType = "FileMesh"
  1386. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1387. mesh.Scale = SIZE
  1388. mesh.Offset = VT(0,0,-SIZE.X/8)
  1389. wave.CFrame = CFRAME
  1390. coroutine.resume(coroutine.create(function(PART)
  1391. for i = 1, WAIT do
  1392. Swait()
  1393. mesh.Scale = mesh.Scale + GROW
  1394. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1395. if DOESROT == true then
  1396. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1397. end
  1398. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1399. if wave.Transparency > 0.99 then
  1400. wave:remove()
  1401. end
  1402. end
  1403. end))
  1404. end
  1405.  
  1406. function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1407. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Dark indigo"), "Effect", VT(0,0,0))
  1408. local mesh = IT("SpecialMesh",wave)
  1409. mesh.MeshType = "FileMesh"
  1410. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1411. mesh.Scale = SIZE
  1412. --mesh.Offset = VT(0,0,-SIZE.X/8)
  1413. wave.CFrame = CFRAME
  1414. coroutine.resume(coroutine.create(function(PART)
  1415. for i = 1, WAIT do
  1416. Swait()
  1417. mesh.Scale = mesh.Scale + GROW
  1418. --mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1419. if DOESROT == true then
  1420. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1421. end
  1422. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1423. if wave.Transparency > 0.99 then
  1424. wave:remove()
  1425. end
  1426. end
  1427. end))
  1428. end
  1429.  
  1430. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  1431. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Dark indigo"), "Effect", VT(0,0,0))
  1432. local mesh = IT("SpecialMesh",wave)
  1433. mesh.MeshType = "FileMesh"
  1434. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  1435. mesh.Scale = SIZE
  1436. wave.CFrame = CFRAME
  1437. coroutine.resume(coroutine.create(function(PART)
  1438. for i = 1, WAIT do
  1439. Swait()
  1440. mesh.Scale = mesh.Scale + GROW
  1441. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  1442. if DOESROT == true then
  1443. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  1444. end
  1445. wave.Transparency = wave.Transparency + (0.5/WAIT)
  1446. if wave.Transparency > 0.99 then
  1447. wave:remove()
  1448. end
  1449. end
  1450. end))
  1451. end
  1452. --//=================================\\
  1453. --|| ATTACK FUNCTIONS AND STUFF
  1454. --\\=================================//
  1455. function chatfunc(text)
  1456. local chat = coroutine.wrap(function()
  1457. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  1458. Character:FindFirstChild("TalkingBillBoard"):destroy()
  1459. end
  1460. local Bill = Instance.new("BillboardGui",Character)
  1461. Bill.Size = UDim2.new(0,100,0,40)
  1462. Bill.StudsOffset = Vector3.new(0,3,0)
  1463. Bill.Adornee = Character.Head
  1464. Bill.Name = "TalkingBillBoard"
  1465. local Hehe = Instance.new("TextLabel",Bill)
  1466. Hehe.BackgroundTransparency = 1
  1467. Hehe.BorderSizePixel = 0
  1468. Hehe.Text = ""
  1469. Hehe.Font = "Antique"
  1470. Hehe.TextSize = 40
  1471. Hehe.TextStrokeTransparency = 0
  1472. Hehe.Size = UDim2.new(1,0,0.5,0)
  1473. coroutine.resume(coroutine.create(function()
  1474. while Hehe ~= nil do
  1475. Swait()
  1476. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  1477. Hehe.Rotation = math.random(-5,5)
  1478. Hehe.TextColor3 = Color3.new(61,21,133)
  1479. Hehe.TextStrokeColor3 = Color3.new(0,0,0)
  1480. end
  1481. end))
  1482. for i = 1,string.len(text),1 do
  1483. Swait()
  1484. Hehe.Text = string.sub(text,1,i)
  1485. end
  1486. Swait(90)--Re[math.random(1, 93)]
  1487. for i = 0, 1, .025 do
  1488. Swait()
  1489. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  1490. Hehe.TextStrokeTransparency = i
  1491. Hehe.TextTransparency = i
  1492. end
  1493. Bill:Destroy()
  1494. end)
  1495. chat()
  1496. end
  1497.  
  1498. function onChatted(msg)
  1499. chatfunc(msg)
  1500. end
  1501.  
  1502. local SIZE = 1
  1503.  
  1504. function WarpMeteor()
  1505. local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude
  1506. if DIST > 180 then
  1507. DIST = 180
  1508. end
  1509. local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace)
  1510. local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,45,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 75*SIZE, Character)
  1511. if HITFLOOR then
  1512. local POS = HITPOS
  1513. ATTACK = true
  1514. Rooted = true
  1515. local WARPED = false
  1516. local SMASHED = false
  1517. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
  1518. coroutine.resume(coroutine.create(function()
  1519. repeat
  1520. Swait()
  1521. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1522. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1523. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1524. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1525. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1526. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1527. until WARPED == true
  1528. repeat
  1529. Swait()
  1530. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed)
  1531. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1532. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1533. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1534. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE + 0.06 * SIN(SINE / 24) - 0.1*SIZE * COS(SINE / 12), -0.5*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1535. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.1*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1536. until SMASHED == true
  1537. repeat
  1538. Swait()
  1539. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed)
  1540. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-40), RAD(0), RAD(0)), 1 / Animation_Speed)
  1541. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(-15), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1542. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(15), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1543. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
  1544. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1545. until ATTACK == false
  1546. end))
  1547. VALUE1 = true
  1548. CreateSound(233856115, Torso, 5, 1.6, false)
  1549. chatfunc("This hurt more than you think")
  1550. for i = 1, 25 do
  1551. Swait()
  1552. for _, c in pairs(Character:GetChildren()) do
  1553. if c.ClassName == "Part" then
  1554. c.Transparency = c.Transparency + 1/25
  1555. end
  1556. end
  1557. for _, c in pairs(Weapon:GetChildren()) do
  1558. if c.ClassName == "Part" then
  1559. c.Transparency = c.Transparency + 1/25
  1560. end
  1561. end
  1562. end
  1563. UNANCHOR = false
  1564. RootPart.Anchored = true
  1565. RootPart.Velocity = VT(0,0,0)
  1566. local ROOTPOS = RootPart.Position
  1567. RootPart.CFrame = CF(POS+VT(0,300,0),VT(ROOTPOS.X,POS.Y+300,ROOTPOS.Z))
  1568. WARPED = true
  1569. for i = 1, 25 do
  1570. Swait()
  1571. for _, c in pairs(Character:GetChildren()) do
  1572. if c.ClassName == "Part" then
  1573. c.Transparency = c.Transparency - 1/25
  1574. end
  1575. end
  1576. for _, c in pairs(Weapon:GetChildren()) do
  1577. if c.ClassName == "Part" then
  1578. c.Transparency = c.Transparency - 1/25
  1579. end
  1580. end
  1581. end
  1582. local SHELL = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Part", VT(0,0,0))
  1583. SHELL.CFrame = RootPart.CFrame
  1584. MakeForm(SHELL,"Ball")
  1585. CreateSound(402981977, SHELL, 5, 1.6, false)
  1586. for i = 1, 10 do
  1587. Swait()
  1588. SHELL.Transparency = SHELL.Transparency - 1/10
  1589. SHELL.Size = SHELL.Size + VT(0.6,0.6,0.6)*1.8
  1590. end
  1591. for i = 1, math.ceil(75/2) do
  1592. Swait()
  1593. RootPart.CFrame = RootPart.CFrame*CF(0,-3.5*2,0)
  1594. SHELL.CFrame = CF(RootPart.Position)
  1595. WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(5,3,5), Transparency = 0.5, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = SHELL.Position+VT(0,15,0), RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
  1596. end
  1597. RootPart.CFrame = CF(POS+VT(0,1,0),VT(ROOTPOS.X,HITPOS.Y+1,ROOTPOS.Z))
  1598. SHELL.CFrame = CF(RootPart.Position)
  1599. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(35,35,35)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6})
  1600. WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(45,3,45)*3.8, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
  1601. WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(45,3,45)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
  1602. for i = 1, 5 do
  1603. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*4, Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(61/255, 21/255, 133/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1604. end
  1605. SHELL:remove()
  1606. ApplyAoE(RootPart.Position,75,35,75,175,false)
  1607. SMASHED = true
  1608. wait(1)
  1609. VALUE1 = false
  1610. UNANCHOR = true
  1611. ATTACK = false
  1612. Rooted = false
  1613. end
  1614. end
  1615.  
  1616.  
  1617. local PLAYMAINANIM = true
  1618. local HATWELD = nil
  1619.  
  1620. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  1621. PLAYMAINANIM = false
  1622. if WhichPose == "Cast1" then
  1623. for i=0, Time, 0.1 / Animation_Speed do
  1624. Swait()
  1625. if Magic == true then
  1626. 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"Dark indigo".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1627. end
  1628. if Gyro ~= nil and Gyro ~= false then
  1629. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1630. end
  1631. 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)
  1632. 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)
  1633. 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)
  1634. 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)
  1635. 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)
  1636. 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)
  1637. end
  1638. elseif WhichPose == "Cast2" then
  1639. for i=0, Time, 0.1 / Animation_Speed do
  1640. Swait()
  1641. if Magic == true then
  1642. 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"Dark indigo".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1643. 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"Dark indigo".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1644. end
  1645. if Gyro ~= nil and Gyro ~= false then
  1646. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1647. end
  1648. 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)
  1649. 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)
  1650. 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)
  1651. 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)
  1652. 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)
  1653. 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)
  1654. end
  1655. elseif WhichPose == "RightArmUp" then
  1656. for i=0, Time, 0.1 / Animation_Speed do
  1657. Swait()
  1658. if Magic == true then
  1659. 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"Dark indigo".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1660. end
  1661. if Gyro ~= nil and Gyro ~= false then
  1662. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1663. end
  1664. 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)
  1665. 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)
  1666. 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)
  1667. 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)
  1668. 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)
  1669. 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)
  1670. end
  1671. elseif WhichPose == "Taunt" then
  1672. for i=0, Time, 0.1 / Animation_Speed do
  1673. Swait()
  1674. 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)
  1675. 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)
  1676. 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)
  1677. 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)
  1678. 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)
  1679. 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)
  1680. end
  1681. HATWELD.Part0 = RightArm
  1682. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  1683. CreateSound(137473066,Torso,10,1,false)
  1684. for i=0, Time*2, 0.1 / Animation_Speed do
  1685. Swait()
  1686. 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)
  1687. 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)
  1688. 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)
  1689. 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)
  1690. 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)
  1691. 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)
  1692. end
  1693. for i=0, Time, 0.1 / Animation_Speed do
  1694. Swait()
  1695. 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)
  1696. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  1697. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  1698. 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)
  1699. 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)
  1700. 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)
  1701. 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)
  1702. end
  1703. HATWELD.Part0 = Head
  1704. HATWELD.C0 = CF(0,0.35,0)
  1705. elseif WhichPose == "Prepare key" then
  1706. for i=0, Time, 0.1 / Animation_Speed do
  1707. Swait()
  1708. if Gyro ~= nil and Gyro ~= false then
  1709. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  1710. end
  1711. 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)
  1712. 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)
  1713. 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)
  1714. 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)
  1715. 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)
  1716. 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)
  1717. end
  1718. elseif WhichPose == "Turn key" then
  1719. for i=0, Time, 0.1 / Animation_Speed do
  1720. Swait()
  1721. if Gyro ~= nil and Gyro ~= false then
  1722. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  1723. end
  1724. 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)
  1725. 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)
  1726. 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)
  1727. 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)
  1728. 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)
  1729. 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)
  1730. end
  1731. end
  1732. PLAYMAINANIM = true
  1733. end
  1734.  
  1735. function Prison_Key()
  1736. if Mouse.Target ~= nil then
  1737. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1738. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1739. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1740. local GYRO = IT("BodyGyro",RootPart)
  1741. GYRO.D = 750
  1742. GYRO.P = 20000
  1743. GYRO.MaxTorque = VT(0,40000000,0)
  1744. local grav = Instance.new("BodyPosition",TORSO)
  1745. grav.D = 15
  1746. grav.P = 20000
  1747. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1748. grav.position = TORSO.Position
  1749. local GYRO2 = IT("BodyGyro",TORSO)
  1750. GYRO2.D = 750
  1751. GYRO2.P = 20000
  1752. GYRO2.MaxTorque = VT(0,40000000,0)
  1753. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1754. grav.Name = "Jail"
  1755. local LOCKPARTS = {}
  1756. ATTACK = true
  1757. Rooted = false
  1758. local LOCK = IT("Model",Effects)
  1759. LOCK.Name = "Lock"
  1760. local LOCK2 = IT("Model",LOCK)
  1761. LOCK2.Name = "Metal"
  1762. --CREATE LOCK--
  1763. local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1))
  1764. LOCK.PrimaryPart = BASE
  1765. BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
  1766. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3))
  1767. PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
  1768. MakeForm(PRT,"Cyl")
  1769. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
  1770. PRT.Color = C3(0,0,0)
  1771. PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
  1772. MakeForm(PRT,"Cyl")
  1773. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1))
  1774. PRT.Color = C3(0,0,0)
  1775. PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
  1776. for i = 1, 45 do
  1777. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  1778. PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
  1779. end
  1780. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  1781. PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
  1782. LOCK2.PrimaryPart = PRT
  1783. ---------------
  1784. local CHILDREN = LOCK:GetDescendants()
  1785. for index, CHILD in pairs(CHILDREN) do
  1786. if CHILD:IsA("BasePart") then
  1787. CHILD.Transparency = 1
  1788. end
  1789. end
  1790. for i = 1, 75 do
  1791. LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
  1792. Swait()
  1793. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1794. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1795. local CHILDREN = LOCK:GetDescendants()
  1796. for index, CHILD in pairs(CHILDREN) do
  1797. if CHILD:IsA("BasePart") then
  1798. CHILD.Transparency = CHILD.Transparency - 1/75
  1799. end
  1800. end
  1801. end
  1802. HUM.DisplayDistanceType = "None"
  1803. local KEY = IT("Model",Effects)
  1804. KEY.Name = "Key"
  1805. --CREATE KEY--
  1806. local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Dark indigo", "KeyBase", VT(0.1, 1, 0.1),false)
  1807. KEY.PrimaryPart = KBASE
  1808. KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
  1809. local WLD = weldBetween(RightArm,KBASE)
  1810. for i = 1, 45 do
  1811. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Dark indigo", "Key", VT(0.1, 0.1, 0.1),false)
  1812. PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
  1813. weldBetween(KBASE,PRT)
  1814. end
  1815. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Dark indigo", "Key", VT(0.3, 0.1, 0.1),false)
  1816. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
  1817. weldBetween(KBASE,PRT)
  1818. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Dark indigo", "Key", VT(0.3, 0.1, 0.1),false)
  1819. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
  1820. weldBetween(KBASE,PRT)
  1821. --------------
  1822. Rooted = true
  1823. Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
  1824. coroutine.resume(coroutine.create(function()
  1825. for i = 1, 10 do
  1826. Swait()
  1827. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1828. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1829. end
  1830. CreateSound(1149318312,BASE,5,1,false)
  1831. CreateSound(160772554,BASE,3,1,false)
  1832. LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
  1833. for i = 1, 4 do
  1834. 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"Dark indigo".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1835. end
  1836. 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"Dark indigo".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  1837. wait(1)
  1838. TORSO.Parent.Parent = LOCK
  1839. for i = 1, 75 do
  1840. Swait()
  1841. local CHILDREN = KEY:GetDescendants()
  1842. for index, CHILD in pairs(CHILDREN) do
  1843. if CHILD:IsA("BasePart") then
  1844. CHILD.Transparency = i/25
  1845. end
  1846. end
  1847. local CHILDREN = LOCK:GetDescendants()
  1848. for index, CHILD in pairs(CHILDREN) do
  1849. if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
  1850. CHILD.Transparency = CHILD.Transparency + 1/75
  1851. elseif CHILD.ClassName == "Decal" then
  1852. CHILD.Transparency = CHILD.Transparency + 1/75
  1853. end
  1854. end
  1855. end
  1856. TORSO.Parent:ClearAllChildren()
  1857. KEY:remove()
  1858. LOCK:remove()
  1859. end))
  1860. Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
  1861. GYRO:remove()
  1862. ATTACK = false
  1863. Rooted = false
  1864. end
  1865. end
  1866. end
  1867.  
  1868. function ReeeEEEEEE()
  1869. ATTACK = true
  1870. Rooted = false
  1871. Speed = 12
  1872. local FX = CreateSound(198165368, Head, 4, 0.5, false)
  1873. repeat
  1874. Swait()
  1875. FX.Parent = Head
  1876. local CHILDREN = workspace:GetDescendants()
  1877. for index, CHILD in pairs(CHILDREN) do
  1878. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1879. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1880. if HUM then
  1881. local TORSO = CHILD:FindFirstChild("Head")
  1882. if TORSO then
  1883. if (TORSO.Position - Head.Position).Magnitude <= 25 then
  1884. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(61, 21, 133), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1885. TORSO:remove()
  1886. if CHILD:FindFirstChild("Torso") then
  1887. Ragdoll(CHILD,Torso,true)
  1888. elseif CHILD:FindFirstChild("UpperTorso") then
  1889. R15Ragdoll(CHILD,true)
  1890. end
  1891. end
  1892. end
  1893. end
  1894. end
  1895. end
  1896. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)), 1 / Animation_Speed)
  1897. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45), RAD(0), RAD(0)), 1 / Animation_Speed)
  1898. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(15)) * ANGLES(RAD(0), RAD(15), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1899. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-15)) * ANGLES(RAD(0), RAD(-15), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1900. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-45), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1901. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-45), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1902. until FX.Playing == false
  1903. Speed = 16
  1904. ATTACK = false
  1905. Rooted = false
  1906. end
  1907.  
  1908. local TAUNT = false
  1909.  
  1910. function Taunt()
  1911. ATTACK = true
  1912. Rooted = false
  1913. TAUNT = true
  1914. for i=0, 0.1, 0.1 / Animation_Speed do
  1915. Swait()
  1916. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1917. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1918. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1919. end
  1920. for i=0, 3, 0.1 / Animation_Speed do
  1921. Swait()
  1922. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1923. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1924. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(15)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1925. end
  1926. CreateSound(363808674, Torso, 10, 1.3)
  1927. for i=0, 1, 0.1 / Animation_Speed do
  1928. Swait()
  1929. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(120)), 3 / Animation_Speed)
  1930. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 3/ Animation_Speed)
  1931. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(230), RAD(0), RAD(35)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1932. end
  1933. WACKYEFFECT({EffectType = "Block", Size = VT(6,6,6), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(61,21,133), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  1934. CreateSound(649634100, Torso, 10, 0.8)
  1935. for i=0, 0.01, 0.1 / Animation_Speed do
  1936. Swait()
  1937. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed)
  1938. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1939. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1940. end
  1941. ATTACK = false
  1942. Rooted = false
  1943. TAUNT = false
  1944. end
  1945.  
  1946. local Effects2 = {}
  1947.  
  1948. function CastWarpOutlines(TARGET)
  1949. coroutine.resume(coroutine.create(function()
  1950. local T = TARGET:GetChildren()
  1951. for i = 1, # T do
  1952. local child = T[i]
  1953. if child.ClassName == "Part" or child.ClassName == "MeshPart" then
  1954. local clone = child:Clone()
  1955. clone.Parent = Effects
  1956. clone.Anchored = true
  1957. clone.CanCollide = false
  1958. clone:ClearAllChildren()
  1959. clone.CFrame = child.CFrame
  1960. if clone.Name == "Head" then
  1961. clone.Size = VT(clone.Size.Y,clone.Size.Y,clone.Size.Y)
  1962. end
  1963. if clone.ClassName == "MeshPart" then
  1964. clone.TextureID = ""
  1965. end
  1966. clone.BrickColor = BRICKC"Black"
  1967. clone.Material = "Neon"
  1968. coroutine.resume(coroutine.create(function()
  1969. for i = 1, 200 do
  1970. Swait()
  1971. clone.Transparency = clone.Transparency + 0.005
  1972. clone.Size = clone.Size + VT(0.001,0.001,0.001)
  1973. end
  1974. clone:remove()
  1975. end))
  1976. end
  1977. end
  1978. end))
  1979. end
  1980.  
  1981.  
  1982.  
  1983. function BanishBullet()
  1984. ATTACK = true
  1985. Rooted = false
  1986. for i = 0, 0.4, 0.1 / Animation_Speed do
  1987. Swait()
  1988. turnto(Mouse.Hit.p)
  1989. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1990. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1991. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1992. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1993. 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)
  1994. 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)
  1995. end
  1996. repeat
  1997. for i = 0, 0.2, 0.1 / Animation_Speed do
  1998. Swait()
  1999. turnto(Mouse.Hit.p)
  2000. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2001. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  2002. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2003. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2004. 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)
  2005. 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)
  2006. end
  2007. CreateSound("238353911", RightArm, 10, MRANDOM(9, 11) / 10)
  2008. MagicSphere(VT(0.1, 0.1, 0.1), 45, RightArm.CFrame, "Dark indigo", VT(0.1, 0.1, 0.1))
  2009. MagicSphere(VT(0.1, 0.1, 0.1), 45, RightArm.CFrame, "Dark indigo", VT(0.05, 0.05, 0.05))
  2010. local RayHit, Way = CastProperRay(RightArm.Position, Mouse.Hit.p, 1500, Character)
  2011. local distance = (RightArm.Position - Way).magnitude
  2012. for i = 1, 5 do
  2013. local laser = Instance.new("Part", Effects)
  2014. laser.Transparency = 0
  2015. laser.CanCollide = false
  2016. laser.Anchored = true
  2017. laser.Color = C3(61, 21, 133)
  2018. laser.Material = "Neon"
  2019. laser.formFactor = Enum.FormFactor.Custom
  2020. laser.Size = Vector3.new(0.15, 0.15, distance)
  2021. laser.CFrame = CFrame.new(RightArm.Position, Way) * CFrame.new(0, 0, -distance / 2)
  2022. MagicSphere(VT(0.1, 0.1, 0.1), 45, CF(Way), "Dark indigo", VT(0.05, 0.05, 0.05))
  2023. for i = 1, 5 do
  2024. MagicSphere(VT(0.2, 0.2, 1), 65, CF(CF(Way) * CF(MRANDOM(-1, 1), MRANDOM(-1, 1), MRANDOM(-1, 1)).p, Way), "Dark indigo", VT(0.001, 0.001, 0), 0.5)
  2025. end
  2026. table.insert(Effects2, {
  2027. laser,
  2028. "Disappear",
  2029. 0.1,
  2030. 1,
  2031. 1,
  2032. 1,
  2033. 2
  2034. })
  2035. if RayHit ~= nil then
  2036. local v = RayHit.Parent
  2037. if v ~= nil and v.ClassName == "Model" then
  2038. CastWarpOutlines(v)
  2039. v.Parent = nil
  2040. if game.Players:FindFirstChild(v.Name) then
  2041. local Value = IT("BoolValue", Delete)
  2042. Value.Name = v.Name
  2043. end
  2044. end
  2045. end
  2046. end
  2047. for i = 0, 0.3, 0.1 / Animation_Speed do
  2048. Swait()
  2049. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  2050. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  2051. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  2052. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2053. 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)
  2054. 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)
  2055. end
  2056. until KEYHOLD == false
  2057. ATTACK = false
  2058. Rooted = false
  2059. end
  2060.  
  2061. Player_Size = 1
  2062.  
  2063. function UltraPunch()
  2064. ATTACK = true
  2065. Rooted = false
  2066. local SPEED = Speed
  2067. Speed = 8
  2068. CreateSound("214876666", RightArm, 7.5, 0.8)
  2069. for i=0, 0, 0.1 / Animation_Speed do
  2070. Swait()
  2071. turnto(Mouse.Hit.p)
  2072. MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Dark indigo",VT(-1/15,-1/15,-1/15))
  2073. MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Dark indigo",VT(-2/15,-2/15,-2/15))
  2074. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed)
  2075. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed)
  2076. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  2077. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2078. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2079. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2080. end
  2081. for i=0, 0, 0.1 / Animation_Speed do
  2082. Swait()
  2083. turnto(Mouse.Hit.p)
  2084. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 1 / Animation_Speed)
  2085. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed)
  2086. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2087. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2088. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2089. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2090. end
  2091. local PART = CreatePart(3, Effects, "Neon", 0, 0.8, "Dark indigo", "Punch", VT(50,50,50),false)
  2092. PART.CFrame = RootPart.CFrame * CF(0,0,-25)
  2093. PART.Shape = "Ball"
  2094. local bv = Instance.new("BodyVelocity")
  2095. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2096. bv.velocity = RootPart.CFrame.lookVector*600
  2097. bv.Parent = PART
  2098. bv.Name = "PROJECTILEVELOCITY"
  2099. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Dark indigo",VT(2.5,0.2,2.5))
  2100. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Dark indigo",VT(3,0.2,3))
  2101. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Dark indigo",VT(2,0.6,2))
  2102. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Dark indigo",VT(2.2,0.6,2.2))
  2103. CreateSound("414517163", Effects, 3.5, MRANDOM(7, 12) / 10)
  2104. coroutine.resume(coroutine.create(function()
  2105. for i = 1, 11 do
  2106. Swait()
  2107. PART.Transparency = PART.Transparency + 0.2/10
  2108. PART.Size = PART.Size + VT(5,5,5)
  2109. killnearest(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame)
  2110. end
  2111. PART:Destroy()
  2112. end))
  2113. for i=0, 0, 0.1 / Animation_Speed do
  2114. Swait()
  2115. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed)
  2116. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed)
  2117. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  2118. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  2119. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed)
  2120. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed)
  2121. end
  2122. Speed = SPEED
  2123. ATTACK = false
  2124. Rooted = false
  2125. end
  2126.  
  2127.  
  2128. function Charge(TIME,GYRO)
  2129. local SND = CreateSound(ENERGYSOUND,Torso,6,TIME,false)
  2130. local G = nil
  2131. if GYRO == true then
  2132. G = IT("BodyGyro",RootPart)
  2133. G.D = 250
  2134. G.P = 200000
  2135. G.MaxTorque = VT(math.huge,math.huge,math.huge)
  2136. end
  2137. for i=0, TIME, 0.1 / Animation_Speed do
  2138. Swait()
  2139. if G then
  2140. G.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2141. end
  2142. WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(1.2,1.2,1.2), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BasePart.CFrame, MoveToPos = BasePart.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-4).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2143. 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)
  2144. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2145. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2146. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2147. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2148. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2149. end
  2150. SND:remove()
  2151. if G then
  2152. return G
  2153. end
  2154. end
  2155.  
  2156. function Corrupted_Beam()
  2157. ATTACK = true
  2158. Rooted = false
  2159. local GRAV = IT("BodyPosition",RootPart)
  2160. GRAV.D = 75
  2161. GRAV.P = 20000
  2162. GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
  2163. GRAV.Position = RootPart.Position
  2164. local GYRO = Charge(2,true)
  2165. local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Dark indigo", "Beam", VT(15,15,0))
  2166. MakeForm(BEAM,"Ball")
  2167. CreateSound(BEAMSOUND,BEAM,10,1,false)
  2168. CreateSound(BEAMSOUND,BEAM,10,0.9,false)
  2169. CreateSound(BEAMSOUND,BEAM,10,0.8,false)
  2170. for i = 1, 150 do
  2171. Swait()
  2172. BEAM.Size = BEAM.Size + VT(-0.1,-0.1,2)
  2173. ApplyAoE(BEAM.CFrame*CF(0,0,-BEAM.Size.Z/2).p,BEAM.Size.Y/2,50,200,0,false)
  2174. WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(3,3,3), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BEAM.CFrame*CF(0,0,BEAM.Size.Z/2), MoveToPos = BEAM.CFrame*CF(0,0,BEAM.Size.Z/2)*ANGLES(RAD(90),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0.3,-25).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2175. BEAM.CFrame = CF(Torso.Position,Torso.CFrame*CF(0,0,-1).p)*CF(0,0,-2-(BEAM.Size.Z/2))
  2176. 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)
  2177. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2178. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2179. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2180. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2181. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2182. end
  2183. GRAV:remove()
  2184. BEAM:remove()
  2185. GYRO:remove()
  2186. ATTACK = false
  2187. Rooted = false
  2188. end
  2189.  
  2190. function Corrupted_Explosion()
  2191. ATTACK = true
  2192. Rooted = true
  2193. for i=0, 1, 0.1 / Animation_Speed do
  2194. Swait()
  2195. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.6 / Animation_Speed)
  2196. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.6 / Animation_Speed)
  2197. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2198. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.1 / Animation_Speed)
  2199. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2200. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2201. end
  2202. for i=0, 0.4, 0.1 / Animation_Speed do
  2203. Swait()
  2204. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed)
  2205. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed)
  2206. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2207. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2208. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.01) * ANGLES(RAD(75), RAD(25), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  2209. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2210. end
  2211. local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Dark indigo", "Beam", VT(0,0,0))
  2212. local BEAM2 = CreatePart(3, Effects, "Neon", 0, 0, "Dark indigo", "Beam", VT(0,0,0))
  2213. MakeForm(BEAM,"Ball")
  2214. MakeForm(BEAM2,"Ball")
  2215. BEAM.CFrame = CF(RootPart.Position)
  2216. BEAM2.CFrame = CF(RootPart.Position)
  2217. CreateSound(EXPLOSIONSOUND,RootPart,10,1,false)
  2218. for i=1, 100 do
  2219. Swait()
  2220. BEAM.Size = BEAM.Size + VT(0.7,8,0.7)
  2221. BEAM2.Size = BEAM2.Size + VT(2,2,2)
  2222. ApplyAoE(BEAM2.Position,BEAM2.Size.Z/2,5,5,15,true)
  2223. BEAM.CFrame = CF(RootPart.Position)
  2224. BEAM2.CFrame = CF(RootPart.Position)
  2225. WACKYEFFECT({TIME = 5+i, EffectType = "Swirl", Size = BEAM2.Size*1.15, Size2 = VT(0,BEAM.Size.Y,0), Transparency = 0.8, Transparency2 = 1, CFrame = BEAM.CFrame * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2226. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed)
  2227. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed)
  2228. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2229. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2230. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.01) * ANGLES(RAD(75), RAD(25), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  2231. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2232. end
  2233. WACKYEFFECT({TIME = 75, EffectType = "Sphere", Size = BEAM.Size, Size2 = VT(0,BEAM.Size.Y,0), Transparency = 0, Transparency2 = 0, CFrame = BEAM.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2234. WACKYEFFECT({TIME = 75, EffectType = "Sphere", Size = BEAM2.Size, Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.6, CFrame = BEAM2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2235. BEAM2:remove()
  2236. BEAM:remove()
  2237. ATTACK = false
  2238. Rooted = false
  2239. end
  2240.  
  2241. function Corrupted_Immobilization()
  2242. ATTACK = true
  2243. Rooted = true
  2244. Charge(2,false)
  2245. local SND = CreateSound(EXPLOSIONSOUND,RootPart,10,1,false)
  2246. local SND2 = CreateSound(ENERGYSOUND,RootPart,10,1,false)
  2247. for i = 1, 60 do
  2248. Swait()
  2249. ApplyAoE(RootPart.Position,i*1.3,10,20,-200,true)
  2250. SND.Pitch = SND.Pitch - 1/60
  2251. SND2.Pitch = SND.Pitch
  2252. WACKYEFFECT({TIME = 4, EffectType = "Wave", Size = VT(i*2,10,i*2), Size2 = VT(i*2,10,i*2), Transparency = 0.9, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2253. WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,10,0), Size2 = VT(i*2,6,i*2), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2254. WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,6,0), Size2 = VT(i*1.6,10,i*1.6), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(MRANDOM(-5,5)), RAD(i*5), RAD(MRANDOM(-5,5))), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2255. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2256. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2257. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(-45), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2258. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(45), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2259. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  2260. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  2261. end
  2262. SND:remove()
  2263. SND2:remove()
  2264. ATTACK = false
  2265. Rooted = false
  2266. end
  2267.  
  2268. --//=================================\\
  2269. --|| ASSIGN THINGS TO KEYS
  2270. --\\=================================//
  2271.  
  2272. function MouseDown(Mouse)
  2273. if ATTACK == false then
  2274. end
  2275. end
  2276.  
  2277. function MouseUp(Mouse)
  2278. HOLD = false
  2279. end
  2280.  
  2281. function KeyDown(Key)
  2282. KEYHOLD = true
  2283. if Key == "z" and ATTACK == false then
  2284. Corrupted_Beam()
  2285. end
  2286. if Key == "q" and ATTACK == false then
  2287. BanishBullet()
  2288. end
  2289. if Key == "t" and ATTACK == false then
  2290. Taunt()
  2291. end
  2292. if Key == "f" and ATTACK == false then
  2293. Prison_Key()
  2294. end
  2295. if Key == "g" and ATTACK == false then
  2296. ReeeEEEEEE()
  2297. end
  2298. if Key == "r" and ATTACK == false then
  2299. WarpMeteor()
  2300. end
  2301. if Key == "x" and ATTACK == false then
  2302. Corrupted_Explosion()
  2303. end
  2304. if Key == "e" and ATTACK == false then
  2305. UltraPunch()
  2306. end
  2307. if Key == "c" and ATTACK == false then
  2308. Corrupted_Immobilization()
  2309. elseif Key == "1" and ATTACK == false then
  2310. if CHOICE ~= 1 then
  2311. CHOICE = 1
  2312. sick:Play()
  2313. end
  2314. elseif Key == "2" and ATTACK == false then
  2315. if CHOICE ~= 2 then
  2316. CHOICE = 2
  2317. sick:Play()
  2318. end
  2319. elseif Key == "3" and ATTACK == false then
  2320. if CHOICE ~= 3 then
  2321. CHOICE = 3
  2322. sick:Play()
  2323. end
  2324. elseif Key == "4" and ATTACK == false then
  2325. if CHOICE ~= 4 then
  2326. CHOICE = 4
  2327. sick:Play()
  2328. end
  2329.  
  2330. end
  2331. end
  2332.  
  2333.  
  2334.  
  2335. function KeyUp(Key)
  2336. KEYHOLD = false
  2337. end
  2338.  
  2339. Mouse.Button1Down:connect(function(NEWKEY)
  2340. MouseDown(NEWKEY)
  2341. end)
  2342. Mouse.Button1Up:connect(function(NEWKEY)
  2343. MouseUp(NEWKEY)
  2344. end)
  2345. Mouse.KeyDown:connect(function(NEWKEY)
  2346. KeyDown(NEWKEY)
  2347. end)
  2348. Mouse.KeyUp:connect(function(NEWKEY)
  2349. KeyUp(NEWKEY)
  2350. end)
  2351.  
  2352. --//=================================\\
  2353. --\\=================================//
  2354. local BODY = {}
  2355. for _, c in pairs(Character:GetDescendants()) do
  2356. if c:IsA("BasePart") and c.Name ~= "Handle" then
  2357. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  2358. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  2359. end
  2360. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name})
  2361. elseif c:IsA("JointInstance") then
  2362. table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil})
  2363. end
  2364. end
  2365.  
  2366.  
  2367.  
  2368. function refit()
  2369. Character.Parent = workspace
  2370. for e = 1, #BODY do
  2371. if BODY[e] ~= nil then
  2372. local STUFF = BODY[e]
  2373. local PART = STUFF[1]
  2374. local PARENT = STUFF[2]
  2375. local MATERIAL = STUFF[3]
  2376. local COLOR = STUFF[4]
  2377. local TRANSPARENCY = STUFF[5]
  2378. --local SIZE = STUFF[6]
  2379. local NAME = STUFF[7]
  2380. if PART.ClassName == "Part" and PART ~= RootPart then
  2381. PART.Material = MATERIAL
  2382. PART.Transparency = TRANSPARENCY
  2383. PART.Name = NAME
  2384. end
  2385. if PART.Parent ~= PARENT then
  2386. Humanoid:remove()
  2387. PART.Parent = PARENT
  2388. Humanoid = IT("Humanoid",Character)
  2389. end
  2390. end
  2391. end
  2392. end
  2393.  
  2394. local SKILLTEXTCOLOR = C3(58,125,21)
  2395. local SKILLFONT = "Fantasy"
  2396. local SKILLTEXTSIZE = 6
  2397.  
  2398. Humanoid.Died:connect(function()
  2399. refit()
  2400. end)
  2401.  
  2402. function unanchor()
  2403. if UNANCHOR == true then
  2404. g = Character:GetChildren()
  2405. for i = 1, #g do
  2406. if g[i].ClassName == "Part" then
  2407. g[i].Anchored = false
  2408. end
  2409. end
  2410. end
  2411. end
  2412.  
  2413. for _, c in pairs(Character:GetChildren()) do
  2414. if c.ClassName == "Part" then
  2415. c.Material = "Neon"
  2416. if c:FindFirstChildOfClass("ParticleEmitter") then
  2417. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  2418. end
  2419. if c == Torso then
  2420. c.Color = C3(0,0,0)
  2421. elseif c == RightArm then
  2422. c.Color = C3(0.05,0.05,0.15)
  2423. elseif c == LeftArm then
  2424. c.Color = C3(0.05,0.05,0.15)
  2425. elseif c == RightLeg then
  2426. c.Color = C3(0,0,0.05)
  2427. elseif c == LeftLeg then
  2428. c.Color = C3(0,0,0.05)
  2429. elseif c == Head then
  2430. if c:FindFirstChild("Dominus") == nil then
  2431. local M = CreateMesh("SpecialMesh", c, "FileMesh", "1285237", "63036639", VT(1,1,1)*1.1, VT(0,0.6,0))
  2432. M.Name = "Dominus"
  2433. end
  2434. if c:FindFirstChild("face") then
  2435. c.face:remove()
  2436. end
  2437. end
  2438. elseif c.ClassName == "" or c.ClassName == "" or c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  2439. c:remove()
  2440. end
  2441. end
  2442.  
  2443. --//=================================\\
  2444. --|| WRAP THE WHOLE SCRIPT UP
  2445. --\\=================================//
  2446.  
  2447. Humanoid.Changed:connect(function(Jump)
  2448. if Jump == "Jump" and (Disable_Jump == true) then
  2449. Humanoid.Jump = false
  2450. end
  2451. end)
  2452.  
  2453. while true do
  2454. Swait()
  2455. script.Parent = WEAPONGUI
  2456. ANIMATE.Parent = nil
  2457. if Humanoid then
  2458. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2459. IDLEANIMATION:Play()
  2460. end
  2461. SINE = SINE + CHANGE
  2462. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2463. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2464. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2465. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2466. ANIM = "Jump"
  2467. if ATTACK == false then
  2468. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2469. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2470. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2471. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2472. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  2473. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2474. end
  2475. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2476. ANIM = "Fall"
  2477. if ATTACK == false then
  2478. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2479. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2480. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2481. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2482. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2483. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  2484. end
  2485. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2486. ANIM = "Idle"
  2487. if ATTACK == false then
  2488. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2489. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2490. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2491. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2492. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2493. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2494. end
  2495.  
  2496. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2497. ANIM = "Walk"
  2498. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2499. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2500. if ATTACK == false then
  2501. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed*3)
  2502. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2503. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2504. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2505. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2506. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2507. end
  2508. end
  2509.  
  2510.  
  2511. sick.Parent = Torso
  2512. sick.Playing = true
  2513. sick.SoundId = "rbxassetid://"..SONGS[CHOICE]
  2514.  
  2515.  
  2516. unanchor()
  2517. Humanoid.MaxHealth = "inf"
  2518. Humanoid.Health = "inf"
  2519. if Rooted == false then
  2520. Disable_Jump = false
  2521. Humanoid.WalkSpeed = Speed
  2522. elseif Rooted == true then
  2523. Disable_Jump = true
  2524. Humanoid.WalkSpeed = 0
  2525. end
  2526. end
  2527.  
  2528. --//=================================\\
  2529. --\\=================================//
  2530.  
  2531.  
  2532.  
  2533.  
  2534.  
  2535. --//====================================================\\--
  2536. --|| END OF SCRIPT
  2537. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment