Advertisement
Nico1702

Error Sans Script

Dec 11th, 2018
2,951
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 115.99 KB | None | 0 0
  1. -----------------------
  2. --[[ Error : sans ]]--
  3. -------------------------------------------------------
  4. -- Script edited by Vecera and ozzak1003
  5. -------------------------------------------------------
  6.  
  7. CV="Maroon"
  8. p = game.Players.LocalPlayer
  9. char = p.Character
  10. local txt = Instance.new("BillboardGui", char)
  11. txt.Adornee = char .Head
  12. txt.Name = "_status"
  13. txt.Size = UDim2.new(2, 0, 1.2, 0)
  14. txt.StudsOffset = Vector3.new(-9, 8, 0)
  15. local text = Instance.new("TextLabel", txt)
  16. text.Size = UDim2.new(10, 0, 7, 0)
  17. text.FontSize = "Size24"
  18. text.TextScaled = true
  19. text.TextTransparency = 0
  20. text.BackgroundTransparency = 1
  21. text.TextTransparency = 0
  22. text.TextStrokeTransparency = 0
  23. text.Font = "Bodoni"
  24. text.TextStrokeColor3 = Color3.new(65, 105, 225)
  25.  
  26. v=Instance.new("Part")
  27. v.Name = "ColorBrick"
  28. v.Parent=p.Character
  29. v.FormFactor="Symmetric"
  30. v.Anchored=true
  31. v.CanCollide=false
  32. v.BottomSurface="Smooth"
  33. v.TopSurface="Smooth"
  34. v.Size=Vector3.new(10,5,3)
  35. v.Transparency=1
  36. v.CFrame=char.Torso.CFrame
  37. v.BrickColor=BrickColor.new(CV)
  38. v.Transparency=1
  39. text.TextColor3 = Color3.new(0,0,0)
  40. v.Shape="Block"
  41. text.Text = "Error! sans"
  42.  
  43.  
  44. wait(0.2)
  45. local plr = game:service'Players'.LocalPlayer
  46. print('Local User is '..plr.Name)
  47. print('Error! sans Loaded')
  48. print('ERASE EVERYTHING')
  49. local char = plr.Character
  50. local hum = char.Humanoid
  51. local hed = char.Head
  52. local root = char.HumanoidRootPart
  53. local rootj = root.RootJoint
  54. local tors = char.Torso
  55. local ra = char["Right Arm"]
  56. local la = char["Left Arm"]
  57. local rl = char["Right Leg"]
  58. local ll = char["Left Leg"]
  59. local neck = tors["Neck"]
  60. local mouse = plr:GetMouse()
  61. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  62. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  63. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  64. local maincolor = BrickColor.new("Institutional blue")
  65.  
  66. ff = Instance.new("ForceField",char)
  67. ff.Visible = false
  68. hum.Name = "Base"
  69. hum.MaxHealth = "inf"
  70. hum.Health = "inf"
  71. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  72. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  73. hum.MaxHealth = "inf"
  74. hum.Health = "inf"
  75. end
  76. end)
  77.  
  78. -------------------------------------------------------
  79. --Start Good Stuff--
  80. -------------------------------------------------------
  81. cam = game.Workspace.CurrentCamera
  82. CF = CFrame.new
  83. angles = CFrame.Angles
  84. attack = false
  85. Euler = CFrame.fromEulerAnglesXYZ
  86. Rad = math.rad
  87. IT = Instance.new
  88. BrickC = BrickColor.new
  89. Cos = math.cos
  90. Acos = math.acos
  91. Sin = math.sin
  92. Asin = math.asin
  93. Abs = math.abs
  94. Mrandom = math.random
  95. Floor = math.floor
  96. -------------------------------------------------------
  97. --End Good Stuff--
  98. -------------------------------------------------------
  99. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  100. RSH, LSH = nil, nil
  101. RW = Instance.new("Weld")
  102. LW = Instance.new("Weld")
  103. RH = tors["Right Hip"]
  104. LH = tors["Left Hip"]
  105. RSH = tors["Right Shoulder"]
  106. LSH = tors["Left Shoulder"]
  107. RSH.Parent = nil
  108. LSH.Parent = nil
  109. RW.Name = "RW"
  110. RW.Part0 = tors
  111. RW.C0 = CF(1.5, 0.5, 0)
  112. RW.C1 = CF(0, 0.5, 0)
  113. RW.Part1 = ra
  114. RW.Parent = tors
  115. LW.Name = "LW"
  116. LW.Part0 = tors
  117. LW.C0 = CF(-1.5, 0.5, 0)
  118. LW.C1 = CF(0, 0.5, 0)
  119. LW.Part1 = la
  120. LW.Parent = tors
  121. Effects = {}
  122. -------------------------------------------------------
  123. --Start HeartBeat--
  124. -------------------------------------------------------
  125. ArtificialHB = Instance.new("BindableEvent", script)
  126. ArtificialHB.Name = "Heartbeat"
  127. script:WaitForChild("Heartbeat")
  128.  
  129. frame = 1 / 60
  130. tf = 0
  131. allowframeloss = false
  132. tossremainder = false
  133.  
  134.  
  135. lastframe = tick()
  136. script.Heartbeat:Fire()
  137.  
  138.  
  139. game:GetService("RunService").Heartbeat:connect(function(s, p)
  140. tf = tf + s
  141. if tf >= frame then
  142. if allowframeloss then
  143. script.Heartbeat:Fire()
  144. lastframe = tick()
  145. else
  146. for i = 1, math.floor(tf / frame) do
  147. script.Heartbeat:Fire()
  148. end
  149. lastframe = tick()
  150. end
  151. if tossremainder then
  152. tf = 0
  153. else
  154. tf = tf - frame * math.floor(tf / frame)
  155. end
  156. end
  157. end)
  158. -------------------------------------------------------
  159. --End HeartBeat--
  160. -------------------------------------------------------
  161.  
  162. -------------------------------------------------------
  163. --Start Important Functions--
  164. -------------------------------------------------------
  165. function swait(num)
  166. if num == 0 or num == nil then
  167. game:service("RunService").Stepped:wait(0)
  168. else
  169. for i = 0, num do
  170. game:service("RunService").Stepped:wait(0)
  171. end
  172. end
  173. end
  174. function thread(f)
  175. coroutine.resume(coroutine.create(f))
  176. end
  177. function clerp(a, b, t)
  178. local qa = {
  179. QuaternionFromCFrame(a)
  180. }
  181. local qb = {
  182. QuaternionFromCFrame(b)
  183. }
  184. local ax, ay, az = a.x, a.y, a.z
  185. local bx, by, bz = b.x, b.y, b.z
  186. local _t = 1 - t
  187. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  188. end
  189. function QuaternionFromCFrame(cf)
  190. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  191. local trace = m00 + m11 + m22
  192. if trace > 0 then
  193. local s = math.sqrt(1 + trace)
  194. local recip = 0.5 / s
  195. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  196. else
  197. local i = 0
  198. if m00 < m11 then
  199. i = 1
  200. end
  201. if m22 > (i == 0 and m00 or m11) then
  202. i = 2
  203. end
  204. if i == 0 then
  205. local s = math.sqrt(m00 - m11 - m22 + 1)
  206. local recip = 0.5 / s
  207. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  208. elseif i == 1 then
  209. local s = math.sqrt(m11 - m22 - m00 + 1)
  210. local recip = 0.5 / s
  211. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  212. elseif i == 2 then
  213. local s = math.sqrt(m22 - m00 - m11 + 1)
  214. local recip = 0.5 / s
  215. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  216. end
  217. end
  218. end
  219. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  220. local xs, ys, zs = x + x, y + y, z + z
  221. local wx, wy, wz = w * xs, w * ys, w * zs
  222. local xx = x * xs
  223. local xy = x * ys
  224. local xz = x * zs
  225. local yy = y * ys
  226. local yz = y * zs
  227. local zz = z * zs
  228. 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))
  229. end
  230. function QuaternionSlerp(a, b, t)
  231. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  232. local startInterp, finishInterp
  233. if cosTheta >= 1.0E-4 then
  234. if 1 - cosTheta > 1.0E-4 then
  235. local theta = math.acos(cosTheta)
  236. local invSinTheta = 1 / Sin(theta)
  237. startInterp = Sin((1 - t) * theta) * invSinTheta
  238. finishInterp = Sin(t * theta) * invSinTheta
  239. else
  240. startInterp = 1 - t
  241. finishInterp = t
  242. end
  243. elseif 1 + cosTheta > 1.0E-4 then
  244. local theta = math.acos(-cosTheta)
  245. local invSinTheta = 1 / Sin(theta)
  246. startInterp = Sin((t - 1) * theta) * invSinTheta
  247. finishInterp = Sin(t * theta) * invSinTheta
  248. else
  249. startInterp = t - 1
  250. finishInterp = t
  251. end
  252. 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
  253. end
  254. function rayCast(Position, Direction, Range, Ignore)
  255. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  256. end
  257. local RbxUtility = LoadLibrary("RbxUtility")
  258. local Create = RbxUtility.Create
  259. -------------------------------------------------------
  260. ypcall(function()
  261. char.Shirt:Destroy()
  262. char.Pants:Destroy()
  263. shirt = Instance.new("Shirt", char)
  264. shirt.Name = "Shirt"
  265. pants = Instance.new("Pants", char)
  266. pants.Name = "Pants"
  267. char.Shirt.ShirtTemplate = "rbxassetid://1073860492"
  268. char.Pants.PantsTemplate = "rbxassetid://1132308115"
  269. char.Head.face.Texture = "rbxassetid://543498118"
  270. end)
  271. -------------------------------------------------------
  272. --Start Damage Function--
  273. -------------------------------------------------------
  274. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  275. if hit.Parent == nil then
  276. return
  277. end
  278. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  279. for _, v in pairs(hit.Parent:children()) do
  280. if v:IsA("Humanoid") then
  281. h = v
  282. end
  283. end
  284. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  285.  
  286. hit.Parent:FindFirstChild("Head"):BreakJoints()
  287. end
  288.  
  289. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  290. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  291. if hit.Parent.DebounceHit.Value == true then
  292. return
  293. end
  294. end
  295. if insta == true then
  296. hit.Parent:FindFirstChild("Head"):BreakJoints()
  297. end
  298. local c = Create("ObjectValue"){
  299. Name = "creator",
  300. Value = game:service("Players").LocalPlayer,
  301. Parent = h,
  302. }
  303. game:GetService("Debris"):AddItem(c, .5)
  304. if HitSound ~= nil and HitPitch ~= nil then
  305. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  306. end
  307. local Damage = math.random(minim, maxim)
  308. local blocked = false
  309. local block = hit.Parent:findFirstChild("Block")
  310. if block ~= nil then
  311. if block.className == "IntValue" then
  312. if block.Value > 0 then
  313. blocked = true
  314. block.Value = block.Value - 1
  315. print(block.Value)
  316. end
  317. end
  318. end
  319. if blocked == false then
  320. h.Health = h.Health - Damage
  321. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  322. else
  323. h.Health = h.Health - (Damage / 2)
  324. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  325. end
  326. if Type == "Knockdown" then
  327. local hum = hit.Parent.Humanoid
  328. hum.PlatformStand = true
  329. coroutine.resume(coroutine.create(function(HHumanoid)
  330. swait(1)
  331. HHumanoid.PlatformStand = false
  332. end), hum)
  333. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  334. local bodvol = Create("BodyVelocity"){
  335. velocity = angle * knockback,
  336. P = 5000,
  337. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  338. Parent = hit,
  339. }
  340. local rl = Create("BodyAngularVelocity"){
  341. P = 3000,
  342. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  343. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  344. Parent = hit,
  345. }
  346. game:GetService("Debris"):AddItem(bodvol, .5)
  347. game:GetService("Debris"):AddItem(rl, .5)
  348. elseif Type == "Normal" then
  349. local vp = Create("BodyVelocity"){
  350. P = 500,
  351. maxForce = Vector3.new(math.huge, 0, math.huge),
  352. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  353. }
  354. if knockback > 0 then
  355. vp.Parent = hit.Parent.Torso
  356. end
  357. game:GetService("Debris"):AddItem(vp, .5)
  358. elseif Type == "Up" then
  359. local bodyVelocity = Create("BodyVelocity"){
  360. velocity = Vector3.new(0, 20, 0),
  361. P = 5000,
  362. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  363. Parent = hit,
  364. }
  365. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  366. elseif Type == "DarkUp" then
  367. coroutine.resume(coroutine.create(function()
  368. for i = 0, 1, 0.1 do
  369. swait()
  370. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  371. end
  372. end))
  373. local bodyVelocity = Create("BodyVelocity"){
  374. velocity = Vector3.new(0, 20, 0),
  375. P = 5000,
  376. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  377. Parent = hit,
  378. }
  379. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  380. elseif Type == "Snare" then
  381. local bp = Create("BodyPosition"){
  382. P = 2000,
  383. D = 100,
  384. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  385. position = hit.Parent.Torso.Position,
  386. Parent = hit.Parent.Torso,
  387. }
  388. game:GetService("Debris"):AddItem(bp, 1)
  389. elseif Type == "Freeze" then
  390. local BodPos = Create("BodyPosition"){
  391. P = 50000,
  392. D = 1000,
  393. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  394. position = hit.Parent.Torso.Position,
  395. Parent = hit.Parent.Torso,
  396. }
  397. local BodGy = Create("BodyGyro") {
  398. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  399. P = 20e+003,
  400. Parent = hit.Parent.Torso,
  401. cframe = hit.Parent.Torso.CFrame,
  402. }
  403. hit.Parent.Torso.Anchored = true
  404. coroutine.resume(coroutine.create(function(Part)
  405. swait(1.5)
  406. Part.Anchored = false
  407. end), hit.Parent.Torso)
  408. game:GetService("Debris"):AddItem(BodPos, 3)
  409. game:GetService("Debris"):AddItem(BodGy, 3)
  410. end
  411. local debounce = Create("BoolValue"){
  412. Name = "DebounceHit",
  413. Parent = hit.Parent,
  414. Value = true,
  415. }
  416. game:GetService("Debris"):AddItem(debounce, Delay)
  417. c = Create("ObjectValue"){
  418. Name = "creator",
  419. Value = Player,
  420. Parent = h,
  421. }
  422. game:GetService("Debris"):AddItem(c, .5)
  423. end
  424. end
  425. -------------------------------------------------------
  426. --End Damage Function--
  427. -------------------------------------------------------
  428.  
  429. -------------------------------------------------------
  430. --Start Damage Function Customization--
  431. -------------------------------------------------------
  432. function ShowDamage(Pos, Text, Time, Color)
  433. local Rate = (1 / 30)
  434. local Pos = (Pos or Vector3.new(0, 0, 0))
  435. local Text = (Text or "")
  436. local Time = (Time or 2)
  437. local Color = (Color or Color3.new(1, 0, 1))
  438. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  439. EffectPart.Anchored = true
  440. local BillboardGui = Create("BillboardGui"){
  441. Size = UDim2.new(3, 0, 3, 0),
  442. Adornee = EffectPart,
  443. Parent = EffectPart,
  444. }
  445. local TextLabel = Create("TextLabel"){
  446. BackgroundTransparency = 1,
  447. Size = UDim2.new(1, 0, 1, 0),
  448. Text = Text,
  449. Font = "Bodoni",
  450. TextColor3 = Color,
  451. TextScaled = true,
  452. TextStrokeColor3 = Color3.fromRGB(0,255,255),
  453. Parent = BillboardGui,
  454. }
  455. game.Debris:AddItem(EffectPart, (Time))
  456. EffectPart.Parent = game:GetService("Workspace")
  457. delay(0, function()
  458. local Frames = (Time / Rate)
  459. for Frame = 1, Frames do
  460. wait(Rate)
  461. local Percent = (Frame / Frames)
  462. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  463. TextLabel.TextTransparency = Percent
  464. end
  465. if EffectPart and EffectPart.Parent then
  466. EffectPart:Destroy()
  467. end
  468. end)
  469. end
  470. -------------------------------------------------------
  471. --End Damage Function Customization--
  472. -------------------------------------------------------
  473.  
  474. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  475. for _, c in pairs(workspace:children()) do
  476. local hum = c:findFirstChild("Humanoid")
  477. if hum ~= nil then
  478. local head = c:findFirstChild("Head")
  479. if head ~= nil then
  480. local targ = head.Position - Part.Position
  481. local mag = targ.magnitude
  482. if magni >= mag and c.Name ~= plr.Name then
  483. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  484. end
  485. end
  486. end
  487. end
  488. end
  489.  
  490.  
  491. CFuncs = {
  492. Part = {
  493. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  494. local Part = Create("Part")({
  495. Parent = Parent,
  496. Reflectance = Reflectance,
  497. Transparency = Transparency,
  498. CanCollide = false,
  499. Locked = true,
  500. BrickColor = BrickColor.new(tostring(BColor)),
  501. Name = Name,
  502. Size = Size,
  503. Material = Material
  504. })
  505. RemoveOutlines(Part)
  506. return Part
  507. end
  508. },
  509. Mesh = {
  510. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  511. local Msh = Create(Mesh)({
  512. Parent = Part,
  513. Offset = OffSet,
  514. Scale = Scale
  515. })
  516. if Mesh == "SpecialMesh" then
  517. Msh.MeshType = MeshType
  518. Msh.MeshId = MeshId
  519. end
  520. return Msh
  521. end
  522. },
  523. Mesh = {
  524. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  525. local Msh = Create(Mesh)({
  526. Parent = Part,
  527. Offset = OffSet,
  528. Scale = Scale
  529. })
  530. if Mesh == "SpecialMesh" then
  531. Msh.MeshType = MeshType
  532. Msh.MeshId = MeshId
  533. end
  534. return Msh
  535. end
  536. },
  537. Weld = {
  538. Create = function(Parent, Part0, Part1, C0, C1)
  539. local Weld = Create("Weld")({
  540. Parent = Parent,
  541. Part0 = Part0,
  542. Part1 = Part1,
  543. C0 = C0,
  544. C1 = C1
  545. })
  546. return Weld
  547. end
  548. },
  549. Sound = {
  550. Create = function(id, par, vol, pit)
  551. coroutine.resume(coroutine.create(function()
  552. local S = Create("Sound")({
  553. Volume = vol,
  554. Pitch = pit or 1,
  555. SoundId = id,
  556. Parent = par or workspace
  557. })
  558. wait()
  559. S:play()
  560. game:GetService("Debris"):AddItem(S, 6)
  561. end))
  562. end
  563. },
  564. ParticleEmitter = {
  565. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  566. local fp = Create("ParticleEmitter")({
  567. Parent = Parent,
  568. Color = ColorSequence.new(Color1, Color2),
  569. LightEmission = LightEmission,
  570. Size = Size,
  571. Texture = Texture,
  572. Transparency = Transparency,
  573. ZOffset = ZOffset,
  574. Acceleration = Accel,
  575. Drag = Drag,
  576. LockedToPart = LockedToPart,
  577. VelocityInheritance = VelocityInheritance,
  578. EmissionDirection = EmissionDirection,
  579. Enabled = Enabled,
  580. Lifetime = LifeTime,
  581. Rate = Rate,
  582. Rotation = Rotation,
  583. RotSpeed = RotSpeed,
  584. Speed = Speed,
  585. VelocitySpread = VelocitySpread
  586. })
  587. return fp
  588. end
  589. }
  590. }
  591. function RemoveOutlines(part)
  592. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  593. end
  594. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  595. local Part = Create("Part")({
  596. formFactor = FormFactor,
  597. Parent = Parent,
  598. Reflectance = Reflectance,
  599. Transparency = Transparency,
  600. CanCollide = false,
  601. Locked = true,
  602. BrickColor = BrickColor.new(tostring(BColor)),
  603. Name = Name,
  604. Size = Size,
  605. Material = Material
  606. })
  607. RemoveOutlines(Part)
  608. return Part
  609. end
  610. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  611. local Msh = Create(Mesh)({
  612. Parent = Part,
  613. Offset = OffSet,
  614. Scale = Scale
  615. })
  616. if Mesh == "SpecialMesh" then
  617. Msh.MeshType = MeshType
  618. Msh.MeshId = MeshId
  619. end
  620. return Msh
  621. end
  622. function CreateWeld(Parent, Part0, Part1, C0, C1)
  623. local Weld = Create("Weld")({
  624. Parent = Parent,
  625. Part0 = Part0,
  626. Part1 = Part1,
  627. C0 = C0,
  628. C1 = C1
  629. })
  630. return Weld
  631. end
  632.  
  633. char["Body Colors"].HeadColor = BrickColor.new("Black")
  634. char["Body Colors"].TorsoColor = BrickColor.new("Black")
  635. char["Body Colors"].LeftArmColor = BrickColor.new("Black")
  636. char["Body Colors"].RightArmColor = BrickColor.new("Black")
  637.  
  638. -------------------------------------------------------
  639. --Start Effect Function--
  640. -------------------------------------------------------
  641. EffectModel = Instance.new("Model", char)
  642. Effects = {
  643. Block = {
  644. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  645. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  646. prt.Anchored = true
  647. prt.CFrame = cframe
  648. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  649. game:GetService("Debris"):AddItem(prt, 10)
  650. if Type == 1 or Type == nil then
  651. table.insert(Effects, {
  652. prt,
  653. "Block1",
  654. delay,
  655. x3,
  656. y3,
  657. z3,
  658. msh
  659. })
  660. elseif Type == 2 then
  661. table.insert(Effects, {
  662. prt,
  663. "Block2",
  664. delay,
  665. x3,
  666. y3,
  667. z3,
  668. msh
  669. })
  670. else
  671. table.insert(Effects, {
  672. prt,
  673. "Block3",
  674. delay,
  675. x3,
  676. y3,
  677. z3,
  678. msh
  679. })
  680. end
  681. end
  682. },
  683. Sphere = {
  684. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  685. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  686. prt.Anchored = true
  687. prt.CFrame = cframe
  688. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  689. game:GetService("Debris"):AddItem(prt, 10)
  690. table.insert(Effects, {
  691. prt,
  692. "Cylinder",
  693. delay,
  694. x3,
  695. y3,
  696. z3,
  697. msh
  698. })
  699. end
  700. },
  701. Cylinder = {
  702. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  703. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  704. prt.Anchored = true
  705. prt.CFrame = cframe
  706. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  707. game:GetService("Debris"):AddItem(prt, 10)
  708. table.insert(Effects, {
  709. prt,
  710. "Cylinder",
  711. delay,
  712. x3,
  713. y3,
  714. z3,
  715. msh
  716. })
  717. end
  718. },
  719. Wave = {
  720. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  721. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  722. prt.Anchored = true
  723. prt.CFrame = cframe
  724. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  725. game:GetService("Debris"):AddItem(prt, 10)
  726. table.insert(Effects, {
  727. prt,
  728. "Cylinder",
  729. delay,
  730. x3 / 60,
  731. y3 / 60,
  732. z3 / 60,
  733. msh
  734. })
  735. end
  736. },
  737. Ring = {
  738. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  739. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  740. prt.Anchored = true
  741. prt.CFrame = cframe
  742. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  743. game:GetService("Debris"):AddItem(prt, 10)
  744. table.insert(Effects, {
  745. prt,
  746. "Cylinder",
  747. delay,
  748. x3,
  749. y3,
  750. z3,
  751. msh
  752. })
  753. end
  754. },
  755. Break = {
  756. Create = function(brickcolor, cframe, x1, y1, z1)
  757. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  758. prt.Anchored = true
  759. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  760. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  761. local num = math.random(10, 50) / 1000
  762. game:GetService("Debris"):AddItem(prt, 10)
  763. table.insert(Effects, {
  764. prt,
  765. "Shatter",
  766. num,
  767. prt.CFrame,
  768. math.random() - math.random(),
  769. 0,
  770. math.random(50, 100) / 100
  771. })
  772. end
  773. },
  774. Spiral = {
  775. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  776. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  777. prt.Anchored = true
  778. prt.CFrame = cframe
  779. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  780. game:GetService("Debris"):AddItem(prt, 10)
  781. table.insert(Effects, {
  782. prt,
  783. "Cylinder",
  784. delay,
  785. x3,
  786. y3,
  787. z3,
  788. msh
  789. })
  790. end
  791. },
  792. Push = {
  793. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  794. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  795. prt.Anchored = true
  796. prt.CFrame = cframe
  797. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  798. game:GetService("Debris"):AddItem(prt, 10)
  799. table.insert(Effects, {
  800. prt,
  801. "Cylinder",
  802. delay,
  803. x3,
  804. y3,
  805. z3,
  806. msh
  807. })
  808. end
  809. }
  810. }
  811. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  812. local fp = IT("Part")
  813. fp.formFactor = formfactor
  814. fp.Parent = parent
  815. fp.Reflectance = reflectance
  816. fp.Transparency = transparency
  817. fp.CanCollide = false
  818. fp.Locked = true
  819. fp.BrickColor = brickcolor
  820. fp.Name = name
  821. fp.Size = size
  822. fp.Position = tors.Position
  823. RemoveOutlines(fp)
  824. fp.Material = "SmoothPlastic"
  825. fp:BreakJoints()
  826. return fp
  827. end
  828.  
  829. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  830. local mesh = IT(Mesh)
  831. mesh.Parent = part
  832. if Mesh == "SpecialMesh" then
  833. mesh.MeshType = meshtype
  834. if meshid ~= "nil" then
  835. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  836. end
  837. end
  838. mesh.Offset = offset
  839. mesh.Scale = scale
  840. return mesh
  841. end
  842.  
  843. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  844. local type = type
  845. local rng = Instance.new("Part", char)
  846. rng.Anchored = true
  847. rng.BrickColor = color
  848. rng.CanCollide = false
  849. rng.FormFactor = 3
  850. rng.Name = "Ring"
  851. rng.Material = "Neon"
  852. rng.Size = Vector3.new(1, 1, 1)
  853. rng.Transparency = 0
  854. rng.TopSurface = 0
  855. rng.BottomSurface = 0
  856. rng.CFrame = pos
  857. local rngm = Instance.new("SpecialMesh", rng)
  858. rngm.MeshType = MType
  859. rngm.Scale = scale
  860. local scaler2 = 1
  861. if type == "Add" then
  862. scaler2 = 1 * value
  863. elseif type == "Divide" then
  864. scaler2 = 1 / value
  865. end
  866. coroutine.resume(coroutine.create(function()
  867. for i = 0, 10 / bonuspeed, 0.1 do
  868. swait()
  869. if type == "Add" then
  870. scaler2 = scaler2 - 0.01 * value / bonuspeed
  871. elseif type == "Divide" then
  872. scaler2 = scaler2 - 0.01 / value * bonuspeed
  873. end
  874. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  875. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  876. end
  877. rng:Destroy()
  878. end))
  879. end
  880.  
  881. function Eviscerate(dude)
  882. if dude.Name ~= char then
  883. local bgf = IT("BodyGyro", dude.Head)
  884. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  885. local val = IT("BoolValue", dude)
  886. val.Name = "IsHit"
  887. local ds = coroutine.wrap(function()
  888. dude:WaitForChild("Head"):BreakJoints()
  889. wait(0.5)
  890. target = nil
  891. coroutine.resume(coroutine.create(function()
  892. for i, v in pairs(dude:GetChildren()) do
  893. if v:IsA("Accessory") then
  894. v:Destroy()
  895. end
  896. if v:IsA("Humanoid") then
  897. v:Destroy()
  898. end
  899. if v:IsA("CharacterMesh") then
  900. v:Destroy()
  901. end
  902. if v:IsA("Model") then
  903. v:Destroy()
  904. end
  905. if v:IsA("Part") or v:IsA("MeshPart") then
  906. for x, o in pairs(v:GetChildren()) do
  907. if o:IsA("Decal") then
  908. o:Destroy()
  909. end
  910. end
  911. coroutine.resume(coroutine.create(function()
  912. v.Material = "Neon"
  913. v.CanCollide = false
  914. local PartEmmit1 = IT("ParticleEmitter", v)
  915. PartEmmit1.LightEmission = 1
  916. PartEmmit1.Texture = "rbxassetid://284205403"
  917. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  918. PartEmmit1.Rate = 150
  919. PartEmmit1.Lifetime = NumberRange.new(1)
  920. PartEmmit1.Size = NumberSequence.new({
  921. NumberSequenceKeypoint.new(0, 0.75, 0),
  922. NumberSequenceKeypoint.new(1, 0, 0)
  923. })
  924. PartEmmit1.Transparency = NumberSequence.new({
  925. NumberSequenceKeypoint.new(0, 0, 0),
  926. NumberSequenceKeypoint.new(1, 1, 0)
  927. })
  928. PartEmmit1.Speed = NumberRange.new(0, 0)
  929. PartEmmit1.VelocitySpread = 30000
  930. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  931. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  932. local BodPoss = IT("BodyPosition", v)
  933. BodPoss.P = 3000
  934. BodPoss.D = 1000
  935. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  936. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  937. v.Color = maincolor.Color
  938. coroutine.resume(coroutine.create(function()
  939. for i = 0, 49 do
  940. swait(1)
  941. v.Transparency = v.Transparency + 0.08
  942. end
  943. wait(0.5)
  944. PartEmmit1.Enabled = false
  945. wait(3)
  946. v:Destroy()
  947. dude:Destroy()
  948. end))
  949. end))
  950. end
  951. end
  952. end))
  953. end)
  954. ds()
  955. end
  956. end
  957.  
  958. function FindNearestHead(Position, Distance, SinglePlayer)
  959. if SinglePlayer then
  960. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  961. end
  962. local List = {}
  963. for i, v in pairs(workspace:GetChildren()) do
  964. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  965. table.insert(List, v)
  966. end
  967. end
  968. return List
  969. end
  970.  
  971. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  972. local type = type
  973. local rng = Instance.new("Part", char)
  974. rng.Anchored = true
  975. rng.BrickColor = color
  976. rng.CanCollide = false
  977. rng.FormFactor = 3
  978. rng.Name = "Ring"
  979. rng.Material = "Neon"
  980. rng.Size = Vector3.new(1, 1, 1)
  981. rng.Transparency = 0
  982. rng.TopSurface = 0
  983. rng.BottomSurface = 0
  984. rng.CFrame = pos
  985. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  986. local rngm = Instance.new("SpecialMesh", rng)
  987. rngm.MeshType = MType
  988. rngm.Scale = Vector3.new(x1, y1, z1)
  989. local scaler2 = 1
  990. local speeder = FastSpeed
  991. if type == "Add" then
  992. scaler2 = 1 * value
  993. elseif type == "Divide" then
  994. scaler2 = 1 / value
  995. end
  996. coroutine.resume(coroutine.create(function()
  997. for i = 0, 10 / bonuspeed, 0.1 do
  998. swait()
  999. if type == "Add" then
  1000. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1001. elseif type == "Divide" then
  1002. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1003. end
  1004. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1005. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1006. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1007. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1008. end
  1009. rng:Destroy()
  1010. end))
  1011. end
  1012.  
  1013. function SoulSteal(dude)
  1014. if dude.Name ~= char then
  1015. local bgf = IT("BodyGyro", dude.Head)
  1016. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1017. local val = IT("BoolValue", dude)
  1018. val.Name = "IsHit"
  1019. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1020. local soulst = coroutine.wrap(function()
  1021. local soul = Instance.new("Part",dude)
  1022. soul.Size = Vector3.new(1,1,1)
  1023. soul.CanCollide = false
  1024. soul.Anchored = false
  1025. soul.Position = torso.Position
  1026. soul.Transparency = 1
  1027. local PartEmmit1 = IT("ParticleEmitter", soul)
  1028. PartEmmit1.LightEmission = 1
  1029. PartEmmit1.Texture = "rbxassetid://569507414"
  1030. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1031. PartEmmit1.Rate = 250
  1032. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1033. PartEmmit1.Size = NumberSequence.new({
  1034. NumberSequenceKeypoint.new(0, 1, 0),
  1035. NumberSequenceKeypoint.new(1, 0, 0)
  1036. })
  1037. PartEmmit1.Transparency = NumberSequence.new({
  1038. NumberSequenceKeypoint.new(0, 0, 0),
  1039. NumberSequenceKeypoint.new(1, 1, 0)
  1040. })
  1041. PartEmmit1.Speed = NumberRange.new(0, 0)
  1042. PartEmmit1.VelocitySpread = 30000
  1043. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1044. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1045. local BodPoss = IT("BodyPosition", soul)
  1046. BodPoss.P = 3000
  1047. BodPoss.D = 1000
  1048. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1049. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1050. wait(1.6)
  1051. soul.Touched:connect(function(hit)
  1052. if hit.Parent == char then
  1053. soul:Destroy()
  1054. end
  1055. end)
  1056. wait(1.2)
  1057. while soul do
  1058. swait()
  1059. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1060. BodPoss.Position = tors.Position
  1061. end
  1062. end)
  1063. soulst()
  1064. end
  1065. end
  1066. function FaceMouse()
  1067. local Cam = workspace.CurrentCamera
  1068. return {
  1069. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1070. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1071. }
  1072. end
  1073. -------------------------------------------------------
  1074. --End Effect Function--
  1075. -------------------------------------------------------
  1076. function Cso(ID, PARENT, VOLUME, PITCH)
  1077. local NSound = nil
  1078. coroutine.resume(coroutine.create(function()
  1079. NSound = IT("Sound", PARENT)
  1080. NSound.Volume = VOLUME
  1081. NSound.Pitch = PITCH
  1082. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1083. swait()
  1084. NSound:play()
  1085. game:GetService("Debris"):AddItem(NSound, 10)
  1086. end))
  1087. return NSound
  1088. end
  1089. function CameraEnshaking(Length, Intensity)
  1090. coroutine.resume(coroutine.create(function()
  1091. local intensity = 1 * Intensity
  1092. local rotM = 0.01 * Intensity
  1093. for i = 0, Length, 0.1 do
  1094. swait()
  1095. intensity = intensity - 0.05 * Intensity / Length
  1096. rotM = rotM - 5.0E-4 * Intensity / Length
  1097. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1098. cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
  1099. end
  1100. hum.CameraOffset = Vector3.new(0, 0, 0)
  1101. end))
  1102. end
  1103. function getRegion(point,range,ignore)
  1104. return workspace:FindPartsInRegion3WithIgnoreList(Region3.new(point-Vector3.new(1,1,1)*range/2,point+Vector3.new(1,1,1)*range/2),ignore,100)
  1105. end
  1106.  
  1107. function GetTorso(char)
  1108. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  1109. end
  1110.  
  1111. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  1112.  
  1113. NewInstance = function(instance,parent,properties)
  1114. local inst = Instance.new(instance)
  1115. inst.Parent = parent
  1116. if(properties)then
  1117. for i,v in next, properties do
  1118. pcall(function() inst[i] = v end)
  1119. end
  1120. end
  1121. return inst;
  1122. end
  1123.  
  1124. function Part(parent,color,material,size,cframe,anchored,cancollide)
  1125. local part = Instance.new("Part")
  1126. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or Color3.new(0,0,0)
  1127. part.Material = material or Enum.Material.SmoothPlastic
  1128. part.TopSurface,part.BottomSurface=10,10
  1129. part.Size = size or Vector3.new(1,1,1)
  1130. part.CFrame = cframe or CF(0,0,0)
  1131. part.Anchored = anchored or true
  1132. part.CanCollide = cancollide or false
  1133. part.Parent = parent or char
  1134. return part
  1135. end
  1136. -------------------------------------------------------
  1137. --End Important Functions--
  1138. -------------------------------------------------------
  1139.  
  1140.  
  1141. -------------------------------------------------------
  1142. --Start Customization--
  1143. -------------------------------------------------------
  1144. local Player_Size = 1
  1145. if Player_Size ~= 1 then
  1146. root.Size = root.Size * Player_Size
  1147. tors.Size = tors.Size * Player_Size
  1148. hed.Size = hed.Size * Player_Size
  1149. ra.Size = ra.Size * Player_Size
  1150. la.Size = la.Size * Player_Size
  1151. rl.Size = rl.Size * Player_Size
  1152. ll.Size = ll.Size * Player_Size
  1153. ----------------------------------------------------------------------------------
  1154. rootj.Parent = root
  1155. neck.Parent = tors
  1156. RW.Parent = tors
  1157. LW.Parent = tors
  1158. RH.Parent = tors
  1159. LH.Parent = tors
  1160. ----------------------------------------------------------------------------------
  1161. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1162. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1163. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  1164. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1165. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1166. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1167. ----------------------------------------------------------------------------------
  1168. RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1169. LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1170. RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1171. LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1172. --hat.Parent = Character
  1173. end
  1174. ----------------------------------------------------------------------------------
  1175. local SONG = 377241339
  1176. local SONG2 = 0
  1177. local Music = Instance.new("Sound",tors)
  1178. Music.Volume = 2
  1179. Music.Looped = true
  1180. Music.Pitch = 1 --Pitcher
  1181. ----------------------------------------------------------------------------------
  1182. local equipped = false
  1183. local idle = 0
  1184. local change = 1
  1185. local val = 0
  1186. local toim = 0
  1187. local idleanim = 0.4
  1188. local sine = 0
  1189. local Sit = 1
  1190. ----------------------------------------------------------------------------------
  1191. hum.WalkSpeed = 120
  1192. hum.JumpPower = 120
  1193. hum.Animator.Parent = nil
  1194. -------------------------------------------------------
  1195. --End Customization--
  1196. -------------------------------------------------------
  1197.  
  1198. -------------------------------------------------------
  1199. --Start Attacks N Stuff--
  1200. -------------------------------------------------------
  1201. function TELEPORT1()
  1202. if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1203. local HUM = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1204. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1205. local HEAD = HUM.Parent:FindFirstChild("Head")
  1206. if HEAD and TORSO and HUM.Health > 0 then
  1207. local GYRO = IT("BodyGyro",root)
  1208. GYRO.D = 275
  1209. GYRO.P = 20000
  1210. GYRO.MaxTorque = Vector3.new(0,40000,0)
  1211. attack = true
  1212. hum.WalkSpeed = 120
  1213. local hit,pos,hummie;
  1214. local Hook = Part(EffectModel, Color3.new(),Enum.Material.Neon,Vector3.new(.05,.05,.05),root.CFrame,true,false)
  1215. Hook.Transparency = 1
  1216. local A = NewInstance("Attachment",Hook)
  1217. local B = NewInstance("Attachment",ra,{Position = Vector3.new(0,-ra.Size.Y/2,0)})
  1218. local Chain = NewInstance("Beam",Hook,{Attachment0 = A,Attachment1=B,Color = Color3.fromRGB(0,255,255),FaceCamera=true,LightInfluence=0,Texture="rbxassetid://614117108",TextureLength=5,Transparency=NumberSequence.new(0),TextureSpeed=0,CurveSize0=0,CurveSize1=0,FaceCamera=true,Segments=10,Width0=1,Width1=1})
  1219. local POS = mouse.Hit.p
  1220. local CHAINS = false
  1221. local CHAINLINKS = {}
  1222. local A = IT("Attachment",ra)
  1223. A.Position = Vector3.new(1,-1,0)*Player_Size
  1224. A.Orientation = Vector3.new(-90, -89.982, 0)
  1225. local B = IT("Attachment",ra)
  1226. B.Position = Vector3.new(-1,-1,0)*Player_Size
  1227. B.Orientation = Vector3.new(-90, 89.988, 0)
  1228. local C = IT("Attachment",ra)
  1229. C.Position = Vector3.new(0.5,-1.3,0)*Player_Size
  1230. C.Orientation = Vector3.new(-90, -89.982, 0)
  1231. local D = IT("Attachment",ra)
  1232. D.Position = Vector3.new(-0.5,-1.3,0)*Player_Size
  1233. D.Orientation = Vector3.new(-90, 89.988, 0)
  1234. local LIGHT = IT("Attachment",ra)
  1235. LIGHT.Position = Vector3.new(0,-1,0)*Player_Size
  1236. local LIGHT2 = IT("PointLight",LIGHT)
  1237. LIGHT2.Range = 7
  1238. LIGHT2.Brightness = 5
  1239. LIGHT2.Color = Color3.new(0,0,0)
  1240. for i = 1, 2 do
  1241. local TWIST = -2
  1242. local START = A
  1243. local END = B
  1244. if i == 1 then
  1245. START = B
  1246. END = A
  1247. end
  1248. local ChainLink = IT("Beam",tors)
  1249. ChainLink.Texture = "rbxassetid://614117108"
  1250. ChainLink.Color = ColorSequence.new(Color3.fromRGB(0,255,255))
  1251. ChainLink.TextureSpeed = 1
  1252. ChainLink.Width0 = 1
  1253. ChainLink.Width1 = 1
  1254. ChainLink.TextureLength = 2.5
  1255. ChainLink.Attachment0 = START
  1256. ChainLink.Attachment1 = END
  1257. ChainLink.CurveSize0 = TWIST
  1258. ChainLink.CurveSize1 = TWIST
  1259. --ChainLink.FaceCamera = true
  1260. ChainLink.Segments = 45
  1261. ChainLink.Transparency = NumberSequence.new(0.25)
  1262. table.insert(CHAINLINKS,ChainLink)
  1263. end
  1264. for i = 1, 2 do
  1265. local TWIST = -1
  1266. local START = C
  1267. local END = D
  1268. if i == 1 then
  1269. START = D
  1270. END = C
  1271. end
  1272. local ChainLink = IT("Beam",tors)
  1273. ChainLink.Texture = "rbxassetid://614117108"
  1274. ChainLink.Color = ColorSequence.new(Color3.fromRGB(138,138,138))
  1275. ChainLink.TextureSpeed = 1
  1276. ChainLink.Width0 = 1
  1277. ChainLink.Width1 = 1
  1278. ChainLink.TextureLength = 5
  1279. ChainLink.Attachment0 = START
  1280. ChainLink.Attachment1 = END
  1281. ChainLink.CurveSize0 = TWIST
  1282. ChainLink.CurveSize1 = TWIST
  1283. --ChainLink.FaceCamera = true
  1284. ChainLink.Segments = 25
  1285. ChainLink.LightEmission = 0.5
  1286. ChainLink.Transparency = NumberSequence.new(0.25)
  1287. table.insert(CHAINLINKS,ChainLink)
  1288. end
  1289. for i = 0, 2.3, .1 do
  1290. swait()
  1291. GYRO.cframe = CF(root.Position,TORSO.Position)
  1292. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(15), Rad(0), Rad(-45)), 0.15)
  1293. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(45)), 0.3)
  1294. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -0.4* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-10)), 0.15)
  1295. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-10)), 0.15)
  1296. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(25)), 0.1)
  1297. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1298. end
  1299. Cso("169105657", ra, 7, 1.2)
  1300. for i = 0, 4, .1 do
  1301. if(hit)then break end
  1302. swait()
  1303. GYRO.cframe = CF(root.Position,TORSO.Position)
  1304. Hook.CFrame = HEAD.CFrame
  1305. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(5), Rad(45)), 0.15)
  1306. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-5 - 2.5 * Sin(sine / 30)), Rad(0), Rad(-45)), 0.3)
  1307. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-10)), 0.15)
  1308. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-10)), 0.15)
  1309. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(45)), 0.1)
  1310. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-30), Rad(-.6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.1)
  1311. end
  1312. for _,v in next, getRegion(Hook.Position,1,{char}) do
  1313. if(v.Parent and GetTorso(v.Parent) and v.Parent:FindFirstChildOfClass'Humanoid')then
  1314. hit = GetTorso(v.Parent);
  1315. hummie = v.Parent:FindFirstChildOfClass'Humanoid';
  1316. break;
  1317. end
  1318. end
  1319. Cso("169105657", ra, 5, .8)
  1320. Cso("0", tors, 2, 1.1)
  1321. GYRO:remove()
  1322. for i = 0, 3, .1 do
  1323. swait()
  1324. HUM.PlatformStand = true
  1325. Hook.CFrame = Hook.CFrame:lerp(ra.CFrame * CF(0, 0, -1), .2)
  1326. if(hit)then hit.CFrame = Hook.CFrame; hit.Velocity = Vector3.new()
  1327. end
  1328. if((Hook.CFrame.p-ra.CFrame.p).magnitude < 2)then
  1329. break
  1330. end
  1331. Chain.TextureLength = 4
  1332. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(-5), Rad(-45)), 0.15)
  1333. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-5 - 2.5 * Sin(sine / 30)), Rad(0), Rad(45)), 0.3)
  1334. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(10)), 0.15)
  1335. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(10)), 0.15)
  1336. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(45)), 0.1)
  1337. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(30), Rad(-.6), Rad(-25)), 0.1)
  1338. end
  1339. hum.WalkSpeed = 120
  1340. attack = false
  1341. Hook:Destroy()
  1342. A:remove()
  1343. B:remove()
  1344. C:remove()
  1345. D:remove()
  1346. end
  1347. end
  1348. end
  1349. --------------------------------------------------------
  1350. --------------------------------------------------------
  1351. --------------------------------------------------------
  1352. --------------------------------------------------------
  1353. --------------------------------------------------------
  1354. --------------------------------------------------------
  1355. --------------------------------------------------------
  1356. function TELEPORT2()
  1357. if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1358. local HUM = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1359. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1360. local HEAD = HUM.Parent:FindFirstChild("Head")
  1361. if HEAD and TORSO and HUM.Health > 0 then
  1362. local GYRO = IT("BodyGyro",root)
  1363. GYRO.D = 275
  1364. GYRO.P = 20000
  1365. GYRO.MaxTorque = Vector3.new(0,40000,0)
  1366. attack = true
  1367. hum.WalkSpeed = 120
  1368. local hit,pos,hummie;
  1369. local Hook = Part(EffectModel, Color3.new(),Enum.Material.Neon,Vector3.new(.05,.05,.05),root.CFrame,true,false)
  1370. Hook.Transparency = 1
  1371. local A = NewInstance("Attachment",Hook)
  1372. local B = NewInstance("Attachment",ra,{Position = Vector3.new(0,-ra.Size.Y/2,0)})
  1373. local Chain = NewInstance("Beam",Hook,{Attachment0 = A,Attachment1=B,Color = Color3.fromRGB(138,138,138),FaceCamera=true,LightInfluence=0,Texture="rbxassetid://614117108",TextureLength=5,Transparency=NumberSequence.new(0),TextureSpeed=0,CurveSize0=0,CurveSize1=0,FaceCamera=true,Segments=10,Width0=1,Width1=1})
  1374. local POS = mouse.Hit.p
  1375. local CHAINS = false
  1376. local CHAINLINKS = {}
  1377. local A = IT("Attachment",ra)
  1378. A.Position = Vector3.new(1,-1,0)*Player_Size
  1379. A.Orientation = Vector3.new(-90, -89.982, 0)
  1380. local B = IT("Attachment",ra)
  1381. B.Position = Vector3.new(-1,-1,0)*Player_Size
  1382. B.Orientation = Vector3.new(-90, 89.988, 0)
  1383. local C = IT("Attachment",ra)
  1384. C.Position = Vector3.new(0.5,-1.3,0)*Player_Size
  1385. C.Orientation = Vector3.new(-90, -89.982, 0)
  1386. local D = IT("Attachment",ra)
  1387. D.Position = Vector3.new(-0.5,-1.3,0)*Player_Size
  1388. D.Orientation = Vector3.new(-90, 89.988, 0)
  1389. local LIGHT = IT("Attachment",ra)
  1390. LIGHT.Position = Vector3.new(0,-1,0)*Player_Size
  1391. local LIGHT2 = IT("PointLight",LIGHT)
  1392. LIGHT2.Range = 7
  1393. LIGHT2.Brightness = 5
  1394. LIGHT2.Color = Color3.new(0,0,0)
  1395. for i = 1, 2 do
  1396. local TWIST = -2
  1397. local START = A
  1398. local END = B
  1399. if i == 1 then
  1400. START = B
  1401. END = A
  1402. end
  1403. local ChainLink = IT("Beam",tors)
  1404. ChainLink.Texture = "rbxassetid://614117108"
  1405. ChainLink.Color = ColorSequence.new(Color3.fromRGB(138,138,138))
  1406. ChainLink.TextureSpeed = 1
  1407. ChainLink.Width0 = 1
  1408. ChainLink.Width1 = 1
  1409. ChainLink.TextureLength = 2.5
  1410. ChainLink.Attachment0 = START
  1411. ChainLink.Attachment1 = END
  1412. ChainLink.CurveSize0 = TWIST
  1413. ChainLink.CurveSize1 = TWIST
  1414. --ChainLink.FaceCamera = true
  1415. ChainLink.Segments = 45
  1416. ChainLink.Transparency = NumberSequence.new(0.25)
  1417. table.insert(CHAINLINKS,ChainLink)
  1418. end
  1419. for i = 1, 2 do
  1420. local TWIST = -1
  1421. local START = C
  1422. local END = D
  1423. if i == 1 then
  1424. START = D
  1425. END = C
  1426. end
  1427. local ChainLink = IT("Beam",tors)
  1428. ChainLink.Texture = "rbxassetid://614117108"
  1429. ChainLink.Color = ColorSequence.new(Color3.fromRGB(138,138,138))
  1430. ChainLink.TextureSpeed = 1
  1431. ChainLink.Width0 = 1
  1432. ChainLink.Width1 = 1
  1433. ChainLink.TextureLength = 5
  1434. ChainLink.Attachment0 = START
  1435. ChainLink.Attachment1 = END
  1436. ChainLink.CurveSize0 = TWIST
  1437. ChainLink.CurveSize1 = TWIST
  1438. --ChainLink.FaceCamera = true
  1439. ChainLink.Segments = 25
  1440. ChainLink.LightEmission = 0.5
  1441. ChainLink.Transparency = NumberSequence.new(0.25)
  1442. table.insert(CHAINLINKS,ChainLink)
  1443. end
  1444. for i = 0, 2.3, .1 do
  1445. swait()
  1446. GYRO.cframe = CF(root.Position,TORSO.Position)
  1447. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(15), Rad(0), Rad(-45)), 0.15)
  1448. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(45)), 0.3)
  1449. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -0.4* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-10)), 0.15)
  1450. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-10)), 0.15)
  1451. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(25)), 0.1)
  1452. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1453. end
  1454. Cso("169105657", ra, 7, 1.2)
  1455. for i = 0, 4, .1 do
  1456. if(hit)then break end
  1457. swait()
  1458. GYRO.cframe = CF(root.Position,TORSO.Position)
  1459. Hook.CFrame = HEAD.CFrame
  1460. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(5), Rad(45)), 0.15)
  1461. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-5 - 2.5 * Sin(sine / 30)), Rad(0), Rad(-45)), 0.3)
  1462. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-10)), 0.15)
  1463. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-10)), 0.15)
  1464. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(45)), 0.1)
  1465. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-30), Rad(-.6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.1)
  1466. end
  1467. for _,v in next, getRegion(Hook.Position,1,{char}) do
  1468. if(v.Parent and GetTorso(v.Parent) and v.Parent:FindFirstChildOfClass'Humanoid')then
  1469. hit = GetTorso(v.Parent);
  1470. hummie = v.Parent:FindFirstChildOfClass'Humanoid';
  1471. break;
  1472. end
  1473. end
  1474. Cso("169105657", ra, 5, .8)
  1475. Cso("0", tors, 2, 1)
  1476. GYRO:remove()
  1477. for i = 0, 3, .1 do
  1478. swait()
  1479. root.CFrame = Hook.CFrame:lerp(ra.CFrame * CF(0, 0, -1), .2)
  1480. if(hit)then hit.CFrame = Hook.CFrame; hit.Velocity = Vector3.new()
  1481. end
  1482. if((Hook.CFrame.p-ra.CFrame.p).magnitude < 2)then
  1483. break
  1484. end
  1485. Chain.TextureLength = 4
  1486. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(90), Rad(-5), Rad(0)), 0.15)
  1487. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-45 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1488. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  1489. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  1490. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0.4* Player_Size) * angles(Rad(0), Rad(-.6), Rad(25)), 0.1)
  1491. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-25)), 0.1)
  1492. end
  1493. hum.WalkSpeed = 120
  1494. attack = false
  1495. Hook:Destroy()
  1496. A:remove()
  1497. B:remove()
  1498. C:remove()
  1499. D:remove()
  1500. end
  1501. end
  1502. end
  1503. --------------------------------------------------------
  1504. --------------------------------------------------------
  1505. --------------------------------------------------------
  1506. --------------------------------------------------------
  1507. --------------------------------------------------------
  1508. --------------------------------------------------------
  1509. --------------------------------------------------------
  1510. function KILL()
  1511. if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1512. local HUM = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1513. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1514. local HEAD = HUM.Parent:FindFirstChild("Head")
  1515. local RIGHTARM = HUM.Parent:FindFirstChild("Right Arm") or HUM.Parent:FindFirstChild("RightLowerArm")
  1516. local LEFTARM = HUM.Parent:FindFirstChild("Left Arm") or HUM.Parent:FindFirstChild("LeftLowerArm")
  1517. if HEAD and TORSO and HUM.Health > 0 then
  1518. local GYRO = IT("BodyGyro",root)
  1519. GYRO.D = 275
  1520. GYRO.P = 20000
  1521. GYRO.MaxTorque = Vector3.new(0,40000,0)
  1522. attack = true
  1523. hum.WalkSpeed = 120
  1524. local hit,pos,hummie;
  1525. local Hook = Part(EffectModel, Color3.new(),Enum.Material.Neon,Vector3.new(.05,.05,.05),root.CFrame,true,false)
  1526. local Hook2 = Part(EffectModel, Color3.new(),Enum.Material.Neon,Vector3.new(.05,.05,.05),root.CFrame,true,false)
  1527. Hook.Transparency = 1
  1528. Hook2.Transparency = 1
  1529. local A = NewInstance("Attachment",Hook)
  1530. local B = NewInstance("Attachment",ra,{Position = Vector3.new(0,-ra.Size.Y/2,0)})
  1531. local A2 = NewInstance("Attachment",Hook2)
  1532. local B2 = NewInstance("Attachment",la,{Position = Vector3.new(0,-ra.Size.Y/2,0)})
  1533. local Chain = NewInstance("Beam",Hook,{Attachment0 = A,Attachment1=B,Color = Color3.fromRGB(138,138,138),FaceCamera=true,LightInfluence=0,Texture="rbxassetid://56561915",TextureLength=5,Transparency=NumberSequence.new(0),TextureSpeed=0,CurveSize0=0,CurveSize1=0,FaceCamera=true,Segments=10,Width0=1,Width1=1})
  1534. local Chain2 = NewInstance("Beam",Hook2,{Attachment0 = A2,Attachment1=B2,Color = Color3.fromRGB(138,138,138),FaceCamera=true,LightInfluence=0,Texture="rbxassetid://56561915",TextureLength=5,Transparency=NumberSequence.new(0),TextureSpeed=0,CurveSize0=0,CurveSize1=0,FaceCamera=true,Segments=10,Width0=1,Width1=1})
  1535. for i = 0, 2.3, .1 do
  1536. swait()
  1537. GYRO.cframe = CF(root.Position,TORSO.Position)
  1538. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-7), Rad(0), Rad(0)), 0.15)
  1539. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1540. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-7)), 0.15)
  1541. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(7)), 0.15)
  1542. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(25)), 0.1)
  1543. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-25)), 0.1)
  1544. end
  1545. Cso("169105657", ra, 7, 1.2)
  1546. for i = 0, 5, .1 do
  1547. if(hit)then break end
  1548. swait()
  1549. GYRO.cframe = CF(root.Position,TORSO.Position)
  1550. Hook.CFrame = TORSO.CFrame
  1551. Hook2.CFrame = TORSO.CFrame
  1552. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(7), Rad(0), Rad(0)), 0.15)
  1553. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1554. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(7)), 0.15)
  1555. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-7)), 0.15)
  1556. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(25)), 0.1)
  1557. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-25)), 0.1)
  1558. end
  1559. for _,v in next, getRegion(Hook.Position,1,{char}) do
  1560. if(v.Parent and GetTorso(v.Parent) and v.Parent:FindFirstChildOfClass'Humanoid')then
  1561. hit = GetTorso(v.Parent);
  1562. hummie = v.Parent:FindFirstChildOfClass'Humanoid';
  1563. break;
  1564. end
  1565. end
  1566. Cso("169105657", ra, 5, .8)
  1567. Cso("0", TORSO, 2, 1)
  1568. GYRO:remove()
  1569. TORSO:BreakJoints()
  1570. for i = 0, 6, .1 do
  1571. swait()
  1572. Hook.CFrame = Hook.CFrame:lerp(tors.CFrame * CF(0, 0, -1), .2)
  1573. if(hit)then hit.CFrame = Hook.CFrame; hit.Velocity = Vector3.new()
  1574. end
  1575. if((Hook.CFrame.p-tors.CFrame.p).magnitude < 2)then
  1576. break
  1577. end
  1578. Hook2.CFrame = Hook2.CFrame:lerp(tors.CFrame * CF(0, 0, -1), .2)
  1579. if(hit)then hit.CFrame = Hook2.CFrame; hit.Velocity = Vector3.new()
  1580. end
  1581. if((Hook2.CFrame.p-tors.CFrame.p).magnitude < 2)then
  1582. break
  1583. end
  1584. Chain.TextureLength = 4
  1585. Chain2.TextureLength = 4
  1586. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-7), Rad(0), Rad(0)), 0.15)
  1587. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1588. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(90)), 0.15)
  1589. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(7)), 0.15)
  1590. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(25)), 0.1)
  1591. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-25)), 0.1)
  1592. end
  1593. hum.WalkSpeed = 120
  1594. attack = false
  1595. Hook2:Destroy()
  1596. Hook:Destroy()
  1597. end
  1598. end
  1599. end
  1600. -------------------------------------------------------
  1601. --End Attacks N Stuff--
  1602. -------------------------------------------------------
  1603. mouse.KeyDown:connect(function(key)
  1604. if attack == false then
  1605. if key == 'b' then
  1606. TELEPORT1()
  1607. elseif key == 'v' then
  1608. TELEPORT2()
  1609. elseif key == 'c' then
  1610. KILL()
  1611. end
  1612. end
  1613. end)
  1614.  
  1615.  
  1616.  
  1617.  
  1618.  
  1619.  
  1620.  
  1621. -------------------------------------------------------
  1622. --Start Animations--
  1623. -------------------------------------------------------
  1624. print("By Vecera and ozzak1003")
  1625. while true do
  1626. swait()
  1627. sine = sine + change
  1628. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1629. local velderp = root.Velocity.y
  1630. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  1631. if equipped == true or equipped == false then
  1632. if attack == false then
  1633. idle = idle + 1
  1634. else
  1635. idle = 0
  1636. end
  1637. if 1 < root.Velocity.y and hitfloor == nil then
  1638. Anim = "Jump"
  1639. if attack == false then
  1640. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15)
  1641. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1642. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.2 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1643. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1644. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
  1645. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1646. end
  1647. elseif -1 > root.Velocity.y and hitfloor == nil then
  1648. Anim = "Fall"
  1649. if attack == false then
  1650. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(24), Rad(0), Rad(0)), 0.15)
  1651. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1652. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * RHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
  1653. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.3* Player_Size) * LHCF * angles(Rad(-3.5), Rad(0), Rad(0)), 0.15)
  1654. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(45 + 4.5 * Sin(sine / 20))), 0.1)
  1655. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-45 - 4.5 * Sin(sine / 20))), 0.1)
  1656. end
  1657. elseif torvel < 1 and hitfloor ~= nil then
  1658. Anim = "Idle"
  1659. change = 1
  1660. if attack == false then
  1661. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 12)) * angles(Rad(0), Rad(0), Rad(20)), 0.15)
  1662. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(-20)), 0.3)
  1663. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  1664. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  1665. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0.05 * Cos(sine / 12)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(-76)), 0.1)
  1666. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.5 + 0.05 * Cos(sine / 12)* Player_Size, -0.4* Player_Size) * angles(Rad(90), Rad(-.6), Rad(56)), 0.1)
  1667. end
  1668. elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
  1669. Anim = "Walk"
  1670. change = 1.1
  1671. if attack == false then
  1672. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15)
  1673. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1674. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 - 25 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1675. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 + 25 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1676. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(37) * Cos(sine / 7) , Rad(8 * Cos(sine / 7)), Rad(6) - ra.RotVelocity.Y / 75), 0.1)
  1677. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-37) * Cos(sine / 7) , Rad(8 * Cos(sine / 7)) , Rad(-6) + la.RotVelocity.Y / 75), 0.1)
  1678. end
  1679. elseif torvel >= 25 and hitfloor ~= nil then
  1680. Anim = "Sprint"
  1681. change = 1.35
  1682. if attack == false then
  1683. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
  1684. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1685. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1686. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1687. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
  1688. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15)
  1689. end
  1690. end
  1691. end
  1692. Music.SoundId = "rbxassetid://"..SONG
  1693. Music.Looped = true
  1694. Music.Pitch = 1
  1695. Music.Volume = 1.5
  1696. Music.Parent = tors
  1697. Music:Resume()
  1698. if 0 < #Effects then
  1699. for e = 1, #Effects do
  1700. if Effects[e] ~= nil then
  1701. local Thing = Effects[e]
  1702. if Thing ~= nil then
  1703. local Part = Thing[1]
  1704. local Mode = Thing[2]
  1705. local Delay = Thing[3]
  1706. local IncX = Thing[4]
  1707. local IncY = Thing[5]
  1708. local IncZ = Thing[6]
  1709. if 1 >= Thing[1].Transparency then
  1710. if Thing[2] == "Block1" then
  1711. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1712. local Mesh = Thing[1].Mesh
  1713. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1714. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1715. elseif Thing[2] == "Block2" then
  1716. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1717. local Mesh = Thing[7]
  1718. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1719. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1720. elseif Thing[2] == "Block3" then
  1721. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
  1722. local Mesh = Thing[7]
  1723. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1724. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1725. elseif Thing[2] == "Cylinder" then
  1726. local Mesh = Thing[1].Mesh
  1727. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1728. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1729. elseif Thing[2] == "Blood" then
  1730. local Mesh = Thing[7]
  1731. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1732. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1733. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1734. elseif Thing[2] == "Elec" then
  1735. local Mesh = Thing[1].Mesh
  1736. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1737. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1738. elseif Thing[2] == "Disappear" then
  1739. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1740. elseif Thing[2] == "Shatter" then
  1741. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1742. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1743. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1744. Thing[6] = Thing[6] + Thing[5]
  1745. end
  1746. else
  1747. Part.Parent = nil
  1748. table.remove(Effects, e)
  1749. end
  1750. end
  1751. end
  1752. end
  1753. end
  1754. end
  1755. -------------------------------------------------------
  1756. --End Animations And Script--
  1757. -------------------------------------------------------
  1758. --------------------------------------------------------
  1759.  
  1760. pls = game:GetService'Players'
  1761. rs = game:GetService'RunService'
  1762. uinps = game:GetService'UserInputService'
  1763. lp = pls.LocalPlayer
  1764. mouse = lp:GetMouse()
  1765. c = lp.Character
  1766. human = c.Humanoid
  1767. human.MaxHealth = 50
  1768. wait()
  1769. human.Health = 50
  1770. c.Health:Destroy()
  1771.  
  1772. --------------------------------------------------------
  1773.  
  1774. Debounces = {
  1775. AnimationCycles = 0;
  1776. FPS = 0;
  1777. scalingDamage = false;
  1778. damageLevel = 0;
  1779. attackNumber = 0;
  1780. isAttacking = false;
  1781. isMoving = false;
  1782. isSprinting = false;
  1783. isBoosting = false;
  1784. isPassive = false;
  1785. isTyping = false;
  1786. }
  1787.  
  1788. --------------------------------------------------------
  1789.  
  1790. numLerp = function(start, goal, alpha)
  1791. return(((goal - start) * alpha) + start)
  1792. end
  1793.  
  1794. CFrameZero = function()
  1795. return CFrame.new(Vector3.new())
  1796. end
  1797.  
  1798. rad = function(value)
  1799. return math.rad(value)
  1800. end
  1801.  
  1802. CFAngles = function(Vector)
  1803. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
  1804. end
  1805.  
  1806. --------------------------------------------------------
  1807.  
  1808. AnimStat = {
  1809. lerpSpeed = .2;
  1810. lerpSpeed2 = .35;
  1811. lerpTween = 0;
  1812. }
  1813.  
  1814. Joints = {
  1815. c.HumanoidRootPart.RootJoint;
  1816. c.Torso.Neck;
  1817. c.Torso['Left Shoulder'];
  1818. c.Torso['Right Shoulder'];
  1819. c.Torso['Left Hip'];
  1820. c.Torso['Right Hip'];
  1821. }
  1822.  
  1823. JointTargets = {
  1824. CFrameZero();
  1825. CFrameZero();
  1826. CFrameZero();
  1827. CFrameZero();
  1828. CFrameZero();
  1829. CFrameZero();
  1830. }
  1831.  
  1832. --------------------------------------------------------
  1833.  
  1834. prepareCharacter = function()
  1835. local transPoints = {
  1836. NumberSequenceKeypoint.new(0,.819,.0375),
  1837. NumberSequenceKeypoint.new(.207,.594,.0187),
  1838. NumberSequenceKeypoint.new(.4,.55,.031),
  1839. NumberSequenceKeypoint.new(.57,.619,.05),
  1840. NumberSequenceKeypoint.new(.76,.8,.0375),
  1841. NumberSequenceKeypoint.new(1,1,0),
  1842. }
  1843. local sizePoints = {
  1844. NumberSequenceKeypoint.new(0,.687,0),
  1845. NumberSequenceKeypoint.new(.111,.875,0),
  1846. NumberSequenceKeypoint.new(.327,1.19,0),
  1847. NumberSequenceKeypoint.new(.646,1.56,0),
  1848. NumberSequenceKeypoint.new(.805,1.37,0),
  1849. NumberSequenceKeypoint.new(.905,1.06,0),
  1850. NumberSequenceKeypoint.new(.968,.938,0),
  1851. NumberSequenceKeypoint.new(.984,1.13,0),
  1852. NumberSequenceKeypoint.new(1,1.62,0),
  1853. }
  1854. local Size = NumberSequence.new(sizePoints)
  1855. local Transparency = NumberSequence.new(transPoints)
  1856. rayModel = Instance.new("Model",c)
  1857. efxBlock = Instance.new("Part",c)
  1858. efxBlock.BrickColor = BrickColor.new("Cyan")
  1859. efxBlock.Material = "Neon"
  1860. efxBlock.FormFactor = "Custom"
  1861. efxBlock.Transparency = .3
  1862. efxBlock.Size = Vector3.new(.3,.3,.3)
  1863. local mesh = Instance.new("SpecialMesh",efxBlock)
  1864. mesh.MeshType = Enum.MeshType.Sphere
  1865. mesh.Scale = Vector3.new(1,1,1)
  1866. light = Instance.new("PointLight",c.Head)
  1867. light.Range = 10
  1868. light.Color = Color3.new(0,200/255,1)
  1869. light.Shadows = false
  1870. local particles = Instance.new("ParticleEmitter",efxBlock)
  1871. particles.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255))
  1872. particles.LightEmission = .95
  1873. particles.Size = Size
  1874. particles.Name = "Fire"
  1875. particles.Transparency = Transparency
  1876. particles.LockedToPart = true
  1877. particles.VelocityInheritance = .5
  1878. particles.LockedToPart = true
  1879. particles.Rate = 70
  1880. particles.Texture = "rbxassetid://56561915"
  1881. particles.Lifetime = NumberRange.new(2,2)
  1882. particles.RotSpeed = NumberRange.new(100,100)
  1883. particles.Speed = NumberRange.new(7,7)
  1884. script.Parent = efxBlock
  1885. fire = particles
  1886. local offset = Vector3.new(-0.11, .23, -0.5)
  1887. local weld = Instance.new("Weld",c.Head)
  1888. weld.Part0 = c.Head
  1889. weld.Part1 = efxBlock
  1890. weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
  1891. efxBlock.Parent = c
  1892. local music = Instance.new("Sound",c)
  1893. music.SoundId = "rbxassetid://377241339"
  1894. music.Looped = true
  1895. music.Volume = 0
  1896. fight = music
  1897. pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
  1898. pointGyro.P = 1e7
  1899. pointGyro.D = 1e3
  1900. pointGyro.MaxTorque = Vector3.new(0,1e7,0)
  1901. animator = c.Humanoid:FindFirstChild("Animator")
  1902. if animator then
  1903. animator:Destroy()
  1904. end
  1905. c.Torso.roblox:Destroy()
  1906. for i,v in pairs (c.Head:children()) do
  1907. if v.ClassName == "Sound" then
  1908. v:Destroy()
  1909. end
  1910. end
  1911. for i = 1,#Joints do
  1912. Joints[i].C1 = CFrame.new(Vector3.new())
  1913. end
  1914. human.WalkSpeed = 120
  1915. human.JumpPower = 120
  1916. end
  1917.  
  1918. uinps.InputBegan:connect(function(InputObject)
  1919. if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
  1920. Debounces.isPassive = not Debounces.isPassive
  1921. end
  1922. end)
  1923.  
  1924. setJointCFrames = function(table)
  1925. for i = 1,#table do
  1926. JointTargets[i] = table[i]
  1927. end
  1928. AnimationCycles = 0
  1929. end
  1930.  
  1931. setLerp = function(speed)
  1932. AnimStat.lerpSpeed = speed
  1933. end
  1934.  
  1935. setTween = function(tween)
  1936. AnimStat.lerpTween = tween
  1937. end
  1938.  
  1939. takeDamage = function(position,damage,distance,platformStand)
  1940. for i,v in pairs (pls:children()) do
  1941. if v.ClassName == "Player" and v:FindFirstChild("Character") then
  1942. local torso = v.Character:FindFirstChild("Torso")
  1943. if torso and (torso.Position - position).magnitude < distance then
  1944. v.Character.Humanoid:TakeDamage(damage)
  1945. if platformStand == true then
  1946. v.Character.PlatformStand = platformStand
  1947. end
  1948. end
  1949. end
  1950. end
  1951. end
  1952.  
  1953. --------------------------------------------------------
  1954.  
  1955. prepareCharacter()
  1956.  
  1957. --------------------------------------------------------
  1958.  
  1959. spawn(function()
  1960. local sine = 0
  1961. while wait() do
  1962. pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
  1963. if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
  1964. setLerp(.1)
  1965. if Debounces.isPassive == true then
  1966. setJointCFrames({
  1967. CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0));
  1968. CFrame.new(Vector3.new(-0.001, 1.52 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(-10.861 + math.sin((-tick() + 2) * 1.5) * 5, 13.765, -1.658));
  1969. CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0));
  1970. CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15));
  1971. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489));
  1972. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001));
  1973. })
  1974. else
  1975. setJointCFrames({
  1976. CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
  1977. CFrame.new(Vector3.new(0, 1.5 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(1.554 + math.sin((-tick() + 2) * 1.5) * 5, -0.001, -0.001));
  1978. CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
  1979. CFrame.new(Vector3.new(1.059, -0.031 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, -3.842, -29.511));
  1980. CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
  1981. CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
  1982. })
  1983. end
  1984. elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
  1985. sine = sine + math.rad(12)
  1986. human.WalkSpeed = 15
  1987. setLerp(.15)
  1988. setJointCFrames({
  1989. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
  1990. CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
  1991. CFrame.new(Vector3.new(-1.97, 0 + math.sin(sine + .5)/20, 0.1 + math.sin(-sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(sine) * 23, 0, 0));
  1992. CFrame.new(Vector3.new(1.97, 0 - math.sin(sine + .5)/20, 0.1 + math.sin(sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(-sine) * 23, 0, 0));
  1993. CFrame.new(Vector3.new(-0.5, -1.93 - math.cos(sine)/8.7, 0.2 + math.sin(sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(-sine) * 30, 0, 0));
  1994. CFrame.new(Vector3.new(0.5, -1.93 + math.cos(sine)/8.7, 0.2 + math.sin(-sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(sine) * 30, 0, 0));
  1995. })
  1996. end
  1997. if Debounces.scalingDamage == true then
  1998. takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
  1999. end
  2000. end
  2001. end)
  2002.  
  2003. human.Changed:connect(function(prop)
  2004. if prop == "MoveDirection" then
  2005. if human.MoveDirection.magnitude > .02 then
  2006. Debounces.isMoving = true
  2007. else
  2008. Debounces.isMoving = false
  2009. end
  2010. end
  2011. end)
  2012.  
  2013. uinps.InputBegan:connect(function(InputObject)
  2014. if InputObject.KeyCode == Enum.KeyCode.A and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  2015. Debounces.isBoosting = true
  2016. Debounces.damageLevel = 10
  2017. Debounces.scalingDamage = true
  2018. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  2019. setLerp(.15)
  2020. setJointCFrames({
  2021. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
  2022. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
  2023. CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
  2024. CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
  2025. CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
  2026. CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
  2027. })
  2028. local boostSpeed = 250
  2029. local efx = Instance.new("Sound",c.Head)
  2030. efx.SoundId = "rbxassetid://200632875"
  2031. efx.Pitch = math.random(1100,1300)/1000
  2032. efx.Volume = .5
  2033. efx:Play()
  2034. spawn(function()
  2035. wait(5)
  2036. efx:Destroy()
  2037. end)
  2038. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
  2039. vel.P = 1e3
  2040. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  2041. wait(.15)
  2042. vel.P = 1000
  2043. vel.MaxForce = Vector3.new(3000,0,3000)
  2044. vel.Velocity = Vector3.new()
  2045. wait(.3)
  2046. setLerp(.3)
  2047. setJointCFrames({
  2048. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
  2049. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
  2050. CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
  2051. CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
  2052. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
  2053. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
  2054. })
  2055. wait(.2)
  2056. vel:Destroy()
  2057. Debounces.damageLevel = 0
  2058. Debounces.scalingDamage = false
  2059. Debounces.isBoosting = false
  2060. end
  2061. end)
  2062.  
  2063. uinps.InputBegan:connect(function(InputObject)
  2064. if InputObject.KeyCode == Enum.KeyCode.D and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  2065. Debounces.isBoosting = true
  2066. Debounces.damageLevel = 10
  2067. Debounces.scalingDamage = true
  2068. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  2069. setLerp(.15)
  2070. setJointCFrames({
  2071. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
  2072. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
  2073. CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
  2074. CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
  2075. CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
  2076. CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
  2077. })
  2078. local boostSpeed = 250
  2079. local efx = Instance.new("Sound",c.Head)
  2080. efx.SoundId = "rbxassetid://200632875"
  2081. efx.Pitch = math.random(1100,1300)/1000
  2082. efx.Volume = .5
  2083. efx:Play()
  2084. spawn(function()
  2085. wait(5)
  2086. efx:Destroy()
  2087. end)
  2088. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
  2089. vel.P = 1e3
  2090. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  2091. wait(.15)
  2092. vel.P = 1000
  2093. vel.MaxForce = Vector3.new(3000,0,3000)
  2094. vel.Velocity = Vector3.new()
  2095. wait(.3)
  2096. setLerp(.3)
  2097. setJointCFrames({
  2098. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
  2099. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  2100. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  2101. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  2102. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  2103. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  2104. })
  2105. wait(.2)
  2106. vel:Destroy()
  2107. Debounces.damageLevel = 0
  2108. Debounces.scalingDamage = false
  2109. Debounces.isBoosting = false
  2110. end
  2111. end)
  2112.  
  2113. uinps.InputBegan:connect(function(InputObject)
  2114. if InputObject.KeyCode == Enum.KeyCode.W and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  2115. Debounces.isBoosting = true
  2116. Debounces.damageLevel = 10
  2117. Debounces.scalingDamage = true
  2118. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  2119. setLerp(.15)
  2120. setJointCFrames({
  2121. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
  2122. CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
  2123. CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
  2124. CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
  2125. CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
  2126. CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  2127. })
  2128. local boostSpeed = 250
  2129. local efx = Instance.new("Sound",c.Head)
  2130. efx.SoundId = "rbxassetid://200632875"
  2131. efx.Pitch = math.random(1100,1300)/1000
  2132. efx.Volume = .5
  2133. efx:Play()
  2134. spawn(function()
  2135. wait(5)
  2136. efx:Destroy()
  2137. end)
  2138. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
  2139. vel.P = 1e3
  2140. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  2141. wait(.15)
  2142. vel.P = 1000
  2143. vel.MaxForce = Vector3.new(3000,0,3000)
  2144. vel.Velocity = Vector3.new()
  2145. wait(.3)
  2146. setLerp(.3)
  2147. setJointCFrames({
  2148. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
  2149. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  2150. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  2151. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  2152. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  2153. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  2154. })
  2155. wait(.2)
  2156. vel:Destroy()
  2157. Debounces.damageLevel = 0
  2158. Debounces.scalingDamage = false
  2159. Debounces.isBoosting = false
  2160. end
  2161. end)
  2162.  
  2163. uinps.InputBegan:connect(function(InputObject)
  2164. if InputObject.KeyCode == Enum.KeyCode.S and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  2165. Debounces.isBoosting = true
  2166. Debounces.damageLevel = 10
  2167. Debounces.scalingDamage = true
  2168. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  2169. setLerp(.15)
  2170. setJointCFrames({
  2171. CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
  2172. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
  2173. CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
  2174. CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
  2175. CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
  2176. CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  2177. })
  2178. local boostSpeed = 150
  2179. local boostSpeed = 250
  2180. local efx = Instance.new("Sound",c.Head)
  2181. efx.SoundId = "rbxassetid://200632875"
  2182. efx.Pitch = math.random(1100,1300)/1000
  2183. efx.Volume = .5
  2184. efx:Play()
  2185. spawn(function()
  2186. wait(5)
  2187. efx:Destroy()
  2188. end)
  2189. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
  2190. vel.P = 1e3
  2191. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  2192. wait(.15)
  2193. vel.P = 1000
  2194. vel.MaxForce = Vector3.new(3000,0,3000)
  2195. vel.Velocity = Vector3.new()
  2196. wait(.3)
  2197. setLerp(.3)
  2198. setJointCFrames({
  2199. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
  2200. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
  2201. CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
  2202. CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
  2203. CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
  2204. CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
  2205. })
  2206. wait(.2)
  2207. vel:Destroy()
  2208. Debounces.damageLevel = 0
  2209. Debounces.scalingDamage = false
  2210. Debounces.isBoosting = false
  2211. end
  2212. end)
  2213.  
  2214. uinps.InputBegan:connect(function(InputObject)
  2215. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  2216. local isLooping = true
  2217. uinps.InputEnded:connect(function(InputObject2)
  2218. if InputObject2.KeyCode == Enum.KeyCode.Q then
  2219. isLooping = false
  2220. end
  2221. end)
  2222. while true do
  2223. if isLooping == false then
  2224. break
  2225. end
  2226. Debounces.attackNumber = Debounces.attackNumber + 1
  2227. local aimPos = mouse.Hit.p
  2228. local head = Instance.new("Part",c)
  2229. head.Size = Vector3.new(12,.2,12)
  2230. head.CanCollide = false
  2231. head.Anchored = true
  2232. head.Transparency = 1
  2233. for i = 1,2 do
  2234. local decal = Instance.new("Decal",head)
  2235. decal.Texture = "rbxassetid://323497117"
  2236. if i == 1 then
  2237. decal.Face = Enum.NormalId.Top
  2238. else
  2239. decal.Face = Enum.NormalId.Bottom
  2240. end
  2241. end
  2242. if Debounces.attackNumber%2 == 1 then
  2243. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  2244. else
  2245. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  2246. end
  2247. spawn(function()
  2248. local timer = 0
  2249. while rs.RenderStepped:wait() do
  2250. if timer >= 1.55 then
  2251. break
  2252. end
  2253. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  2254. timer = timer + 1/30/(Debounces.FPS/60)
  2255. end
  2256. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  2257. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  2258. local hit, pos = workspace:FindPartOnRay(ray,c)
  2259. local dis = (head.CFrame.p - pos).magnitude
  2260. local rayPart = Instance.new("Part",rayModel)
  2261. rayPart.Material = "Neon"
  2262. rayPart.FormFactor = "Custom"
  2263. rayPart.BrickColor = BrickColor.new(1,1,1)
  2264. rayPart.Anchored = true
  2265. rayPart.CanCollide = false
  2266. rayPart.Size = Vector3.new(7,7,dis + 400)
  2267. local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2)
  2268. rayPart.CFrame = rayCFrame
  2269. head:Destroy()
  2270. end)
  2271. wait()
  2272. local s = Instance.new("Sound",head)
  2273. s.Volume = 1
  2274. s.SoundId = "rbxassetid://332223043"
  2275. s:Play()
  2276. wait(.04)
  2277. end
  2278. end
  2279. end)
  2280.  
  2281. uinps.InputBegan:connect(function(InputObj)
  2282. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  2283. Debounces.isAttacking = true
  2284. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  2285. local head = Instance.new("Part",c)
  2286. head.Size = Vector3.new(18,.2,18)
  2287. head.CanCollide = false
  2288. head.Anchored = true
  2289. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  2290. head.Transparency = 1
  2291. for i = 1,2 do
  2292. local decal = Instance.new("Decal",head)
  2293. decal.Texture = "rbxassetid://323497117"
  2294. if i == 1 then
  2295. decal.Face = Enum.NormalId.Top
  2296. else
  2297. decal.Face = Enum.NormalId.Bottom
  2298. end
  2299. end
  2300. setLerp(.1)
  2301. setJointCFrames({
  2302. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  2303. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  2304. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  2305. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  2306. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  2307. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  2308. })
  2309. spawn(function()
  2310. local timer = 0
  2311. while rs.RenderStepped:wait() do
  2312. if timer >= 1.55/.8 then
  2313. break
  2314. end
  2315. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  2316. timer = timer + 1/30/(Debounces.FPS/60)
  2317. end
  2318. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  2319. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  2320. local hit, pos = workspace:FindPartOnRay(ray,c)
  2321. local dis = (head.CFrame.p - pos).magnitude
  2322. local rayPart = Instance.new("Part",rayModel)
  2323. rayPart.Material = "Neon"
  2324. rayPart.FormFactor = "Custom"
  2325. rayPart.Name = "Punch"
  2326. rayPart.BrickColor = BrickColor.new(1,1,1)
  2327. rayPart.Anchored = true
  2328. rayPart.CanCollide = false
  2329. rayPart.Size = Vector3.new(28,28,dis + 400)
  2330. local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2)
  2331. rayPart.CFrame = rayCFrame
  2332. head:Destroy()
  2333. end)
  2334. wait()
  2335. local s = Instance.new("Sound",head)
  2336. s.Volume = 1
  2337. s.SoundId = "rbxassetid://332223043"
  2338. s.Pitch = .8
  2339. s:Play()
  2340. wait(.75)
  2341. setLerp(.17)
  2342. setJointCFrames({
  2343. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  2344. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  2345. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  2346. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  2347. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  2348. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  2349. })
  2350. wait(.5)
  2351. Debounces.isAttacking = false
  2352. end
  2353. end)
  2354.  
  2355. reflect = function(d,n)
  2356. local i, n = -1 * d.unit, n.unit
  2357. local dot = n:Dot(i)
  2358. return 2*dot*n - i
  2359. end
  2360.  
  2361. makeReflectionBeam = function(pos,look,isCrit)
  2362. local ray = Ray.new(pos,look)
  2363. local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
  2364. local e = Instance.new("Part",rayModel)
  2365. e.Anchored = true
  2366. e.CanCollide = false
  2367. e.BrickColor = BrickColor.new("White")
  2368. e.Material = "Neon"
  2369. e.FormFactor = "Custom"
  2370. e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
  2371. if isCrit == true then
  2372. e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
  2373. e.Name = "Punch"
  2374. end
  2375. e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
  2376. local e = Instance.new("Sound",c)
  2377. if isCrit == true then
  2378. e.Volume = .5
  2379. else
  2380. e.Volume = .3
  2381. e.Pitch = 1.5
  2382. end
  2383. e.SoundId = "rbxassetid://200632875"
  2384. e:Play()
  2385. spawn(function()
  2386. wait(6)
  2387. e:Destroy()
  2388. end)
  2389. wait(.05)
  2390. if hit ~= nil then
  2391. newDir = reflect(look.unit,norm,isCrit)
  2392. makeReflectionBeam(hitpos,newDir * 999,isCrit)
  2393. end
  2394. end
  2395.  
  2396. uinps.InputBegan:connect(function(InputObject)
  2397. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  2398. local isLooping = true
  2399. uinps.InputEnded:connect(function(InputObject2)
  2400. if InputObject2.KeyCode == Enum.KeyCode.Q then
  2401. isLooping = false
  2402. end
  2403. end)
  2404. while true do
  2405. if isLooping == false then
  2406. break
  2407. end
  2408. Debounces.attackNumber = Debounces.attackNumber + 1
  2409. local aimPos = mouse.Hit.p
  2410. local head = Instance.new("Part",c)
  2411. head.Size = Vector3.new(12,.2,12)
  2412. head.CanCollide = false
  2413. head.Anchored = true
  2414. head.Transparency = 1
  2415. for i = 1,2 do
  2416. local decal = Instance.new("Decal",head)
  2417. decal.Texture = "rbxassetid://323497117"
  2418. if i == 1 then
  2419. decal.Face = Enum.NormalId.Top
  2420. else
  2421. decal.Face = Enum.NormalId.Bottom
  2422. end
  2423. end
  2424. if Debounces.attackNumber%2 == 1 then
  2425. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  2426. else
  2427. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  2428. end
  2429. spawn(function()
  2430. local timer = 0
  2431. while rs.RenderStepped:wait() do
  2432. if timer >= 1.55 then
  2433. break
  2434. end
  2435. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  2436. timer = timer + 1/30/(Debounces.FPS/60)
  2437. end
  2438. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  2439. head:Destroy()
  2440. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)
  2441. end)
  2442.  
  2443. wait()
  2444. local s = Instance.new("Sound",head)
  2445. s.Volume = 1
  2446. s.SoundId = "rbxassetid://332223043"
  2447. s.Pitch = 1.02
  2448. s:Play()
  2449. wait(.2)
  2450. end
  2451. end
  2452. end)
  2453.  
  2454. uinps.InputBegan:connect(function(InputObj)
  2455. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  2456. Debounces.isAttacking = true
  2457. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  2458. local head = Instance.new("Part",c)
  2459. head.Size = Vector3.new(18,.2,18)
  2460. head.CanCollide = false
  2461. head.Anchored = true
  2462. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  2463. head.Transparency = 1
  2464. for i = 1,2 do
  2465. local decal = Instance.new("Decal",head)
  2466. decal.Texture = "rbxassetid://323497117"
  2467. if i == 1 then
  2468. decal.Face = Enum.NormalId.Top
  2469. else
  2470. decal.Face = Enum.NormalId.Bottom
  2471. end
  2472. end
  2473. setLerp(.1)
  2474. setJointCFrames({
  2475. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  2476. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  2477. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  2478. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  2479. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  2480. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  2481. })
  2482. spawn(function()
  2483. local timer = 0
  2484. while rs.RenderStepped:wait() do
  2485. if timer >= 1.55/.8 then
  2486. break
  2487. end
  2488. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  2489. timer = timer + 1/30/(Debounces.FPS/60)
  2490. end
  2491. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  2492. head:Destroy()
  2493. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
  2494. end)
  2495. wait()
  2496. local s = Instance.new("Sound",head)
  2497. s.Volume = 2
  2498. s.SoundId = "rbxassetid://332223043"
  2499. s.Pitch = .8
  2500. s:Play()
  2501. wait(.75)
  2502. setLerp(.17)
  2503. setJointCFrames({
  2504. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  2505. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  2506. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  2507. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  2508. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  2509. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  2510. })
  2511. wait(.5)
  2512. Debounces.isAttacking = false
  2513. end
  2514. end)
  2515.  
  2516. uinps.InputBegan:connect(function(InputObj)
  2517. if InputObj.KeyCode == Enum.KeyCode.Slash then
  2518. local finishEvent = nil
  2519. Debounces.isTyping = true
  2520. finishEvent = uinps.InputBegan:connect(function(InputObj)
  2521. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  2522. Debounces.isTyping = false
  2523. finishEvent:disconnect()
  2524. end
  2525. end)
  2526. end
  2527. end)
  2528.  
  2529. uinps.InputBegan:connect(function(InputObj)
  2530. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  2531. Debounces.isSprinting = true
  2532. end
  2533. end)
  2534.  
  2535. uinps.InputEnded:connect(function(InputObj)
  2536. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  2537. Debounces.isSprinting = false
  2538. end
  2539. end)
  2540.  
  2541. rs.RenderStepped:connect(function()
  2542. Debounces.FPS = 1/rs.RenderStepped:wait()
  2543. local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
  2544. if Debounces.isPassive == false then
  2545. fire.Enabled = false
  2546. light.Range = 0
  2547. fight:Pause()
  2548. sans:Resume()
  2549. efxBlock.Transparency = 1
  2550. else
  2551. fire.Enabled = true
  2552. light.Range = 10
  2553. fight:Resume()
  2554. sans:Pause()
  2555. efxBlock.Transparency = 0
  2556. end
  2557. for i,v in pairs (rayModel:children()) do
  2558. if v.Transparency >= 1 then
  2559. v:Destroy()
  2560. else
  2561. v.CanCollide = true
  2562. local parts = v:GetTouchingParts()
  2563. v.CanCollide = false
  2564. for i = 1,#parts do
  2565. if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
  2566. parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
  2567. elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
  2568. parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
  2569. end
  2570. end
  2571. v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
  2572. v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
  2573. end
  2574. end
  2575. for i = 1,#Joints do
  2576. Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  2577. end
  2578. local sineval = math.sin(tick() * 2) * 3
  2579. fire.Acceleration = Vector3.new(sineval,1,sineval)
  2580. light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
  2581. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement