Advertisement
cobblecorn

Untitled

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