soins1

Untitled

Nov 26th, 2017
153
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. 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://177339878"
  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://170282301"
  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. Character.Humanoid.WalkSpeed = 7
  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 = .3
  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(25 - 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 = 0.3
  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.  
  677.  
  678. local Create = LoadLibrary("RbxUtility").Create
  679.  
  680. function RemoveOutlines(part)
  681. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  682. end
  683.  
  684. CFuncs = {
  685. ["Part"] = {
  686. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  687. local Part = Create("Part"){
  688. Parent = Parent,
  689. Reflectance = Reflectance,
  690. Transparency = Transparency,
  691. CanCollide = false,
  692. Locked = true,
  693. BrickColor = BrickColor.new(tostring(BColor)),
  694. Name = Name,
  695. Size = Size,
  696. Material = Material,
  697. }
  698. --remove these lines if u want it purple--------
  699. if Part.BrickColor == BrickColor.new("Mulberry") then
  700. Part.BrickColor = BrickColor.new("Crimson")
  701. end
  702. if Part.BrickColor == BrickColor.new("Royal purple") then
  703. Part.BrickColor = BrickColor.new("Bright red")
  704. end
  705. if Part.BrickColor == BrickColor.new("Alder") or Part.BrickColor == BrickColor.new("Dark indigo") then
  706. Part.BrickColor = BrickColor.new("Really red")
  707. end
  708. ------------------------------------------------
  709. RemoveOutlines(Part)
  710. return Part
  711. end;
  712. };
  713.  
  714. ["Mesh"] = {
  715. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  716. local Msh = Create(Mesh){
  717. Parent = Part,
  718. Offset = OffSet,
  719. Scale = Scale,
  720. }
  721. if Mesh == "SpecialMesh" then
  722. Msh.MeshType = MeshType
  723. Msh.MeshId = MeshId
  724. end
  725. return Msh
  726. end;
  727. };
  728.  
  729. ["Mesh"] = {
  730. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  731. local Msh = Create(Mesh){
  732. Parent = Part,
  733. Offset = OffSet,
  734. Scale = Scale,
  735. }
  736. if Mesh == "SpecialMesh" then
  737. Msh.MeshType = MeshType
  738. Msh.MeshId = MeshId
  739. end
  740. return Msh
  741. end;
  742. };
  743.  
  744. ["Weld"] = {
  745. Create = function(Parent, Part0, Part1, C0, C1)
  746. local Weld = Create("Weld"){
  747. Parent = Parent,
  748. Part0 = Part0,
  749. Part1 = Part1,
  750. C0 = C0,
  751. C1 = C1,
  752. }
  753. return Weld
  754. end;
  755. };
  756.  
  757. ["Sound"] = {
  758. Create = function(id, par, vol, pit)
  759. coroutine.resume(coroutine.create(function()
  760. local S = Create("Sound"){
  761. Volume = vol,
  762. Pitch = pit or 1,
  763. SoundId = id,
  764. Parent = par or workspace,
  765. }
  766. wait()
  767. S:play()
  768. game:GetService("Debris"):AddItem(S, 6)
  769. end))
  770. end;
  771. };
  772.  
  773. ["ParticleEmitter"] = {
  774. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  775. local fp = Create("ParticleEmitter"){
  776. Parent = Parent,
  777. Color = ColorSequence.new(Color1, Color2),
  778. LightEmission = LightEmission,
  779. Size = Size,
  780. Texture = Texture,
  781. Transparency = Transparency,
  782. ZOffset = ZOffset,
  783. Acceleration = Accel,
  784. Drag = Drag,
  785. LockedToPart = LockedToPart,
  786. VelocityInheritance = VelocityInheritance,
  787. EmissionDirection = EmissionDirection,
  788. Enabled = Enabled,
  789. Lifetime = LifeTime,
  790. Rate = Rate,
  791. Rotation = Rotation,
  792. RotSpeed = RotSpeed,
  793. Speed = Speed,
  794. VelocitySpread = VelocitySpread,
  795. }
  796. return fp
  797. end;
  798. };
  799.  
  800. CreateTemplate = {
  801.  
  802. };
  803. }
  804.  
  805. --
  806.  
  807. New = function(Object, Parent, Name, Data)
  808. local Object = Instance.new(Object)
  809. for Index, Value in pairs(Data or {}) do
  810. Object[Index] = Value
  811. end
  812. Object.Parent = Parent
  813. Object.Name = Name
  814. if Object:IsA("BasePart") then
  815. Object.CanCollide = false
  816. Object.Anchored = false
  817. end
  818. return Object
  819. end
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831. EffectModel = Create("Model"){
  832. Parent = Character,
  833. Name = "Effects",
  834. }
  835.  
  836. Effects = {
  837. Block = {
  838. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  839. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  840. prt.Anchored = true
  841. prt.CFrame = cframe
  842. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  843. game:GetService("Debris"):AddItem(prt, 10)
  844. if Type == 1 or Type == nil then
  845. table.insert(Effects, {
  846. prt,
  847. "Block1",
  848. delay,
  849. x3,
  850. y3,
  851. z3,
  852. msh
  853. })
  854. elseif Type == 2 then
  855. table.insert(Effects, {
  856. prt,
  857. "Block2",
  858. delay,
  859. x3,
  860. y3,
  861. z3,
  862. msh
  863. })
  864. end
  865. end;
  866. };
  867.  
  868. Cylinder = {
  869. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  870. local prt = CFuncs.Part..Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  871. prt.Anchored = true
  872. prt.CFrame = cframe
  873. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  874. game:GetService("Debris"):AddItem(prt, 2)
  875. Effects[#Effects + 1] = {
  876. prt,
  877. "Cylinder",
  878. delay,
  879. x3,
  880. y3,
  881. z3
  882. }
  883. end;
  884. };
  885.  
  886. Head = {
  887. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  888. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  889. prt.Anchored = true
  890. prt.CFrame = cframe
  891. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  892. game:GetService("Debris"):AddItem(prt, 10)
  893. table.insert(Effects, {
  894. prt,
  895. "Cylinder",
  896. delay,
  897. x3,
  898. y3,
  899. z3,
  900. msh
  901. })
  902. end;
  903. };
  904.  
  905. Sphere = {
  906. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3,y2, delay)
  907. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  908. prt.Anchored = true
  909. prt.CFrame = cframe
  910. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, y2, 0), Vector3.new(x1, y1, z1))
  911. game:GetService("Debris"):AddItem(prt, 10)
  912. table.insert(Effects, {
  913. prt,
  914. "Cylinder",
  915. delay,
  916. x3,
  917. y3,
  918. z3,
  919. msh
  920. })
  921. end;
  922. };
  923.  
  924. Elect = {
  925. Create = function(cff, x, y, z)
  926. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  927. prt.Anchored = true
  928. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  929. prt.CFrame = CFrame.new(prt.Position)
  930. game:GetService("Debris"):AddItem(prt, 2)
  931. local xval = math.random() / 2
  932. local yval = math.random() / 2
  933. local zval = math.random() / 2
  934. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  935. table.insert(Effects, {
  936. prt,
  937. "Elec",
  938. 0.1,
  939. x,
  940. y,
  941. z,
  942. xval,
  943. yval,
  944. zval
  945. })
  946. end;
  947.  
  948. };
  949.  
  950. Ring = {
  951. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  952. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  953. prt.Anchored = true
  954. prt.CFrame = cframe
  955. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  956. game:GetService("Debris"):AddItem(prt, 10)
  957. table.insert(Effects, {
  958. prt,
  959. "Cylinder",
  960. delay,
  961. x3,
  962. y3,
  963. z3,
  964. msh
  965. })
  966. end;
  967. };
  968.  
  969.  
  970. Wave = {
  971. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  972. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  973. prt.Anchored = true
  974. prt.CFrame = cframe
  975. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  976. game:GetService("Debris"):AddItem(prt, 10)
  977. table.insert(Effects, {
  978. prt,
  979. "Cylinder",
  980. delay,
  981. x3,
  982. y3,
  983. z3,
  984. msh
  985. })
  986. end;
  987. };
  988.  
  989. Break = {
  990. Create = function(brickcolor, cframe, x1, y1, z1)
  991. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  992. prt.Anchored = true
  993. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  994. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  995. local num = math.random(10, 50) / 1000
  996. game:GetService("Debris"):AddItem(prt, 10)
  997. table.insert(Effects, {
  998. prt,
  999. "Shatter",
  1000. num,
  1001. prt.CFrame,
  1002. math.random() - math.random(),
  1003. 0,
  1004. math.random(50, 100) / 100
  1005. })
  1006. end;
  1007. };
  1008.  
  1009. Fire = {
  1010. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  1011. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1012. prt.Anchored = true
  1013. prt.CFrame = cframe
  1014. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1015. game:GetService("Debris"):AddItem(prt, 10)
  1016. table.insert(Effects, {
  1017. prt,
  1018. "Fire",
  1019. delay,
  1020. 1,
  1021. 1,
  1022. 1,
  1023. msh
  1024. })
  1025. end;
  1026. };
  1027.  
  1028. FireWave = {
  1029. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  1030. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  1031. prt.Anchored = true
  1032. prt.CFrame = cframe
  1033. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, -2.93, 0), Vector3.new(x1, y1, z1))
  1034. local d = Create("Decal"){
  1035. Parent = prt,
  1036. Texture = "rbxassetid://129418678",
  1037. Face = "Top",
  1038. }
  1039. local d = Create("Decal"){
  1040. Parent = prt,
  1041. Texture = "rbxassetid://129418678",
  1042. Face = "Bottom",
  1043. }
  1044. game:GetService("Debris"):AddItem(prt, 10)
  1045. table.insert(Effects, {
  1046. prt,
  1047. "FireWave",
  1048. delay,
  1049. 5,
  1050. 30,
  1051. 5,
  1052. msh
  1053. })
  1054. end;
  1055. };
  1056.  
  1057. Lightning = {
  1058. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  1059. local magz = (p0 - p1).magnitude
  1060. local curpos = p0
  1061. local trz = {
  1062. -ofs,
  1063. ofs
  1064. }
  1065. for i = 1, tym do
  1066. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  1067. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  1068. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  1069. li.Material = "Neon"
  1070. if tym == i then
  1071. local magz2 = (curpos - p1).magnitude
  1072. li.Size = Vector3.new(th, th, magz2)
  1073. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  1074. table.insert(Effects, {
  1075. li,
  1076. "Disappear",
  1077. last
  1078. })
  1079. else
  1080. do
  1081. do
  1082. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  1083. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  1084. game.Debris:AddItem(li, 10)
  1085. table.insert(Effects, {
  1086. li,
  1087. "Disappear",
  1088. last
  1089. })
  1090. end
  1091. end
  1092. end
  1093. end
  1094. end
  1095. };
  1096.  
  1097. EffectTemplate = {
  1098.  
  1099. };
  1100. }
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127. local m = Create("Model"){
  1128. Parent = Character,
  1129. Name = "WeaponModel",
  1130. }
  1131.  
  1132.  
  1133. for i,v in pairs(m:GetChildren()) do
  1134. if v.ClassName == "Part" then
  1135. v.CanCollide = false
  1136.  
  1137. v.Transparency = trans
  1138.  
  1139.  
  1140. end
  1141. end
  1142. attack = true
  1143. RootPart.Anchored = true
  1144. local fake = Instance.new("Part", Torso)
  1145. fake.Size = Vector3.new(.1,.2,.1)
  1146. fake.Transparency = 1
  1147. fake.Anchored = true
  1148. fake.Material = "Neon"
  1149. fake.CanCollide = false
  1150. fake.BrickColor = BrickColor.new("Really black")
  1151. fake.CFrame = Torso.CFrame * CFrame.new(0,-3,0)
  1152. fake1 = Instance.new("CylinderMesh", fake)
  1153. SpawnAnim1()
  1154.  
  1155. wait(0.5)
  1156. local val = 5
  1157. while wait() and fake and fake.Transparency >= 0 do
  1158. fake.Transparency =fake.Transparency - 0.04
  1159. val = val - 0.1
  1160. fake1.Scale = fake1.Scale + Vector3.new(val,0,val)
  1161. end
  1162.  
  1163. Character.Head.face:Destroy()
  1164. for i = 1,91 do
  1165. wait()
  1166. trans = trans - .01
  1167. for i,v in pairs(m:GetChildren()) do
  1168. if v.ClassName == "Part" then
  1169. v.Transparency = trans
  1170.  
  1171.  
  1172. fake1.Scale = fake1.Scale - Vector3.new(.0025,0,.0025)
  1173.  
  1174. end
  1175. end
  1176. end
  1177. fake:Destroy()
  1178.  
  1179. wait(1)
  1180. --]]
  1181. SpawnAnim2()
  1182. RootPart.Anchored = false
  1183.  
  1184.  
  1185.  
  1186.  
  1187. Humanoid.DisplayDistanceType="None"
  1188. Humanoid.HealthDisplayDistance=0
  1189. Humanoid.NameDisplayDistance=0
  1190. Humanoid.NameOcclusion="EnemyOcclusion"
  1191.  
  1192.  
  1193.  
  1194. Armor()
  1195.  
  1196.  
  1197.  
  1198.  
  1199. -------------------------------------------------------
  1200. local Orbd = Instance.new("Part", Character)
  1201. Orbd.Name = "Orbd"
  1202. Orbd.Shape = Enum.PartType.Block
  1203. Orbd.CanCollide = false
  1204. Orbd.BrickColor = BrickColor.new("White")
  1205. Orbd.Transparency = 0
  1206. Orbd.Material = "Neon"
  1207. Orbd.Size = Vector3.new(0.2, 0.3, 0.2)
  1208. Orbd.TopSurface = Enum.SurfaceType.Smooth
  1209. Orbd.BottomSurface = Enum.SurfaceType.Smooth
  1210.  
  1211. local Weld = Instance.new("Weld", Orbd)
  1212. Weld.Part0 = Character.Head
  1213. Weld.Part1 = Orbd
  1214. Weld.C1 = CFrame.new(-0.2, -0.2, 0.49)
  1215.  
  1216. local M1 = Instance.new("SpecialMesh")
  1217. M1.Parent = Orbd
  1218. M1.MeshType = "Sphere"
  1219. M1.Scale = Vector3.new(1,0,1)
  1220. --------------------------------------------------------
  1221. local Orbvc = Instance.new("Part", Character)
  1222. Orbvc.Name = "Orbvc"
  1223. Orbvc.Shape = Enum.PartType.Block
  1224. Orbvc.CanCollide = false
  1225. Orbvc.BrickColor = BrickColor.new("White")
  1226. Orbvc.Transparency = 0
  1227. Orbvc.Material = "Neon"
  1228. Orbvc.Size = Vector3.new(0.2, 0.3, 0.2)
  1229. Orbvc.TopSurface = Enum.SurfaceType.Smooth
  1230. Orbvc.BottomSurface = Enum.SurfaceType.Smooth
  1231.  
  1232.  
  1233.  
  1234. local Weld = Instance.new("Weld", Orbvc)
  1235. Weld.Part0 = Character.Head
  1236. Weld.Part1 = Orbvc
  1237. Weld.C1 = CFrame.new(0.2, -0.2, 0.49)
  1238.  
  1239. local M2 = Instance.new("SpecialMesh")
  1240. M2.Parent = Orbvc
  1241. M2.MeshType = "Sphere"
  1242. M2.Scale = Vector3.new(1,0,1)
  1243. ---------------------------------------------------------
  1244. trailwait = false
  1245. function PortalEffect()
  1246. for i,v in pairs(Torso:GetChildren()) do
  1247. if v:IsA("Part") and v.Name == "trap" then
  1248.  
  1249. Effects.Wave.Create(BrickColor.new("Really black"), v.CFrame, 0, -.2, 0, .7, .02, .7, 0.08)
  1250. 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))
  1251.  
  1252. end
  1253. end
  1254.  
  1255. end
  1256.  
  1257.  
  1258.  
  1259.  
  1260. function trail()
  1261. if trailwait == false and attack == false and Anim == "Idle" then
  1262. trailwait = true
  1263. Effects.Sphere.Create(BrickColor.new("Really black"), RootPart.CFrame, 20, 10, 20, .8, -.05, .8, -2.94 ,0.004)
  1264. wait(.5)
  1265. trailwait = false
  1266. end
  1267.  
  1268.  
  1269. if trailwait == false and attack == false and Anim == "Walk" then
  1270. trailwait = true
  1271. Effects.Sphere.Create(BrickColor.new("Really black"), RootPart.CFrame, 30, 10, 30, .4, -.05, .4, -2.94 ,0.005)
  1272. wait(.3)
  1273. trailwait = false
  1274. end
  1275.  
  1276. end
  1277.  
  1278.  
  1279.  
  1280.  
  1281. function attack1()
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287. attack = true
  1288. RootPart.Anchored = true
  1289.  
  1290. Character.Humanoid.WalkSpeed = 0
  1291. Effects.Wave.Create(BrickColor.new("Really black"), RootPart.CFrame, 1, 1, 1, 0.2, .5, 0.2, 0.07)
  1292. Effects.Block.Create(BrickColor.new("Really black"), RootPart.CFrame, 2, 2, 2, 10.2, 10.2, 10.2, 0.07)
  1293. wait()
  1294.  
  1295. for i = 0, 2, 0.05 do
  1296. swait()
  1297. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,-4) * angles(math.rad(90), math.rad(0), math.rad(0)), .4)
  1298. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1299. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1300. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1301. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1302. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1303. end
  1304. for i = 0, 1, 0.05 do
  1305. swait()
  1306. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,-60,-4) * angles(math.rad(90), math.rad(0), math.rad(0)), 1)
  1307. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1308. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1309. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1310. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1311. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1312. end
  1313. EFS3:Play()
  1314. for i = 0, .1, 0.05 do
  1315. swait()
  1316. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,-60,-4) * angles(math.rad(0), math.rad(0), math.rad(180)), 1)
  1317. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1318. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1319. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1320. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1321. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1322. end
  1323. Effects.Wave.Create(BrickColor.new("Really black"), Head.CFrame, 1, 1, 1, 0.2, 0.5, 0.2, 0.07)
  1324. Effects.Block.Create(BrickColor.new("Really black"), Torso.CFrame, 2, 2, 2, 10.2, 10.2, 10.2, 0.07)
  1325. EFS.SoundId = "rbxassetid://518230185"
  1326. EFS:Play()
  1327. for i = 0, 2, 0.05 do
  1328. swait()
  1329. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,-60,0) * angles(math.rad(0), math.rad(0), math.rad(180)), .2)
  1330. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(25), math.rad(0), math.rad(0)), .4)
  1331. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1332. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1333. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1334. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1335. end
  1336. local targetV5 = Character.Torso.CFrame
  1337. wait()
  1338. for i = 0, 0, 1 do
  1339. swait()
  1340. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(0)), 1)
  1341. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0)
  1342. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1343. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1344. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1345. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1346. end
  1347.  
  1348. Character.HumanoidRootPart.CFrame = targetV5
  1349.  
  1350.  
  1351. attack = false
  1352.  
  1353. Character.Humanoid.WalkSpeed = 3
  1354. RootPart.Anchored = false
  1355.  
  1356.  
  1357.  
  1358.  
  1359.  
  1360.  
  1361. end
  1362.  
  1363.  
  1364.  
  1365.  
  1366. function attack2()
  1367. attack = true
  1368.  
  1369. for i = 0, 1, 0.05 do
  1370.  
  1371. Character.Humanoid.WalkSpeed = .5
  1372. swait()
  1373. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,-3.6) * angles(math.rad(90), math.rad(0), math.rad(0)), .4)
  1374. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(90), math.rad(0), math.rad(0)), .4)
  1375. LW.C0 = clerp(LW.C0, CFrame.new(0, .5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1376. RW.C0 = clerp(RW.C0, CFrame.new(0, .5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1377. RH.C0 = clerp(RH.C0, cn(0, 1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1378. LH.C0 = clerp(LH.C0, cn(0, 1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1379. end
  1380.  
  1381. for i = 1,121 do
  1382. wait()
  1383. Character.Humanoid.JumpPower = 0
  1384. Character.Humanoid.WalkSpeed = 40
  1385. Effects.Wave.Create(BrickColor.new("Really black"), Torso.CFrame, 8, -6, 1.42, -0.2, 0.003, -.005 , 0.05)
  1386. Effects.Break.Create(BrickColor.new("Really black"), Torso.CFrame, 0.2, 0.2, 0.2,0.7)
  1387.  
  1388. end
  1389.  
  1390.  
  1391. Effects.Block.Create(BrickColor.new("Really black"), Torso.CFrame, 2, 2, 2, 6.2, 6.2, 6.2, 0.07)
  1392. Character.Humanoid.JumpPower = 50
  1393. Character.Humanoid.WalkSpeed = 3
  1394.  
  1395.  
  1396.  
  1397. attack = false
  1398. end
  1399.  
  1400.  
  1401.  
  1402.  
  1403.  
  1404.  
  1405. function blink()
  1406. wait()
  1407. for i = 0, 1, 0.1 do
  1408. swait()
  1409. M1.Scale = Vector3.new(1, 0.2 + 0.3 * i, .9)
  1410. M2.Scale = Vector3.new(1, 0.2 + 0.3 * i, .9)
  1411. end
  1412. wait(1)
  1413. for i = 0, 1, 0.2 do
  1414. wait()
  1415. M1.Scale = Vector3.new(1, 0.7 - 1 * i, 1)
  1416. M2.Scale = Vector3.new(1, 0.7 - 1 * i, 1)
  1417. end
  1418. for i = 0, 1, 0.2 do
  1419. swait()
  1420. M1.Scale = Vector3.new(1, 0.7 + 0.3 * i, 1)
  1421. M2.Scale = Vector3.new(1, 0.7 + 0.3 * i, 1)
  1422. end
  1423. while true do wait()
  1424.  
  1425. swait(math.random(220, 440))
  1426. for i = 0, 1, 0.05 do
  1427. wait()
  1428. M1.Scale = Vector3.new(1, 0.7 - 1 * i, 1)
  1429. M2.Scale = Vector3.new(1, 0.7 - 1 * i, 1)
  1430. end
  1431. for i = 0, 1, 0.05 do
  1432. swait()
  1433. M1.Scale = Vector3.new(1, 0.7 + 0.3 * i, 1)
  1434. M2.Scale = Vector3.new(1, 0.7 + 0.3 * i, 1)
  1435. end
  1436. end
  1437. end
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446. EFS.SoundId = "rbxassetid://177359995"
  1447. EFS:Play()
  1448.  
  1449. wait(.5)
  1450.  
  1451. Sound = Instance.new("Sound")
  1452. Sound.Parent = Torso
  1453. Sound.SoundId = "rbxassetid://170282301"
  1454. Sound.Volume = 5
  1455. Sound.Looped = true
  1456. Sound:Play()
  1457.  
  1458.  
  1459. Character.Humanoid.MaxHealth = 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  1460. Character.Humanoid.Health = 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  1461. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  1462. if Character.Humanoid.Health <=9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 then
  1463.  
  1464. Character.Humanoid.Health = 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
  1465. end
  1466. end)
  1467.  
  1468. mouse.KeyDown:connect(function(key)
  1469. if key == "z" and attack == false then
  1470. attack1()
  1471. end
  1472. end)
  1473.  
  1474.  
  1475.  
  1476. mouse.KeyDown:connect(function(key)
  1477. if key == "x" and attack == false then
  1478. attack2()
  1479. end
  1480. end)
  1481.  
  1482.  
  1483.  
  1484. mouse.KeyDown:connect(function(key)
  1485. if key == "v" then
  1486.  
  1487. if autofind == false then
  1488. autofind = true
  1489. else
  1490. autofind = false
  1491. end
  1492.  
  1493. end
  1494. end)
  1495.  
  1496.  
  1497. wait2 = false
  1498. mouse.KeyDown:connect(function(key)
  1499. if key == "e" and wait2 == false then
  1500. wait2 = true
  1501.  
  1502.  
  1503.  
  1504.  
  1505. EFS.SoundId = "rbxassetid://177359995"
  1506. EFS:Play()
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513. wait(3.4)
  1514. wait2 = false
  1515. end
  1516. end)
  1517.  
  1518.  
  1519. hitwait = false
  1520.  
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.  
  1527.  
  1528.  
  1529.  
  1530. function onTouch(part)
  1531.  
  1532. local humanoid = part.Parent:findFirstChild("Humanoid")
  1533. local model = part.Parent
  1534. local torso = part.Parent:FindFirstChild("Torso")
  1535. local head = part.Parent:findFirstChild("Head")
  1536. local leftleg = part.Parent:findFirstChild("Left Leg")
  1537. local rightleg = part.Parent:findFirstChild("Right Leg")
  1538. local leftarm = part.Parent:findFirstChild("Left Arm")
  1539. local rightarm = part.Parent:findFirstChild("Right Arm")
  1540. if hitwait == false and attack == false and model.Name == "Effects" == false then
  1541.  
  1542. hitwait = true
  1543. ---------------------------R15-------------------------------------------------
  1544. if part.Parent:FindFirstChild("Torso") == nil and model.Humanoid.Health == 0 == false then
  1545. local torso2 = part.Parent:FindFirstChild("UpperTorso")
  1546. torso2:Destroy()
  1547. end
  1548. -------------------------------------------------------------------------------
  1549.  
  1550.  
  1551.  
  1552. if (humanoid ~=nil) and humanoid.Health >0.01 then
  1553. Effects.Block.Create(BrickColor.new("Really black"), head.CFrame, 2, 2, 2, 10.2, 10.2, 10.2, 0.07)
  1554. humanoid.Health = 0
  1555. attack = true
  1556. for i = 0, 6, .5 do
  1557. swait()
  1558. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(-25)), .4)
  1559. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1560. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(60), math.rad(0), math.rad(0)), 0.2)
  1561. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(160), math.rad(0), math.rad(90)), 0.2)
  1562. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  1563. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  1564. end
  1565. ATS:Play()
  1566. for i = 0, 5, .5 do
  1567. swait()
  1568. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(25)), .4)
  1569. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .4)
  1570. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
  1571. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(90), math.rad(0), math.rad(-20)), 0.2)
  1572. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  1573. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  1574. end
  1575. attack = false
  1576. end
  1577. end
  1578.  
  1579. hitwait = false
  1580. end
  1581. hitwait2 = false
  1582. function onTouch2(part)
  1583.  
  1584. local humanoid = part.Parent:findFirstChild("Humanoid")
  1585. local model = part.Parent
  1586. local torso = part.Parent:FindFirstChild("Torso")
  1587. local head = part.Parent:findFirstChild("Head")
  1588. local leftleg = part.Parent:findFirstChild("Left Leg")
  1589. local rightleg = part.Parent:findFirstChild("Right Leg")
  1590. local leftarm = part.Parent:findFirstChild("Left Arm")
  1591. local rightarm = part.Parent:findFirstChild("Right Arm")
  1592. local rootpart = part.Parent:findFirstChild("HumanoidRootPart")
  1593. if hitwait2 == false then
  1594.  
  1595. hitwait2 = true
  1596.  
  1597.  
  1598.  
  1599.  
  1600. if (humanoid ~=nil) and humanoid.Health >0 and model.Name == ""..Character.Name == false and model.Name == "Effects" == false then
  1601. Effects.Block.Create(BrickColor.new("Really black"), head.CFrame, 2, 2, 2, 10.2, 10.2, 10.2, 0.07)
  1602.  
  1603. rootpart.Anchored = true
  1604. for i=1,120 do
  1605. rootpart.CFrame = CFrame.new(rootpart.CFrame.x,rootpart.CFrame.y - .1,rootpart.CFrame.z)
  1606. wait()
  1607. end
  1608. rootpart.Anchored = false
  1609.  
  1610.  
  1611.  
  1612.  
  1613. local qw2 = Instance.new("Part",game.Workspace)
  1614. local qw3 = Instance.new("SpecialMesh",qw2)
  1615. local derp = CFrame.new(10050,1,10050)
  1616.  
  1617. qw2.CFrame = derp
  1618. qw2.Name = 'sky'
  1619. qw2.Anchored = true
  1620. qw3.MeshId = "rbxassetid://1527559"
  1621. qw3.TextureId = "rbxassetid://1529455"
  1622. qw3.Scale = Vector3.new(-1800,-2080,-1800)
  1623. qw3.VertexColor = Vector3.new(0,.01,.01)
  1624.  
  1625. for i=1,200 do --100 is the amount of the bricks, change it if you want.
  1626. local qw = Instance.new("Part",game.Workspace)
  1627. qw.Shape = "Block"
  1628. qw.Size = Vector3.new(8+i/12, 8+i/99, 8+i/12) --The size of the bricks
  1629. qw.CFrame = CFrame.new(derp.x+i*math.random(), derp.y+i/20+math.random(1,2), derp.z+i*math.random()) --Position
  1630. qw.BrickColor = BrickColor.new("Black") --The colour of the mountain
  1631. qw.Anchored = true
  1632. qw.Name = "Part"
  1633. qw.TopSurface = "Smooth"
  1634. qw.BottomSurface = "Smooth"
  1635. qw.Material = "Granite"
  1636. game:service'Debris':AddItem(qw, 50)
  1637.  
  1638. qw.Parent = game.Workspace
  1639. end
  1640. game:service'Debris':AddItem(qw2, 50)
  1641. --GeniusBuilder--
  1642. wait()
  1643.  
  1644. model:MoveTo(Vector3.new(10100,101,10100))
  1645.  
  1646.  
  1647. ehp = humanoid.MaxHealth
  1648. ehp2 = ehp/200
  1649.  
  1650.  
  1651. for i,v in pairs(model:GetChildren()) do
  1652. if v:IsA("Script") and v.Name == "Health" then
  1653. v:Destroy()
  1654. end
  1655. end
  1656.  
  1657. for i=1,400 do
  1658.  
  1659.  
  1660. if (humanoid ~=nil) and humanoid.Health >0 then
  1661. humanoid.WalkSpeed = 4
  1662. Effects.Break.Create(BrickColor.new("Really red"), head.CFrame, 0.2, 0.2, 0.2,0.7)
  1663. humanoid:TakeDamage(ehp2)
  1664. print(''..humanoid.Health)
  1665. for i=1,5 do
  1666.  
  1667. wait()
  1668. end
  1669.  
  1670. end
  1671. end
  1672. if (humanoid ~=nil) and humanoid.Health >0 then
  1673. for i=1,10 do
  1674. humanoid.Health = 0
  1675. wait()
  1676. end
  1677. end
  1678. print('your pocket dimension killed '..model.Name)
  1679. end
  1680. end
  1681. wait(1)
  1682. hitwait2 = false
  1683. end
  1684.  
  1685.  
  1686. Torso.Touched:connect(onTouch)
  1687.  
  1688. wait3 = false
  1689. hidden = false
  1690. thetrap = false
  1691. mouse.KeyDown:connect(function(key)
  1692. if key == "c" then
  1693. if hidden == false and wait3 == false and attack == false then
  1694. hidden = true
  1695. wait3 = true
  1696. Character.Humanoid.JumpPower = 0
  1697. attack = true
  1698. Character.Humanoid.WalkSpeed = 0
  1699.  
  1700. for i = 0, 5, 0.05 do
  1701. swait()
  1702. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,-10) * angles(math.rad(15), math.rad(0), math.rad(0)), .05)
  1703. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(45), math.rad(0), math.rad(0)), .2)
  1704. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(25), math.rad(0), math.rad(0)), 0.1)
  1705. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(25), math.rad(0), math.rad(0)), 0.1)
  1706. RH.C0 = clerp(RH.C0, cn(1, -.3, -.5) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-15)), .1)
  1707. LH.C0 = clerp(LH.C0, cn(-1, -.3, -.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(15)), .1)
  1708. end
  1709. Character.Humanoid.WalkSpeed = 3
  1710.  
  1711. end
  1712.  
  1713.  
  1714.  
  1715. if hidden == true and wait3 == false then
  1716. wait3 = true
  1717. hidden = false
  1718.  
  1719. EFS3:Play()
  1720. Character.Humanoid.WalkSpeed = 0
  1721. for i = 0, 5, 0.05 do
  1722. swait()
  1723. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(0)), .03)
  1724. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-25), math.rad(0), math.rad(0)), .2)
  1725. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(-0)), 0.3)
  1726. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(160), math.rad(0), math.rad(0)), 0.3)
  1727. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1728. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1729. end
  1730. Character.Humanoid.WalkSpeed = 3
  1731. Character.Humanoid.JumpPower = 50
  1732.  
  1733. attack = false
  1734.  
  1735.  
  1736. end
  1737. wait()
  1738. wait3 = false
  1739. end
  1740. end)
  1741. mouse.KeyDown:connect(function(key)
  1742. if key == "q" and attack == false then
  1743. attack = true
  1744. if thetrap == false then
  1745. Character.Humanoid.WalkSpeed = 0
  1746. Character.Humanoid.JumpPower = 0
  1747.  
  1748. for i = 0, 2, 0.05 do
  1749. swait()
  1750. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  1751. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(25), math.rad(0), math.rad(0)), .2)
  1752. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1753. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1754. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1755. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1756. end
  1757.  
  1758.  
  1759.  
  1760. thetrap = true
  1761. local fake = Instance.new("Part", Torso)
  1762. fake.Size = Vector3.new(3.1,.4,3.1)
  1763. fake.Transparency = 1
  1764. fake.Anchored = true
  1765. fake.Material = "Neon"
  1766. fake.Name = "LoadingTrap...."
  1767. fake.CanCollide = false
  1768. fake.BrickColor = BrickColor.new("Really black")
  1769. fake.CFrame = Torso.CFrame * CFrame.new(0,-3,0)
  1770. fake1 = Instance.new("CylinderMesh", fake)
  1771. fake1.Scale = Vector3.new(2.5,1,2.5)
  1772.  
  1773.  
  1774.  
  1775. for i = 0, 5, 0.05 do
  1776. swait()
  1777. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,-6) * angles(math.rad(0), math.rad(0), math.rad(0)), .05)
  1778. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(25), math.rad(0), math.rad(0)), .2)
  1779. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.1)
  1780. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.1)
  1781. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1782. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1783. end
  1784.  
  1785.  
  1786. for i=1,70 do
  1787.  
  1788. fake.Transparency = fake.Transparency -.01
  1789.  
  1790. wait()
  1791.  
  1792. end
  1793.  
  1794. fake.Touched:connect(onTouch2)
  1795. fake.Name = "trap"
  1796. for i = 0, 5, 0.05 do
  1797. swait()
  1798. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(0)), .05)
  1799. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-25), math.rad(0), math.rad(0)), .2)
  1800. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.1)
  1801. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.1)
  1802. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1803. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1804. end
  1805.  
  1806.  
  1807.  
  1808. wait()
  1809. Character.Humanoid.WalkSpeed = 8
  1810. Character.Humanoid.JumpPower = 50
  1811.  
  1812. else
  1813. Character.Humanoid.WalkSpeed = 0
  1814. Character.Humanoid.JumpPower = 0
  1815.  
  1816. for i = 0, 1, 0.05 do
  1817. swait()
  1818. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(0)), .2)
  1819. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(25), math.rad(0), math.rad(0)), .2)
  1820. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1821. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1822. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1823. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1824. end
  1825. for i,v in pairs(Torso:GetChildren()) do
  1826. if v:IsA("Part") and v.Name == "trap" then
  1827.  
  1828.  
  1829.  
  1830.  
  1831. for i=1,70 do
  1832.  
  1833. v.Transparency = v.Transparency +.01
  1834.  
  1835. wait()
  1836.  
  1837. end
  1838.  
  1839.  
  1840. v:Destroy()
  1841.  
  1842. wait()
  1843.  
  1844.  
  1845. end
  1846. end
  1847. Character.Humanoid.WalkSpeed = 8
  1848. Character.Humanoid.JumpPower = 50
  1849. thetrap = false
  1850. end
  1851.  
  1852.  
  1853.  
  1854.  
  1855.  
  1856.  
  1857.  
  1858. attack = false
  1859.  
  1860.  
  1861. end
  1862. end)
  1863.  
  1864.  
  1865.  
  1866.  
  1867.  
  1868.  
  1869.  
  1870.  
  1871.  
  1872.  
  1873. AutoStuff=function()
  1874. if attack == false and wait2 == false then
  1875. local r=math.random(1,500)
  1876.  
  1877.  
  1878. if r==1 then
  1879. attack1()
  1880. end
  1881. if r==2 then
  1882. attack2()
  1883. end
  1884. if r==3 then
  1885. wait2 = true
  1886. Humanoid.Jump = true
  1887. wait(1.5)
  1888. wait2 = false
  1889. end
  1890. if r==4 then
  1891. wait2 = true
  1892. EFS.SoundId = "rbxassetid://177359995"
  1893. EFS:Play()
  1894. wait(1.5)
  1895. wait2 = false
  1896. end
  1897.  
  1898.  
  1899.  
  1900.  
  1901. end
  1902. end
  1903.  
  1904.  
  1905.  
  1906.  
  1907.  
  1908.  
  1909.  
  1910. function findNearestTorso(pos)
  1911. local list = game.Workspace:children()
  1912. local torso = nil
  1913. local dist = 10000
  1914. local temp = nil
  1915. local human = nil
  1916. local temp2 = nil
  1917. for x = 1, #list do
  1918. temp2 = list[x]
  1919. if (temp2.className == "Model") and (temp2 ~= Character) then
  1920. temp = temp2:findFirstChild("HumanoidRootPart")
  1921. human = temp2:findFirstChild("Humanoid")
  1922. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1923. if (temp.Position - pos).magnitude < dist then
  1924. torso = temp
  1925. dist = (temp.Position - pos).magnitude
  1926. end
  1927. end
  1928. end
  1929. end
  1930. return torso
  1931. end
  1932.  
  1933. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  1934.  
  1935. local r2=math.random(1,500)
  1936. if r2==1 then
  1937. for i=1,10 do
  1938. PortalEffect()
  1939. wait()
  1940. end
  1941. end
  1942. end)
  1943. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  1944. trail()
  1945. end)
  1946.  
  1947. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  1948.  
  1949.  
  1950.  
  1951. wait()
  1952. if autofind == true then
  1953. local target = findNearestTorso(Character.HumanoidRootPart.Position)
  1954. if target ~= nil then
  1955. Humanoid:MoveTo(target.Position, target)
  1956. AutoStuff()
  1957. end
  1958. Orbd.BrickColor = BrickColor.new("Really red")
  1959. Orbvc.BrickColor = BrickColor.new("Really red")
  1960. else
  1961. Orbd.BrickColor = BrickColor.new("White")
  1962. Orbvc.BrickColor = BrickColor.new("White")
  1963. end
  1964. end)
  1965.  
  1966.  
  1967.  
  1968.  
  1969. NoClipCons = {}
  1970. if #NoClipCons == 0 then
  1971. local con = game:service("RunService").Stepped:connect(function()
  1972. pcall(function() Player.Character.Torso.CanCollide = false end)
  1973. pcall(function() Player.Character.Head.CanCollide = false end)
  1974. end)
  1975. table.insert(NoClipCons, con)
  1976. else
  1977. for i, v in pairs(NoClipCons) do
  1978. v:disconnect()
  1979. table.remove(NoClipCons, i)
  1980. end
  1981. end
  1982.  
  1983.  
  1984. print('---------------------')
  1985. print('Made by 123jl123')
  1986. print('---------------------')
  1987. print('do not leak...')
  1988. print('and i hope you have a nice day :)')
  1989. print('---------------------')
  1990.  
  1991. blink()
Advertisement
Add Comment
Please, Sign In to add comment