MellonYt

Good Script

Jun 29th, 2018
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 149.76 KB | None | 0 0
  1. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  2. function onKeyPress(inputObject, gameProcessedEvent)
  3. if inputObject.KeyCode == Enum.KeyCode.J then
  4.  
  5. --//====================================================\\--
  6. --|| CREATED BY SHACKLUSTER
  7. --\\====================================================//--
  8.  
  9. wait(0.2)
  10.  
  11. Player = game:GetService("Players").LocalPlayer
  12. PlayerGui = Player.PlayerGui
  13. Cam = workspace.CurrentCamera
  14. Backpack = Player.Backpack
  15. Character = Player.Character
  16. Humanoid = Character.Humanoid
  17. Mouse = Player:GetMouse()
  18. RootPart = Character["HumanoidRootPart"]
  19. Torso = Character["Torso"]
  20. Head = Character["Head"]
  21. RightArm = Character["Right Arm"]
  22. LeftArm = Character["Left Arm"]
  23. RightLeg = Character["Right Leg"]
  24. LeftLeg = Character["Left Leg"]
  25. RootJoint = RootPart["RootJoint"]
  26. Neck = Torso["Neck"]
  27. RightShoulder = Torso["Right Shoulder"]
  28. LeftShoulder = Torso["Left Shoulder"]
  29. RightHip = Torso["Right Hip"]
  30. LeftHip = Torso["Left Hip"]
  31. local sick = Instance.new("Sound",Character)
  32. sick.SoundId = "rbxassetid://1494340971"
  33. sick.Looped = true
  34. sick.Pitch = 1
  35. sick.Volume = 1
  36. sick:Play()
  37.  
  38. IT = Instance.new
  39. CF = CFrame.new
  40. VT = Vector3.new
  41. RAD = math.rad
  42. C3 = Color3.new
  43. UD2 = UDim2.new
  44. BRICKC = BrickColor.new
  45. ANGLES = CFrame.Angles
  46. EULER = CFrame.fromEulerAnglesXYZ
  47. COS = math.cos
  48. ACOS = math.acos
  49. SIN = math.sin
  50. ASIN = math.asin
  51. ABS = math.abs
  52. MRANDOM = math.random
  53. FLOOR = math.floor
  54.  
  55. --//=================================\\
  56. --|| USEFUL VALUES
  57. --\\=================================//
  58.  
  59. Animation_Speed = 3
  60. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  61. local Speed = 25
  62. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  63. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  64. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  65. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  66. local DAMAGEMULTIPLIER = 1
  67. local ANIM = "Idle"
  68. local ATTACK = false
  69. local EQUIPPED = false
  70. local HOLD = false
  71. local COMBO = 1
  72. local Rooted = false
  73. local SINE = 0
  74. local KEYHOLD = false
  75. local CHANGE = 2 / Animation_Speed
  76. local WALKINGANIM = false
  77. local VALUE1 = false
  78. local VALUE2 = false
  79. local ROBLOXIDLEANIMATION = IT("Animation")
  80. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  81. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  82. --ROBLOXIDLEANIMATION.Parent = Humanoid
  83. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  84. WEAPONGUI.Name = "Weapon GUI"
  85. local Effects = IT("Folder", Character)
  86. Effects.Name = "Effects"
  87. local ANIMATOR = Humanoid.Animator
  88. local ANIMATE = Character.Animate
  89. local UNANCHOR = true
  90. local PLAYMAINANIM = true
  91. local BOLTSOUNDS = {168586621,168586586,178452241}
  92.  
  93. --//=================================\\
  94. --\\=================================//
  95.  
  96.  
  97. --//=================================\\
  98. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  99. --\\=================================//
  100.  
  101. ArtificialHB = Instance.new("BindableEvent", script)
  102. ArtificialHB.Name = "ArtificialHB"
  103.  
  104. script:WaitForChild("ArtificialHB")
  105.  
  106. frame = Frame_Speed
  107. tf = 0
  108. allowframeloss = false
  109. tossremainder = false
  110. lastframe = tick()
  111. script.ArtificialHB:Fire()
  112.  
  113. game:GetService("RunService").Heartbeat:connect(function(s, p)
  114. tf = tf + s
  115. if tf >= frame then
  116. if allowframeloss then
  117. script.ArtificialHB:Fire()
  118. lastframe = tick()
  119. else
  120. for i = 1, math.floor(tf / frame) do
  121. script.ArtificialHB:Fire()
  122. end
  123. lastframe = tick()
  124. end
  125. if tossremainder then
  126. tf = 0
  127. else
  128. tf = tf - frame * math.floor(tf / frame)
  129. end
  130. end
  131. end)
  132.  
  133. --//=================================\\
  134. --\\=================================//
  135.  
  136. --//=================================\\
  137. --|| SOME FUNCTIONS
  138. --\\=================================//
  139.  
  140. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  141. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  142. end
  143.  
  144. function PositiveAngle(NUMBER)
  145. if NUMBER >= 0 then
  146. NUMBER = 0
  147. end
  148. return NUMBER
  149. end
  150.  
  151. function NegativeAngle(NUMBER)
  152. if NUMBER <= 0 then
  153. NUMBER = 0
  154. end
  155. return NUMBER
  156. end
  157.  
  158. function Swait(NUMBER)
  159. if NUMBER == 0 or NUMBER == nil then
  160. ArtificialHB.Event:wait()
  161. else
  162. for i = 1, NUMBER do
  163. ArtificialHB.Event:wait()
  164. end
  165. end
  166. end
  167.  
  168. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  169. local NEWMESH = IT(MESH)
  170. if MESH == "SpecialMesh" then
  171. NEWMESH.MeshType = MESHTYPE
  172. if MESHID ~= "nil" and MESHID ~= "" then
  173. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  174. end
  175. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  176. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  177. end
  178. end
  179. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  180. NEWMESH.Scale = SCALE
  181. NEWMESH.Parent = PARENT
  182. return NEWMESH
  183. end
  184.  
  185. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  186. local NEWPART = IT("Part")
  187. NEWPART.formFactor = FORMFACTOR
  188. NEWPART.Reflectance = REFLECTANCE
  189. NEWPART.Transparency = TRANSPARENCY
  190. NEWPART.CanCollide = false
  191. NEWPART.Locked = true
  192. NEWPART.Anchored = true
  193. if ANCHOR == false then
  194. NEWPART.Anchored = false
  195. end
  196. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  197. NEWPART.Name = NAME
  198. NEWPART.Size = SIZE
  199. NEWPART.Position = Torso.Position
  200. NEWPART.Material = MATERIAL
  201. NEWPART:BreakJoints()
  202. NEWPART.Parent = PARENT
  203. return NEWPART
  204. end
  205.  
  206. local function weldBetween(a, b)
  207. local weldd = Instance.new("ManualWeld")
  208. weldd.Part0 = a
  209. weldd.Part1 = b
  210. weldd.C0 = CFrame.new()
  211. weldd.C1 = b.CFrame:inverse() * a.CFrame
  212. weldd.Parent = a
  213. return weldd
  214. end
  215.  
  216.  
  217. function QuaternionFromCFrame(cf)
  218. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  219. local trace = m00 + m11 + m22
  220. if trace > 0 then
  221. local s = math.sqrt(1 + trace)
  222. local recip = 0.5 / s
  223. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  224. else
  225. local i = 0
  226. if m11 > m00 then
  227. i = 1
  228. end
  229. if m22 > (i == 0 and m00 or m11) then
  230. i = 2
  231. end
  232. if i == 0 then
  233. local s = math.sqrt(m00 - m11 - m22 + 1)
  234. local recip = 0.5 / s
  235. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  236. elseif i == 1 then
  237. local s = math.sqrt(m11 - m22 - m00 + 1)
  238. local recip = 0.5 / s
  239. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  240. elseif i == 2 then
  241. local s = math.sqrt(m22 - m00 - m11 + 1)
  242. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  243. end
  244. end
  245. end
  246.  
  247. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  248. local xs, ys, zs = x + x, y + y, z + z
  249. local wx, wy, wz = w * xs, w * ys, w * zs
  250. local xx = x * xs
  251. local xy = x * ys
  252. local xz = x * zs
  253. local yy = y * ys
  254. local yz = y * zs
  255. local zz = z * zs
  256. 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))
  257. end
  258.  
  259. function QuaternionSlerp(a, b, t)
  260. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  261. local startInterp, finishInterp;
  262. if cosTheta >= 0.0001 then
  263. if (1 - cosTheta) > 0.0001 then
  264. local theta = ACOS(cosTheta)
  265. local invSinTheta = 1 / SIN(theta)
  266. startInterp = SIN((1 - t) * theta) * invSinTheta
  267. finishInterp = SIN(t * theta) * invSinTheta
  268. else
  269. startInterp = 1 - t
  270. finishInterp = t
  271. end
  272. else
  273. if (1 + cosTheta) > 0.0001 then
  274. local theta = ACOS(-cosTheta)
  275. local invSinTheta = 1 / SIN(theta)
  276. startInterp = SIN((t - 1) * theta) * invSinTheta
  277. finishInterp = SIN(t * theta) * invSinTheta
  278. else
  279. startInterp = t - 1
  280. finishInterp = t
  281. end
  282. end
  283. 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
  284. end
  285.  
  286. function Clerp(a, b, t)
  287. local qa = {QuaternionFromCFrame(a)}
  288. local qb = {QuaternionFromCFrame(b)}
  289. local ax, ay, az = a.x, a.y, a.z
  290. local bx, by, bz = b.x, b.y, b.z
  291. local _t = 1 - t
  292. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  293. end
  294.  
  295. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  296. local frame = IT("Frame")
  297. frame.BackgroundTransparency = TRANSPARENCY
  298. frame.BorderSizePixel = BORDERSIZEPIXEL
  299. frame.Position = POSITION
  300. frame.Size = SIZE
  301. frame.BackgroundColor3 = COLOR
  302. frame.BorderColor3 = BORDERCOLOR
  303. frame.Name = NAME
  304. frame.Parent = PARENT
  305. return frame
  306. end
  307.  
  308. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  309. local label = IT("TextLabel")
  310. label.BackgroundTransparency = 1
  311. label.Size = UD2(1, 0, 1, 0)
  312. label.Position = UD2(0, 0, 0, 0)
  313. label.TextColor3 = TEXTCOLOR
  314. label.TextStrokeTransparency = STROKETRANSPARENCY
  315. label.TextTransparency = TRANSPARENCY
  316. label.FontSize = TEXTFONTSIZE
  317. label.Font = TEXTFONT
  318. label.BorderSizePixel = BORDERSIZEPIXEL
  319. label.TextScaled = false
  320. label.Text = TEXT
  321. label.Name = NAME
  322. label.Parent = PARENT
  323. return label
  324. end
  325.  
  326. function NoOutlines(PART)
  327. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  328. end
  329.  
  330. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  331. local NEWWELD = IT(TYPE)
  332. NEWWELD.Part0 = PART0
  333. NEWWELD.Part1 = PART1
  334. NEWWELD.C0 = C0
  335. NEWWELD.C1 = C1
  336. NEWWELD.Parent = PARENT
  337. return NEWWELD
  338. end
  339.  
  340. local S = IT("Sound")
  341. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  342. local NEWSOUND = nil
  343. coroutine.resume(coroutine.create(function()
  344. NEWSOUND = S:Clone()
  345. NEWSOUND.Parent = PARENT
  346. NEWSOUND.Volume = VOLUME
  347. NEWSOUND.Pitch = PITCH
  348. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  349. NEWSOUND:play()
  350. if DOESLOOP == true then
  351. NEWSOUND.Looped = true
  352. else
  353. repeat wait(1) until NEWSOUND.Playing == false
  354. NEWSOUND:remove()
  355. end
  356. end))
  357. return NEWSOUND
  358. end
  359.  
  360. local EyeSizes={
  361. NumberSequenceKeypoint.new(0,2,0),
  362. NumberSequenceKeypoint.new(1,0,0)
  363. }
  364. local EyeTrans={
  365. NumberSequenceKeypoint.new(0,0.5,0),
  366. NumberSequenceKeypoint.new(1,1,0)
  367. }
  368. local PE=Instance.new("ParticleEmitter",nil)
  369. PE.LightEmission=.8
  370. PE.Color = ColorSequence.new(BRICKC("Alder").Color,BRICKC("Lavender").Color)
  371. PE.Size=NumberSequence.new(EyeSizes)
  372. PE.Transparency=NumberSequence.new(EyeTrans)
  373. PE.Lifetime=NumberRange.new(0.35,1)
  374. PE.Rotation=NumberRange.new(0,360)
  375. PE.Rate=100
  376. PE.VelocitySpread = 10000
  377. PE.Acceleration = Vector3.new(0,85,0)
  378. PE.Drag = 5
  379. PE.Speed = NumberRange.new(0.1,5)
  380. PE.Texture="http://www.roblox.com/asset/?id=1460745664"
  381. PE.ZOffset = 0.5
  382. PE.Name = "PE"
  383. PE.Enabled = false
  384.  
  385. function Fire(art)
  386. local PARTICLES = PE:Clone()
  387. PARTICLES.Parent = art
  388. PARTICLES.Enabled = true
  389. return PARTICLES
  390. end
  391.  
  392. function CFrameFromTopBack(at, top, back)
  393. local right = top:Cross(back)
  394. 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)
  395. end
  396.  
  397. --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})
  398. function WACKYEFFECT(Table)
  399. local TYPE = (Table.EffectType or "Sphere")
  400. local SIZE = (Table.Size or VT(1,1,1))
  401. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  402. local TRANSPARENCY = (Table.Transparency or 0)
  403. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  404. local CFRAME = (Table.CFrame or Torso.CFrame)
  405. local MOVEDIRECTION = (Table.MoveToPos or nil)
  406. local ROTATION1 = (Table.RotationX or 0)
  407. local ROTATION2 = (Table.RotationY or 0)
  408. local ROTATION3 = (Table.RotationZ or 0)
  409. local MATERIAL = (Table.Material or "Neon")
  410. local COLOR = (Table.Color or C3(1,1,1))
  411. local TIME = (Table.Time or 45)
  412. local SOUNDID = (Table.SoundID or nil)
  413. local SOUNDPITCH = (Table.SoundPitch or nil)
  414. local SOUNDVOLUME = (Table.SoundVolume or nil)
  415. coroutine.resume(coroutine.create(function()
  416. local PLAYSSOUND = false
  417. local SOUND = nil
  418. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  419. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  420. PLAYSSOUND = true
  421. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  422. end
  423. EFFECT.Color = COLOR
  424. local MSH = nil
  425. if TYPE == "Sphere" then
  426. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  427. elseif TYPE == "Block" or TYPE == "Box" then
  428. MSH = IT("BlockMesh",EFFECT)
  429. MSH.Scale = SIZE
  430. elseif TYPE == "Wave" then
  431. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  432. elseif TYPE == "Ring" then
  433. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  434. elseif TYPE == "Slash" then
  435. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  436. elseif TYPE == "Round Slash" then
  437. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  438. elseif TYPE == "Swirl" then
  439. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  440. elseif TYPE == "Skull" then
  441. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  442. elseif TYPE == "Crystal" then
  443. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  444. end
  445. if MSH ~= nil then
  446. local MOVESPEED = nil
  447. if MOVEDIRECTION ~= nil then
  448. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  449. end
  450. local GROWTH = SIZE - ENDSIZE
  451. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  452. if TYPE == "Block" then
  453. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  454. else
  455. EFFECT.CFrame = CFRAME
  456. end
  457. for LOOP = 1, TIME+1 do
  458. Swait()
  459. MSH.Scale = MSH.Scale - GROWTH/TIME
  460. if TYPE == "Wave" then
  461. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  462. end
  463. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  464. if TYPE == "Block" then
  465. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  466. else
  467. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  468. end
  469. if MOVEDIRECTION ~= nil then
  470. local ORI = EFFECT.Orientation
  471. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  472. EFFECT.Orientation = ORI
  473. end
  474. end
  475. if PLAYSSOUND == false then
  476. EFFECT:remove()
  477. else
  478. repeat wait(1) until SOUND.Playing == false
  479. EFFECT:remove()
  480. end
  481. else
  482. if PLAYSSOUND == false then
  483. EFFECT:remove()
  484. else
  485. repeat Swait() until SOUND.Playing == false
  486. EFFECT:remove()
  487. end
  488. end
  489. end))
  490. end
  491.  
  492. function MakeForm(PART,TYPE)
  493. if TYPE == "Cyl" then
  494. local MSH = IT("CylinderMesh",PART)
  495. elseif TYPE == "Ball" then
  496. local MSH = IT("SpecialMesh",PART)
  497. MSH.MeshType = "Sphere"
  498. elseif TYPE == "Wedge" then
  499. local MSH = IT("SpecialMesh",PART)
  500. MSH.MeshType = "Wedge"
  501. end
  502. end
  503.  
  504. Debris = game:GetService("Debris")
  505.  
  506. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  507. local DIRECTION = CF(StartPos,EndPos).lookVector
  508. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  509. end
  510.  
  511. local HATWELD = nil
  512. function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
  513. PLAYMAINANIM = false
  514. if WhichPose == "Cast1" then
  515. for i=0, Time, 0.1 / Animation_Speed do
  516. Swait()
  517. if Magic == true then
  518. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  519. end
  520. if Gyro ~= nil and Gyro ~= false then
  521. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  522. end
  523. 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)
  524. 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)
  525. 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)
  526. 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)
  527. 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)
  528. 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)
  529. end
  530. elseif WhichPose == "Cast2" then
  531. for i=0, Time, 0.1 / Animation_Speed do
  532. Swait()
  533. if Magic == true then
  534. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  535. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  536. end
  537. if Gyro ~= nil and Gyro ~= false then
  538. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  539. end
  540. 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)
  541. 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)
  542. 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)
  543. 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)
  544. 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)
  545. 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)
  546. end
  547. elseif WhichPose == "RightArmUp" then
  548. for i=0, Time, 0.1 / Animation_Speed do
  549. Swait()
  550. if Magic == true then
  551. WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  552. end
  553. if Gyro ~= nil and Gyro ~= false then
  554. Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
  555. end
  556. 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)
  557. 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)
  558. 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)
  559. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed)
  560. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed)
  561. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed)
  562. end
  563. elseif WhichPose == "Taunt" then
  564. for i=0, Time, 0.1 / Animation_Speed do
  565. Swait()
  566. 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)
  567. 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)
  568. 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)
  569. 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)
  570. 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)
  571. 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)
  572. end
  573. HATWELD.Part0 = RightArm
  574. HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
  575. CreateSound(221057812,Torso,10,1,false)
  576. for i=0, Time*2, 0.1 / Animation_Speed do
  577. Swait()
  578. 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)
  579. 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)
  580. 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)
  581. 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)
  582. 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)
  583. 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)
  584. end
  585. for i=0, Time, 0.1 / Animation_Speed do
  586. Swait()
  587. 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)
  588. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
  589. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
  590. 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)
  591. 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)
  592. 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)
  593. 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)
  594. end
  595. HATWELD.Part0 = Head
  596. HATWELD.C0 = CF(0,0.35,0)
  597. elseif WhichPose == "Prepare key" then
  598. for i=0, Time, 0.1 / Animation_Speed do
  599. Swait()
  600. if Gyro ~= nil and Gyro ~= false then
  601. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  602. end
  603. 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)
  604. 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)
  605. 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)
  606. 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)
  607. 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)
  608. 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)
  609. end
  610. elseif WhichPose == "Turn key" then
  611. for i=0, Time, 0.1 / Animation_Speed do
  612. Swait()
  613. if Gyro ~= nil and Gyro ~= false then
  614. Gyro.cframe = CF(RootPart.Position,Tors.Position)
  615. end
  616. 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)
  617. 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)
  618. 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)
  619. 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)
  620. 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)
  621. 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)
  622. end
  623. end
  624. PLAYMAINANIM = true
  625. end
  626.  
  627. --Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false})
  628. function Lightning(Table)
  629. local Color = Table.Color or C3(1,1,1)
  630. local StartPos = Table.Start or Torso.Position
  631. local EndPos = Table.End or Mouse.Hit.p
  632. local SegmentLength = Table.SegmentL or 2
  633. local Thickness = Table.Thickness or 0.1
  634. local Dissapear = Table.DoesFade or false
  635. local Parent = Table.Ignore or Character
  636. local MaxDist = Table.MaxDist or 400
  637. local Branches = Table.Branches or false
  638. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  639. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
  640. local LIGHTNINGMODEL = IT("Model",Effects)
  641. LIGHTNINGMODEL.Name = "Lightning"
  642. local LastBolt = nil
  643. for E = 1, DISTANCE do
  644. local ExtraSize = (DISTANCE-E)/15
  645. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  646. PART.Color = Color
  647. MakeForm(PART,"Cyl")
  648. if LastBolt == nil then
  649. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  650. else
  651. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  652. end
  653. LastBolt = PART
  654. if Branches == true then
  655. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  656. if CHOICE == 1 then
  657. local LASTBRANCH = nil
  658. for i = 1, MRANDOM(2,5) do
  659. local ExtraSize2 = ((DISTANCE-E)/25)/i
  660. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  661. PART.Color = Color
  662. MakeForm(PART,"Cyl")
  663. if LASTBRANCH == nil then
  664. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  665. else
  666. PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  667. end
  668. LASTBRANCH = PART
  669. end
  670. end
  671. end
  672. end
  673. if Dissapear == true then
  674. coroutine.resume(coroutine.create(function()
  675. for i = 1, 10 do
  676. Swait()
  677. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  678. if c.ClassName == "Part" then
  679. c.Transparency = i/10
  680. end
  681. end
  682. end
  683. LIGHTNINGMODEL:remove()
  684. end))
  685. elseif Dissapear == false then
  686. Debris:AddItem(LIGHTNINGMODEL,0.1)
  687. end
  688. return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  689. end
  690.  
  691. --//=================================\\
  692. --|| WEAPON CREATION
  693. --\\=================================//
  694.  
  695. for i = 1, 15 do
  696. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/15.2, "Dark stone grey", "FaceGradient", VT(1.01,0.58,1.01),false)
  697. FACE.Color = C3(0,0,0)
  698. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  699. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/35,0), CF(0, 0, 0))
  700. end
  701. local HAT1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2,0.2,2),false)
  702. MakeForm(HAT1,"Cyl")
  703. HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0))
  704. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2.01,0.15,2.01),false)
  705. BELT.Color = C3(15/255,15/255,15/255)
  706. MakeForm(BELT,"Cyl")
  707. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0))
  708. local HAT2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,2.2,1.3),false)
  709. MakeForm(HAT2,"Cyl")
  710. CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0))
  711. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.2,1.31),false)
  712. BELT.Color = C3(15/255,15/255,15/255)
  713. MakeForm(BELT,"Cyl")
  714. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0))
  715. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lavender", "Gem", VT(0.25,0.25,0.1),false)
  716. MakeForm(GEM,"Ball")
  717. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0))
  718. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lavender", "Gem", VT(0.25,0.25,0.1),false)
  719. MakeForm(GEM,"Ball")
  720. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0))
  721. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lavender", "Gem", VT(0.1,0.25,0.25),false)
  722. MakeForm(GEM,"Ball")
  723. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0))
  724. local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lavender", "Gem", VT(0.1,0.25,0.25),false)
  725. MakeForm(GEM,"Ball")
  726. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0))
  727. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  728. BELT.Color = C3(15/255,15/255,15/255)
  729. MakeForm(BELT,"Cyl")
  730. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0))
  731. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  732. BELT.Color = C3(15/255,15/255,15/255)
  733. MakeForm(BELT,"Cyl")
  734. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0))
  735. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  736. BELT.Color = C3(15/255,15/255,15/255)
  737. MakeForm(BELT,"Cyl")
  738. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0))
  739. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false)
  740. BELT.Color = C3(15/255,15/255,15/255)
  741. MakeForm(BELT,"Cyl")
  742. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.35,0), CF(0, 0, 0))
  743. local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,0.5,1.3),false)
  744. MakeForm(BELT,"Ball")
  745. CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0))
  746. Humanoid.DisplayDistanceType = "None"
  747. local naeeym2 = IT("BillboardGui",Character)
  748. naeeym2.AlwaysOnTop = true
  749. naeeym2.Size = UDim2.new(5,35,2,15)
  750. naeeym2.StudsOffset = Vector3.new(0,3,0)
  751. naeeym2.MaxDistance = 75
  752. naeeym2.Adornee = Character.Head
  753. naeeym2.Name = "Name"
  754. naeeym2.PlayerToHideFrom = Player
  755. local tecks2 = IT("TextLabel",naeeym2)
  756. tecks2.BackgroundTransparency = 1
  757. tecks2.TextScaled = true
  758. tecks2.BorderSizePixel = 0
  759. tecks2.Text = "The Warden"
  760. tecks2.Font = "Bodoni"
  761. tecks2.TextSize = 30
  762. tecks2.TextStrokeTransparency = 0.5
  763. tecks2.TextColor3 = C3(0,0,0)
  764. tecks2.TextStrokeColor3 = BRICKC"Lavender".Color
  765. tecks2.Size = UDim2.new(1,0,0.5,0)
  766. tecks2.Parent = naeeym2
  767. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Lilac", "FaceGradient", VT(0.15,0.15,0.15),false)
  768. MakeForm(EYE,"Ball")
  769. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.22,-0.55), CF(0, 0, 0))
  770. local EYE = CreatePart(3, Character, "Neon", 0, 0, "Lilac", "FaceGradient", VT(0.05,0.14,0.05),false)
  771. EYE.Color = C3(0,0,0)
  772. MakeForm(EYE,"Ball")
  773. CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.22,-0.6), CF(0, 0, 0))
  774. local top = Instance.new("Shirt")
  775. top.ShirtTemplate = "rbxassetid://676428254"
  776. top.Parent = Character
  777. top.Name = "Cloth"
  778. local bottom = Instance.new("Pants")
  779. bottom.PantsTemplate = "rbxassetid://676428351"
  780. bottom.Parent = Character
  781. bottom.Name = "Cloth"
  782. for _, c in pairs(Character:GetChildren()) do
  783. if c.ClassName == "Part" and c.Name ~= "FaceGradient" and c.Name ~= "Hat" and c.Name ~= "Gem" then
  784. c.Material = "Neon"
  785. if c:FindFirstChildOfClass("ParticleEmitter") then
  786. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  787. end
  788. c.Color = C3(1,1,1)
  789. if c == Head then
  790. if c:FindFirstChild("face") then
  791. c.face:remove()
  792. end
  793. end
  794. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  795. c:remove()
  796. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  797. c:remove()
  798. end
  799. end
  800. local BODY = {}
  801. for _, c in pairs(Character:GetDescendants()) do
  802. if c:IsA("BasePart") and c.Name ~= "Handle" then
  803. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  804. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  805. end
  806. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  807. elseif c:IsA("JointInstance") then
  808. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  809. end
  810. end
  811. for e = 1, #BODY do
  812. if BODY[e] ~= nil then
  813. local STUFF = BODY[e]
  814. local PART = STUFF[1]
  815. local PARENT = STUFF[2]
  816. local MATERIAL = STUFF[3]
  817. local COLOR = STUFF[4]
  818. local TRANSPARENCY = STUFF[5]
  819. if PART.ClassName == "Part" and PART ~= RootPart then
  820. PART.Material = MATERIAL
  821. PART.Color = COLOR
  822. PART.Transparency = TRANSPARENCY
  823. end
  824. PART.AncestryChanged:Connect(function()
  825. PART.Parent = PARENT
  826. end)
  827. end
  828. end
  829. function refit()
  830. Character.Parent = workspace
  831. for e = 1, #BODY do
  832. if BODY[e] ~= nil then
  833. local STUFF = BODY[e]
  834. local PART = STUFF[1]
  835. local PARENT = STUFF[2]
  836. local MATERIAL = STUFF[3]
  837. local COLOR = STUFF[4]
  838. local TRANSPARENCY = STUFF[5]
  839. if PART.ClassName == "Part" and PART ~= RootPart then
  840. PART.Material = MATERIAL
  841. PART.Color = COLOR
  842. PART.Transparency = TRANSPARENCY
  843. end
  844. if PART.Parent ~= PARENT then
  845. Humanoid:remove()
  846. PART.Parent = PARENT
  847. Humanoid = IT("Humanoid",Character)
  848. end
  849. end
  850. end
  851. end
  852. local SKILLTEXTCOLOR = BRICKC"Lavender".Color
  853. local SKILLFONT = "Bodoni"
  854. local SKILLTEXTSIZE = 7
  855.  
  856. Humanoid.Died:connect(function()
  857. refit()
  858. end)
  859.  
  860. 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")
  861. 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")
  862. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  863. local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  864. local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  865.  
  866. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Warden Zap", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
  867. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Warden Thunder", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
  868. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Inferno Ring", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  869. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Warden Wall", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
  870. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Prison Key", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
  871.  
  872. --//=================================\\
  873. --|| DAMAGING
  874. --\\=================================//
  875.  
  876. function ApplyAoE(POSITION,RANGE,FLING,BURN)
  877. local CHILDREN = workspace:GetDescendants()
  878. for index, CHILD in pairs(CHILDREN) do
  879. if CHILD.ClassName == "Model" and CHILD ~= Character then
  880. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  881. if HUM then
  882. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  883. if TORSO then
  884. if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
  885. CHILD:BreakJoints()
  886. if FLING ~= 0 then
  887. for _, c in pairs(CHILD:GetChildren()) do
  888. if c:IsA("BasePart") and c.Transparency == 0 then
  889. if BURN == true then
  890. Fire(c)
  891. end
  892. local bv = Instance.new("BodyVelocity")
  893. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  894. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  895. bv.Parent = c
  896. Debris:AddItem(bv,0.05)
  897. end
  898. end
  899. end
  900. end
  901. end
  902. end
  903. end
  904. end
  905. end
  906.  
  907. --//=================================\\
  908. --|| ATTACK FUNCTIONS AND STUFF
  909. --\\=================================//
  910.  
  911. function Warden_Zap()
  912. ATTACK = true
  913. Rooted = false
  914. local GYRO = IT("BodyGyro",RootPart)
  915. GYRO.D = 750
  916. GYRO.P = 20000
  917. GYRO.MaxTorque = VT(0,40000000,0)
  918. CreateSound(348663022,RightArm,1.5,2,false)
  919. Pose("Cast1",0.8,1,true,GYRO)
  920. local LightningTable = Lightning({Color = SKILLTEXTCOLOR, Start = RightArm.CFrame*CF(0,-1,0).p, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.2, DoesFade = true, Ignore = Character, MaxDist = 100, Branches = false})
  921. local Hitpos = LightningTable.End
  922. ApplyAoE(Hitpos,10,35)
  923. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(1,1,1)*15, Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  924. for i = 1, 4 do
  925. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(0,45,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  926. end
  927. Pose("Cast1",0.8,1,true)
  928. GYRO:remove()
  929. ATTACK = false
  930. Rooted = false
  931. end
  932.  
  933. function Warden_Thunder()
  934. ATTACK = true
  935. Rooted = false
  936. local GYRO = IT("BodyGyro",RootPart)
  937. GYRO.D = 750
  938. GYRO.P = 20000
  939. GYRO.MaxTorque = VT(0,40000000,0)
  940. CreateSound(469345336,Torso,3,2,false)
  941. Pose("Cast2",1.5,2,true,GYRO)
  942. coroutine.resume(coroutine.create(function()
  943. local FRAME = RootPart.CFrame
  944. for i = 1, 25 do
  945. local POS = FRAME*CF(MRANDOM(-17,17),0,-i*15)
  946. local LightningTable = Lightning({Color = SKILLTEXTCOLOR, Start = POS*CF(0,85,0).p, End = POS*CF(0,-15,0).p, SegmentL = 3, Thickness = 0.4, DoesFade = true, Ignore = Character, MaxDist = 400, Branches = true})
  947. local Hitpos = LightningTable.End
  948. ApplyAoE(Hitpos,20,15)
  949. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(1,1,1)*15, Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  950. for i = 1, 4 do
  951. WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(0,75,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  952. end
  953. wait(0.05)
  954. end
  955. end))
  956. Pose("Cast2",1.5,0.7,true)
  957. GYRO:remove()
  958. ATTACK = false
  959. Rooted = false
  960. end
  961.  
  962. function Inferno_Ring()
  963. ATTACK = true
  964. Rooted = false
  965. local GYRO = IT("BodyGyro",RootPart)
  966. GYRO.D = 750
  967. GYRO.P = 20000
  968. GYRO.MaxTorque = VT(0,40000000,0)
  969. local FIRE = IT("Model",Effects)
  970. FIRE.Name = "Fire"
  971. local MAIN = CreatePart(3, FIRE, "Neon", 0, 1, "Lavender", "Center", VT(0,0,0))
  972. FIRE.PrimaryPart = MAIN
  973. local FIRES = {}
  974. for i = 1, 45 do
  975. local PRT = CreatePart(3, FIRE, "Neon", 0, 1, "Lavender", "RingPart", VT(3,3,3))
  976. PRT.CFrame = MAIN.CFrame*ANGLES(RAD(0),RAD((360/45)*i),RAD(0))*CF(0,0,20)
  977. local F = Fire(PRT)
  978. table.insert(FIRES,F)
  979. end
  980. repeat
  981. FIRE:SetPrimaryPartCFrame(CF(Mouse.Hit.p))
  982. Pose("Cast1",1.5,0.01,false,GYRO)
  983. until HOLD == true
  984. coroutine.resume(coroutine.create(function()
  985. for i = 1, 4 do
  986. ApplyAoE(MAIN.Position,21,-15,true)
  987. CreateSound(463598785,MAIN,3,1,false)
  988. for E = 1, #FIRES do
  989. if FIRES[E] ~= nil then
  990. FIRES[E].Acceleration = VT(0,300,0)
  991. FIRES[E].Lifetime=NumberRange.new(0.35,1.5)
  992. end
  993. end
  994. wait(0.3)
  995. end
  996. for E = 1, #FIRES do
  997. if FIRES[E] ~= nil then
  998. FIRES[E].Enabled = false
  999. end
  1000. end
  1001. Debris:AddItem(FIRE,5)
  1002. end))
  1003. CreateSound(215395388,RightArm,3,2,false)
  1004. Pose("RightArmUp",1.5,0.5,true)
  1005. GYRO:remove()
  1006. ATTACK = false
  1007. Rooted = false
  1008. end
  1009.  
  1010. function Warden_Wall()
  1011. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 8, Character)
  1012. if HITFLOOR ~= nil then
  1013. if HITFLOOR.Anchored == true then
  1014. local WALL = HITFLOOR:Clone()
  1015. WALL.Size = VT(45,45,5)
  1016. WALL.Parent = Effects
  1017. WALL.Name = "Wall"
  1018. WALL.CFrame = RootPart.CFrame*CF(0,-65/2.1,-5)*ANGLES(RAD(-15),RAD(0),RAD(0))
  1019. CreateSound(130972023,WALL,5,0.8,false)
  1020. ATTACK = true
  1021. Rooted = true
  1022. local HIT = WALL.Touched:Connect(function(hit)
  1023. if hit.Parent ~= Character then
  1024. hit:BreakJoints()
  1025. end
  1026. end)
  1027. coroutine.resume(coroutine.create(function()
  1028. WACKYEFFECT({Time = 35, EffectType = "Box", Size = WALL.Size, Size2 = WALL.Size*2, Transparency = 0, Transparency2 = 1, CFrame = WALL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1029. for i = 1, 90 do
  1030. Swait()
  1031. WALL.CFrame = WALL.CFrame*CF(0,0.5,0)
  1032. end
  1033. HIT:disconnect()
  1034. wait(5)
  1035. for i = 1, 46 do
  1036. Swait()
  1037. WALL.CFrame = WALL.CFrame*CF(0,-1,0)
  1038. end
  1039. WALL:remove()
  1040. end))
  1041. Pose("RightArmUp",1.5,1.2,true)
  1042. ATTACK = false
  1043. Rooted = false
  1044. end
  1045. end
  1046. end
  1047.  
  1048. function Prison_Key()
  1049. if Mouse.Target ~= nil then
  1050. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1051. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1052. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1053. local GYRO = IT("BodyGyro",RootPart)
  1054. GYRO.D = 750
  1055. GYRO.P = 20000
  1056. GYRO.MaxTorque = VT(0,40000000,0)
  1057. local grav = Instance.new("BodyPosition",TORSO)
  1058. grav.D = 15
  1059. grav.P = 20000
  1060. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1061. grav.position = TORSO.Position
  1062. local GYRO2 = IT("BodyGyro",TORSO)
  1063. GYRO2.D = 750
  1064. GYRO2.P = 20000
  1065. GYRO2.MaxTorque = VT(0,40000000,0)
  1066. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1067. grav.Name = "Jail"
  1068. local LOCKPARTS = {}
  1069. ATTACK = true
  1070. Rooted = false
  1071. local LOCK = IT("Model",Effects)
  1072. LOCK.Name = "Lock"
  1073. local LOCK2 = IT("Model",LOCK)
  1074. LOCK2.Name = "Metal"
  1075. --CREATE LOCK--
  1076. local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1))
  1077. LOCK.PrimaryPart = BASE
  1078. BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
  1079. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3))
  1080. PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
  1081. MakeForm(PRT,"Cyl")
  1082. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
  1083. PRT.Color = C3(0,0,0)
  1084. PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
  1085. MakeForm(PRT,"Cyl")
  1086. local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1))
  1087. PRT.Color = C3(0,0,0)
  1088. PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
  1089. for i = 1, 45 do
  1090. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  1091. PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
  1092. end
  1093. local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
  1094. PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
  1095. LOCK2.PrimaryPart = PRT
  1096. ---------------
  1097. local CHILDREN = LOCK:GetDescendants()
  1098. for index, CHILD in pairs(CHILDREN) do
  1099. if CHILD:IsA("BasePart") then
  1100. CHILD.Transparency = 1
  1101. end
  1102. end
  1103. for i = 1, 75 do
  1104. LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
  1105. Swait()
  1106. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1107. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1108. local CHILDREN = LOCK:GetDescendants()
  1109. for index, CHILD in pairs(CHILDREN) do
  1110. if CHILD:IsA("BasePart") then
  1111. CHILD.Transparency = CHILD.Transparency - 1/75
  1112. end
  1113. end
  1114. end
  1115. HUM.DisplayDistanceType = "None"
  1116. local KEY = IT("Model",Effects)
  1117. KEY.Name = "Key"
  1118. --CREATE KEY--
  1119. local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "KeyBase", VT(0.1, 1, 0.1),false)
  1120. KEY.PrimaryPart = KBASE
  1121. KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
  1122. local WLD = weldBetween(RightArm,KBASE)
  1123. for i = 1, 45 do
  1124. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.1, 0.1, 0.1),false)
  1125. PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
  1126. weldBetween(KBASE,PRT)
  1127. end
  1128. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.3, 0.1, 0.1),false)
  1129. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
  1130. weldBetween(KBASE,PRT)
  1131. local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.3, 0.1, 0.1),false)
  1132. PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
  1133. weldBetween(KBASE,PRT)
  1134. --------------
  1135. Rooted = true
  1136. Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
  1137. coroutine.resume(coroutine.create(function()
  1138. for i = 1, 10 do
  1139. Swait()
  1140. GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
  1141. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  1142. end
  1143. CreateSound(1149318312,BASE,5,1,false)
  1144. CreateSound(160772554,BASE,3,1,false)
  1145. LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
  1146. for i = 1, 4 do
  1147. WACKYEFFECT({Time = 35, EffectType = "Crystal", Size = VT(1,1,1), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(1,1.45,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1148. end
  1149. WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1)*25, Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5})
  1150. wait(1)
  1151. TORSO.Parent.Parent = LOCK
  1152. for i = 1, 75 do
  1153. Swait()
  1154. local CHILDREN = KEY:GetDescendants()
  1155. for index, CHILD in pairs(CHILDREN) do
  1156. if CHILD:IsA("BasePart") then
  1157. CHILD.Transparency = i/25
  1158. end
  1159. end
  1160. local CHILDREN = LOCK:GetDescendants()
  1161. for index, CHILD in pairs(CHILDREN) do
  1162. if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
  1163. CHILD.Transparency = CHILD.Transparency + 1/75
  1164. elseif CHILD.ClassName == "Decal" then
  1165. CHILD.Transparency = CHILD.Transparency + 1/75
  1166. end
  1167. end
  1168. end
  1169. TORSO.Parent:ClearAllChildren()
  1170. KEY:remove()
  1171. LOCK:remove()
  1172. end))
  1173. Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
  1174. GYRO:remove()
  1175. ATTACK = false
  1176. Rooted = false
  1177. end
  1178. end
  1179. end
  1180.  
  1181. function Hat()
  1182. ATTACK = true
  1183. Rooted = false
  1184. Pose("Taunt",0.4,1.2,false)
  1185. ATTACK = false
  1186. Rooted = false
  1187. end
  1188.  
  1189. --//=================================\\
  1190. --|| ASSIGN THINGS TO KEYS
  1191. --\\=================================//
  1192.  
  1193. function MouseDown(Mouse)
  1194. HOLD = true
  1195. if ATTACK == false then
  1196. end
  1197. end
  1198.  
  1199. function MouseUp(Mouse)
  1200. HOLD = false
  1201. end
  1202.  
  1203. function KeyDown(Key)
  1204. KEYHOLD = true
  1205. if Key == "z" and ATTACK == false then
  1206. Warden_Zap()
  1207. end
  1208.  
  1209. if Key == "b" and ATTACK == false then
  1210. Warden_Thunder()
  1211. end
  1212.  
  1213. if Key == "c" and ATTACK == false then
  1214. Inferno_Ring()
  1215. end
  1216.  
  1217. if Key == "v" and ATTACK == false then
  1218. Warden_Wall()
  1219. end
  1220.  
  1221. if Key == "x" and ATTACK == false then
  1222. Prison_Key()
  1223. end
  1224.  
  1225. if Key == "t" and ATTACK == false then
  1226. Hat()
  1227. end
  1228. end
  1229.  
  1230. function KeyUp(Key)
  1231. KEYHOLD = false
  1232. end
  1233.  
  1234. Mouse.Button1Down:connect(function(NEWKEY)
  1235. MouseDown(NEWKEY)
  1236. end)
  1237. Mouse.Button1Up:connect(function(NEWKEY)
  1238. MouseUp(NEWKEY)
  1239. end)
  1240. Mouse.KeyDown:connect(function(NEWKEY)
  1241. KeyDown(NEWKEY)
  1242. end)
  1243. Mouse.KeyUp:connect(function(NEWKEY)
  1244. KeyUp(NEWKEY)
  1245. end)
  1246.  
  1247. --//=================================\\
  1248. --\\=================================//
  1249.  
  1250.  
  1251. function unanchor()
  1252. if UNANCHOR == true then
  1253. g = Character:GetChildren()
  1254. for i = 1, #g do
  1255. if g[i].ClassName == "Part" then
  1256. g[i].Anchored = false
  1257. end
  1258. end
  1259. end
  1260. end
  1261.  
  1262.  
  1263. --//=================================\\
  1264. --|| WRAP THE WHOLE SCRIPT UP
  1265. --\\=================================//
  1266.  
  1267. Humanoid.Changed:connect(function(Jump)
  1268. if Jump == "Jump" and (Disable_Jump == true) then
  1269. Humanoid.Jump = false
  1270. end
  1271. end)
  1272.  
  1273. while true do
  1274. Swait()
  1275. script.Parent = WEAPONGUI
  1276. Humanoid.Parent = Character
  1277. if Humanoid then
  1278. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1279. IDLEANIMATION:Play()
  1280. end
  1281. if ANIMATE.Parent == Character then
  1282. ANIMATE:Destroy()
  1283. end
  1284. SINE = SINE + CHANGE
  1285. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1286. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1287. Humanoid.HipHeight = 1
  1288. Humanoid.Name = "Warden"
  1289. Humanoid.PlatformStand = false
  1290. if PLAYMAINANIM == true then
  1291. if TORSOVELOCITY < 1 then
  1292. 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)
  1293. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1294. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1295. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1296. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), 0.15 / Animation_Speed)
  1297. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1298. elseif TORSOVELOCITY > 1 then
  1299. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1300. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1301. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-35), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1302. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-35), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1303. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-20)), 0.15 / Animation_Speed)
  1304. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(10)), 0.15 / Animation_Speed)
  1305. end
  1306. end
  1307. unanchor()
  1308. Humanoid.MaxHealth = "inf"
  1309. Humanoid.Health = "inf"
  1310. if Rooted == false then
  1311. Disable_Jump = false
  1312. Humanoid.WalkSpeed = Speed
  1313. elseif Rooted == true then
  1314. Disable_Jump = true
  1315. Humanoid.WalkSpeed = 0
  1316. end
  1317. for _, c in pairs(Character:GetChildren()) do
  1318. if c.ClassName == "Part" and c.Name ~= "Eye" then
  1319. c.Material = "Neon"
  1320. if c:FindFirstChildOfClass("ParticleEmitter") then
  1321. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1322. end
  1323. c.Color = C3(1,1,1)
  1324. if c == Head then
  1325. if c:FindFirstChild("face") then
  1326. c.face:remove()
  1327. end
  1328. end
  1329. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  1330. c:remove()
  1331. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1332. c:remove()
  1333. end
  1334. end
  1335. sick.SoundId = "rbxassetid://1494340971"
  1336. sick.Looped = true
  1337. sick.Pitch = 1
  1338. sick.Volume = 3
  1339. sick:Resume()
  1340. sick.Parent = Torso
  1341. refit()
  1342. if Head:FindFirstChildOfClass("Sound") then
  1343. Head:FindFirstChildOfClass("Sound"):remove()
  1344. end
  1345. end
  1346.  
  1347. --//=================================\\
  1348. --\\=================================//
  1349.  
  1350.  
  1351.  
  1352.  
  1353.  
  1354. --//====================================================\\--
  1355. --|| END OF SCRIPT
  1356. --\\====================================================//--
  1357. end
  1358. end
  1359.  
  1360. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  1361. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  1362. function onKeyPress(inputObject, gameProcessedEvent)
  1363. if inputObject.KeyCode == Enum.KeyCode.K then
  1364.  
  1365. --//====================================================\\--
  1366. --|| CREATED BY SHACKLUSTER
  1367. --\\====================================================//--
  1368.  
  1369. wait(0.2)
  1370.  
  1371. Player = game:GetService("Players").LocalPlayer
  1372. PlayerGui = Player.PlayerGui
  1373. Cam = workspace.CurrentCamera
  1374. Backpack = Player.Backpack
  1375. Character = Player.Character
  1376. Humanoid = Character.Humanoid
  1377. Mouse = Player:GetMouse()
  1378. RootPart = Character["HumanoidRootPart"]
  1379. Torso = Character["Torso"]
  1380. Head = Character["Head"]
  1381. RightArm = Character["Right Arm"]
  1382. LeftArm = Character["Left Arm"]
  1383. RightLeg = Character["Right Leg"]
  1384. LeftLeg = Character["Left Leg"]
  1385. RootJoint = RootPart["RootJoint"]
  1386. Neck = Torso["Neck"]
  1387. RightShoulder = Torso["Right Shoulder"]
  1388. LeftShoulder = Torso["Left Shoulder"]
  1389. RightHip = Torso["Right Hip"]
  1390. LeftHip = Torso["Left Hip"]
  1391. local sick = Instance.new("Sound",Torso)
  1392. sick.SoundId = "rbxassetid://848439234"
  1393. sick.Looped = true
  1394. sick.Pitch = 1
  1395. sick.Volume = 3
  1396. sick:Play()
  1397.  
  1398. IT = Instance.new
  1399. CF = CFrame.new
  1400. VT = Vector3.new
  1401. RAD = math.rad
  1402. C3 = Color3.new
  1403. UD2 = UDim2.new
  1404. BRICKC = BrickColor.new
  1405. ANGLES = CFrame.Angles
  1406. EULER = CFrame.fromEulerAnglesXYZ
  1407. COS = math.cos
  1408. ACOS = math.acos
  1409. SIN = math.sin
  1410. ASIN = math.asin
  1411. ABS = math.abs
  1412. MRANDOM = math.random
  1413. FLOOR = math.floor
  1414.  
  1415. --//=================================\\
  1416. --|| USEFUL VALUES
  1417. --\\=================================//
  1418.  
  1419. Animation_Speed = 3
  1420. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  1421. local Speed = 35
  1422. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1423. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  1424. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  1425. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  1426. local DAMAGEMULTIPLIER = 1
  1427. local ANIM = "Idle"
  1428. local ATTACK = false
  1429. local EQUIPPED = false
  1430. local HOLD = false
  1431. local COMBO = 1
  1432. local Rooted = false
  1433. local SINE = 0
  1434. local KEYHOLD = false
  1435. local CHANGE = 2 / Animation_Speed
  1436. local WALKINGANIM = false
  1437. local VALUE1 = false
  1438. local VALUE2 = false
  1439. local ROBLOXIDLEANIMATION = IT("Animation")
  1440. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  1441. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1442. --ROBLOXIDLEANIMATION.Parent = Humanoid
  1443. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  1444. WEAPONGUI.Name = "Weapon GUI"
  1445. local Effects = IT("Folder", Character)
  1446. Effects.Name = "Effects"
  1447. local ANIMATOR = Humanoid.Animator
  1448. local ANIMATE = Character.Animate
  1449. local UNANCHOR = true
  1450. local LAUGHS = {834001699,834001752,834001797,834001828}
  1451. local SONGS = {534861083,530959353,1534958855,0}
  1452. local CHOICE = MRANDOM(1,4)
  1453.  
  1454. --//=================================\\
  1455. --\\=================================//
  1456.  
  1457.  
  1458. --//=================================\\
  1459. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  1460. --\\=================================//
  1461.  
  1462. ArtificialHB = Instance.new("BindableEvent", script)
  1463. ArtificialHB.Name = "ArtificialHB"
  1464.  
  1465. script:WaitForChild("ArtificialHB")
  1466.  
  1467. frame = Frame_Speed
  1468. tf = 0
  1469. allowframeloss = false
  1470. tossremainder = false
  1471. lastframe = tick()
  1472. script.ArtificialHB:Fire()
  1473.  
  1474. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1475. tf = tf + s
  1476. if tf >= frame then
  1477. if allowframeloss then
  1478. script.ArtificialHB:Fire()
  1479. lastframe = tick()
  1480. else
  1481. for i = 1, math.floor(tf / frame) do
  1482. script.ArtificialHB:Fire()
  1483. end
  1484. lastframe = tick()
  1485. end
  1486. if tossremainder then
  1487. tf = 0
  1488. else
  1489. tf = tf - frame * math.floor(tf / frame)
  1490. end
  1491. end
  1492. end)
  1493.  
  1494. --//=================================\\
  1495. --\\=================================//
  1496.  
  1497. --//=================================\\
  1498. --|| SOME FUNCTIONS
  1499. --\\=================================//
  1500.  
  1501. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1502. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1503. end
  1504.  
  1505. function PositiveAngle(NUMBER)
  1506. if NUMBER >= 0 then
  1507. NUMBER = 0
  1508. end
  1509. return NUMBER
  1510. end
  1511.  
  1512. function NegativeAngle(NUMBER)
  1513. if NUMBER <= 0 then
  1514. NUMBER = 0
  1515. end
  1516. return NUMBER
  1517. end
  1518.  
  1519. function Swait(NUMBER)
  1520. if NUMBER == 0 or NUMBER == nil then
  1521. ArtificialHB.Event:wait()
  1522. else
  1523. for i = 1, NUMBER do
  1524. ArtificialHB.Event:wait()
  1525. end
  1526. end
  1527. end
  1528.  
  1529. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  1530. local NEWMESH = IT(MESH)
  1531. if MESH == "SpecialMesh" then
  1532. NEWMESH.MeshType = MESHTYPE
  1533. if MESHID ~= "nil" and MESHID ~= "" then
  1534. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  1535. end
  1536. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  1537. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  1538. end
  1539. end
  1540. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  1541. NEWMESH.Scale = SCALE
  1542. NEWMESH.Parent = PARENT
  1543. return NEWMESH
  1544. end
  1545.  
  1546. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  1547. local NEWPART = IT("Part")
  1548. NEWPART.formFactor = FORMFACTOR
  1549. NEWPART.Reflectance = REFLECTANCE
  1550. NEWPART.Transparency = TRANSPARENCY
  1551. NEWPART.CanCollide = false
  1552. NEWPART.Locked = true
  1553. NEWPART.Anchored = true
  1554. if ANCHOR == false then
  1555. NEWPART.Anchored = false
  1556. end
  1557. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  1558. NEWPART.Name = NAME
  1559. NEWPART.Size = SIZE
  1560. NEWPART.Position = Torso.Position
  1561. NEWPART.Material = MATERIAL
  1562. NEWPART:BreakJoints()
  1563. NEWPART.Parent = PARENT
  1564. return NEWPART
  1565. end
  1566.  
  1567. local function weldBetween(a, b)
  1568. local weldd = IT("Weld")
  1569. weldd.Part0 = a
  1570. weldd.Part1 = b
  1571. weldd.C0 = CF()
  1572. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1573. weldd.Parent = a
  1574. return weldd
  1575. end
  1576.  
  1577.  
  1578. function QuaternionFromCFrame(cf)
  1579. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1580. local trace = m00 + m11 + m22
  1581. if trace > 0 then
  1582. local s = math.sqrt(1 + trace)
  1583. local recip = 0.5 / s
  1584. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1585. else
  1586. local i = 0
  1587. if m11 > m00 then
  1588. i = 1
  1589. end
  1590. if m22 > (i == 0 and m00 or m11) then
  1591. i = 2
  1592. end
  1593. if i == 0 then
  1594. local s = math.sqrt(m00 - m11 - m22 + 1)
  1595. local recip = 0.5 / s
  1596. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1597. elseif i == 1 then
  1598. local s = math.sqrt(m11 - m22 - m00 + 1)
  1599. local recip = 0.5 / s
  1600. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1601. elseif i == 2 then
  1602. local s = math.sqrt(m22 - m00 - m11 + 1)
  1603. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1604. end
  1605. end
  1606. end
  1607.  
  1608. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1609. local xs, ys, zs = x + x, y + y, z + z
  1610. local wx, wy, wz = w * xs, w * ys, w * zs
  1611. local xx = x * xs
  1612. local xy = x * ys
  1613. local xz = x * zs
  1614. local yy = y * ys
  1615. local yz = y * zs
  1616. local zz = z * zs
  1617. 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))
  1618. end
  1619.  
  1620. function QuaternionSlerp(a, b, t)
  1621. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1622. local startInterp, finishInterp;
  1623. if cosTheta >= 0.0001 then
  1624. if (1 - cosTheta) > 0.0001 then
  1625. local theta = ACOS(cosTheta)
  1626. local invSinTheta = 1 / SIN(theta)
  1627. startInterp = SIN((1 - t) * theta) * invSinTheta
  1628. finishInterp = SIN(t * theta) * invSinTheta
  1629. else
  1630. startInterp = 1 - t
  1631. finishInterp = t
  1632. end
  1633. else
  1634. if (1 + cosTheta) > 0.0001 then
  1635. local theta = ACOS(-cosTheta)
  1636. local invSinTheta = 1 / SIN(theta)
  1637. startInterp = SIN((t - 1) * theta) * invSinTheta
  1638. finishInterp = SIN(t * theta) * invSinTheta
  1639. else
  1640. startInterp = t - 1
  1641. finishInterp = t
  1642. end
  1643. end
  1644. 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
  1645. end
  1646.  
  1647. function Clerp(a, b, t)
  1648. local qa = {QuaternionFromCFrame(a)}
  1649. local qb = {QuaternionFromCFrame(b)}
  1650. local ax, ay, az = a.x, a.y, a.z
  1651. local bx, by, bz = b.x, b.y, b.z
  1652. local _t = 1 - t
  1653. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1654. end
  1655.  
  1656. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  1657. local frame = IT("Frame")
  1658. frame.BackgroundTransparency = TRANSPARENCY
  1659. frame.BorderSizePixel = BORDERSIZEPIXEL
  1660. frame.Position = POSITION
  1661. frame.Size = SIZE
  1662. frame.BackgroundColor3 = COLOR
  1663. frame.BorderColor3 = BORDERCOLOR
  1664. frame.Name = NAME
  1665. frame.Parent = PARENT
  1666. return frame
  1667. end
  1668.  
  1669. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1670. local label = IT("TextLabel")
  1671. label.BackgroundTransparency = 1
  1672. label.Size = UD2(1, 0, 1, 0)
  1673. label.Position = UD2(0, 0, 0, 0)
  1674. label.TextColor3 = TEXTCOLOR
  1675. label.TextStrokeTransparency = STROKETRANSPARENCY
  1676. label.TextTransparency = TRANSPARENCY
  1677. label.FontSize = TEXTFONTSIZE
  1678. label.Font = TEXTFONT
  1679. label.BorderSizePixel = BORDERSIZEPIXEL
  1680. label.TextScaled = false
  1681. label.Text = TEXT
  1682. label.Name = NAME
  1683. label.Parent = PARENT
  1684. return label
  1685. end
  1686.  
  1687. function NoOutlines(PART)
  1688. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  1689. end
  1690.  
  1691. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1692. local NEWWELD = IT(TYPE)
  1693. NEWWELD.Part0 = PART0
  1694. NEWWELD.Part1 = PART1
  1695. NEWWELD.C0 = C0
  1696. NEWWELD.C1 = C1
  1697. NEWWELD.Parent = PARENT
  1698. return NEWWELD
  1699. end
  1700.  
  1701. local S = IT("Sound")
  1702. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  1703. local NEWSOUND = nil
  1704. coroutine.resume(coroutine.create(function()
  1705. NEWSOUND = S:Clone()
  1706. NEWSOUND.Parent = PARENT
  1707. NEWSOUND.Volume = VOLUME
  1708. NEWSOUND.Pitch = PITCH
  1709. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1710. NEWSOUND:play()
  1711. if DOESLOOP == true then
  1712. NEWSOUND.Looped = true
  1713. else
  1714. repeat wait(1) until NEWSOUND.Playing == false
  1715. NEWSOUND:remove()
  1716. end
  1717. end))
  1718. return NEWSOUND
  1719. end
  1720.  
  1721. function CFrameFromTopBack(at, top, back)
  1722. local right = top:Cross(back)
  1723. 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)
  1724. end
  1725.  
  1726. --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})
  1727. function WACKYEFFECT(Table)
  1728. local TYPE = (Table.EffectType or "Sphere")
  1729. local SIZE = (Table.Size or VT(1,1,1))
  1730. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  1731. local TRANSPARENCY = (Table.Transparency or 0)
  1732. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  1733. local CFRAME = (Table.CFrame or Torso.CFrame)
  1734. local MOVEDIRECTION = (Table.MoveToPos or nil)
  1735. local ROTATION1 = (Table.RotationX or 0)
  1736. local ROTATION2 = (Table.RotationY or 0)
  1737. local ROTATION3 = (Table.RotationZ or 0)
  1738. local MATERIAL = (Table.Material or "Neon")
  1739. local COLOR = (Table.Color or C3(1,1,1))
  1740. local TIME = (Table.Time or 45)
  1741. local SOUNDID = (Table.SoundID or nil)
  1742. local SOUNDPITCH = (Table.SoundPitch or nil)
  1743. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1744. coroutine.resume(coroutine.create(function()
  1745. local PLAYSSOUND = false
  1746. local SOUND = nil
  1747. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  1748. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1749. PLAYSSOUND = true
  1750. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1751. end
  1752. EFFECT.Color = COLOR
  1753. local MSH = nil
  1754. if TYPE == "Sphere" then
  1755. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  1756. elseif TYPE == "Block" then
  1757. MSH = IT("BlockMesh",EFFECT)
  1758. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  1759. elseif TYPE == "Wave" then
  1760. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1761. elseif TYPE == "Ring" then
  1762. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  1763. elseif TYPE == "Slash" then
  1764. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1765. elseif TYPE == "Round Slash" then
  1766. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1767. elseif TYPE == "Swirl" then
  1768. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1769. elseif TYPE == "Skull" then
  1770. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  1771. elseif TYPE == "Crystal" then
  1772. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  1773. end
  1774. if MSH ~= nil then
  1775. local MOVESPEED = nil
  1776. if MOVEDIRECTION ~= nil then
  1777. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1778. end
  1779. local GROWTH = SIZE - ENDSIZE
  1780. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1781. if TYPE == "Block" then
  1782. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1783. else
  1784. EFFECT.CFrame = CFRAME
  1785. end
  1786. for LOOP = 1, TIME+1 do
  1787. Swait()
  1788. MSH.Scale = MSH.Scale - GROWTH/TIME
  1789. if TYPE == "Wave" then
  1790. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  1791. end
  1792. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1793. if TYPE == "Block" then
  1794. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1795. else
  1796. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1797. end
  1798. if MOVEDIRECTION ~= nil then
  1799. local ORI = EFFECT.Orientation
  1800. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1801. EFFECT.Orientation = ORI
  1802. end
  1803. end
  1804. if PLAYSSOUND == false then
  1805. EFFECT:remove()
  1806. else
  1807. SOUND.Stopped:Connect(function()
  1808. EFFECT:remove()
  1809. end)
  1810. end
  1811. else
  1812. if PLAYSSOUND == false then
  1813. EFFECT:remove()
  1814. else
  1815. repeat Swait() until SOUND.Playing == false
  1816. EFFECT:remove()
  1817. end
  1818. end
  1819. end))
  1820. end
  1821.  
  1822. function MakeForm(PART,TYPE)
  1823. if TYPE == "Cyl" then
  1824. local MSH = IT("CylinderMesh",PART)
  1825. elseif TYPE == "Ball" then
  1826. local MSH = IT("SpecialMesh",PART)
  1827. MSH.MeshType = "Sphere"
  1828. elseif TYPE == "Wedge" then
  1829. local MSH = IT("SpecialMesh",PART)
  1830. MSH.MeshType = "Wedge"
  1831. end
  1832. end
  1833.  
  1834. Debris = game:GetService("Debris")
  1835.  
  1836. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1837. local DIRECTION = CF(StartPos,EndPos).lookVector
  1838. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  1839. end
  1840.  
  1841. function turnto(position)
  1842. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1843. end
  1844.  
  1845. function SpawnTrail(FROM,TO,BIG)
  1846. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  1847. MakeForm(TRAIL,"Cyl")
  1848. local DIST = (FROM - TO).Magnitude
  1849. if BIG == true then
  1850. TRAIL.Size = VT(0.5,DIST,0.5)
  1851. else
  1852. TRAIL.Size = VT(0.25,DIST,0.25)
  1853. end
  1854. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  1855. coroutine.resume(coroutine.create(function()
  1856. for i = 1, 5 do
  1857. Swait()
  1858. TRAIL.Transparency = TRAIL.Transparency + 0.1
  1859. end
  1860. TRAIL:remove()
  1861. end))
  1862. end
  1863.  
  1864. local asd = Instance.new("ParticleEmitter")
  1865. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  1866. asd.LightEmission = .1
  1867. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  1868. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  1869. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  1870. asd.Transparency = bbb
  1871. asd.Size = aaa
  1872. asd.ZOffset = .9
  1873. asd.Acceleration = Vector3.new(0, -15, 0)
  1874. asd.LockedToPart = false
  1875. asd.EmissionDirection = "Back"
  1876. asd.Lifetime = NumberRange.new(1, 2)
  1877. asd.Rotation = NumberRange.new(-100, 100)
  1878. asd.RotSpeed = NumberRange.new(-100, 100)
  1879. asd.Speed = NumberRange.new(10)
  1880. asd.Enabled = false
  1881. asd.VelocitySpread = 999
  1882.  
  1883. function getbloody(victim,amount)
  1884. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  1885. PART.CFrame = victim.CFrame
  1886. local HITPLAYERSOUNDS = {"356551938","264486467"}
  1887. Debris:AddItem(PART,5)
  1888. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1889. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1890. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  1891. local prtcl = asd:Clone()
  1892. prtcl.Parent = PART
  1893. prtcl:Emit(amount*10)
  1894. end
  1895.  
  1896. local Particle = IT("ParticleEmitter",nil)
  1897. Particle.Enabled = false
  1898. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  1899. Particle.LightEmission = 0.5
  1900. Particle.Rate = 150
  1901. Particle.ZOffset = 1
  1902. Particle.Rotation = NumberRange.new(-180, 180)
  1903. Particle.RotSpeed = NumberRange.new(-180, 180)
  1904. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  1905. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
  1906.  
  1907. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  1908. function ParticleEmitter(Table)
  1909. local PRTCL = Particle:Clone()
  1910. local Speed = Table.Speed or 5
  1911. local Drag = Table.Drag or 0
  1912. local Size1 = Table.Size1 or 1
  1913. local Size2 = Table.Size2 or 5
  1914. local Lifetime1 = Table.Lifetime1 or 1
  1915. local Lifetime2 = Table.Lifetime2 or 1.5
  1916. local Parent = Table.Parent or Torso
  1917. local Emit = Table.Emit or 100
  1918. local Offset = Table.Offset or 360
  1919. local Acel = Table.Acel or VT(0,0,0)
  1920. local Enabled = Table.Enabled or false
  1921. PRTCL.Parent = Parent
  1922. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1923. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1924. PRTCL.Speed = NumberRange.new(Speed)
  1925. PRTCL.VelocitySpread = Offset
  1926. PRTCL.Drag = Drag
  1927. PRTCL.Acceleration = Acel
  1928. if Enabled == false then
  1929. PRTCL:Emit(Emit)
  1930. Debris:AddItem(PRTCL,Lifetime2)
  1931. else
  1932. PRTCL.Enabled = true
  1933. end
  1934. return PRTCL
  1935. end
  1936.  
  1937. --//=================================\\
  1938. --|| WEAPON CREATION
  1939. --\\=================================//
  1940.  
  1941. local Handle = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,1.2,0.2),false)
  1942. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0))
  1943. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.8,0.2),false)
  1944. MakeForm(Part,"Wedge")
  1945. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0.2, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1946. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.6),false)
  1947. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1948. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1949. MakeForm(Part,"Cyl")
  1950. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1951. for i = 1, 8 do
  1952. local Piece = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1953. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1954. end
  1955. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1956. MakeForm(Part,"Wedge")
  1957. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1958. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.39,0.41,0.39),false)
  1959. MakeForm(Part,"Cyl")
  1960. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1961. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  1962. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1963. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.5),false)
  1964. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1965. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0,0.6),false)
  1966. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3))
  1967. local RightBarrel = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.28,5,0.28),false)
  1968. MakeForm(RightBarrel,"Cyl")
  1969. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, RightBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0))
  1970. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.2,0.2),false)
  1971. MakeForm(Part,"Wedge")
  1972. CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1973. local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false)
  1974. MakeForm(RightHole,"Cyl")
  1975. CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, RightHole, CF(0, 2.5, 0), CF(0, 0, 0))
  1976. local Handle = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,1.2,0.2),false)
  1977. local LeftArmGraps = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0))
  1978. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.8,0.2),false)
  1979. MakeForm(Part,"Wedge")
  1980. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0.2, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1981. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.6),false)
  1982. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1983. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1984. MakeForm(Part,"Cyl")
  1985. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1986. for i = 1, 8 do
  1987. local Piece = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1988. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1989. end
  1990. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1991. MakeForm(Part,"Wedge")
  1992. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1993. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.39,0.41,0.39),false)
  1994. MakeForm(Part,"Cyl")
  1995. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1996. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  1997. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1998. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.5),false)
  1999. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  2000. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0,0.6),false)
  2001. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3))
  2002. local LeftBarrel = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.28,5,0.28),false)
  2003. MakeForm(LeftBarrel,"Cyl")
  2004. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, LeftBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0))
  2005. local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.2,0.2),false)
  2006. MakeForm(Part,"Wedge")
  2007. CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  2008. local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false)
  2009. MakeForm(LeftHole,"Cyl")
  2010. CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, LeftHole, CF(0, 2.5, 0), CF(0, 0, 0))
  2011. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false)
  2012. MakeForm(Eye,"Ball")
  2013. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  2014. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false)
  2015. MakeForm(Eye,"Ball")
  2016. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  2017. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false)
  2018. MakeForm(Eye,"Ball")
  2019. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  2020. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false)
  2021. MakeForm(Eye,"Ball")
  2022. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  2023. local A = IT("Attachment",Torso)
  2024. A.Position = VT(1,1.3,0)
  2025. A.Orientation = VT(-0.098, -89.999, 0.227)
  2026. local B = IT("Attachment",Torso)
  2027. B.Position = VT(-1.3,-0.6,0)
  2028. B.Orientation = VT(-88.911, -68.808, 158.782)
  2029. local ChainLink = IT("Beam",Torso)
  2030. ChainLink.Texture = "rbxassetid://73042633"
  2031. ChainLink.Color = ColorSequence.new(C3(1,0,0))
  2032. ChainLink.TextureSpeed = 1
  2033. ChainLink.FaceCamera = true
  2034. ChainLink.Width0 = 1
  2035. ChainLink.Width1 = 1
  2036. ChainLink.TextureLength = 3
  2037. ChainLink.Attachment0 = A
  2038. ChainLink.Attachment1 = B
  2039. ChainLink.CurveSize0 = 1.6
  2040. ChainLink.CurveSize1 = 1.6
  2041. ChainLink.FaceCamera = true
  2042. ChainLink.Transparency = NumberSequence.new(0)
  2043. local ChainLink = IT("Beam",Torso)
  2044. ChainLink.Texture = "rbxassetid://73042633"
  2045. ChainLink.Color = ColorSequence.new(C3(1,0,0))
  2046. ChainLink.TextureSpeed = 1
  2047. ChainLink.FaceCamera = true
  2048. ChainLink.Width0 = 1
  2049. ChainLink.Width1 = 1
  2050. ChainLink.TextureLength = 3
  2051. ChainLink.Attachment0 = B
  2052. ChainLink.Attachment1 = A
  2053. ChainLink.CurveSize0 = 1.6
  2054. ChainLink.CurveSize1 = 1.6
  2055. ChainLink.FaceCamera = true
  2056. ChainLink.Transparency = NumberSequence.new(0)
  2057. local A = IT("Attachment",Torso)
  2058. A.Position = VT(1.3,-0.85,0)
  2059. A.Orientation = VT(-0.098, -89.999, 0.227)
  2060. local B = IT("Attachment",Torso)
  2061. B.Position = VT(-1,2,0)
  2062. B.Orientation = VT(-88.911, -68.808, 158.782)
  2063. local ChainLink = IT("Beam",Torso)
  2064. ChainLink.Texture = "rbxassetid://73042633"
  2065. ChainLink.Color = ColorSequence.new(C3(1,0,0))
  2066. ChainLink.TextureSpeed = 1
  2067. ChainLink.FaceCamera = true
  2068. ChainLink.Width0 = 1
  2069. ChainLink.Width1 = 1
  2070. ChainLink.TextureLength = 3
  2071. ChainLink.Attachment0 = A
  2072. ChainLink.Attachment1 = B
  2073. ChainLink.CurveSize0 = 1.3
  2074. ChainLink.CurveSize1 = 1.3
  2075. ChainLink.FaceCamera = true
  2076. ChainLink.Transparency = NumberSequence.new(0)
  2077. local ChainLink = IT("Beam",Torso)
  2078. ChainLink.Texture = "rbxassetid://73042633"
  2079. ChainLink.Color = ColorSequence.new(C3(1,0,0))
  2080. ChainLink.TextureSpeed = 1
  2081. ChainLink.FaceCamera = true
  2082. ChainLink.Width0 = 1
  2083. ChainLink.Width1 = 1
  2084. ChainLink.TextureLength = 3
  2085. ChainLink.Attachment0 = B
  2086. ChainLink.Attachment1 = A
  2087. ChainLink.CurveSize0 = 1.3
  2088. ChainLink.CurveSize1 = 1.3
  2089. ChainLink.FaceCamera = true
  2090. ChainLink.Transparency = NumberSequence.new(0)
  2091.  
  2092. local A = IT("Attachment",RightBarrel)
  2093. A.Position = VT(0,-2.5,0)
  2094. local B = IT("Attachment",RightBarrel)
  2095. B.Position = VT(0,2.5,0)
  2096. local Trail = IT("Trail",RightBarrel)
  2097. Trail.Attachment0 = A
  2098. Trail.Attachment1 = B
  2099. Trail.Lifetime = 0.2
  2100. Trail.Color = ColorSequence.new(BRICKC"Really red".Color)
  2101. Trail.Transparency = NumberSequence.new(0, 1)
  2102. Trail.Enabled = false
  2103.  
  2104. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = RightLeg, Emit = 100, Offset = 360, Enabled = true})
  2105. PRT.LockedToPart = true
  2106. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = LeftLeg, Emit = 100, Offset = 360, Enabled = true})
  2107. PRT.LockedToPart = true
  2108. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.3, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = true})
  2109. PRT.LockedToPart = true
  2110. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = RightArm, Emit = 100, Offset = 360, Enabled = true})
  2111. PRT.LockedToPart = true
  2112. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = LeftArm, Emit = 100, Offset = 360, Enabled = true})
  2113. PRT.LockedToPart = true
  2114. for _, c in pairs(Character:GetDescendants()) do
  2115. if c and c.Parent then
  2116. if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then
  2117. local ACCESSORY = c.Parent
  2118. c.Parent = Character
  2119. if c then
  2120. if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then
  2121. weldBetween(Head,c)
  2122. else
  2123. weldBetween(Torso,c)
  2124. end
  2125. end
  2126. ACCESSORY:remove()
  2127. elseif c.Parent.ClassName ~= "Accessory" and c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  2128. c.Material = "Neon"
  2129. c.Color = C3(0,0,0)
  2130. if c:FindFirstChildOfClass("SpecialMesh") then
  2131. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  2132. end
  2133. if c == Head then
  2134. if c:FindFirstChild("face") then
  2135. c.face:remove()
  2136. end
  2137. end
  2138. elseif c.ClassName == "Part" and c.Name == "Eye" then
  2139. c.Color = C3(1,0,0)
  2140. c.Material = "Neon"
  2141. elseif c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then
  2142. c:remove()
  2143. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  2144. c:remove()
  2145. end
  2146. end
  2147. end
  2148. local BODY = {}
  2149. for _, c in pairs(Character:GetDescendants()) do
  2150. if c:IsA("BasePart") and c.Name ~= "Handle" then
  2151. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  2152. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  2153. end
  2154. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name})
  2155. elseif c:IsA("JointInstance") then
  2156. table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil})
  2157. end
  2158. end
  2159. function refit()
  2160. Character.Parent = workspace
  2161. for e = 1, #BODY do
  2162. if BODY[e] ~= nil then
  2163. local STUFF = BODY[e]
  2164. local PART = STUFF[1]
  2165. local PARENT = STUFF[2]
  2166. local MATERIAL = STUFF[3]
  2167. local COLOR = STUFF[4]
  2168. local TRANSPARENCY = STUFF[5]
  2169. --local SIZE = STUFF[6]
  2170. local NAME = STUFF[7]
  2171. if PART.ClassName == "Part" and PART ~= RootPart then
  2172. PART.Material = MATERIAL
  2173. PART.Transparency = TRANSPARENCY
  2174. PART.Name = NAME
  2175. end
  2176. if PART.Parent ~= PARENT then
  2177. Humanoid:remove()
  2178. PART.Parent = PARENT
  2179. Humanoid = IT("Humanoid",Character)
  2180. end
  2181. end
  2182. end
  2183. end
  2184.  
  2185. local SKILLTEXTCOLOR = C3(1,0,0)
  2186. local SKILLFONT = "Fantasy"
  2187. local SKILLTEXTSIZE = 6
  2188.  
  2189. Humanoid.Died:connect(function()
  2190. refit()
  2191. end)
  2192.  
  2193. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  2194. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  2195. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  2196. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  2197. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  2198. local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.85, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
  2199. local SKILL7FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.85, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame")
  2200.  
  2201. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Fire", SKILLTEXTCOLOR, SKILLTEXTSIZE-1, SKILLFONT, 0, 2, 0, "Text 1")
  2202. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Lift", SKILLTEXTCOLOR, SKILLTEXTSIZE-1, SKILLFONT, 0, 2, 0, "Text 2")
  2203. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Cleave", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  2204. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Lock n' load", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
  2205. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Morning Star", SKILLTEXTCOLOR, SKILLTEXTSIZE+1, SKILLFONT, 0, 2, 0, "Text 5")
  2206. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[G] Deathbound", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 6")
  2207. local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[CLICK] Execute", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7")
  2208.  
  2209. --//=================================\\
  2210. --|| DAMAGE FUNCTIONS
  2211. --\\=================================//
  2212.  
  2213. function StatLabel(CFRAME, TEXT, COLOR)
  2214. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  2215. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  2216. local BODYGYRO = IT("BodyGyro", STATPART)
  2217. game:GetService("Debris"):AddItem(STATPART ,5)
  2218. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  2219. BILLBOARDGUI.Adornee = STATPART
  2220. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  2221. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  2222. BILLBOARDGUI.AlwaysOnTop = false
  2223. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  2224. TEXTLABEL.BackgroundTransparency = 1
  2225. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  2226. TEXTLABEL.Text = TEXT
  2227. TEXTLABEL.Font = SKILLFONT
  2228. TEXTLABEL.FontSize="Size42"
  2229. TEXTLABEL.TextColor3 = COLOR
  2230. TEXTLABEL.TextStrokeTransparency = 0
  2231. TEXTLABEL.TextScaled = true
  2232. TEXTLABEL.TextWrapped = true
  2233. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  2234. for i = 1, 50 do
  2235. Swait()
  2236. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  2237. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  2238. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  2239. end
  2240. THEPART.Parent = nil
  2241. end),STATPART, TEXTLABEL)
  2242. end
  2243.  
  2244. --//=================================\\
  2245. --|| DAMAGING
  2246. --\\=================================//
  2247.  
  2248. function Kill(Char)
  2249. local NewCharacter = IT("Model",Effects)
  2250. NewCharacter.Name = "Ow im ded ;-;"
  2251. for _, c in pairs(Char:GetDescendants()) do
  2252. if c:IsA("BasePart") and c.Transparency == 0 then
  2253. if c.Parent == Char then
  2254. getbloody(c,5)
  2255. end
  2256. c:BreakJoints()
  2257. c.Material = "Glass"
  2258. c.Color = C3(0.5,0,0)
  2259. c.CanCollide = true
  2260. c.Transparency = 0.3
  2261. if c:FindFirstChildOfClass("SpecialMesh") then
  2262. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  2263. end
  2264. if c.Name == "Head" then
  2265. c:ClearAllChildren()
  2266. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  2267. end
  2268. if c.ClassName == "MeshPart" then
  2269. c.TextureID = ""
  2270. end
  2271. if c:FindFirstChildOfClass("BodyPosition") then
  2272. c:FindFirstChildOfClass("BodyPosition"):remove()
  2273. end
  2274. if c:FindFirstChildOfClass("ParticleEmitter") then
  2275. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  2276. end
  2277. c.Parent = NewCharacter
  2278. c.Name = "DeadPart"
  2279. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  2280. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  2281. end
  2282. end
  2283. Char:remove()
  2284. Debris:AddItem(NewCharacter,5)
  2285. end
  2286.  
  2287. function ApplyAoE(POSITION,RANGE,BRUTAL)
  2288. local CHILDREN = workspace:GetDescendants()
  2289. for index, CHILD in pairs(CHILDREN) do
  2290. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2291. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2292. if HUM then
  2293. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2294. if TORSO then
  2295. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  2296. if BRUTAL == true then
  2297. Kill(CHILD)
  2298. else
  2299. CHILD:BreakJoints()
  2300. end
  2301. end
  2302. end
  2303. end
  2304. end
  2305. end
  2306. end
  2307.  
  2308. function BulletDetection(FROM,TO,BRUTAL)
  2309. local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character)
  2310. coroutine.resume(coroutine.create(function()
  2311. if AIMHIT ~= nil then
  2312. if AIMHIT.Parent ~= Character then
  2313. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  2314. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then
  2315. if BRUTAL == true then
  2316. Kill(AIMHIT.Parent)
  2317. else
  2318. getbloody(AIMHIT,15)
  2319. AIMHIT.Parent:BreakJoints()
  2320. if AIMHIT.Name == "Head" then
  2321. AIMHIT.Name = "HEADSHOT"
  2322. AIMHIT:remove()
  2323. end
  2324. end
  2325. else
  2326. if BRUTAL == true then
  2327. Kill(AIMHIT.Parent.Parent)
  2328. else
  2329. AIMHIT.Parent.Parent:BreakJoints()
  2330. end
  2331. end
  2332. end
  2333. end
  2334. end
  2335. end))
  2336. SpawnTrail(FROM,AIMPOS)
  2337. return AIMHIT,AIMPOS,NORMAL
  2338. end
  2339.  
  2340. --//=================================\\
  2341. --|| ATTACK FUNCTIONS AND STUFF
  2342. --\\=================================//
  2343.  
  2344. function Unload()
  2345. ATTACK = true
  2346. Rooted = false
  2347. repeat
  2348. local GYRO = IT("BodyGyro",RootPart)
  2349. GYRO.D = 175
  2350. GYRO.P = 20000
  2351. GYRO.MaxTorque = VT(0,40000,0)
  2352. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2353. if COMBO == 1 then
  2354. COMBO = 2
  2355. for i=0, 0.6, 0.1 / Animation_Speed do
  2356. Swait()
  2357. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2358. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed)
  2359. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed)
  2360. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2361. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2362. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2363. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2364. end
  2365. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame, MoveToPos = LeftHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2366. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2367. CreateSound(145080998, LeftHole, 7, 1, false)
  2368. BulletDetection(LeftHole.Position,Mouse.Hit.p,false)
  2369. for i=0, 0.2, 0.1 / Animation_Speed do
  2370. Swait()
  2371. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed)
  2372. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed)
  2373. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2374. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2375. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2376. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2377. end
  2378. elseif COMBO == 2 then
  2379. COMBO = 1
  2380. for i=0, 0.6, 0.1 / Animation_Speed do
  2381. Swait()
  2382. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2383. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed)
  2384. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed)
  2385. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2386. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2387. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2388. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2389. end
  2390. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = RightHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2391. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2392. CreateSound(145080998, RightHole, 7, 1, false)
  2393. BulletDetection(RightHole.Position,Mouse.Hit.p,false)
  2394. for i=0, 0.2, 0.1 / Animation_Speed do
  2395. Swait()
  2396. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed)
  2397. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed)
  2398. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2399. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2400. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2401. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2402. end
  2403. end
  2404. GYRO:remove()
  2405. until KEYHOLD == false
  2406. ATTACK = false
  2407. Rooted = false
  2408. end
  2409. function Psyo()
  2410. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2411. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  2412. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  2413. if TORSO and HUM.Health > 0 then
  2414. ATTACK = true
  2415. Rooted = false
  2416. local GYRO = IT("BodyGyro",RootPart)
  2417. GYRO.D = 275
  2418. GYRO.P = 20000
  2419. GYRO.MaxTorque = VT(0,40000,0)
  2420. for i=0, 0.8, 0.1 / Animation_Speed do
  2421. Swait()
  2422. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  2423. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2424. 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)
  2425. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2426. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2427. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2428. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2429. end
  2430. local MAGIC = ParticleEmitter({Speed = 5, Drag = 3, Size1 = 1.7, Size2 = 0, Lifetime1 = 1, Lifetime2 = 3, Parent = TORSO, Emit = 100, Offset = 360, Enabled = true})
  2431. MAGIC.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
  2432. local grav = Instance.new("BodyPosition",TORSO)
  2433. grav.D = 1500
  2434. grav.P = 20000
  2435. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2436. grav.position = TORSO.Position+VT(0,15,0)
  2437. Debris:AddItem(grav,10)
  2438. Debris:AddItem(MAGIC,10)
  2439. CreateSound(429459101, Torso, 7, 1, false)
  2440. CreateSound(429459101, TORSO, 7, 1, false)
  2441. for i=0, 1, 0.1 / Animation_Speed do
  2442. Swait()
  2443. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  2444. 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)
  2445. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(-45), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2446. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(125), RAD(45), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2447. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2448. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2449. end
  2450. GYRO:remove()
  2451. ATTACK = false
  2452. Rooted = false
  2453. end
  2454. end
  2455. end
  2456. function Cleave()
  2457. ATTACK = true
  2458. Rooted = false
  2459. local TARGET = nil
  2460. local TORS = nil
  2461. local GYRO = IT("BodyGyro",RootPart)
  2462. GYRO.D = 175
  2463. GYRO.P = 20000
  2464. GYRO.MaxTorque = VT(0,40000,0)
  2465. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2466. local RANGE = 5
  2467. CreateSound(541909867, Torso, 7, 1, false)
  2468. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(12,0.5,12), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2469. for i=0, 1, 0.1 / Animation_Speed do
  2470. Swait()
  2471. RootPart.CFrame = RootPart.CFrame * CF(0,0,-2)
  2472. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2473. local CHILDREN = workspace:GetDescendants()
  2474. for index, CHILD in pairs(CHILDREN) do
  2475. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2476. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2477. if HUM then
  2478. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2479. if TORSO then
  2480. if (TORSO.Position - LeftHole.Position).Magnitude <= RANGE + TORSO.Size.Magnitude/5 then
  2481. RANGE = (TORSO.Position - LeftHole.Position).Magnitude
  2482. TARGET = HUM
  2483. TORS = TORSO
  2484. end
  2485. end
  2486. end
  2487. end
  2488. end
  2489. if TARGET then
  2490. break
  2491. end
  2492. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-80)), 1 / Animation_Speed)
  2493. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(80)), 1 / Animation_Speed)
  2494. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2495. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2496. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2497. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2498. end
  2499. GYRO:remove()
  2500. if TORS and TARGET then
  2501. CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false)
  2502. Rooted = true
  2503. local BODYPOSITION = IT("BodyPosition", TORS)
  2504. BODYPOSITION.P = 2000
  2505. BODYPOSITION.D = 100
  2506. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  2507. for i=0, 1, 0.1 / Animation_Speed do
  2508. Swait()
  2509. TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0))
  2510. BODYPOSITION.Position = TORS.Position
  2511. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed)
  2512. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed)
  2513. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2514. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2515. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2516. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2517. end
  2518. for i=0, 0.4, 0.1 / Animation_Speed do
  2519. Swait()
  2520. TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0))
  2521. BODYPOSITION.Position = TORS.Position
  2522. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed)
  2523. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed)
  2524. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(145), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2525. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2526. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2527. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2528. end
  2529. local LOOP = 0
  2530. local LOOP2 = 0
  2531. for i=0, 5, 0.1 / Animation_Speed do
  2532. Swait()
  2533. LOOP = LOOP + 1
  2534. TORS.Anchored = true
  2535. LOOP2 = LOOP2 + 1
  2536. if LOOP2 >= 5 then
  2537. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = RightHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2538. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2539. CreateSound(145080998, RightHole, 7, 1, false)
  2540. SpawnTrail(RightHole.Position,RightHole.CFrame*CF(0,500,0).p)
  2541. LOOP2 = 0
  2542. getbloody(TORS,1)
  2543. end
  2544. TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0))
  2545. BODYPOSITION.Position = TORS.Position
  2546. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed)
  2547. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed)
  2548. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(145 + 2 * SIN(LOOP / 12)), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2549. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  2550. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2551. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2552. end
  2553. BODYPOSITION:remove()
  2554. if TORS then
  2555. TORS.Anchored = false
  2556. Kill(TORS.Parent)
  2557. end
  2558. end
  2559. ATTACK = false
  2560. Rooted = false
  2561. end
  2562. function Lock_n_Load()
  2563. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2564. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  2565. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  2566. if TORSO and HUM.Health > 0 then
  2567. CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false)
  2568. ATTACK = true
  2569. Rooted = true
  2570. local GYRO = IT("BodyGyro",RootPart)
  2571. GYRO.D = 175
  2572. GYRO.P = 20000
  2573. GYRO.MaxTorque = VT(0,40000,0)
  2574. if COMBO == 1 then
  2575. COMBO = 2
  2576. for i=0, 1, 0.1 / Animation_Speed do
  2577. Swait()
  2578. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  2579. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed)
  2580. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed)
  2581. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2582. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2583. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2584. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2585. end
  2586. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame, MoveToPos = LeftHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2587. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2588. CreateSound(145080998, LeftHole, 7, 1, false)
  2589. BulletDetection(LeftHole.Position,TORSO.Position,false)
  2590. for i=0, 0.4, 0.1 / Animation_Speed do
  2591. Swait()
  2592. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed)
  2593. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed)
  2594. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2595. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2596. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2597. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2598. end
  2599. elseif COMBO == 2 then
  2600. COMBO = 1
  2601. for i=0, 1, 0.1 / Animation_Speed do
  2602. Swait()
  2603. GYRO.cframe = CF(RootPart.Position,TORSO.Position)
  2604. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed)
  2605. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed)
  2606. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2607. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2608. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2609. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2610. end
  2611. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = RightHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2612. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2613. CreateSound(145080998, RightHole, 7, 1, false)
  2614. BulletDetection(RightHole.Position,TORSO.Position,false)
  2615. for i=0, 0.4, 0.1 / Animation_Speed do
  2616. Swait()
  2617. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed)
  2618. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed)
  2619. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2620. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2621. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2622. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2623. end
  2624. end
  2625. GYRO:remove()
  2626. ATTACK = false
  2627. Rooted = false
  2628. end
  2629. end
  2630. end
  2631. function Morning_Star()
  2632. ATTACK = true
  2633. Rooted = true
  2634. CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false)
  2635. for i=0, 1, 0.1 / Animation_Speed do
  2636. Swait()
  2637. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2638. 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)
  2639. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2640. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2641. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2642. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2643. end
  2644. coroutine.resume(coroutine.create(function()
  2645. local POS = Mouse.Hit.p
  2646. local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Strike", VT(0,2000,0))
  2647. MakeForm(RAY,"Cyl")
  2648. local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Strike", VT(0,0,0))
  2649. MakeForm(SPHERE,"Ball")
  2650. local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(0,0,0))
  2651. MakeForm(SHIELD,"Ball")
  2652. SHIELD.CFrame = CF(POS)
  2653. RAY.CFrame = CF(POS)
  2654. SPHERE.CFrame = CF(POS)
  2655. CreateSound(440145570, SPHERE, 10, 0.8, false)
  2656. CreateSound(415700134, SPHERE, 10, 0.8, false)
  2657. for i = 1, 200 do
  2658. Swait()
  2659. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2660. RAY.Size = RAY.Size + VT(0.05,0,0.05)
  2661. SPHERE.Size = SPHERE.Size + VT(2,2,2)
  2662. SHIELD.Size = SPHERE.Size + VT(3,3,3)
  2663. ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
  2664. end
  2665. for i = 1, 45 do
  2666. Swait()
  2667. RAY.Transparency = RAY.Transparency + 1/45
  2668. SPHERE.Transparency = RAY.Transparency
  2669. SHIELD.Transparency = SPHERE.Transparency + 1/45
  2670. end
  2671. RAY:remove()
  2672. SHIELD:remove()
  2673. SPHERE:remove()
  2674. end))
  2675. for i=0, 1, 0.1 / Animation_Speed do
  2676. Swait()
  2677. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  2678. 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)
  2679. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2680. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2681. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2682. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2683. end
  2684. ATTACK = false
  2685. Rooted = false
  2686. end
  2687. function Deathbound()
  2688. CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false)
  2689. ATTACK = true
  2690. Rooted = true
  2691. for i=0, 1, 0.1 / Animation_Speed do
  2692. Swait()
  2693. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2694. 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)
  2695. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2696. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2697. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2698. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2699. end
  2700. local DONE = false
  2701. local GATE = nil
  2702. local GATESPIN = true
  2703. coroutine.resume(coroutine.create(function()
  2704. repeat
  2705. Swait()
  2706. if GATE ~= nil then
  2707. GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0))
  2708. end
  2709. until GATESPIN == false
  2710. end))
  2711. coroutine.resume(coroutine.create(function()
  2712. repeat
  2713. Swait()
  2714. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.2 - 0.25 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2715. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2716. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2717. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2718. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2719. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2720. until DONE == true
  2721. Swait(50)
  2722. for i = 1, 35 do
  2723. Swait(4)
  2724. local FIRED = false
  2725. local CHILDREN = workspace:GetDescendants()
  2726. for index, CHILD in pairs(CHILDREN) do
  2727. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2728. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2729. if HUM then
  2730. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2731. if TORSO then
  2732. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  2733. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  2734. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  2735. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 145080998, SoundPitch = 1.5, SoundVolume = 6})
  2736. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2737. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  2738. Kill(CHILD)
  2739. FIRED = true
  2740. break
  2741. end
  2742. end
  2743. end
  2744. end
  2745. end
  2746. if FIRED == false then
  2747. local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  2748. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 145080998, SoundPitch = 1.5, SoundVolume = 6})
  2749. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2750. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  2751. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  2752. if HITBOD ~= nil then
  2753. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  2754. Kill(HITBOD.Parent)
  2755. end
  2756. end
  2757. end
  2758. end
  2759. for i = 1, 45 do
  2760. Swait()
  2761. GATE.Size = GATE.Size - VT(3,0,3)
  2762. end
  2763. GATESPIN = false
  2764. GATE:remove()
  2765. end))
  2766. Swait(15)
  2767. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character)
  2768. GATE = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Gate", VT(0,0,0))
  2769. local DECAL = IT("Decal",GATE)
  2770. DECAL.Texture = "http://www.roblox.com/asset/?id=1526406096"
  2771. DECAL.Face = "Top"
  2772. GATE.CFrame = CF(HITPOS)
  2773. CreateSound(160772554, GATE, 7, 1.3, false)
  2774. for i = 1, 45 do
  2775. Swait()
  2776. GATE.Size = GATE.Size + VT(3,0,3)
  2777. end
  2778. CreateSound(145080998, RightHole, 7, 1, false)
  2779. CreateSound(145080998, LeftHole, 7, 1, false)
  2780. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2781. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2782. ATTACK = false
  2783. Rooted = false
  2784. DONE = true
  2785. end
  2786. function Execute()
  2787. ATTACK = true
  2788. Rooted = false
  2789. local Part = CreatePart(3, Character, "Neon", 0, 0, "Mid gray", "Part", VT(0,1,4),false)
  2790. Part.Color = C3(0,0,0)
  2791. MakeForm(Part,"Wedge")
  2792. Part.CanCollide = true
  2793. CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, Part, CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(135)) *CF(0, 0.5, 0), CF(0, 0, 0))
  2794. for i=0, 1, 0.1 / Animation_Speed do
  2795. Swait()
  2796. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed)
  2797. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed)
  2798. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2799. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2800. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2801. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2802. end
  2803. Trail.Enabled = true
  2804. CreateSound(541909867, RightBarrel, 7, 1, false)
  2805. local TOCH = Part.Touched:Connect(function(hit)
  2806. if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent ~= Character then
  2807. Kill(hit.Parent)
  2808. end
  2809. end)
  2810. for i=0, 0.35, 0.1 / Animation_Speed do
  2811. Swait()
  2812. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed)
  2813. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 1 / Animation_Speed)
  2814. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.25, -0.3) * ANGLES(RAD(50), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2815. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2816. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2817. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2818. end
  2819. TOCH:disconnect()
  2820. Trail.Enabled = false
  2821. for i=0, 0.35, 0.1 / Animation_Speed do
  2822. Swait()
  2823. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(60)), 1 / Animation_Speed)
  2824. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-55)), 1 / Animation_Speed)
  2825. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.25, -0.3) * ANGLES(RAD(50), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2826. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2827. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2828. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2829. end
  2830. Part:remove()
  2831. ATTACK = false
  2832. Rooted = false
  2833. end
  2834.  
  2835. --//=================================\\
  2836. --|| ASSIGN THINGS TO KEYS
  2837. --\\=================================//
  2838.  
  2839. function MouseDown(Mouse)
  2840. if ATTACK == false then
  2841. Execute()
  2842. end
  2843. end
  2844.  
  2845. function MouseUp(Mouse)
  2846. HOLD = false
  2847. end
  2848.  
  2849. function KeyDown(Key)
  2850. KEYHOLD = true
  2851. if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
  2852. if Key == "z" and ATTACK == false then
  2853. Unload()
  2854.  
  2855. elseif Key == "b" and ATTACK == false then
  2856. Psyo()
  2857.  
  2858. elseif Key == "c" and ATTACK == false then
  2859. Cleave()
  2860.  
  2861. elseif Key == "v" and ATTACK == false then
  2862. Lock_n_Load()
  2863.  
  2864. elseif Key == "g" and ATTACK == false then
  2865. Deathbound()
  2866.  
  2867. elseif Key == "x" and ATTACK == false then
  2868. Morning_Star()
  2869.  
  2870. elseif Key == "t" then
  2871. CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false)
  2872. elseif Key == "1" and ATTACK == false then
  2873. if CHOICE ~= 1 then
  2874. CHOICE = 1
  2875. sick:Play()
  2876. end
  2877. elseif Key == "2" and ATTACK == false then
  2878. if CHOICE ~= 2 then
  2879. CHOICE = 2
  2880. sick:Play()
  2881. end
  2882. elseif Key == "3" and ATTACK == false then
  2883. if CHOICE ~= 3 then
  2884. CHOICE = 3
  2885. sick:Play()
  2886. end
  2887. elseif Key == "4" and ATTACK == false then
  2888. if CHOICE ~= 4 then
  2889. CHOICE = 4
  2890. sick:Play()
  2891. end
  2892. end
  2893. end
  2894. end
  2895.  
  2896. function KeyUp(Key)
  2897. if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
  2898. KEYHOLD = false
  2899. end
  2900. end
  2901.  
  2902. Mouse.Button1Down:connect(function(NEWKEY)
  2903. MouseDown(NEWKEY)
  2904. end)
  2905. Mouse.Button1Up:connect(function(NEWKEY)
  2906. MouseUp(NEWKEY)
  2907. end)
  2908. Mouse.KeyDown:connect(function(NEWKEY)
  2909. KeyDown(NEWKEY)
  2910. end)
  2911. Mouse.KeyUp:connect(function(NEWKEY)
  2912. KeyUp(NEWKEY)
  2913. end)
  2914.  
  2915. --//=================================\\
  2916. --\\=================================//
  2917.  
  2918.  
  2919. function unanchor()
  2920. if UNANCHOR == true then
  2921. g = Character:GetChildren()
  2922. for i = 1, #g do
  2923. if g[i].ClassName == "Part" then
  2924. g[i].Anchored = false
  2925. end
  2926. end
  2927. end
  2928. end
  2929.  
  2930.  
  2931. --//=================================\\
  2932. --|| WRAP THE WHOLE SCRIPT UP
  2933. --\\=================================//
  2934.  
  2935. Humanoid.Changed:connect(function(Jump)
  2936. if Jump == "Jump" and (Disable_Jump == true) then
  2937. Humanoid.Jump = false
  2938. end
  2939. end)
  2940.  
  2941. while true do
  2942. Swait()
  2943. Humanoid.HipHeight = 1.5
  2944. script.Parent = WEAPONGUI
  2945. ANIMATE.Parent = nil
  2946. if Humanoid then
  2947. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2948. IDLEANIMATION:Play()
  2949. end
  2950. SINE = SINE + CHANGE
  2951. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2952. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2953. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2954. if ATTACK == false then
  2955. if TORSOVELOCITY < 1 then
  2956. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed)
  2957. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed)
  2958. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2959. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2960. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2961. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2962. elseif TORSOVELOCITY > 1 then
  2963. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed)
  2964. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed)
  2965. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2966. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2967. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2968. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2969. end
  2970. end
  2971. RightArmGrasp.C0 = Clerp(RightArmGrasp.C0, CF(0, -0.815+0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(90-4.5 * SIN(SINE / 12)), RAD(-1.5 * SIN(SINE / 12)), RAD(0)), 1 / Animation_Speed)
  2972. LeftArmGraps.C0 = Clerp(LeftArmGraps.C0, CF(0, -0.815+0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(90-4.5 * SIN(SINE / 12)), RAD(1.5 * SIN(SINE / 12)), RAD(0)), 1 / Animation_Speed)
  2973. unanchor()
  2974. Humanoid.MaxHealth = "inf"
  2975. Humanoid.Health = "inf"
  2976. if Rooted == false then
  2977. Disable_Jump = false
  2978. Humanoid.WalkSpeed = Speed
  2979. elseif Rooted == true then
  2980. Disable_Jump = true
  2981. Humanoid.WalkSpeed = 0
  2982. end
  2983. for _, c in pairs(Character:GetDescendants()) do
  2984. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  2985. c.Material = "Neon"
  2986. c.Color = C3(0,0,0)
  2987. if c:FindFirstChildOfClass("SpecialMesh") then
  2988. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  2989. end
  2990. if c == Head then
  2991. if c:FindFirstChild("face") then
  2992. c.face:remove()
  2993. end
  2994. end
  2995. elseif c.ClassName == "Part" and c.Name == "Eye" then
  2996. c.Color = C3(1,0,0)
  2997. c.Material = "Neon"
  2998. elseif c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then
  2999. c:remove()
  3000. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  3001. c:remove()
  3002. end
  3003. end
  3004. refit()
  3005. Humanoid.Name = "Deadeyes"
  3006. sick.Parent = Torso
  3007. sick:resume()
  3008. sick.Volume = 5
  3009. sick.Pitch = 1
  3010. sick.SoundId = "rbxassetid://"..SONGS[CHOICE]
  3011. if Head:FindFirstChildOfClass("Sound") then
  3012. Head:FindFirstChildOfClass("Sound"):remove()
  3013. end
  3014. end
  3015.  
  3016. --//=================================\\
  3017. --\\=================================//
  3018.  
  3019.  
  3020.  
  3021.  
  3022.  
  3023. --//====================================================\\--
  3024. --|| END OF SCRIPT
  3025. --\\====================================================//--
  3026.  
  3027. end
  3028. end
  3029.  
  3030. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  3031. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  3032. function onKeyPress(inputObject, gameProcessedEvent)
  3033. if inputObject.KeyCode == Enum.KeyCode.L then
  3034. --[[ by iliketrainsornot ]]--
  3035.  
  3036. warn("w h y")
  3037. print("this cancer is made by iliketrainsornot")
  3038. plr = game:GetService("Players").LocalPlayer
  3039. char = plr.Character
  3040. Instance.new("ForceField",char).Visible = false
  3041. hed = char.Head
  3042. torso = char.Torso
  3043. mouse = plr:GetMouse()
  3044. rarm = char["Right Arm"]
  3045. larm = char["Left Arm"]
  3046. rleg = char["Right Leg"]
  3047. lleg = char["Left Leg"]
  3048. rarm.Transparency = 1
  3049. larm.Transparency = 1
  3050. lleg.Transparency = 1
  3051. rleg.Transparency = 1
  3052. torso.Transparency = 1
  3053. activ = false
  3054. sound = false
  3055. Create = LoadLibrary("RbxUtility").Create
  3056. char.Animate:Destroy()
  3057. hum = char:FindFirstChildOfClass("Humanoid")
  3058. hum.Animator:Destroy()
  3059. hum.MaxHealth = math.huge
  3060. hum.Health = math.huge
  3061. hum.Name = "despacito"
  3062. hum.JumpPower = 125
  3063. hum.WalkSpeed = 65
  3064. for _,c in pairs(char:GetChildren()) do
  3065. if (c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "ShirtGraphic") and c.Name ~= "Cloth" then
  3066. c:Remove()
  3067. end
  3068. end
  3069. hed:FindFirstChildOfClass("SpecialMesh").MeshId = "http://www.roblox.com/asset/?id=1047997"
  3070. hed:FindFirstChildOfClass("SpecialMesh").TextureId = "http://www.roblox.com/asset/?id=1047998"
  3071. hed.face:Destroy()
  3072. hed:FindFirstChildOfClass("SpecialMesh").Scale = Vector3.new(2.5, 2.5, 2.5)
  3073. hed:FindFirstChildOfClass("SpecialMesh").Offset = Vector3.new(0,1.8,0)
  3074. redhead = Instance.new("Part",torso)
  3075. redhead.Size = torso.Size
  3076. redhead.Transparency = 0
  3077. weld = Instance.new("Weld",redhead)
  3078. weld.Part0 = redhead
  3079. weld.Part1 = torso
  3080. weld.C0 = CFrame.Angles(math.rad(-180), math.rad(-90), math.rad(0))
  3081. redhead1 = Instance.new("SpecialMesh",redhead)
  3082. redhead1.MeshId = hed:FindFirstChildOfClass("SpecialMesh").MeshId
  3083. redhead1.Scale = Vector3.new(2.85,2.85,2.85)
  3084. redhead1.TextureId = "http://www.roblox.com/asset/?id=1047998"
  3085. redhead.CanCollide = false
  3086. redhead1.Offset = Vector3.new(0,0.3,0)
  3087. redhead1.VertexColor = Vector3.new(255,0,0)
  3088. redhead = Instance.new("Part",rleg)
  3089. redhead.Size = rleg.Size
  3090. weld = Instance.new("Weld",redhead)
  3091. weld.Part0 = redhead
  3092. weld.Part1 = torso
  3093. weld.C0 = CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  3094. redhead1 = Instance.new("SpecialMesh",redhead)
  3095. redhead1.MeshId = "rbxassetid://696339842"
  3096. redhead1.Scale = Vector3.new(1.3, 1.6, 0.8)
  3097. redhead.CanCollide = false
  3098. redhead1.Offset = Vector3.new(0, 0, -2.1)
  3099. redhead1.VertexColor = Vector3.new(0,0,0)
  3100. redhead2 = Instance.new("Decal", redhead)
  3101. redhead2.Color3 = Color3.fromRGB(0,0,0)
  3102. redhead2.Texture = "rbxassetid://696339520"
  3103. despacitotext = Instance.new("Part",hed)
  3104. despacitotext.Name = "despacito"
  3105. despacitotext.Size = Vector3.new(6.5,3,5.5)
  3106. despacitotext.Transparency = 1
  3107. despacitotext.CanCollide = false
  3108. weld = Instance.new("Weld",redhead)
  3109. weld.Part0 = despacitotext
  3110. weld.Part1 = hed
  3111. surfacegui = Instance.new("SurfaceGui",despacitotext)
  3112. text = Instance.new("TextLabel",surfacegui)
  3113. text.Size = UDim2.new(1,0,1,0)
  3114. text.TextSize = 150
  3115. text.Font = Enum.Font.Legacy
  3116. text.BackgroundTransparency = 1
  3117. surfacegui.AlwaysOnTop = true
  3118. text.TextStrokeColor3 = Color3.fromRGB(255,0,0)
  3119. text.TextStrokeTransparency = 0
  3120. text.TextColor3 = Color3.fromRGB(0,0,0)
  3121. text.Text = "despacito"
  3122. despacito = Instance.new("Sound",char)
  3123. despacito.SoundId = "rbxassetid://1345639272"
  3124. despacito.Volume = 10
  3125. despacito.EmitterSize = 100
  3126. despacito:Play()
  3127. despacito.Name = "despacito"
  3128. local seffect = Instance.new("ReverbSoundEffect",despacito)
  3129. char.ChildRemoved:connect(function(h)
  3130. if h == despacito then
  3131. despacito = Instance.new("Sound",char)
  3132. despacito.SoundId = "rbxassetid://1345639272"
  3133. despacito.Volume = 10
  3134. despacito.EmitterSize = 100
  3135. despacito:Play()
  3136. despacito.Name = "despacito"
  3137. despacito.TimePosition = despacito.TimePosition
  3138. local seffect = Instance.new("ReverbSoundEffect",despacito)
  3139. end
  3140. end)
  3141. function RemoveOutlines(part)
  3142. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  3143. end
  3144. CFuncs = {
  3145. Part = {
  3146. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  3147. local Part = Create("Part")({
  3148. Parent = Parent,
  3149. Reflectance = Reflectance,
  3150. Transparency = Transparency,
  3151. CanCollide = false,
  3152. Locked = true,
  3153. BrickColor = BrickColor.new(tostring(BColor)),
  3154. Name = Name,
  3155. Size = Size,
  3156. Material = Material
  3157. })
  3158. RemoveOutlines(Part)
  3159. if Size == Vector3.new() then
  3160. Part.Size = Vector3.new(0.2, 0.2, 0.2)
  3161. else
  3162. Part.Size = Size
  3163. end
  3164. return Part
  3165. end
  3166. },
  3167. Mesh = {
  3168. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  3169. local Msh = Create(Mesh)({
  3170. Parent = Part,
  3171. Offset = OffSet,
  3172. Scale = Scale
  3173. })
  3174. if Mesh == "SpecialMesh" then
  3175. Msh.MeshType = MeshType
  3176. Msh.MeshId = MeshId
  3177. end
  3178. return Msh
  3179. end
  3180. },
  3181. Weld = {
  3182. Create = function(Parent, Part0, Part1, C0, C1)
  3183. local Weld = Create("Weld")({
  3184. Parent = Parent,
  3185. Part0 = Part0,
  3186. Part1 = Part1,
  3187. C0 = C0,
  3188. C1 = C1
  3189. })
  3190. return Weld
  3191. end
  3192. },
  3193. Sound = {
  3194. Create = function(id, par, vol, pit)
  3195. local Sound = Create("Sound")({
  3196. Volume = vol,
  3197. Pitch = pit or 1,
  3198. SoundId = "rbxassetid://" .. id,
  3199. Parent = par or workspace
  3200. })
  3201. Sound:play()
  3202. return Sound
  3203. end
  3204. },
  3205. Decal = {
  3206. Create = function(Color, Texture, Transparency, Name, Parent)
  3207. local Decal = Create("Decal")({
  3208. Color3 = Color,
  3209. Texture = "rbxassetid://" .. Texture,
  3210. Transparency = Transparency,
  3211. Name = Name,
  3212. Parent = Parent
  3213. })
  3214. return Decal
  3215. end
  3216. },
  3217. BillboardGui = {
  3218. Create = function(Parent, Image, Position, Size)
  3219. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  3220. BillPar.CFrame = CFrame.new(Position)
  3221. local Bill = Create("BillboardGui")({
  3222. Parent = BillPar,
  3223. Adornee = BillPar,
  3224. Size = UDim2.new(1, 0, 1, 0),
  3225. SizeOffset = Vector2.new(Size, Size)
  3226. })
  3227. local d = Create("ImageLabel", Bill)({
  3228. Parent = Bill,
  3229. BackgroundTransparency = 1,
  3230. Size = UDim2.new(1, 0, 1, 0),
  3231. Image = "rbxassetid://" .. Image
  3232. })
  3233. return BillPar
  3234. end
  3235. },
  3236. ParticleEmitter = {
  3237. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  3238. local Particle = Create("ParticleEmitter")({
  3239. Parent = Parent,
  3240. Color = ColorSequence.new(Color1, Color2),
  3241. LightEmission = LightEmission,
  3242. Size = Size,
  3243. Texture = Texture,
  3244. Transparency = Transparency,
  3245. ZOffset = ZOffset,
  3246. Acceleration = Accel,
  3247. Drag = Drag,
  3248. LockedToPart = LockedToPart,
  3249. VelocityInheritance = VelocityInheritance,
  3250. EmissionDirection = EmissionDirection,
  3251. Enabled = Enabled,
  3252. Lifetime = LifeTime,
  3253. Rate = Rate,
  3254. Rotation = Rotation,
  3255. RotSpeed = RotSpeed,
  3256. Speed = Speed,
  3257. VelocitySpread = VelocitySpread
  3258. })
  3259. return Particle
  3260. end
  3261. },
  3262. CreateTemplate = {}
  3263. }
  3264. function text(Pos, Text, Time, Color)
  3265. local Rate = 0.03333333333333333
  3266. local Pos = Pos or Vector3.new(0, 0, 0)
  3267. local Text = Text or ""
  3268. local Time = Time or 2
  3269. local Color = Color or Color3.new(1, 0, 1)
  3270. local EffectPart = CFuncs.Part.Create(hed, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  3271. EffectPart.Anchored = true
  3272. local BillboardGui = Create("BillboardGui")({
  3273. Size = UDim2.new(3, 0, 3, 0),
  3274. Adornee = EffectPart,
  3275. Parent = EffectPart
  3276. })
  3277. local TextLabel = Create("TextLabel")({
  3278. BackgroundTransparency = 1,
  3279. Size = UDim2.new(1, 0, 1, 0),
  3280. TextSize = 55,
  3281. Text = Text,
  3282. Font = Enum.Font.Cartoon,
  3283. TextColor3 = Color3.fromRGB(255,255,255),
  3284. TextScaled = false,
  3285. Parent = BillboardGui
  3286. })
  3287. game.Debris:AddItem(EffectPart, Time)
  3288. EffectPart.Parent = game:GetService("Workspace")
  3289. delay(0, function()
  3290. local Frames = Time / Rate
  3291. for Frame = 1, Frames do
  3292. wait(Rate)
  3293. local Percent = Frame / Frames
  3294. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  3295. TextLabel.TextTransparency = Percent
  3296. end
  3297. if EffectPart and EffectPart.Parent then
  3298. EffectPart:Destroy()
  3299. end
  3300. end)
  3301. end
  3302. ArtificialHB = Instance.new("BindableEvent", script)
  3303. ArtificialHB.Name = "ArtificialHB"
  3304.  
  3305. script:WaitForChild("ArtificialHB")
  3306. Frame_Speed = 1 / 60
  3307. frame = Frame_Speed
  3308. tf = 0
  3309. allowframeloss = false
  3310. tossremainder = false
  3311. lastframe = tick()
  3312. script.ArtificialHB:Fire()
  3313.  
  3314. game:GetService("RunService").Heartbeat:connect(function(s, p)
  3315. tf = tf + s
  3316. if tf >= frame then
  3317. if allowframeloss then
  3318. script.ArtificialHB:Fire()
  3319. lastframe = tick()
  3320. else
  3321. for i = 1, math.floor(tf / frame) do
  3322. script.ArtificialHB:Fire()
  3323. end
  3324. lastframe = tick()
  3325. end
  3326. if tossremainder then
  3327. tf = 0
  3328. else
  3329. tf = tf - frame * math.floor(tf / frame)
  3330. end
  3331. end
  3332. end)
  3333.  
  3334. function CreateSound(ID, PARENT, VOLUME, PITCH)
  3335. --coroutine.resume(coroutine.create(function()
  3336. local NEWSOUND = Instance.new("Sound", PARENT)
  3337. NEWSOUND.Volume = VOLUME
  3338. NEWSOUND.Pitch = PITCH
  3339. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  3340. NEWSOUND:play()
  3341. game:GetService("Debris"):AddItem(NEWSOUND, 100)
  3342. return NEWSOUND
  3343. --end))
  3344. end
  3345. function Swait(NUMBER)
  3346. if NUMBER == 0 or NUMBER == nil then
  3347. ArtificialHB.Event:wait()
  3348. else
  3349. for i = 1, NUMBER do
  3350. ArtificialHB.Event:wait()
  3351. end
  3352. end
  3353. end
  3354. function itstimetostop()
  3355. sound = true
  3356. local snd = Instance.new("Sound",char)
  3357. snd.SoundId = "rbxassetid://358468903"
  3358. snd.Volume = 10
  3359. snd.TimePosition = 0.25
  3360. snd.EmitterSize = 350
  3361. snd:Play()
  3362. text(hed.CFrame * CFrame.new(0, 0, hed.Size.Y / 2).p + Vector3.new(0, 6, 0), "ITS TIME TO STOP", 2, Color3.fromRGB(255,255,255))
  3363. wait(2)
  3364. text(hed.CFrame * CFrame.new(0, 0, hed.Size.Y / 2).p + Vector3.new(0, 6, 0), "ITS TIME TO STOP OKAY", 2, Color3.fromRGB(255,255,255))
  3365. wait(2.6)
  3366. text(hed.CFrame * CFrame.new(0, 0, hed.Size.Y / 2).p + Vector3.new(0, 6, 0), "NO MORE", 2, Color3.fromRGB(255,255,255))
  3367. sound = false
  3368. end
  3369. function youbetterstop()
  3370. sound = true
  3371. local snd = Instance.new("Sound",char)
  3372. snd.SoundId = "rbxassetid://1246891273"
  3373. snd.Volume = 10
  3374. snd.TimePosition = 1.2
  3375. snd:Play()
  3376. snd.EmitterSize = 100
  3377. text(hed.CFrame * CFrame.new(0, 0, hed.Size.Y / 2).p + Vector3.new(0, 6, 0), "youbetterstop.mp3", 5.2, Color3.fromRGB(255,255,255))
  3378. wait(5.2)
  3379. sound = false
  3380. end
  3381. function ecksdee()
  3382. sound = true
  3383. local snd = Instance.new("Sound",char)
  3384. snd.SoundId = "rbxassetid://1486343908"
  3385. snd.Volume = 10
  3386. snd:Play()
  3387. snd.EmitterSize = 150
  3388. text(hed.CFrame * CFrame.new(0, 0, hed.Size.Y / 2).p + Vector3.new(0, 6, 0), "ecks", 1, Color3.fromRGB(255,255,255))
  3389. wait(0.95)
  3390. text(hed.CFrame * CFrame.new(0, 0, hed.Size.Y / 2).p + Vector3.new(0, 6, 0), "dee", 1, Color3.fromRGB(255,255,255))
  3391. sound = false
  3392. end
  3393. function lukatthisdude()
  3394. sound = true
  3395. local snd = Instance.new("Sound",char)
  3396. snd.SoundId = "rbxassetid://525498255"
  3397. snd.Volume = 10
  3398. snd:Play()
  3399. snd.EmitterSize = 300
  3400. text(hed.CFrame * CFrame.new(0, 0, hed.Size.Y / 2).p + Vector3.new(0, 6, 0), "lookatthisdude.mp3", 27, Color3.fromRGB(255,255,255))
  3401. wait(27)
  3402. sound = false
  3403. end
  3404. function stopdespacito()
  3405. if despacito.Playing == true then
  3406. despacito:Pause()
  3407. elseif despacito.Playing == false then
  3408. despacito:Play()
  3409. end
  3410. end
  3411. function bruh()
  3412. sound = true
  3413. local snd = Instance.new("Sound",char)
  3414. snd.SoundId = "rbxassetid://170040190"
  3415. snd.Volume = 10
  3416. snd:Play()
  3417. snd.EmitterSize = 150
  3418. text(hed.CFrame * CFrame.new(0, 0, hed.Size.Y / 2).p + Vector3.new(0, 6, 0), "bRUH", 1.7, Color3.fromRGB(255,255,255))
  3419. wait(1.7)
  3420. sound = false
  3421. end
  3422. SHIELD = false
  3423. function shield()
  3424. IT = Instance.new
  3425. VT = Vector3.new
  3426. RootPart = char.HumanoidRootPart
  3427. CF = CFrame.new
  3428. if SHIELD == false then
  3429. SHIELD = true
  3430. warn("YO TENGO")
  3431. coroutine.resume(coroutine.create(function()
  3432. local yotengo = IT("Part",char)
  3433. yotengo.Size = VT(20,30,0)
  3434. yotengo.CFrame = RootPart.CFrame * CF(0,3,-7)
  3435. yotengo.Anchored = true
  3436. local mesh = IT("SpecialMesh",yotengo)
  3437. mesh.MeshType = "FileMesh"
  3438. mesh.MeshId = "http://www.roblox.com/asset/?id=15158180"
  3439. mesh.TextureId = "http://www.roblox.com/asset/?id=15158167"
  3440. mesh.Scale = VT(3,3,3)
  3441. CreateSound("1236609502", yotengo, 50, 1)
  3442. local woosh = yotengo.Touched:Connect(function(hit)
  3443. if hit.Parent.ClassName == "Model" then
  3444. hit.Parent:BreakJoints()
  3445. CreateSound("978878312", hit, 2, 1)
  3446. elseif hit.ClassName == "Part" and hit.Anchored == false then
  3447. hit:remove()
  3448. end
  3449. end)
  3450. woosh:disconnect()
  3451. CreateSound("1236609502", yotengo, 50, 1)
  3452. yotengo.Anchored = false
  3453. local bv = Instance.new("BodyVelocity")
  3454. bv.maxForce = Vector3.new(4e9, 4e9, 4e9)
  3455. bv.velocity = RootPart.CFrame.lookVector*300
  3456. bv.Parent = yotengo
  3457. bv.Name = "speedy"
  3458. local paw = yotengo.Touched:Connect(function(hit)
  3459. if hit.Parent.ClassName == "Model" then
  3460. yotengo:remove()
  3461. hit.Parent:BreakJoints()
  3462. wait(0.1)
  3463. hit.Parent:ClearAllChildren()
  3464. end
  3465. end)
  3466. end))
  3467. elseif SHIELD == true then
  3468. SHIELD = false
  3469. end
  3470. end
  3471. mouse.KeyDown:connect(function(k)
  3472. if k == "z" and sound == false then
  3473. itstimetostop()
  3474. elseif k == "x" and sound == false then
  3475. youbetterstop()
  3476. elseif k == "c" and sound == false then
  3477. ecksdee()
  3478. elseif k == "v" and sound == false then
  3479. lukatthisdude()
  3480. elseif k == "b" then
  3481. stopdespacito()
  3482. elseif k == "n" and sound == false then
  3483. bruh()
  3484. elseif k == "q" and sound == true then
  3485. print("sounds delay resetted!")
  3486. sound = false
  3487. elseif k == "f" then
  3488. shield()
  3489. end
  3490. end)
  3491.  
  3492. end
  3493. end
  3494.  
  3495. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Advertisement
Add Comment
Please, Sign In to add comment