Advertisement
Ban43_GodOfEdits

Untitled

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