carlosname

Untitled

Apr 24th, 2020
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[
  2.  
  3.  
  4.  
  5.  
  6. Hello there... if you logged this then can you plz still give me credit for making this
  7. I'm sorry, i couldn't help it...
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14. --]]
  15. wait(1 / 60)
  16. Effects = { }
  17. local Player = game.Players.localPlayer
  18. local Character = Player.Character
  19. local Humanoid = Character.Humanoid
  20. local mouse = Player:GetMouse()
  21. local LeftArm = Character["Left Arm"]
  22. local RightArm = Character["Right Arm"]
  23. local LeftLeg = Character["Left Leg"]
  24. local RightLeg = Character["Right Leg"]
  25. local Head = Character.Head
  26. local Torso = Character.Torso
  27. local cam = game.Workspace.CurrentCamera
  28. local RootPart = Character.HumanoidRootPart
  29. local RootJoint = RootPart.RootJoint
  30. local equipped = false
  31. local attack = false
  32. local Anim = 'Idle'
  33. local idle = 0
  34. local attacktype = 1
  35. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  36. local velocity = RootPart.Velocity.y
  37. local sine = 0
  38. local change = 1
  39. local grabbed = false
  40. local cn = CFrame.new
  41. local mr = math.rad
  42. local angles = CFrame.Angles
  43. local ud = UDim2.new
  44. local c3 = Color3.new
  45. local autofind = false
  46. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  47. Humanoid.Animator:Destroy()
  48. Character.Animate:Destroy()
  49. EFS = Instance.new("Sound")
  50. EFS.Parent = Torso
  51. EFS.SoundId = "rbxassetid://0"
  52. EFS.Volume = 4
  53. EFS.Looped = false
  54. EFS:Play()
  55. EFS2 = Instance.new("Sound")
  56. EFS2.Parent = Torso
  57. EFS2.SoundId = "rbxassetid://177339878"
  58. EFS2.Volume = 0.2
  59. EFS2.Looped = true
  60. EFS2:Play()
  61. EFS3 = Instance.new("Sound")
  62. EFS3.Parent = Torso
  63. EFS3.SoundId = "rbxassetid://585364476"
  64. EFS3.Volume = 0.8
  65. EFS3.Looped = false
  66.  
  67.  
  68.  
  69. ATS = Instance.new("Sound")
  70. ATS.Parent = Torso
  71. ATS.SoundId = "rbxassetid://347611423"
  72. ATS.Volume = 2
  73. ATS.Looped = false
  74.  
  75.  
  76. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  77. ff.Visible = false
  78.  
  79.  
  80. Character.Humanoid.WalkSpeed = 3
  81.  
  82.  
  83.  
  84. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  85. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  86. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  87.  
  88. RSH, LSH = nil, nil
  89.  
  90. RW = Instance.new("Weld")
  91. LW = Instance.new("Weld")
  92.  
  93. RH = Torso["Right Hip"]
  94. LH = Torso["Left Hip"]
  95.  
  96. RSH = Torso["Right Shoulder"]
  97. LSH = Torso["Left Shoulder"]
  98.  
  99. RSH.Parent = nil
  100. LSH.Parent = nil
  101.  
  102. RW.Name = "RW"
  103. RW.Part0 = Torso
  104. RW.C0 = cn(1.5, 0.5, 0)
  105. RW.C1 = cn(0, 0.5, 0)
  106. RW.Part1 = RightArm
  107. RW.Parent = Torso
  108.  
  109. LW.Name = "LW"
  110. LW.Part0 = Torso
  111. LW.C0 = cn(-1.5, 0.5, 0)
  112. LW.C1 = cn(0, 0.5, 0)
  113. LW.Part1 = LeftArm
  114. LW.Parent = Torso
  115.  
  116. function clerp(a, b, t)
  117. local qa = {
  118. QuaternionFromCFrame(a)
  119. }
  120. local qb = {
  121. QuaternionFromCFrame(b)
  122. }
  123. local ax, ay, az = a.x, a.y, a.z
  124. local bx, by, bz = b.x, b.y, b.z
  125. local _t = 1 - t
  126. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  127. end
  128.  
  129. function QuaternionFromCFrame(cf)
  130. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  131. local trace = m00 + m11 + m22
  132. if trace > 0 then
  133. local s = math.sqrt(1 + trace)
  134. local recip = 0.5 / s
  135. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  136. else
  137. local i = 0
  138. if m11 > m00 then
  139. i = 1
  140. end
  141. if m22 > (i == 0 and m00 or m11) then
  142. i = 2
  143. end
  144. if i == 0 then
  145. local s = math.sqrt(m00 - m11 - m22 + 1)
  146. local recip = 0.5 / s
  147. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  148. elseif i == 1 then
  149. local s = math.sqrt(m11 - m22 - m00 + 1)
  150. local recip = 0.5 / s
  151. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  152. elseif i == 2 then
  153. local s = math.sqrt(m22 - m00 - m11 + 1)
  154. local recip = 0.5 / s
  155. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  156. end
  157. end
  158. end
  159.  
  160. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  161. local xs, ys, zs = x + x, y + y, z + z
  162. local wx, wy, wz = w * xs, w * ys, w * zs
  163. local xx = x * xs
  164. local xy = x * ys
  165. local xz = x * zs
  166. local yy = y * ys
  167. local yz = y * zs
  168. local zz = z * zs
  169. 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))
  170. end
  171.  
  172. function QuaternionSlerp(a, b, t)
  173. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  174. local startInterp, finishInterp;
  175. if cosTheta >= 0.0001 then
  176. if (1 - cosTheta) > 0.0001 then
  177. local theta = math.acos(cosTheta)
  178. local invSinTheta = 1 / math.sin(theta)
  179. startInterp = math.sin((1 - t) * theta) * invSinTheta
  180. finishInterp = math.sin(t * theta) * invSinTheta
  181. else
  182. startInterp = 1 - t
  183. finishInterp = t
  184. end
  185. else
  186. if (1 + cosTheta) > 0.0001 then
  187. local theta = math.acos(-cosTheta)
  188. local invSinTheta = 1 / math.sin(theta)
  189. startInterp = math.sin((t - 1) * theta) * invSinTheta
  190. finishInterp = math.sin(t * theta) * invSinTheta
  191. else
  192. startInterp = t - 1
  193. finishInterp = t
  194. end
  195. end
  196. 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
  197. end
  198.  
  199. function swait(num)
  200. if num == 0 or num == nil then
  201. game:service'RunService'.RenderStepped:wait(0)
  202. else
  203. for i = 0, num do
  204. game:service'RunService'.RenderStepped:wait(0)
  205. end
  206. end
  207. end
  208.  
  209. local RbxUtility = LoadLibrary("RbxUtility")
  210. local Create = RbxUtility.Create
  211.  
  212. function RemoveOutlines(part)
  213. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  214. end
  215.  
  216. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  217. local Part = Create("Part"){
  218. formFactor = FormFactor,
  219. Parent = Parent,
  220. Reflectance = Reflectance,
  221. Transparency = Transparency,
  222. CanCollide = false,
  223. Locked = true,
  224. BrickColor = BrickColor.new(tostring(BColor)),
  225. Name = Name,
  226. Size = Size,
  227. Material = Material,
  228. }
  229. RemoveOutlines(Part)
  230. return Part
  231. end
  232.  
  233. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  234. local Msh = Create(Mesh){
  235. Parent = Part,
  236. Offset = OffSet,
  237. Scale = Scale,
  238. }
  239. if Mesh == "SpecialMesh" then
  240. Msh.MeshType = MeshType
  241. Msh.MeshId = MeshId
  242. end
  243. return Msh
  244. end
  245.  
  246. function CreateWeld(Parent, Part0, Part1, C0, C1)
  247. local Weld = Create("Weld"){
  248. Parent = Parent,
  249. Part0 = Part0,
  250. Part1 = Part1,
  251. C0 = C0,
  252. C1 = C1,
  253. }
  254. return Weld
  255. end
  256.  
  257. function rayCast(Position, Direction, Range, Ignore)
  258. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  259. end
  260.  
  261. function CreateSound(id, par, vol, pit)
  262. coroutine.resume(coroutine.create(function()
  263. local sou = Instance.new("Sound", par or workspace)
  264. sou.Volume = vol
  265. sou.Pitch = pit or 1
  266. sou.SoundId = id
  267. wait()
  268. sou:play()
  269. game:GetService("Debris"):AddItem(sou, 6)
  270. end))
  271. end
  272.  
  273. local function getclosest(obj, distance)
  274. local last, lastx = distance + 1
  275. for i, v in pairs(workspace:GetChildren()) do
  276. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  277. local t = v.Torso
  278. local dist = (t.Position - obj.Position).magnitude
  279. if dist <= distance then
  280. if dist < last then
  281. last = dist
  282. lastx = v
  283. end
  284. end
  285. end
  286. end
  287. return lastx
  288. end
  289.  
  290. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  291. for i, v in pairs(hit:GetChildren()) do
  292. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  293. local find = v:FindFirstChild("Hitz")
  294. if not find then
  295. if v.Parent:findFirstChild("Head") then
  296. local BillG = Create("BillboardGui"){
  297. Parent = v.Parent.Head,
  298. Size = UDim2.new(1, 0, 1, 0),
  299. Adornee = v.Parent.Head,
  300. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  301. }
  302. local TL = Create("TextLabel"){
  303. Parent = BillG,
  304. Size = UDim2.new(3, 3, 3, 3),
  305. BackgroundTransparency = 1,
  306. Text = tostring(damage).."-",
  307. TextColor3 = Color1.Color,
  308. TextStrokeColor3 = Color2.Color,
  309. TextStrokeTransparency = 0,
  310. TextXAlignment = Enum.TextXAlignment.Center,
  311. TextYAlignment = Enum.TextYAlignment.Center,
  312. FontSize = Enum.FontSize.Size18,
  313. Font = "ArialBold",
  314. }
  315. coroutine.resume(coroutine.create(function()
  316. wait(1)
  317. for i = 0, 1, .1 do
  318. wait(.1)
  319. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  320. end
  321. BillG:Destroy()
  322. end))
  323. end
  324. v.Health = v.Health - damage
  325. local bool = Create("BoolValue"){
  326. Parent = v,
  327. Name = 'Hitz',
  328. }
  329. if HSound ~= nil and HPitch ~= nil then
  330. CreateSound(HSound, hit, 1, HPitch)
  331. end
  332. game:GetService("Debris"):AddItem(bool, cooldown)
  333. end
  334. end
  335. end
  336. end
  337.  
  338.  
  339. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  340. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  341. prt.Anchored = true
  342. prt.CFrame = cframe
  343. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  344. game:GetService("Debris"):AddItem(prt, 10)
  345. if Type == 1 or Type == nil then
  346. table.insert(Effects, {
  347. prt,
  348. "Block1",
  349. delay,
  350. x3,
  351. y3,
  352. z3,
  353. msh
  354. })
  355. elseif Type == 2 then
  356. table.insert(Effects, {
  357. prt,
  358. "Block2",
  359. delay,
  360. x3,
  361. y3,
  362. z3,
  363. msh
  364. })
  365. end
  366. end
  367.  
  368. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  369. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  370. prt.Anchored = true
  371. prt.CFrame = cframe
  372. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  373. game:GetService("Debris"):AddItem(prt, 10)
  374. table.insert(Effects, {
  375. prt,
  376. "Cylinder",
  377. delay,
  378. x3,
  379. y3,
  380. z3,
  381. msh
  382. })
  383. end
  384.  
  385. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  386. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  387. prt.Anchored = true
  388. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  389. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  390. game:GetService("Debris"):AddItem(prt, 10)
  391. table.insert(Effects, {
  392. prt,
  393. "Cylinder",
  394. delay,
  395. x3,
  396. y3,
  397. z3,
  398. msh
  399. })
  400. end
  401.  
  402. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  403. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  404. prt.Anchored = true
  405. prt.CFrame = cframe
  406. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  407. game:GetService("Debris"):AddItem(prt, 10)
  408. table.insert(Effects, {
  409. prt,
  410. "Cylinder",
  411. delay,
  412. x3,
  413. y3,
  414. z3,
  415. msh
  416. })
  417. end
  418.  
  419. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  420. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  421. prt.Anchored = true
  422. prt.CFrame = cframe
  423. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  424. game:GetService("Debris"):AddItem(prt, 10)
  425. table.insert(Effects, {
  426. prt,
  427. "Cylinder",
  428. delay,
  429. x3,
  430. y3,
  431. z3,
  432. msh
  433. })
  434. end
  435.  
  436. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  437. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  438. prt.Anchored = true
  439. prt.CFrame = cframe
  440. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  441. game:GetService("Debris"):AddItem(prt, 10)
  442. table.insert(Effects, {
  443. prt,
  444. "Cylinder",
  445. delay,
  446. x3,
  447. y3,
  448. z3,
  449. msh
  450. })
  451. end
  452.  
  453. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  454. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  455. prt.Anchored = true
  456. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  457. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  458. local num = math.random(10, 50) / 1000
  459. game:GetService("Debris"):AddItem(prt, 10)
  460. table.insert(Effects, {
  461. prt,
  462. "Shatter",
  463. num,
  464. prt.CFrame,
  465. math.random() - math.random(),
  466. 0,
  467. math.random(50, 100) / 100
  468. })
  469. end
  470.  
  471.  
  472.  
  473.  
  474. for i = 0, 1, 0.05 do
  475. swait()
  476. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  477. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  478. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  479. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  480. if Torsovelocity > 2 then
  481. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  482. RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  483. LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  484. elseif Torsovelocity < 1 then
  485. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  486. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  487. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  488. end
  489. end
  490. attack = false
  491.  
  492.  
  493.  
  494. game:GetService'RunService'.Stepped:connect(function()
  495. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  496. velocity = RootPart.Velocity.y
  497. sine = sine + change
  498. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  499. if equipped == true or equipped == false then
  500. if RootPart.Velocity.y > 1 and hit == nil then
  501. Anim = "Jump"
  502. if attack == false then
  503. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  504. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  505. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), .1)
  506. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), .1)
  507. RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1)
  508. LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1)
  509. end
  510. elseif RootPart.Velocity.y < -1 and hit == nil then
  511. Anim = "Fall"
  512. if attack == false then
  513. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  514. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  515. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), .1)
  516. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), .1)
  517. RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  518. LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  519. end
  520. elseif Torsovelocity < 1 and hit ~= nil then
  521. Anim = "Idle"
  522. if attack == false then
  523. change = .3
  524. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.05 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .05)
  525. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(25 - 1 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .05)
  526. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.05)
  527. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5 - 3 * math.cos(sine / 25))), 0.05)
  528. RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.05 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-2), math.rad(0 + 0 * math.cos(sine / 25))), .05)
  529. LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.05 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-2), math.rad(0 + 0 * math.cos(sine / 25))), .05)
  530. end
  531. elseif Torsovelocity > 2 and hit ~= nil then
  532. Anim = "Walk"
  533. if attack == false then
  534. change = 0.3
  535. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, -0.175 + 0.025 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7) * angles(math.rad(5 - 2.5 * math.cos(sine / 3.5)), math.rad(0), math.rad(10 * math.cos(sine / 7))), 0.15)
  536. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * CFrame.new(0, 0, 0 + 0.025 * math.cos(sine / 3.5)) * angles(math.rad(0 - 4.5 * math.cos(sine / 3.5)), math.rad(5 - 6.5 * math.cos(sine / 3.5)), math.rad(-10 * math.cos(sine / 7))), 0.15)
  537. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15 * math.cos(sine / 7)) + math.sin(sine / 7) / 2.5, math.rad(0), math.rad(10)), 0.05)
  538. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-15 * math.cos(sine / 7)) + -math.sin(sine / 7) / 2.5, math.rad(0), math.rad(-10)), 0.05)
  539. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.925 - 0.5 * math.cos(sine / 7) / 2, 0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 - 15 * math.cos(sine / 7)) + -math.sin(sine / 7) / 2.5, math.rad(90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 2.5 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.15)
  540. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.925 + 0.5 * math.cos(sine / 7) / 2, -0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 + 15 * math.cos(sine / 7)) + math.sin(sine / 7) / 2.5, math.rad(-90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 2.5 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.15)
  541. end
  542. end
  543. end
  544. if #Effects > 0 then
  545. for e = 1, #Effects do
  546. if Effects[e] ~= nil then
  547. local Thing = Effects[e]
  548. if Thing ~= nil then
  549. local Part = Thing[1]
  550. local Mode = Thing[2]
  551. local Delay = Thing[3]
  552. local IncX = Thing[4]
  553. local IncY = Thing[5]
  554. local IncZ = Thing[6]
  555. if Thing[1].Transparency <= 1 then
  556. if Thing[2] == "Block1" then
  557. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  558. local Mesh = Thing[1].Mesh
  559. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  560. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  561. elseif Thing[2] == "Block2" then
  562. Thing[1].CFrame = Thing[1].CFrame
  563. local Mesh = Thing[7]
  564. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  565. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  566. elseif Thing[2] == "Cylinder" then
  567. local Mesh = Thing[1].Mesh
  568. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  569. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  570. elseif Thing[2] == "Blood" then
  571. local Mesh = Thing[7]
  572. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  573. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  574. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  575. elseif Thing[2] == "Elec" then
  576. local Mesh = Thing[1].Mesh
  577. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  578. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  579. elseif Thing[2] == "Disappear" then
  580. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  581. elseif Thing[2] == "Shatter" then
  582. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  583. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  584. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  585. Thing[6] = Thing[6] + Thing[5]
  586. end
  587. else
  588. Part.Parent = nil
  589. table.remove(Effects, e)
  590. end
  591. end
  592. end
  593. end
  594. end
  595. end)
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602. function SpawnAnim1()
  603. attack = true
  604.  
  605. for i = 0, 1, 0.05 do
  606. swait()
  607. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,-2.5) * angles(math.rad(90), math.rad(0), math.rad(0)), .4)
  608. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-2), math.rad(-20), math.rad(0)), .4)
  609. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  610. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(0), math.rad(0), math.rad(24)), 0.4)
  611. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-15), math.rad(0), math.rad(0)), .4)
  612. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(5), math.rad(0), math.rad(0)), .4)
  613. end
  614. end
  615. function SpawnAnim2()
  616.  
  617.  
  618. for i = 0, .2, 0.2 do
  619. swait()
  620. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,-2.5) * angles(math.rad(90), math.rad(0), math.rad(0)), .1)
  621. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-2), math.rad(-10), math.rad(0)), .1)
  622. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  623. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(0), math.rad(0), math.rad(11)), 0.1)
  624. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  625. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(2), math.rad(0), math.rad(0)), .1)
  626. end
  627.  
  628.  
  629.  
  630. for i = 0, 2, 0.2 do
  631. swait()
  632. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,-1,-.5) * angles(math.rad(45), math.rad(0), math.rad(0)), .1)
  633. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(25), math.rad(0), math.rad(0)), .1)
  634. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.1) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.1)
  635. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.1)
  636. RH.C0 = clerp(RH.C0, cn(1, -.8, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(45)), .1)
  637. LH.C0 = clerp(LH.C0, cn(-1, -.8, -.7) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(20)), .1)
  638. end
  639. for i = 0, 2, 0.2 do
  640. swait()
  641. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,-1,-.5) * angles(math.rad(45), math.rad(0), math.rad(0)), .1)
  642. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(25), math.rad(0), math.rad(0)), .1)
  643. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.1) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.1)
  644. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.1)
  645. RH.C0 = clerp(RH.C0, cn(1, -.8, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(45)), .1)
  646. LH.C0 = clerp(LH.C0, cn(-1, -.8, -.7) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(20)), .1)
  647. end
  648. for i = 0, 2, 0.2 do
  649. swait()
  650. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,-1,-.5) * angles(math.rad(45), math.rad(0), math.rad(0)), .1)
  651. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(25), math.rad(0), math.rad(0)), .1)
  652. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.1) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.1)
  653. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.1)
  654. RH.C0 = clerp(RH.C0, cn(1, -.8, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(45)), .1)
  655. LH.C0 = clerp(LH.C0, cn(-1, -.8, -.7) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(20)), .1)
  656. end
  657.  
  658. for i = 0, 2, 0.2 do
  659. swait()
  660. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  661. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(25), math.rad(0), math.rad(0)), .1)
  662. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  663. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  664. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  665. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  666. end
  667.  
  668.  
  669.  
  670.  
  671.  
  672. attack = false
  673. end
  674.  
  675.  
  676.  
  677. local Create = LoadLibrary("RbxUtility").Create
  678.  
  679. function RemoveOutlines(part)
  680. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  681. end
  682.  
  683. CFuncs = {
  684. ["Part"] = {
  685. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  686. local Part = Create("Part"){
  687. Parent = Parent,
  688. Reflectance = Reflectance,
  689. Transparency = Transparency,
  690. CanCollide = false,
  691. Locked = true,
  692. BrickColor = BrickColor.new(tostring(BColor)),
  693. Name = Name,
  694. Size = Size,
  695. Material = Material,
  696. }
  697. --remove these lines if u want it purple--------
  698. if Part.BrickColor == BrickColor.new("Mulberry") then
  699. Part.BrickColor = BrickColor.new("Crimson")
  700. end
  701. if Part.BrickColor == BrickColor.new("Royal purple") then
  702. Part.BrickColor = BrickColor.new("Bright red")
  703. end
  704. if Part.BrickColor == BrickColor.new("Alder") or Part.BrickColor == BrickColor.new("Dark indigo") then
  705. Part.BrickColor = BrickColor.new("Really red")
  706. end
  707. ------------------------------------------------
  708. RemoveOutlines(Part)
  709. return Part
  710. end;
  711. };
  712.  
  713. ["Mesh"] = {
  714. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  715. local Msh = Create(Mesh){
  716. Parent = Part,
  717. Offset = OffSet,
  718. Scale = Scale,
  719. }
  720. if Mesh == "SpecialMesh" then
  721. Msh.MeshType = MeshType
  722. Msh.MeshId = MeshId
  723. end
  724. return Msh
  725. end;
  726. };
  727.  
  728. ["Mesh"] = {
  729. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  730. local Msh = Create(Mesh){
  731. Parent = Part,
  732. Offset = OffSet,
  733. Scale = Scale,
  734. }
  735. if Mesh == "SpecialMesh" then
  736. Msh.MeshType = MeshType
  737. Msh.MeshId = MeshId
  738. end
  739. return Msh
  740. end;
  741. };
  742.  
  743. ["Weld"] = {
  744. Create = function(Parent, Part0, Part1, C0, C1)
  745. local Weld = Create("Weld"){
  746. Parent = Parent,
  747. Part0 = Part0,
  748. Part1 = Part1,
  749. C0 = C0,
  750. C1 = C1,
  751. }
  752. return Weld
  753. end;
  754. };
  755.  
  756. ["Sound"] = {
  757. Create = function(id, par, vol, pit)
  758. coroutine.resume(coroutine.create(function()
  759. local S = Create("Sound"){
  760. Volume = vol,
  761. Pitch = pit or 1,
  762. SoundId = id,
  763. Parent = par or workspace,
  764. }
  765. wait()
  766. S:play()
  767. game:GetService("Debris"):AddItem(S, 6)
  768. end))
  769. end;
  770. };
  771.  
  772. ["ParticleEmitter"] = {
  773. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  774. local fp = Create("ParticleEmitter"){
  775. Parent = Parent,
  776. Color = ColorSequence.new(Color1, Color2),
  777. LightEmission = LightEmission,
  778. Size = Size,
  779. Texture = Texture,
  780. Transparency = Transparency,
  781. ZOffset = ZOffset,
  782. Acceleration = Accel,
  783. Drag = Drag,
  784. LockedToPart = LockedToPart,
  785. VelocityInheritance = VelocityInheritance,
  786. EmissionDirection = EmissionDirection,
  787. Enabled = Enabled,
  788. Lifetime = LifeTime,
  789. Rate = Rate,
  790. Rotation = Rotation,
  791. RotSpeed = RotSpeed,
  792. Speed = Speed,
  793. VelocitySpread = VelocitySpread,
  794. }
  795. return fp
  796. end;
  797. };
  798.  
  799. CreateTemplate = {
  800.  
  801. };
  802. }
  803.  
  804. --
  805.  
  806. New = function(Object, Parent, Name, Data)
  807. local Object = Instance.new(Object)
  808. for Index, Value in pairs(Data or {}) do
  809. Object[Index] = Value
  810. end
  811. Object.Parent = Parent
  812. Object.Name = Name
  813. if Object:IsA("BasePart") then
  814. Object.CanCollide = false
  815. Object.Anchored = false
  816. end
  817. return Object
  818. end
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830. EffectModel = Create("Model"){
  831. Parent = Character,
  832. Name = "Effects",
  833. }
  834.  
  835. Effects = {
  836. Block = {
  837. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  838. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  839. prt.Anchored = true
  840. prt.CFrame = cframe
  841. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  842. game:GetService("Debris"):AddItem(prt, 10)
  843. if Type == 1 or Type == nil then
  844. table.insert(Effects, {
  845. prt,
  846. "Block1",
  847. delay,
  848. x3,
  849. y3,
  850. z3,
  851. msh
  852. })
  853. elseif Type == 2 then
  854. table.insert(Effects, {
  855. prt,
  856. "Block2",
  857. delay,
  858. x3,
  859. y3,
  860. z3,
  861. msh
  862. })
  863. end
  864. end;
  865. };
  866.  
  867. Cylinder = {
  868. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  869. local prt = CFuncs.Part..Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  870. prt.Anchored = true
  871. prt.CFrame = cframe
  872. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  873. game:GetService("Debris"):AddItem(prt, 2)
  874. Effects[#Effects + 1] = {
  875. prt,
  876. "Cylinder",
  877. delay,
  878. x3,
  879. y3,
  880. z3
  881. }
  882. end;
  883. };
  884.  
  885. Head = {
  886. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  887. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  888. prt.Anchored = true
  889. prt.CFrame = cframe
  890. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  891. game:GetService("Debris"):AddItem(prt, 10)
  892. table.insert(Effects, {
  893. prt,
  894. "Cylinder",
  895. delay,
  896. x3,
  897. y3,
  898. z3,
  899. msh
  900. })
  901. end;
  902. };
  903.  
  904. Sphere = {
  905. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3,y2, delay)
  906. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  907. prt.Anchored = true
  908. prt.CFrame = cframe
  909. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, y2, 0), Vector3.new(x1, y1, z1))
  910. game:GetService("Debris"):AddItem(prt, 10)
  911. table.insert(Effects, {
  912. prt,
  913. "Cylinder",
  914. delay,
  915. x3,
  916. y3,
  917. z3,
  918. msh
  919. })
  920. end;
  921. };
  922.  
  923. Elect = {
  924. Create = function(cff, x, y, z)
  925. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  926. prt.Anchored = true
  927. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  928. prt.CFrame = CFrame.new(prt.Position)
  929. game:GetService("Debris"):AddItem(prt, 2)
  930. local xval = math.random() / 2
  931. local yval = math.random() / 2
  932. local zval = math.random() / 2
  933. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  934. table.insert(Effects, {
  935. prt,
  936. "Elec",
  937. 0.1,
  938. x,
  939. y,
  940. z,
  941. xval,
  942. yval,
  943. zval
  944. })
  945. end;
  946.  
  947. };
  948.  
  949. Ring = {
  950. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  951. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  952. prt.Anchored = true
  953. prt.CFrame = cframe
  954. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  955. game:GetService("Debris"):AddItem(prt, 10)
  956. table.insert(Effects, {
  957. prt,
  958. "Cylinder",
  959. delay,
  960. x3,
  961. y3,
  962. z3,
  963. msh
  964. })
  965. end;
  966. };
  967.  
  968.  
  969. Wave = {
  970. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  971. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  972. prt.Anchored = true
  973. prt.CFrame = cframe
  974. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  975. game:GetService("Debris"):AddItem(prt, 10)
  976. table.insert(Effects, {
  977. prt,
  978. "Cylinder",
  979. delay,
  980. x3,
  981. y3,
  982. z3,
  983. msh
  984. })
  985. end;
  986. };
  987.  
  988. Break = {
  989. Create = function(brickcolor, cframe, x1, y1, z1)
  990. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  991. prt.Anchored = true
  992. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  993. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  994. local num = math.random(10, 50) / 1000
  995. game:GetService("Debris"):AddItem(prt, 10)
  996. table.insert(Effects, {
  997. prt,
  998. "Shatter",
  999. num,
  1000. prt.CFrame,
  1001. math.random() - math.random(),
  1002. 0,
  1003. math.random(50, 100) / 100
  1004. })
  1005. end;
  1006. };
  1007.  
  1008. Fire = {
  1009. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  1010. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1011. prt.Anchored = true
  1012. prt.CFrame = cframe
  1013. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1014. game:GetService("Debris"):AddItem(prt, 10)
  1015. table.insert(Effects, {
  1016. prt,
  1017. "Fire",
  1018. delay,
  1019. 1,
  1020. 1,
  1021. 1,
  1022. msh
  1023. })
  1024. end;
  1025. };
  1026.  
  1027. FireWave = {
  1028. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  1029. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  1030. prt.Anchored = true
  1031. prt.CFrame = cframe
  1032. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, -2.93, 0), Vector3.new(x1, y1, z1))
  1033. local d = Create("Decal"){
  1034. Parent = prt,
  1035. Texture = "rbxassetid://129418678",
  1036. Face = "Top",
  1037. }
  1038. local d = Create("Decal"){
  1039. Parent = prt,
  1040. Texture = "rbxassetid://129418678",
  1041. Face = "Bottom",
  1042. }
  1043. game:GetService("Debris"):AddItem(prt, 10)
  1044. table.insert(Effects, {
  1045. prt,
  1046. "FireWave",
  1047. delay,
  1048. 5,
  1049. 30,
  1050. 5,
  1051. msh
  1052. })
  1053. end;
  1054. };
  1055.  
  1056. Lightning = {
  1057. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  1058. local magz = (p0 - p1).magnitude
  1059. local curpos = p0
  1060. local trz = {
  1061. -ofs,
  1062. ofs
  1063. }
  1064. for i = 1, tym do
  1065. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  1066. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  1067. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  1068. li.Material = "Neon"
  1069. if tym == i then
  1070. local magz2 = (curpos - p1).magnitude
  1071. li.Size = Vector3.new(th, th, magz2)
  1072. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  1073. table.insert(Effects, {
  1074. li,
  1075. "Disappear",
  1076. last
  1077. })
  1078. else
  1079. do
  1080. do
  1081. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  1082. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  1083. game.Debris:AddItem(li, 10)
  1084. table.insert(Effects, {
  1085. li,
  1086. "Disappear",
  1087. last
  1088. })
  1089. end
  1090. end
  1091. end
  1092. end
  1093. end
  1094.  
  1095. attack = true
  1096. RootPart.Anchored = true
  1097. local fake = Instance.new("Part", Torso)
  1098. fake.Size = Vector3.new(.1,.2,.1)
  1099. fake.Transparency = 1
  1100. fake.Anchored = true
  1101. fake.Material = "Neon"
  1102. fake.CanCollide = false
  1103. fake.BrickColor = BrickColor.new("Really black")
  1104. fake.CFrame = Torso.CFrame * CFrame.new(0,-3,0)
  1105. fake1 = Instance.new("CylinderMesh", fake)
  1106. SpawnAnim1()
  1107.  
  1108. wait(0.5)
  1109. local val = 5
  1110. while wait() and fake and fake.Transparency >= 0 do
  1111. fake.Transparency =fake.Transparency - 0.04
  1112. val = val - 0.1
  1113. fake1.Scale = fake1.Scale + Vector3.new(val,0,val)
  1114. end
  1115.  
  1116. Character.Head.face:Destroy()
  1117. for i = 1,91 do
  1118. wait()
  1119. trans = trans - .01
  1120. for i,v in pairs(m:GetChildren()) do
  1121. if v.ClassName == "Part" then
  1122. v.Transparency = trans
  1123.  
  1124.  
  1125. fake1.Scale = fake1.Scale - Vector3.new(.0025,0,.0025)
  1126.  
  1127. end
  1128. end
  1129. end
  1130. fake:Destroy()
  1131.  
  1132. wait(1)
  1133. --]]
  1134. SpawnAnim2()
  1135. RootPart.Anchored = false
  1136. end
  1137.  
  1138.  
  1139.  
  1140. Humanoid.DisplayDistanceType="None"
  1141. Humanoid.HealthDisplayDistance=0
  1142. Humanoid.NameDisplayDistance=0
  1143. Humanoid.NameOcclusion="EnemyOcclusion"
  1144.  
  1145.  
  1146.  
  1147. Armor()
  1148.  
  1149.  
  1150.  
  1151.  
  1152. -------------------------------------------------------
  1153. local Orbd = Instance.new("Part", Character)
  1154. Orbd.Name = "Orbd"
  1155. Orbd.Shape = Enum.PartType.Block
  1156. Orbd.CanCollide = false
  1157. Orbd.BrickColor = BrickColor.new("White")
  1158. Orbd.Transparency = 0
  1159. Orbd.Material = "Neon"
  1160. Orbd.Size = Vector3.new(0.2, 0.3, 0.2)
  1161. Orbd.TopSurface = Enum.SurfaceType.Smooth
  1162. Orbd.BottomSurface = Enum.SurfaceType.Smooth
  1163.  
  1164. local Weld = Instance.new("Weld", Orbd)
  1165. Weld.Part0 = Character.Head
  1166. Weld.Part1 = Orbd
  1167. Weld.C1 = CFrame.new(-0.2, -0.2, 0.49)
  1168.  
  1169. local M1 = Instance.new("SpecialMesh")
  1170. M1.Parent = Orbd
  1171. M1.MeshType = "Sphere"
  1172. M1.Scale = Vector3.new(1,0,1)
  1173. --------------------------------------------------------
  1174. local Orbvc = Instance.new("Part", Character)
  1175. Orbvc.Name = "Orbvc"
  1176. Orbvc.Shape = Enum.PartType.Block
  1177. Orbvc.CanCollide = false
  1178. Orbvc.BrickColor = BrickColor.new("White")
  1179. Orbvc.Transparency = 0
  1180. Orbvc.Material = "Neon"
  1181. Orbvc.Size = Vector3.new(0.2, 0.3, 0.2)
  1182. Orbvc.TopSurface = Enum.SurfaceType.Smooth
  1183. Orbvc.BottomSurface = Enum.SurfaceType.Smooth
  1184.  
  1185.  
  1186.  
  1187. local Weld = Instance.new("Weld", Orbvc)
  1188. Weld.Part0 = Character.Head
  1189. Weld.Part1 = Orbvc
  1190. Weld.C1 = CFrame.new(0.2, -0.2, 0.49)
  1191.  
  1192. local M2 = Instance.new("SpecialMesh")
  1193. M2.Parent = Orbvc
  1194. M2.MeshType = "Sphere"
  1195. M2.Scale = Vector3.new(1,0,1)
  1196. ---------------------------------------------------------
  1197. trailwait = false
  1198. function PortalEffect()
  1199. for i,v in pairs(Torso:GetChildren()) do
  1200. if v:IsA("Part") and v.Name == "trap" then
  1201.  
  1202. Effects.Wave.Create(BrickColor.new("Really black"), v.CFrame, 0, -.2, 0, .7, .02, .7, 0.08)
  1203. v.CFrame = CFrame.new(v.CFrame.x,v.CFrame.y,v.CFrame.z) * angles(math.rad(0), math.rad(0 + 1000 * math.cos(sine)), math.rad(0))
  1204.  
  1205. end
  1206. end
  1207.  
  1208. end
  1209.  
  1210.  
  1211.  
  1212.  
  1213. function trail()
  1214. if trailwait == false and attack == false and Anim == "Idle" then
  1215. trailwait = true
  1216. Effects.Sphere.Create(BrickColor.new("Really black"), RootPart.CFrame, 20, 10, 20, .8, -.05, .8, -2.94 ,0.004)
  1217. wait(.5)
  1218. trailwait = false
  1219. end
  1220.  
  1221.  
  1222. if trailwait == false and attack == false and Anim == "Walk" then
  1223. trailwait = true
  1224. Effects.Sphere.Create(BrickColor.new("Really black"), RootPart.CFrame, 30, 10, 30, .4, -.05, .4, -2.94 ,0.005)
  1225. wait(.3)
  1226. trailwait = false
  1227. end
  1228.  
  1229. end
  1230.  
  1231.  
  1232.  
  1233.  
  1234. function attack1()
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240. attack = true
  1241. RootPart.Anchored = true
  1242.  
  1243. Character.Humanoid.WalkSpeed = 0
  1244. Effects.Wave.Create(BrickColor.new("Really black"), RootPart.CFrame, 1, 1, 1, 0.2, .5, 0.2, 0.07)
  1245. Effects.Block.Create(BrickColor.new("Really black"), RootPart.CFrame, 2, 2, 2, 10.2, 10.2, 10.2, 0.07)
  1246. wait()
  1247.  
  1248. for i = 0, 2, 0.05 do
  1249. swait()
  1250. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,-4) * angles(math.rad(90), math.rad(0), math.rad(0)), .4)
  1251. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1252. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1253. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1254. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1255. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1256. end
  1257. for i = 0, 1, 0.05 do
  1258. swait()
  1259. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,-60,-4) * angles(math.rad(90), math.rad(0), math.rad(0)), 1)
  1260. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1261. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1262. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1263. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1264. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1265. end
  1266. EFS3:Play()
  1267. for i = 0, .1, 0.05 do
  1268. swait()
  1269. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,-60,-4) * angles(math.rad(0), math.rad(0), math.rad(180)), 1)
  1270. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1271. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1272. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1273. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1274. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1275. end
  1276. Effects.Wave.Create(BrickColor.new("Really black"), Head.CFrame, 1, 1, 1, 0.2, 0.5, 0.2, 0.07)
  1277. Effects.Block.Create(BrickColor.new("Really black"), Torso.CFrame, 2, 2, 2, 10.2, 10.2, 10.2, 0.07)
  1278. EFS.SoundId = "rbxassetid://518230185"
  1279. EFS:Play()
  1280. for i = 0, 2, 0.05 do
  1281. swait()
  1282. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,-60,0) * angles(math.rad(0), math.rad(0), math.rad(180)), .2)
  1283. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(25), math.rad(0), math.rad(0)), .4)
  1284. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1285. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1286. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1287. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1288. end
  1289. local targetV5 = Character.Torso.CFrame
  1290. wait()
  1291. for i = 0, 0, 1 do
  1292. swait()
  1293. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(0)), 1)
  1294. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0)
  1295. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1296. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1297. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1298. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1299. end
  1300.  
  1301. Character.HumanoidRootPart.CFrame = targetV5
  1302.  
  1303.  
  1304. attack = false
  1305.  
  1306. Character.Humanoid.WalkSpeed = 3
  1307. RootPart.Anchored = false
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314. end
  1315.  
  1316.  
  1317.  
  1318.  
  1319. function attack2()
  1320. attack = true
  1321.  
  1322. for i = 0, 1, 0.05 do
  1323.  
  1324. Character.Humanoid.WalkSpeed = .5
  1325. swait()
  1326. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,-3.6) * angles(math.rad(90), math.rad(0), math.rad(0)), .4)
  1327. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(90), math.rad(0), math.rad(0)), .4)
  1328. LW.C0 = clerp(LW.C0, CFrame.new(0, .5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1329. RW.C0 = clerp(RW.C0, CFrame.new(0, .5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1330. RH.C0 = clerp(RH.C0, cn(0, 1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1331. LH.C0 = clerp(LH.C0, cn(0, 1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1332. end
  1333.  
  1334. for i = 1,121 do
  1335. wait()
  1336. Character.Humanoid.JumpPower = 0
  1337. Character.Humanoid.WalkSpeed = 40
  1338. Effects.Wave.Create(BrickColor.new("Really black"), Torso.CFrame, 4, -4, 1.02, -0.1, 0.001, -.005 , 0.03)
  1339. Effects.Break.Create(BrickColor.new("Really black"), Torso.CFrame, 0.2, 0.2, 0.2,0.7)
  1340.  
  1341. end
  1342.  
  1343.  
  1344. Effects.Block.Create(BrickColor.new("Really black"), Torso.CFrame, 2, 2, 2, 6.2, 6.2, 6.2, 0.07)
  1345. Character.Humanoid.JumpPower = 50
  1346. Character.Humanoid.WalkSpeed = 3
  1347.  
  1348.  
  1349.  
  1350. attack = false
  1351. end
  1352.  
  1353.  
  1354.  
  1355.  
  1356.  
  1357.  
  1358. function blink()
  1359. wait()
  1360. for i = 0, 1, 0.1 do
  1361. swait()
  1362. M1.Scale = Vector3.new(1, 0.2 + 0.3 * i, .9)
  1363. M2.Scale = Vector3.new(1, 0.2 + 0.3 * i, .9)
  1364. end
  1365. wait(1)
  1366. for i = 0, 1, 0.2 do
  1367. wait()
  1368. M1.Scale = Vector3.new(1, 0.7 - 1 * i, 1)
  1369. M2.Scale = Vector3.new(1, 0.7 - 1 * i, 1)
  1370. end
  1371. for i = 0, 1, 0.2 do
  1372. swait()
  1373. M1.Scale = Vector3.new(1, 0.7 + 0.3 * i, 1)
  1374. M2.Scale = Vector3.new(1, 0.7 + 0.3 * i, 1)
  1375. end
  1376. while true do wait()
  1377.  
  1378. swait(math.random(220, 440))
  1379. for i = 0, 1, 0.05 do
  1380. wait()
  1381. M1.Scale = Vector3.new(1, 0.7 - 1 * i, 1)
  1382. M2.Scale = Vector3.new(1, 0.7 - 1 * i, 1)
  1383. end
  1384. for i = 0, 1, 0.05 do
  1385. swait()
  1386. M1.Scale = Vector3.new(1, 0.7 + 0.3 * i, 1)
  1387. M2.Scale = Vector3.new(1, 0.7 + 0.3 * i, 1)
  1388. end
  1389. end
  1390. end
  1391.  
  1392.  
  1393.  
  1394.  
  1395.  
  1396.  
  1397.  
  1398.  
  1399. EFS.SoundId = "rbxassetid://177359995"
  1400. EFS:Play()
  1401.  
  1402. wait(.5)
  1403.  
  1404. Sound = Instance.new("Sound")
  1405. Sound.Parent = Torso
  1406. Sound.SoundId = "rbxassetid://649587991"
  1407. Sound.Volume = 5
  1408. Sound.Looped = true
  1409. Sound:Play()
  1410.  
  1411.  
  1412. Character.Humanoid.MaxHealth = 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  1413. Character.Humanoid.Health = 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  1414. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  1415. if Character.Humanoid.Health <=9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 then
  1416.  
  1417. Character.Humanoid.Health = 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  1418. end
  1419. end)
  1420.  
  1421. mouse.KeyDown:connect(function(key)
  1422. if key == "z" and attack == false then
  1423. attack1()
  1424. end
  1425. end)
  1426.  
  1427.  
  1428.  
  1429. mouse.KeyDown:connect(function(key)
  1430. if key == "x" and attack == false then
  1431. attack2()
  1432. end
  1433. end)
  1434.  
  1435.  
  1436.  
  1437. mouse.KeyDown:connect(function(key)
  1438. if key == "v" then
  1439.  
  1440. if autofind == false then
  1441. autofind = true
  1442. else
  1443. autofind = false
  1444. end
  1445.  
  1446. end
  1447. end)
  1448.  
  1449.  
  1450. wait2 = false
  1451. mouse.KeyDown:connect(function(key)
  1452. if key == "e" and wait2 == false then
  1453. wait2 = true
  1454.  
  1455.  
  1456.  
  1457.  
  1458. EFS.SoundId = "rbxassetid://177359995"
  1459. EFS:Play()
  1460.  
  1461.  
  1462.  
  1463.  
  1464.  
  1465.  
  1466. wait(3.4)
  1467. wait2 = false
  1468. end
  1469. end)
  1470.  
  1471.  
  1472. hitwait = false
  1473.  
  1474.  
  1475.  
  1476.  
  1477.  
  1478.  
  1479.  
  1480.  
  1481.  
  1482.  
  1483. function onTouch(part)
  1484.  
  1485. local humanoid = part.Parent:findFirstChild("Humanoid")
  1486. local model = part.Parent
  1487. local torso = part.Parent:FindFirstChild("Torso")
  1488. local head = part.Parent:findFirstChild("Head")
  1489. local leftleg = part.Parent:findFirstChild("Left Leg")
  1490. local rightleg = part.Parent:findFirstChild("Right Leg")
  1491. local leftarm = part.Parent:findFirstChild("Left Arm")
  1492. local rightarm = part.Parent:findFirstChild("Right Arm")
  1493. if hitwait == false and attack == false and model.Name == "Effects" == false then
  1494.  
  1495. hitwait = true
  1496. ---------------------------R15-------------------------------------------------
  1497. if part.Parent:FindFirstChild("Torso") == nil and model.Humanoid.Health == 0 == false then
  1498. local torso2 = part.Parent:FindFirstChild("UpperTorso")
  1499. torso2:Destroy()
  1500. end
  1501. -------------------------------------------------------------------------------
  1502.  
  1503.  
  1504.  
  1505. if (humanoid ~=nil) and humanoid.Health >0.01 then
  1506. Effects.Block.Create(BrickColor.new("Really black"), head.CFrame, 2, 2, 2, 10.2, 10.2, 10.2, 0.07)
  1507. humanoid.Health = 0
  1508. attack = true
  1509. for i = 0, 6, .5 do
  1510. swait()
  1511. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(-25)), .4)
  1512. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1513. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(60), math.rad(0), math.rad(0)), 0.2)
  1514. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(160), math.rad(0), math.rad(90)), 0.2)
  1515. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  1516. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  1517. end
  1518. ATS:Play()
  1519. for i = 0, 5, .5 do
  1520. swait()
  1521. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(25)), .4)
  1522. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1523. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  1524. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(90), math.rad(0), math.rad(-20)), 0.2)
  1525. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  1526. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  1527. end
  1528. attack = false
  1529. end
  1530. end
  1531.  
  1532. hitwait = false
  1533. end
  1534. hitwait2 = false
  1535. function onTouch2(part)
  1536.  
  1537. local humanoid = part.Parent:findFirstChild("Humanoid")
  1538. local model = part.Parent
  1539. local torso = part.Parent:FindFirstChild("Torso")
  1540. local head = part.Parent:findFirstChild("Head")
  1541. local leftleg = part.Parent:findFirstChild("Left Leg")
  1542. local rightleg = part.Parent:findFirstChild("Right Leg")
  1543. local leftarm = part.Parent:findFirstChild("Left Arm")
  1544. local rightarm = part.Parent:findFirstChild("Right Arm")
  1545. local rootpart = part.Parent:findFirstChild("HumanoidRootPart")
  1546. if hitwait2 == false then
  1547.  
  1548. hitwait2 = true
  1549.  
  1550.  
  1551.  
  1552.  
  1553. if (humanoid ~=nil) and humanoid.Health >0 and model.Name == ""..Character.Name == false and model.Name == "Effects" == false then
  1554. Effects.Block.Create(BrickColor.new("Really black"), head.CFrame, 2, 2, 2, 10.2, 10.2, 10.2, 0.07)
  1555.  
  1556. rootpart.Anchored = true
  1557. for i=1,120 do
  1558. rootpart.CFrame = CFrame.new(rootpart.CFrame.x,rootpart.CFrame.y - .1,rootpart.CFrame.z)
  1559. wait()
  1560. end
  1561. rootpart.Anchored = false
  1562.  
  1563.  
  1564.  
  1565.  
  1566. local qw2 = Instance.new("Part",game.Workspace)
  1567. local qw3 = Instance.new("SpecialMesh",qw2)
  1568. local derp = CFrame.new(10050,1,10050)
  1569.  
  1570. qw2.CFrame = derp
  1571. qw2.Name = 'sky'
  1572. qw2.Anchored = true
  1573. qw3.MeshId = "rbxassetid://1527559"
  1574. qw3.TextureId = "rbxassetid://1529455"
  1575. qw3.Scale = Vector3.new(-1800,-2080,-1800)
  1576. qw3.VertexColor = Vector3.new(0,.01,.01)
  1577.  
  1578. for i=1,200 do --100 is the amount of the bricks, change it if you want.
  1579. local qw = Instance.new("Part",game.Workspace)
  1580. qw.Shape = "Block"
  1581. qw.Size = Vector3.new(8+i/12, 8+i/99, 8+i/12) --The size of the bricks
  1582. qw.CFrame = CFrame.new(derp.x+i*math.random(), derp.y+i/20+math.random(1,2), derp.z+i*math.random()) --Position
  1583. qw.BrickColor = BrickColor.new("Black") --The colour of the mountain
  1584. qw.Anchored = true
  1585. qw.Name = "Part"
  1586. qw.TopSurface = "Smooth"
  1587. qw.BottomSurface = "Smooth"
  1588. qw.Material = "Granite"
  1589. game:service'Debris':AddItem(qw, 50)
  1590.  
  1591. qw.Parent = game.Workspace
  1592. end
  1593. game:service'Debris':AddItem(qw2, 50)
  1594. --GeniusBuilder--
  1595. wait()
  1596.  
  1597. model:MoveTo(Vector3.new(10100,101,10100))
  1598.  
  1599.  
  1600. ehp = humanoid.MaxHealth
  1601. ehp2 = ehp/200
  1602.  
  1603.  
  1604. for i,v in pairs(model:GetChildren()) do
  1605. if v:IsA("Script") and v.Name == "Health" then
  1606. v:Destroy()
  1607. end
  1608. end
  1609.  
  1610. for i=1,400 do
  1611.  
  1612.  
  1613. if (humanoid ~=nil) and humanoid.Health >0 then
  1614. humanoid.WalkSpeed = 4
  1615. Effects.Break.Create(BrickColor.new("Really red"), head.CFrame, 0.2, 0.2, 0.2,0.7)
  1616. humanoid:TakeDamage(ehp2)
  1617. print(''..humanoid.Health)
  1618. for i=1,5 do
  1619.  
  1620. wait()
  1621. end
  1622.  
  1623. end
  1624. end
  1625. if (humanoid ~=nil) and humanoid.Health >0 then
  1626. for i=1,10 do
  1627. humanoid.Health = 0
  1628. wait()
  1629. end
  1630. end
  1631. print('your pocket dimension killed '..model.Name)
  1632. end
  1633. end
  1634. wait(1)
  1635. hitwait2 = false
  1636. end
  1637.  
  1638.  
  1639. Torso.Touched:connect(onTouch)
  1640.  
  1641. wait3 = false
  1642. hidden = false
  1643. thetrap = false
  1644. mouse.KeyDown:connect(function(key)
  1645. if key == "c" then
  1646. if hidden == false and wait3 == false and attack == false then
  1647. hidden = true
  1648. wait3 = true
  1649. Character.Humanoid.JumpPower = 0
  1650. attack = true
  1651. Character.Humanoid.WalkSpeed = 0
  1652.  
  1653. for i = 0, 5, 0.05 do
  1654. swait()
  1655. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,-10) * angles(math.rad(15), math.rad(0), math.rad(0)), .05)
  1656. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(45), math.rad(0), math.rad(0)), .2)
  1657. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(25), math.rad(0), math.rad(0)), 0.1)
  1658. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(25), math.rad(0), math.rad(0)), 0.1)
  1659. RH.C0 = clerp(RH.C0, cn(1, -.3, -.5) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-15)), .1)
  1660. LH.C0 = clerp(LH.C0, cn(-1, -.3, -.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(15)), .1)
  1661. end
  1662. Character.Humanoid.WalkSpeed = 3
  1663.  
  1664. end
  1665.  
  1666.  
  1667.  
  1668. if hidden == true and wait3 == false then
  1669. wait3 = true
  1670. hidden = false
  1671.  
  1672. EFS3:Play()
  1673. Character.Humanoid.WalkSpeed = 0
  1674. for i = 0, 5, 0.05 do
  1675. swait()
  1676. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(0)), .03)
  1677. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-25), math.rad(0), math.rad(0)), .2)
  1678. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(-0)), 0.3)
  1679. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(160), math.rad(0), math.rad(0)), 0.3)
  1680. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1681. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1682. end
  1683. Character.Humanoid.WalkSpeed = 3
  1684. Character.Humanoid.JumpPower = 50
  1685.  
  1686. attack = false
  1687.  
  1688.  
  1689. end
  1690. wait()
  1691. wait3 = false
  1692. end
  1693. end)
  1694. mouse.KeyDown:connect(function(key)
  1695. if key == "q" and attack == false then
  1696. attack = true
  1697. if thetrap == false then
  1698. Character.Humanoid.WalkSpeed = 0
  1699. Character.Humanoid.JumpPower = 0
  1700.  
  1701. for i = 0, 2, 0.05 do
  1702. swait()
  1703. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  1704. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(25), math.rad(0), math.rad(0)), .2)
  1705. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1706. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1707. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1708. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1709. end
  1710.  
  1711.  
  1712.  
  1713. thetrap = true
  1714. local fake = Instance.new("Part", Torso)
  1715. fake.Size = Vector3.new(3.1,.4,3.1)
  1716. fake.Transparency = 1
  1717. fake.Anchored = true
  1718. fake.Material = "Neon"
  1719. fake.Name = "LoadingTrap...."
  1720. fake.CanCollide = false
  1721. fake.BrickColor = BrickColor.new("Really black")
  1722. fake.CFrame = Torso.CFrame * CFrame.new(0,-3,0)
  1723. fake1 = Instance.new("CylinderMesh", fake)
  1724. fake1.Scale = Vector3.new(2.5,1,2.5)
  1725.  
  1726.  
  1727.  
  1728. for i = 0, 5, 0.05 do
  1729. swait()
  1730. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,-6) * angles(math.rad(0), math.rad(0), math.rad(0)), .05)
  1731. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(25), math.rad(0), math.rad(0)), .2)
  1732. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.1)
  1733. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.1)
  1734. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1735. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1736. end
  1737.  
  1738.  
  1739. for i=1,70 do
  1740.  
  1741. fake.Transparency = fake.Transparency -.01
  1742.  
  1743. wait()
  1744.  
  1745. end
  1746.  
  1747. fake.Touched:connect(onTouch2)
  1748. fake.Name = "trap"
  1749. for i = 0, 5, 0.05 do
  1750. swait()
  1751. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(0)), .05)
  1752. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-25), math.rad(0), math.rad(0)), .2)
  1753. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.1)
  1754. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.1)
  1755. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1756. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1757. end
  1758.  
  1759.  
  1760.  
  1761. wait()
  1762. Character.Humanoid.WalkSpeed = 3
  1763. Character.Humanoid.JumpPower = 50
  1764.  
  1765. else
  1766. Character.Humanoid.WalkSpeed = 0
  1767. Character.Humanoid.JumpPower = 0
  1768.  
  1769. for i = 0, 1, 0.05 do
  1770. swait()
  1771. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  1772. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(25), math.rad(0), math.rad(0)), .2)
  1773. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1774. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1775. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1776. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1777. end
  1778. for i,v in pairs(Torso:GetChildren()) do
  1779. if v:IsA("Part") and v.Name == "trap" then
  1780.  
  1781.  
  1782.  
  1783.  
  1784. for i=1,70 do
  1785.  
  1786. v.Transparency = v.Transparency +.01
  1787.  
  1788. wait()
  1789.  
  1790. end
  1791.  
  1792.  
  1793. v:Destroy()
  1794.  
  1795. wait()
  1796.  
  1797.  
  1798. end
  1799. end
  1800. Character.Humanoid.WalkSpeed = 3
  1801. Character.Humanoid.JumpPower = 50
  1802. thetrap = false
  1803. end
  1804.  
  1805.  
  1806.  
  1807.  
  1808.  
  1809.  
  1810.  
  1811. attack = false
  1812.  
  1813.  
  1814. end
  1815. end)
  1816.  
  1817.  
  1818.  
  1819.  
  1820.  
  1821.  
  1822.  
  1823.  
  1824.  
  1825.  
  1826. AutoStuff=function()
  1827. if attack == false and wait2 == false then
  1828. local r=math.random(1,500)
  1829.  
  1830.  
  1831. if r==1 then
  1832. attack1()
  1833. end
  1834. if r==2 then
  1835. attack2()
  1836. end
  1837. if r==3 then
  1838. wait2 = true
  1839. Humanoid.Jump = true
  1840. wait(1.5)
  1841. wait2 = false
  1842. end
  1843. if r==4 then
  1844. wait2 = true
  1845. EFS.SoundId = "rbxassetid://177359995"
  1846. EFS:Play()
  1847. wait(1.5)
  1848. wait2 = false
  1849. end
  1850.  
  1851.  
  1852.  
  1853.  
  1854. end
  1855. end
  1856.  
  1857.  
  1858.  
  1859.  
  1860.  
  1861.  
  1862.  
  1863. function findNearestTorso(pos)
  1864. local list = game.Workspace:children()
  1865. local torso = nil
  1866. local dist = 10000
  1867. local temp = nil
  1868. local human = nil
  1869. local temp2 = nil
  1870. for x = 1, #list do
  1871. temp2 = list[x]
  1872. if (temp2.className == "Model") and (temp2 ~= Character) then
  1873. temp = temp2:findFirstChild("HumanoidRootPart")
  1874. human = temp2:findFirstChild("Humanoid")
  1875. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1876. if (temp.Position - pos).magnitude < dist then
  1877. torso = temp
  1878. dist = (temp.Position - pos).magnitude
  1879. end
  1880. end
  1881. end
  1882. end
  1883. return torso
  1884. end
  1885.  
  1886. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  1887.  
  1888. local r2=math.random(1,500)
  1889. if r2==1 then
  1890. for i=1,10 do
  1891. PortalEffect()
  1892. wait()
  1893. end
  1894. end
  1895. end)
  1896. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  1897. trail()
  1898. end)
  1899.  
  1900. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  1901.  
  1902.  
  1903.  
  1904. wait()
  1905. if autofind == true then
  1906. local target = findNearestTorso(Character.HumanoidRootPart.Position)
  1907. if target ~= nil then
  1908. Humanoid:MoveTo(target.Position, target)
  1909. AutoStuff()
  1910. end
  1911. Orbd.BrickColor = BrickColor.new("Really red")
  1912. Orbvc.BrickColor = BrickColor.new("Really red")
  1913. else
  1914. Orbd.BrickColor = BrickColor.new("White")
  1915. Orbvc.BrickColor = BrickColor.new("White")
  1916. end
  1917. end)
  1918.  
  1919.  
  1920.  
  1921.  
  1922. NoClipCons = {}
  1923. if #NoClipCons == 0 then
  1924. local con = game:service("RunService").Stepped:connect(function()
  1925. pcall(function() Player.Character.Torso.CanCollide = false end)
  1926. pcall(function() Player.Character.Head.CanCollide = false end)
  1927. end)
  1928. table.insert(NoClipCons, con)
  1929. else
  1930. for i, v in pairs(NoClipCons) do
  1931. v:disconnect()
  1932. table.remove(NoClipCons, i)
  1933. end
  1934. end
  1935.  
  1936.  
  1937. print('---------------------')
  1938. print('Made by 123jl123')
  1939. print('---------------------')
  1940. print('do not leak...')
  1941. print('and i hope you have a nice day :)')
  1942. print('---------------------')
  1943.  
  1944. blink()
Advertisement
Add Comment
Please, Sign In to add comment