Advertisement
firasj082

Sheriff script

May 13th, 2018
803
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.74 KB | None | 0 0
  1. local FavIDs = {
  2. 340106355, --Nefl Crystals
  3. 927529620, --Dimension
  4. 876981900, --Fantasy
  5. 398987889, --Ordinary Days
  6. 1117396305, --Oh wait, it's you.
  7. 885996042, --Action Winter Journey
  8. 919231299, --Sprawling Idiot Effigy
  9. 743466274, --Good Day Sunshine
  10. 727411183, --Knife Fight
  11. 1402748531, --The Earth Is Counting On You!
  12. 595230126 --Robot Language
  13. }
  14.  
  15.  
  16.  
  17. --The reality of my life isn't real but a Universe -makhail07
  18. wait()
  19. local plr = game:service'Players'.LocalPlayer
  20. print('Local User is '..plr.Name)
  21. local char = plr.Character
  22. local hum = char.Humanoid
  23. local hed = char.Head
  24. local root = char.HumanoidRootPart
  25. local rootj = root.RootJoint
  26. local tors = char.Torso
  27. local ra = char["Right Arm"]
  28. local la = char["Left Arm"]
  29. local rl = char["Right Leg"]
  30. local ll = char["Left Leg"]
  31. local neck = tors["Neck"]
  32. local mouse = plr:GetMouse()
  33. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  34. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  35. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  36. local maincolor = BrickColor.new("Institutional white")
  37. -------------------------------------------------------
  38. --Start Whitelist and Invincibility--
  39. -------------------------------------------------------
  40. ff = Instance.new("ForceField",char)
  41. ff.Visible = false
  42. hum.Name = "Base"
  43. hum.MaxHealth = 1.0E298
  44. hum.Health = 1.0E298
  45. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  46. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  47. hum.MaxHealth = 1.0E298
  48. hum.Health = 1.0E298
  49. end
  50. end)
  51. -------------------------------------------------------
  52. --End Whitelist and Invincibility--
  53. -------------------------------------------------------
  54.  
  55. -------------------------------------------------------
  56. --Start Good Stuff--
  57. -------------------------------------------------------
  58. cam = game.Workspace.CurrentCamera
  59. CF = CFrame.new
  60. angles = CFrame.Angles
  61. attack = false
  62. Euler = CFrame.fromEulerAnglesXYZ
  63. Rad = math.rad
  64. IT = Instance.new
  65. BrickC = BrickColor.new
  66. Cos = math.cos
  67. Acos = math.acos
  68. Sin = math.sin
  69. Asin = math.asin
  70. Abs = math.abs
  71. Mrandom = math.random
  72. Floor = math.floor
  73. -------------------------------------------------------
  74. --End Good Stuff--
  75. -------------------------------------------------------
  76. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  77. RSH, LSH = nil, nil
  78. RW = Instance.new("Weld")
  79. LW = Instance.new("Weld")
  80. RH = tors["Right Hip"]
  81. LH = tors["Left Hip"]
  82. RSH = tors["Right Shoulder"]
  83. LSH = tors["Left Shoulder"]
  84. RSH.Parent = nil
  85. LSH.Parent = nil
  86. RW.Name = "RW"
  87. RW.Part0 = tors
  88. RW.C0 = CF(1.5, 0.5, 0)
  89. RW.C1 = CF(0, 0.5, 0)
  90. RW.Part1 = ra
  91. RW.Parent = tors
  92. LW.Name = "LW"
  93. LW.Part0 = tors
  94. LW.C0 = CF(-1.5, 0.5, 0)
  95. LW.C1 = CF(0, 0.5, 0)
  96. LW.Part1 = la
  97. LW.Parent = tors
  98. Effects = {}
  99. -------------------------------------------------------
  100. --Start HeartBeat--
  101. -------------------------------------------------------
  102. ArtificialHB = Instance.new("BindableEvent", script)
  103. ArtificialHB.Name = "Heartbeat"
  104. script:WaitForChild("Heartbeat")
  105.  
  106. frame = 1 / 60
  107. tf = 0
  108. allowframeloss = false
  109. tossremainder = false
  110.  
  111.  
  112. lastframe = tick()
  113. script.Heartbeat:Fire()
  114.  
  115.  
  116. game:GetService("RunService").Heartbeat:connect(function(s, p)
  117. tf = tf + s
  118. if tf >= frame then
  119. if allowframeloss then
  120. script.Heartbeat:Fire()
  121. lastframe = tick()
  122. else
  123. for i = 1, math.floor(tf / frame) do
  124. script.Heartbeat:Fire()
  125. end
  126. lastframe = tick()
  127. end
  128. if tossremainder then
  129. tf = 0
  130. else
  131. tf = tf - frame * math.floor(tf / frame)
  132. end
  133. end
  134. end)
  135. -------------------------------------------------------
  136. --End HeartBeat--
  137. -------------------------------------------------------
  138.  
  139. -------------------------------------------------------
  140. --Start Important Functions--
  141. -------------------------------------------------------
  142. function swait(num)
  143. if num == 0 or num == nil then
  144. game:service("RunService").Stepped:wait(0)
  145. else
  146. for i = 0, num do
  147. game:service("RunService").Stepped:wait(0)
  148. end
  149. end
  150. end
  151. function thread(f)
  152. coroutine.resume(coroutine.create(f))
  153. end
  154. function clerp(a, b, t)
  155. local qa = {
  156. QuaternionFromCFrame(a)
  157. }
  158. local qb = {
  159. QuaternionFromCFrame(b)
  160. }
  161. local ax, ay, az = a.x, a.y, a.z
  162. local bx, by, bz = b.x, b.y, b.z
  163. local _t = 1 - t
  164. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  165. end
  166. function QuaternionFromCFrame(cf)
  167. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  168. local trace = m00 + m11 + m22
  169. if trace > 0 then
  170. local s = math.sqrt(1 + trace)
  171. local recip = 0.5 / s
  172. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  173. else
  174. local i = 0
  175. if m00 < m11 then
  176. i = 1
  177. end
  178. if m22 > (i == 0 and m00 or m11) then
  179. i = 2
  180. end
  181. if i == 0 then
  182. local s = math.sqrt(m00 - m11 - m22 + 1)
  183. local recip = 0.5 / s
  184. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  185. elseif i == 1 then
  186. local s = math.sqrt(m11 - m22 - m00 + 1)
  187. local recip = 0.5 / s
  188. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  189. elseif i == 2 then
  190. local s = math.sqrt(m22 - m00 - m11 + 1)
  191. local recip = 0.5 / s
  192. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  193. end
  194. end
  195. end
  196. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  197. local xs, ys, zs = x + x, y + y, z + z
  198. local wx, wy, wz = w * xs, w * ys, w * zs
  199. local xx = x * xs
  200. local xy = x * ys
  201. local xz = x * zs
  202. local yy = y * ys
  203. local yz = y * zs
  204. local zz = z * zs
  205. 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))
  206. end
  207. function QuaternionSlerp(a, b, t)
  208. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  209. local startInterp, finishInterp
  210. if cosTheta >= 1.0E-4 then
  211. if 1 - cosTheta > 1.0E-4 then
  212. local theta = math.acos(cosTheta)
  213. local invSinTheta = 1 / Sin(theta)
  214. startInterp = Sin((1 - t) * theta) * invSinTheta
  215. finishInterp = Sin(t * theta) * invSinTheta
  216. else
  217. startInterp = 1 - t
  218. finishInterp = t
  219. end
  220. elseif 1 + cosTheta > 1.0E-4 then
  221. local theta = math.acos(-cosTheta)
  222. local invSinTheta = 1 / Sin(theta)
  223. startInterp = Sin((t - 1) * theta) * invSinTheta
  224. finishInterp = Sin(t * theta) * invSinTheta
  225. else
  226. startInterp = t - 1
  227. finishInterp = t
  228. end
  229. 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
  230. end
  231. function rayCast(Position, Direction, Range, Ignore)
  232. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  233. end
  234. local RbxUtility = LoadLibrary("RbxUtility")
  235. local Create = RbxUtility.Create
  236.  
  237. -------------------------------------------------------
  238. --Start Damage Function--
  239. -------------------------------------------------------
  240. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  241. if hit.Parent == nil then
  242. return
  243. end
  244. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  245. for _, v in pairs(hit.Parent:children()) do
  246. if v:IsA("Humanoid") then
  247. h = v
  248. end
  249. end
  250. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  251.  
  252. hit.Parent:FindFirstChild("Head"):BreakJoints()
  253. end
  254.  
  255. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  256. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  257. if hit.Parent.DebounceHit.Value == true then
  258. return
  259. end
  260. end
  261. if insta == true then
  262. hit.Parent:FindFirstChild("Head"):BreakJoints()
  263. end
  264. local c = Create("ObjectValue"){
  265. Name = "creator",
  266. Value = game:service("Players").LocalPlayer,
  267. Parent = h,
  268. }
  269. game:GetService("Debris"):AddItem(c, .5)
  270. if HitSound ~= nil and HitPitch ~= nil then
  271. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  272. end
  273. local Damage = math.random(minim, maxim)
  274. local blocked = false
  275. local block = hit.Parent:findFirstChild("Block")
  276. if block ~= nil then
  277. if block.className == "IntValue" then
  278. if block.Value > 0 then
  279. blocked = true
  280. block.Value = block.Value - 1
  281. print(block.Value)
  282. end
  283. end
  284. end
  285. if blocked == false then
  286. h.Health = h.Health - Damage
  287. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  288. else
  289. h.Health = h.Health - (Damage / 2)
  290. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  291. end
  292. if Type == "Knockdown" then
  293. local hum = hit.Parent.Humanoid
  294. hum.PlatformStand = true
  295. coroutine.resume(coroutine.create(function(HHumanoid)
  296. swait(1)
  297. HHumanoid.PlatformStand = false
  298. end), hum)
  299. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  300. local bodvol = Create("BodyVelocity"){
  301. velocity = angle * knockback,
  302. P = 5000,
  303. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  304. Parent = hit,
  305. }
  306. local rl = Create("BodyAngularVelocity"){
  307. P = 3000,
  308. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  309. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  310. Parent = hit,
  311. }
  312. game:GetService("Debris"):AddItem(bodvol, .5)
  313. game:GetService("Debris"):AddItem(rl, .5)
  314. elseif Type == "Normal" then
  315. local vp = Create("BodyVelocity"){
  316. P = 500,
  317. maxForce = Vector3.new(math.huge, 0, math.huge),
  318. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  319. }
  320. if knockback > 0 then
  321. vp.Parent = hit.Parent.Torso
  322. end
  323. game:GetService("Debris"):AddItem(vp, .5)
  324. elseif Type == "Up" then
  325. local bodyVelocity = Create("BodyVelocity"){
  326. velocity = Vector3.new(0, 20, 0),
  327. P = 5000,
  328. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  329. Parent = hit,
  330. }
  331. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  332. elseif Type == "DarkUp" then
  333. coroutine.resume(coroutine.create(function()
  334. for i = 0, 1, 0.1 do
  335. swait()
  336. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  337. end
  338. end))
  339. local bodyVelocity = Create("BodyVelocity"){
  340. velocity = Vector3.new(0, 20, 0),
  341. P = 5000,
  342. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  343. Parent = hit,
  344. }
  345. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  346. elseif Type == "Snare" then
  347. local bp = Create("BodyPosition"){
  348. P = 2000,
  349. D = 100,
  350. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  351. position = hit.Parent.Torso.Position,
  352. Parent = hit.Parent.Torso,
  353. }
  354. game:GetService("Debris"):AddItem(bp, 1)
  355. elseif Type == "Freeze" then
  356. local BodPos = Create("BodyPosition"){
  357. P = 50000,
  358. D = 1000,
  359. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  360. position = hit.Parent.Torso.Position,
  361. Parent = hit.Parent.Torso,
  362. }
  363. local BodGy = Create("BodyGyro") {
  364. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  365. P = 20e+003,
  366. Parent = hit.Parent.Torso,
  367. cframe = hit.Parent.Torso.CFrame,
  368. }
  369. hit.Parent.Torso.Anchored = true
  370. coroutine.resume(coroutine.create(function(Part)
  371. swait(1.5)
  372. Part.Anchored = false
  373. end), hit.Parent.Torso)
  374. game:GetService("Debris"):AddItem(BodPos, 3)
  375. game:GetService("Debris"):AddItem(BodGy, 3)
  376. end
  377. local debounce = Create("BoolValue"){
  378. Name = "DebounceHit",
  379. Parent = hit.Parent,
  380. Value = true,
  381. }
  382. game:GetService("Debris"):AddItem(debounce, Delay)
  383. c = Create("ObjectValue"){
  384. Name = "creator",
  385. Value = Player,
  386. Parent = h,
  387. }
  388. game:GetService("Debris"):AddItem(c, .5)
  389. end
  390. end
  391. -------------------------------------------------------
  392. --End Damage Function--
  393. -------------------------------------------------------
  394.  
  395. -------------------------------------------------------
  396. --Start Damage Function Customization--
  397. -------------------------------------------------------
  398. function ShowDamage(Pos, Text, Time, Color)
  399. local Rate = (1 / 30)
  400. local Pos = (Pos or Vector3.new(0, 0, 0))
  401. local Text = (Text or "")
  402. local Time = (Time or 2)
  403. local Color = (Color or Color3.new(1, 0, 1))
  404. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  405. EffectPart.Anchored = true
  406. local BillboardGui = Create("BillboardGui"){
  407. Size = UDim2.new(3, 0, 3, 0),
  408. Adornee = EffectPart,
  409. Parent = EffectPart,
  410. }
  411. local TextLabel = Create("TextLabel"){
  412. BackgroundTransparency = 1,
  413. Size = UDim2.new(1, 0, 1, 0),
  414. Text = Text,
  415. Font = "Bodoni",
  416. TextColor3 = Color,
  417. TextScaled = true,
  418. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  419. Parent = BillboardGui,
  420. }
  421. game.Debris:AddItem(EffectPart, (Time))
  422. EffectPart.Parent = game:GetService("Workspace")
  423. delay(0, function()
  424. local Frames = (Time / Rate)
  425. for Frame = 1, Frames do
  426. wait(Rate)
  427. local Percent = (Frame / Frames)
  428. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  429. TextLabel.TextTransparency = Percent
  430. end
  431. if EffectPart and EffectPart.Parent then
  432. EffectPart:Destroy()
  433. end
  434. end)
  435. end
  436. -------------------------------------------------------
  437. --End Damage Function Customization--
  438. -------------------------------------------------------
  439.  
  440. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  441. for _, c in pairs(workspace:children()) do
  442. local hum = c:findFirstChild("Humanoid")
  443. if hum ~= nil then
  444. local head = c:findFirstChild("Head")
  445. if head ~= nil then
  446. local targ = head.Position - Part.Position
  447. local mag = targ.magnitude
  448. if magni >= mag and c.Name ~= plr.Name then
  449. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  450. end
  451. end
  452. end
  453. end
  454. end
  455.  
  456.  
  457. CFuncs = {
  458. Part = {
  459. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  460. local Part = Create("Part")({
  461. Parent = Parent,
  462. Reflectance = Reflectance,
  463. Transparency = Transparency,
  464. CanCollide = false,
  465. Locked = true,
  466. BrickColor = BrickColor.new(tostring(BColor)),
  467. Name = Name,
  468. Size = Size,
  469. Material = Material
  470. })
  471. RemoveOutlines(Part)
  472. return Part
  473. end
  474. },
  475. Mesh = {
  476. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  477. local Msh = Create(Mesh)({
  478. Parent = Part,
  479. Offset = OffSet,
  480. Scale = Scale
  481. })
  482. if Mesh == "SpecialMesh" then
  483. Msh.MeshType = MeshType
  484. Msh.MeshId = MeshId
  485. end
  486. return Msh
  487. end
  488. },
  489. Mesh = {
  490. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  491. local Msh = Create(Mesh)({
  492. Parent = Part,
  493. Offset = OffSet,
  494. Scale = Scale
  495. })
  496. if Mesh == "SpecialMesh" then
  497. Msh.MeshType = MeshType
  498. Msh.MeshId = MeshId
  499. end
  500. return Msh
  501. end
  502. },
  503. Weld = {
  504. Create = function(Parent, Part0, Part1, C0, C1)
  505. local Weld = Create("Weld")({
  506. Parent = Parent,
  507. Part0 = Part0,
  508. Part1 = Part1,
  509. C0 = C0,
  510. C1 = C1
  511. })
  512. return Weld
  513. end
  514. },
  515. Sound = {
  516. Create = function(id, par, vol, pit)
  517. coroutine.resume(coroutine.create(function()
  518. local S = Create("Sound")({
  519. Volume = vol,
  520. Pitch = pit or 1,
  521. SoundId = id,
  522. Parent = par or workspace
  523. })
  524. wait()
  525. S:play()
  526. game:GetService("Debris"):AddItem(S, 6)
  527. end))
  528. end
  529. },
  530. ParticleEmitter = {
  531. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  532. local fp = Create("ParticleEmitter")({
  533. Parent = Parent,
  534. Color = ColorSequence.new(Color1, Color2),
  535. LightEmission = LightEmission,
  536. Size = Size,
  537. Texture = Texture,
  538. Transparency = Transparency,
  539. ZOffset = ZOffset,
  540. Acceleration = Accel,
  541. Drag = Drag,
  542. LockedToPart = LockedToPart,
  543. VelocityInheritance = VelocityInheritance,
  544. EmissionDirection = EmissionDirection,
  545. Enabled = Enabled,
  546. Lifetime = LifeTime,
  547. Rate = Rate,
  548. Rotation = Rotation,
  549. RotSpeed = RotSpeed,
  550. Speed = Speed,
  551. VelocitySpread = VelocitySpread
  552. })
  553. return fp
  554. end
  555. }
  556. }
  557. function RemoveOutlines(part)
  558. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  559. end
  560. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  561. local Part = Create("Part")({
  562. formFactor = FormFactor,
  563. Parent = Parent,
  564. Reflectance = Reflectance,
  565. Transparency = Transparency,
  566. CanCollide = false,
  567. Locked = true,
  568. BrickColor = BrickColor.new(tostring(BColor)),
  569. Name = Name,
  570. Size = Size,
  571. Material = Material
  572. })
  573. RemoveOutlines(Part)
  574. return Part
  575. end
  576. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  577. local Msh = Create(Mesh)({
  578. Parent = Part,
  579. Offset = OffSet,
  580. Scale = Scale
  581. })
  582. if Mesh == "SpecialMesh" then
  583. Msh.MeshType = MeshType
  584. Msh.MeshId = MeshId
  585. end
  586. return Msh
  587. end
  588. function CreateWeld(Parent, Part0, Part1, C0, C1)
  589. local Weld = Create("Weld")({
  590. Parent = Parent,
  591. Part0 = Part0,
  592. Part1 = Part1,
  593. C0 = C0,
  594. C1 = C1
  595. })
  596. return Weld
  597. end
  598.  
  599.  
  600. -------------------------------------------------------
  601. --Start Effect Function--
  602. -------------------------------------------------------
  603. EffectModel = Instance.new("Model", char)
  604. Effects = {
  605. Block = {
  606. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  607. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  608. prt.Anchored = true
  609. prt.CFrame = cframe
  610. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  611. game:GetService("Debris"):AddItem(prt, 10)
  612. if Type == 1 or Type == nil then
  613. table.insert(Effects, {
  614. prt,
  615. "Block1",
  616. delay,
  617. x3,
  618. y3,
  619. z3,
  620. msh
  621. })
  622. elseif Type == 2 then
  623. table.insert(Effects, {
  624. prt,
  625. "Block2",
  626. delay,
  627. x3,
  628. y3,
  629. z3,
  630. msh
  631. })
  632. else
  633. table.insert(Effects, {
  634. prt,
  635. "Block3",
  636. delay,
  637. x3,
  638. y3,
  639. z3,
  640. msh
  641. })
  642. end
  643. end
  644. },
  645. Sphere = {
  646. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  647. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  648. prt.Anchored = true
  649. prt.CFrame = cframe
  650. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  651. game:GetService("Debris"):AddItem(prt, 10)
  652. table.insert(Effects, {
  653. prt,
  654. "Cylinder",
  655. delay,
  656. x3,
  657. y3,
  658. z3,
  659. msh
  660. })
  661. end
  662. },
  663. Cylinder = {
  664. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  665. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  666. prt.Anchored = true
  667. prt.CFrame = cframe
  668. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  669. game:GetService("Debris"):AddItem(prt, 10)
  670. table.insert(Effects, {
  671. prt,
  672. "Cylinder",
  673. delay,
  674. x3,
  675. y3,
  676. z3,
  677. msh
  678. })
  679. end
  680. },
  681. Wave = {
  682. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  683. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  684. prt.Anchored = true
  685. prt.CFrame = cframe
  686. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  687. game:GetService("Debris"):AddItem(prt, 10)
  688. table.insert(Effects, {
  689. prt,
  690. "Cylinder",
  691. delay,
  692. x3 / 60,
  693. y3 / 60,
  694. z3 / 60,
  695. msh
  696. })
  697. end
  698. },
  699. Ring = {
  700. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  701. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  702. prt.Anchored = true
  703. prt.CFrame = cframe
  704. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  705. game:GetService("Debris"):AddItem(prt, 10)
  706. table.insert(Effects, {
  707. prt,
  708. "Cylinder",
  709. delay,
  710. x3,
  711. y3,
  712. z3,
  713. msh
  714. })
  715. end
  716. },
  717. Break = {
  718. Create = function(brickcolor, cframe, x1, y1, z1)
  719. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  720. prt.Anchored = true
  721. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  722. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  723. local num = math.random(10, 50) / 1000
  724. game:GetService("Debris"):AddItem(prt, 10)
  725. table.insert(Effects, {
  726. prt,
  727. "Shatter",
  728. num,
  729. prt.CFrame,
  730. math.random() - math.random(),
  731. 0,
  732. math.random(50, 100) / 100
  733. })
  734. end
  735. },
  736. Spiral = {
  737. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  738. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  739. prt.Anchored = true
  740. prt.CFrame = cframe
  741. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  742. game:GetService("Debris"):AddItem(prt, 10)
  743. table.insert(Effects, {
  744. prt,
  745. "Cylinder",
  746. delay,
  747. x3,
  748. y3,
  749. z3,
  750. msh
  751. })
  752. end
  753. },
  754. Push = {
  755. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  756. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  757. prt.Anchored = true
  758. prt.CFrame = cframe
  759. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  760. game:GetService("Debris"):AddItem(prt, 10)
  761. table.insert(Effects, {
  762. prt,
  763. "Cylinder",
  764. delay,
  765. x3,
  766. y3,
  767. z3,
  768. msh
  769. })
  770. end
  771. }
  772. }
  773. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  774. local fp = IT("Part")
  775. fp.formFactor = formfactor
  776. fp.Parent = parent
  777. fp.Reflectance = reflectance
  778. fp.Transparency = transparency
  779. fp.CanCollide = false
  780. fp.Locked = true
  781. fp.BrickColor = brickcolor
  782. fp.Name = name
  783. fp.Size = size
  784. fp.Position = tors.Position
  785. RemoveOutlines(fp)
  786. fp.Material = "SmoothPlastic"
  787. fp:BreakJoints()
  788. return fp
  789. end
  790.  
  791. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  792. local mesh = IT(Mesh)
  793. mesh.Parent = part
  794. if Mesh == "SpecialMesh" then
  795. mesh.MeshType = meshtype
  796. if meshid ~= "nil" then
  797. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  798. end
  799. end
  800. mesh.Offset = offset
  801. mesh.Scale = scale
  802. return mesh
  803. end
  804.  
  805. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  806. local type = type
  807. local rng = Instance.new("Part", char)
  808. rng.Anchored = true
  809. rng.BrickColor = color
  810. rng.CanCollide = false
  811. rng.FormFactor = 3
  812. rng.Name = "Ring"
  813. rng.Material = "Neon"
  814. rng.Size = Vector3.new(1, 1, 1)
  815. rng.Transparency = 0
  816. rng.TopSurface = 0
  817. rng.BottomSurface = 0
  818. rng.CFrame = pos
  819. local rngm = Instance.new("SpecialMesh", rng)
  820. rngm.MeshType = MType
  821. rngm.Scale = scale
  822. local scaler2 = 1
  823. if type == "Add" then
  824. scaler2 = 1 * value
  825. elseif type == "Divide" then
  826. scaler2 = 1 / value
  827. end
  828. coroutine.resume(coroutine.create(function()
  829. for i = 0, 10 / bonuspeed, 0.1 do
  830. swait()
  831. if type == "Add" then
  832. scaler2 = scaler2 - 0.01 * value / bonuspeed
  833. elseif type == "Divide" then
  834. scaler2 = scaler2 - 0.01 / value * bonuspeed
  835. end
  836. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  837. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  838. end
  839. rng:Destroy()
  840. end))
  841. end
  842.  
  843. function Eviscerate(dude)
  844. if dude.Name ~= char then
  845. local bgf = IT("BodyGyro", dude.Head)
  846. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  847. local val = IT("BoolValue", dude)
  848. val.Name = "IsHit"
  849. local ds = coroutine.wrap(function()
  850. dude:WaitForChild("Head"):BreakJoints()
  851. wait(0.5)
  852. target = nil
  853. coroutine.resume(coroutine.create(function()
  854. for i, v in pairs(dude:GetChildren()) do
  855. if v:IsA("Accessory") then
  856. v:Destroy()
  857. end
  858. if v:IsA("Humanoid") then
  859. v:Destroy()
  860. end
  861. if v:IsA("CharacterMesh") then
  862. v:Destroy()
  863. end
  864. if v:IsA("Model") then
  865. v:Destroy()
  866. end
  867. if v:IsA("Part") or v:IsA("MeshPart") then
  868. for x, o in pairs(v:GetChildren()) do
  869. if o:IsA("Decal") then
  870. o:Destroy()
  871. end
  872. end
  873. coroutine.resume(coroutine.create(function()
  874. v.Material = "Neon"
  875. v.CanCollide = false
  876. local PartEmmit1 = IT("ParticleEmitter", v)
  877. PartEmmit1.LightEmission = 1
  878. PartEmmit1.Texture = "rbxassetid://284205403"
  879. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  880. PartEmmit1.Rate = 150
  881. PartEmmit1.Lifetime = NumberRange.new(1)
  882. PartEmmit1.Size = NumberSequence.new({
  883. NumberSequenceKeypoint.new(0, 0.75, 0),
  884. NumberSequenceKeypoint.new(1, 0, 0)
  885. })
  886. PartEmmit1.Transparency = NumberSequence.new({
  887. NumberSequenceKeypoint.new(0, 0, 0),
  888. NumberSequenceKeypoint.new(1, 1, 0)
  889. })
  890. PartEmmit1.Speed = NumberRange.new(0, 0)
  891. PartEmmit1.VelocitySpread = 30000
  892. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  893. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  894. local BodPoss = IT("BodyPosition", v)
  895. BodPoss.P = 3000
  896. BodPoss.D = 1000
  897. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  898. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  899. v.Color = maincolor.Color
  900. coroutine.resume(coroutine.create(function()
  901. for i = 0, 49 do
  902. swait(1)
  903. v.Transparency = v.Transparency + 0.08
  904. end
  905. wait(0.5)
  906. PartEmmit1.Enabled = false
  907. wait(3)
  908. v:Destroy()
  909. dude:Destroy()
  910. end))
  911. end))
  912. end
  913. end
  914. end))
  915. end)
  916. ds()
  917. end
  918. end
  919.  
  920. function FindNearestHead(Position, Distance, SinglePlayer)
  921. if SinglePlayer then
  922. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  923. end
  924. local List = {}
  925. for i, v in pairs(workspace:GetChildren()) do
  926. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  927. table.insert(List, v)
  928. end
  929. end
  930. return List
  931. end
  932.  
  933. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  934. local type = type
  935. local rng = Instance.new("Part", char)
  936. rng.Anchored = true
  937. rng.BrickColor = color
  938. rng.CanCollide = false
  939. rng.FormFactor = 3
  940. rng.Name = "Ring"
  941. rng.Material = "Neon"
  942. rng.Size = Vector3.new(1, 1, 1)
  943. rng.Transparency = 0
  944. rng.TopSurface = 0
  945. rng.BottomSurface = 0
  946. rng.CFrame = pos
  947. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  948. local rngm = Instance.new("SpecialMesh", rng)
  949. rngm.MeshType = MType
  950. rngm.Scale = Vector3.new(x1, y1, z1)
  951. local scaler2 = 1
  952. local speeder = FastSpeed
  953. if type == "Add" then
  954. scaler2 = 1 * value
  955. elseif type == "Divide" then
  956. scaler2 = 1 / value
  957. end
  958. coroutine.resume(coroutine.create(function()
  959. for i = 0, 10 / bonuspeed, 0.1 do
  960. swait()
  961. if type == "Add" then
  962. scaler2 = scaler2 - 0.01 * value / bonuspeed
  963. elseif type == "Divide" then
  964. scaler2 = scaler2 - 0.01 / value * bonuspeed
  965. end
  966. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  967. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  968. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  969. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  970. end
  971. rng:Destroy()
  972. end))
  973. end
  974.  
  975. function SoulSteal(dude)
  976. if dude.Name ~= char then
  977. local bgf = IT("BodyGyro", dude.Head)
  978. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  979. local val = IT("BoolValue", dude)
  980. val.Name = "IsHit"
  981. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  982. local soulst = coroutine.wrap(function()
  983. local soul = Instance.new("Part",dude)
  984. soul.Size = Vector3.new(1,1,1)
  985. soul.CanCollide = false
  986. soul.Anchored = false
  987. soul.Position = torso.Position
  988. soul.Transparency = 1
  989. local PartEmmit1 = IT("ParticleEmitter", soul)
  990. PartEmmit1.LightEmission = 1
  991. PartEmmit1.Texture = "rbxassetid://569507414"
  992. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  993. PartEmmit1.Rate = 250
  994. PartEmmit1.Lifetime = NumberRange.new(1.6)
  995. PartEmmit1.Size = NumberSequence.new({
  996. NumberSequenceKeypoint.new(0, 1, 0),
  997. NumberSequenceKeypoint.new(1, 0, 0)
  998. })
  999. PartEmmit1.Transparency = NumberSequence.new({
  1000. NumberSequenceKeypoint.new(0, 0, 0),
  1001. NumberSequenceKeypoint.new(1, 1, 0)
  1002. })
  1003. PartEmmit1.Speed = NumberRange.new(0, 0)
  1004. PartEmmit1.VelocitySpread = 30000
  1005. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1006. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1007. local BodPoss = IT("BodyPosition", soul)
  1008. BodPoss.P = 3000
  1009. BodPoss.D = 1000
  1010. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1011. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1012. wait(1.6)
  1013. soul.Touched:connect(function(hit)
  1014. if hit.Parent == char then
  1015. soul:Destroy()
  1016. end
  1017. end)
  1018. wait(1.2)
  1019. while soul do
  1020. swait()
  1021. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1022. BodPoss.Position = tors.Position
  1023. end
  1024. end)
  1025. soulst()
  1026. end
  1027. end
  1028. function FaceMouse()
  1029. local Cam = workspace.CurrentCamera
  1030. return {
  1031. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1032. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1033. }
  1034. end
  1035. -------------------------------------------------------
  1036. --End Effect Function--
  1037. -------------------------------------------------------
  1038. function Cso(ID, PARENT, VOLUME, PITCH)
  1039. local NSound = nil
  1040. coroutine.resume(coroutine.create(function()
  1041. NSound = IT("Sound", PARENT)
  1042. NSound.Volume = VOLUME
  1043. NSound.Pitch = PITCH
  1044. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1045. swait()
  1046. NSound:play()
  1047. game:GetService("Debris"):AddItem(NSound, 10)
  1048. end))
  1049. return NSound
  1050. end
  1051. function CameraEnshaking(Length, Intensity)
  1052. coroutine.resume(coroutine.create(function()
  1053. local intensity = 1 * Intensity
  1054. local rotM = 0.01 * Intensity
  1055. for i = 0, Length, 0.1 do
  1056. swait()
  1057. intensity = intensity - 0.05 * Intensity / Length
  1058. rotM = rotM - 5.0E-4 * Intensity / Length
  1059. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1060. 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)
  1061. end
  1062. hum.CameraOffset = Vector3.new(0, 0, 0)
  1063. end))
  1064. end
  1065. -------------------------------------------------------
  1066. --End Important Functions--
  1067. -------------------------------------------------------
  1068.  
  1069.  
  1070. -------------------------------------------------------
  1071. --Start Customization--
  1072. -------------------------------------------------------
  1073. local Player_Size = 1
  1074. if Player_Size ~= 1 then
  1075. root.Size = root.Size * Player_Size
  1076. tors.Size = tors.Size * Player_Size
  1077. hed.Size = hed.Size * Player_Size
  1078. ra.Size = ra.Size * Player_Size
  1079. la.Size = la.Size * Player_Size
  1080. rl.Size = rl.Size * Player_Size
  1081. ll.Size = ll.Size * Player_Size
  1082. ----------------------------------------------------------------------------------
  1083. rootj.Parent = root
  1084. neck.Parent = tors
  1085. RW.Parent = tors
  1086. LW.Parent = tors
  1087. RH.Parent = tors
  1088. LH.Parent = tors
  1089. ----------------------------------------------------------------------------------
  1090. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1091. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1092. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  1093. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1094. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1095. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1096. ----------------------------------------------------------------------------------
  1097. 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))
  1098. 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))
  1099. 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))
  1100. 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))
  1101. --hat.Parent = Character
  1102. end
  1103. ----------------------------------------------------------------------------------
  1104. local SONG = 0
  1105. local SONG2 = 0
  1106. local Music = Instance.new("Sound",tors)
  1107. Music.Volume = 2.5
  1108. Music.Looped = true
  1109. Music.Pitch = 1 --Pitcher
  1110. local HighNoon = Instance.new("Sound",char)
  1111. HighNoon.Volume = 10
  1112. HighNoon.SoundId = "rbxassetid://814875394"
  1113. HighNoon.Looped = false
  1114. HighNoon.Pitch = 1 --Pitcher
  1115. ----------------------------------------------------------------------------------
  1116. local equipped = false
  1117. local idle = 0
  1118. local change = 1
  1119. local val = 0
  1120. local toim = 0
  1121. local idleanim = 0.4
  1122. local sine = 0
  1123. ----------------------------------------------------------------------------------
  1124. hum.WalkSpeed = 8
  1125. hum.JumpPower = 57
  1126. hum.Animator.Parent = nil
  1127. local Hair = Instance.new("Part", char)
  1128. Hair.Name = "Hair"
  1129. Hair.CanCollide = false
  1130. Hair.BrickColor = BrickColor.new("Institutional white")
  1131. Hair.Transparency = 0
  1132. Hair.Material = "Plastic"
  1133. Hair.Size = Vector3.new(1, 1, 2)
  1134. Hair.TopSurface = Enum.SurfaceType.Smooth
  1135. Hair.BottomSurface = Enum.SurfaceType.Smooth
  1136.  
  1137. local Weld = Instance.new("Weld", Hair)
  1138. Weld.Part0 = hed
  1139. Weld.Part1 = Hair
  1140. Weld.C1 = CFrame.new(0, -.6, 0)
  1141. Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0)
  1142.  
  1143. local M2 = Instance.new("SpecialMesh")
  1144. M2.Parent = Hair
  1145. M2.MeshId = "http://www.roblox.com/asset/?id=10684207"
  1146. M2.TextureId = "http://www.roblox.com/asset/?id=10684155"
  1147. M2.Scale = Vector3.new(1, 1, 1)
  1148.  
  1149. local Hat = char:FindFirstChild("Hat_F") or Instance.new("Hat")
  1150. Hat.AttachmentPos = Vector3.new(0, 0.33, 0)
  1151. Hat.Name = "Hat_F"
  1152. local Handle = Hat:FindFirstChild("Handle") or Instance.new("Part", Hat)
  1153. if Handle.Name ~= "Handle" then
  1154. Handle.Size = Vector3.new(1, 1, 1)
  1155. end
  1156. Handle.BottomSurface = 0
  1157. Handle.Name = "Handle"
  1158. Handle.TopSurface = 0
  1159. Handle.Locked = 1
  1160. handle = Instance.new("Part", char)
  1161. handle.TopSurface = "Smooth"
  1162. handle.BottomSurface = "Smooth"
  1163. handle.Material = "Neon"
  1164. handle.Size = Vector3.new(0.4, 1.2, 2)
  1165. handle.CanCollide = false
  1166. handle.FormFactor = "Custom"
  1167. local Weldb = Instance.new("Weld", char)
  1168. Weldb.Part0 = ra
  1169. Weldb.Part1 = handle
  1170. Weldb.C1 = CFrame.new(0, -.4, -1.6) *angles(Rad(90), Rad(0), Rad(180))
  1171. local KnifeMesh = Instance.new("SpecialMesh", handle)
  1172. KnifeMesh.MeshType = "FileMesh"
  1173. KnifeMesh.MeshId = "http://www.roblox.com/asset/?id=432256490"
  1174. KnifeMesh.TextureId = "http://www.roblox.com/asset/?id=432256526"
  1175. KnifeMesh.Scale = Vector3.new(.002, .002, .002)
  1176. -------------------------------------------------------
  1177. --End Customization--
  1178. -------------------------------------------------------
  1179.  
  1180.  
  1181. -------------------------------------------------------
  1182. --Start Attacks N Stuff--
  1183. -------------------------------------------------------
  1184. function High_Noon()
  1185. print("Oh no.....")
  1186. attack = true
  1187. HighNoon:Play()
  1188. --Cso("814875394", char, 10, 1)
  1189. local orb = Instance.new("Part", char)
  1190. orb.Anchored = true
  1191. orb.BrickColor = BrickC("Really black")
  1192. orb.CanCollide = false
  1193. orb.FormFactor = 3
  1194. orb.Name = "Ring"
  1195. orb.Material = "Neon"
  1196. orb.Size = Vector3.new(1, 1, 1)
  1197. orb.Transparency = 0
  1198. orb.TopSurface = 0
  1199. orb.BottomSurface = 0
  1200. local orbm = Instance.new("SpecialMesh", orb)
  1201. orbm.MeshType = "Sphere"
  1202. orbm.Name = "SizeMesh"
  1203. orbm.Scale = Vector3.new(0, 0, 0)
  1204. local scaled = 0.1
  1205. local posid = 0
  1206. for i = 0, 109, 0.1 do
  1207. swait()
  1208. scaled = scaled + 0.001
  1209. --posid = posid - scaled
  1210. orb.CFrame = ra.CFrame * CF(0, -0.1 + posid / 1.05, 0)
  1211. orbm.Scale = orbm.Scale + Vector3.new(scaled, scaled, scaled)
  1212. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.2)
  1213. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(30), Rad(0), Rad(0)), 0.2)
  1214. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2)
  1215. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2)
  1216. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(90)), 0.2)
  1217. LW.C0 = clerp(LW.C0, CF(-1.2* Player_Size, 0.8 + 0.02 * Sin(sine / 20* Player_Size), -.6* Player_Size) * angles(Rad(-45), Rad(-.6), Rad(136 - 4.5 * Sin(sine / 20))), 0.2)
  1218. end
  1219. coroutine.resume(coroutine.create(function()
  1220. orb.Anchored = false
  1221. --CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
  1222. local a = Instance.new("Part", workspace)
  1223. a.Name = "Direction"
  1224. a.Anchored = true
  1225. a.BrickColor = BrickC("Bright red")
  1226. a.Material = "Neon"
  1227. a.Transparency = 1
  1228. a.CanCollide = false
  1229. local ray = Ray.new(orb.CFrame.p, (root.CFrame.lookVector - orb.CFrame.p).unit * 500)
  1230. local ignore = orb
  1231. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1232. a.BottomSurface = 10
  1233. a.TopSurface = 10
  1234. local distance = (orb.CFrame.p - position).magnitude
  1235. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1236. a.CFrame = CF(orb.CFrame.p, position) * CF(0, 0, 0)
  1237. orb.CFrame = a.CFrame
  1238. a:Destroy()
  1239. local bv = Instance.new("BodyVelocity")
  1240. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1241. bv.velocity = orb.CFrame.lookVector * 125
  1242. bv.Parent = orb
  1243. local hitted = false
  1244. game:GetService("Debris"):AddItem(orb, 15)
  1245. wait()
  1246. local hit = orb.Touched:connect(function(hit)
  1247. if hitted == false then
  1248. hitted = true
  1249. coroutine.resume(coroutine.create(function()
  1250. for i = 0,1.8,0.1 do
  1251. swait()
  1252. hum.CameraOffset = Vector3.new(Mrandom(-1,1),0,Mrandom(-1,1))
  1253. end
  1254. for i = 0,1.8,0.1 do
  1255. swait()
  1256. hum.CameraOffset = Vector3.new(0,0,0)
  1257. end
  1258. end))
  1259. CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
  1260. for i, v in pairs(FindNearestHead(orb.CFrame.p, 50000)) do
  1261. if v:FindFirstChild("Head") then
  1262. Eviscerate(v)
  1263. end
  1264. end
  1265. Magic(1, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickC("Really black"), "Sphere")
  1266. Magic(2, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickC("Really black"), "Sphere")
  1267. for i = 0, 9 do
  1268. --Aura(1, 2.5, "Add", orb.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Royal purple"), 0, "Sphere")
  1269. --Aura(2, 5, "Add", orb.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Royal purple"), 0, "Sphere")
  1270. end
  1271. orb.Anchored = true
  1272. orb.Transparency = 1
  1273. wait(8)
  1274. orb:Destroy()
  1275. end
  1276. end)
  1277. end))
  1278. for i = 0, 6, 0.1 do
  1279. swait()
  1280. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.2)
  1281. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(30), Rad(0), Rad(0)), 0.2)
  1282. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2)
  1283. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2)
  1284. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(124)), 0.2)
  1285. LW.C0 = clerp(LW.C0, CF(-1.2* Player_Size, 0.8 + 0.02 * Sin(sine / 20* Player_Size), -.6* Player_Size) * angles(Rad(-45), Rad(-.6), Rad(136 - 4.5 * Sin(sine / 20))), 0.2)
  1286. end
  1287. attack = false
  1288. end
  1289. function Up_High_Noon()
  1290. print("Oh no.....")
  1291. attack = true
  1292. HighNoon:Play()
  1293. --Cso("814875394", char, 10, 1)
  1294. local orb = Instance.new("Part", char)
  1295. orb.Anchored = true
  1296. orb.BrickColor = BrickC("Really black")
  1297. orb.CanCollide = false
  1298. orb.FormFactor = 3
  1299. orb.Name = "Ring"
  1300. orb.Material = "Neon"
  1301. orb.Size = Vector3.new(1, 1, 1)
  1302. orb.Transparency = 0
  1303. orb.TopSurface = 0
  1304. orb.BottomSurface = 0
  1305. local orbm = Instance.new("SpecialMesh", orb)
  1306. orbm.MeshType = "Sphere"
  1307. orbm.Name = "SizeMesh"
  1308. orbm.Scale = Vector3.new(0, 0, 0)
  1309. local scaled = 0.1
  1310. local posid = 0
  1311. for i = 0, 109, 0.1 do
  1312. swait()
  1313. scaled = scaled + 0.001
  1314. posid = posid - scaled
  1315. orb.CFrame = ra.CFrame * CF(0, -0.1 + posid / 1.05, 0)
  1316. orbm.Scale = orbm.Scale + Vector3.new(scaled, scaled, scaled)
  1317. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.2)
  1318. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(30), Rad(0), Rad(0)), 0.2)
  1319. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2)
  1320. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2)
  1321. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(180)), 0.2)
  1322. LW.C0 = clerp(LW.C0, CF(-1.2* Player_Size, 0.8 + 0.02 * Sin(sine / 20* Player_Size), -.6* Player_Size) * angles(Rad(-45), Rad(-.6), Rad(136 - 4.5 * Sin(sine / 20))), 0.2)
  1323. end
  1324. coroutine.resume(coroutine.create(function()
  1325. orb.Anchored = false
  1326. --CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
  1327. local a = Instance.new("Part", workspace)
  1328. a.Name = "Direction"
  1329. a.Anchored = true
  1330. a.BrickColor = BrickC("Bright red")
  1331. a.Material = "Neon"
  1332. a.Transparency = 1
  1333. a.CanCollide = false
  1334. local ray = Ray.new(orb.CFrame.p, (root.CFrame.lookVector - orb.CFrame.p).unit * 500)
  1335. local ignore = orb
  1336. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1337. a.BottomSurface = 10
  1338. a.TopSurface = 10
  1339. local distance = (orb.CFrame.p - position).magnitude
  1340. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1341. a.CFrame = CF(orb.CFrame.p, position) * CF(0, 0, 0)
  1342. orb.CFrame = a.CFrame
  1343. a:Destroy()
  1344. local bv = Instance.new("BodyVelocity")
  1345. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1346. bv.velocity = orb.CFrame.lookVector * 125
  1347. bv.Parent = orb
  1348. local hitted = false
  1349. game:GetService("Debris"):AddItem(orb, 15)
  1350. wait()
  1351. local hit = orb.Touched:connect(function(hit)
  1352. if hitted == false then
  1353. hitted = true
  1354. coroutine.resume(coroutine.create(function()
  1355. for i = 0,1.8,0.1 do
  1356. swait()
  1357. hum.CameraOffset = Vector3.new(Mrandom(-1,1),0,Mrandom(-1,1))
  1358. end
  1359. for i = 0,1.8,0.1 do
  1360. swait()
  1361. hum.CameraOffset = Vector3.new(0,0,0)
  1362. end
  1363. end))
  1364. CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
  1365. for i, v in pairs(FindNearestHead(orb.CFrame.p, 50000)) do
  1366. if v:FindFirstChild("Head") then
  1367. Eviscerate(v)
  1368. end
  1369. end
  1370. Magic(1, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickC("Really black"), "Sphere")
  1371. Magic(2, "Add", orb.CFrame, Vector3.new(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickC("Really black"), "Sphere")
  1372. for i = 0, 9 do
  1373. --Aura(1, 2.5, "Add", orb.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Royal purple"), 0, "Sphere")
  1374. --Aura(2, 5, "Add", orb.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Royal purple"), 0, "Sphere")
  1375. end
  1376. orb.Anchored = true
  1377. orb.Transparency = 1
  1378. wait(8)
  1379. orb:Destroy()
  1380. end
  1381. end)
  1382. end))
  1383. for i = 0, 6, 0.1 do
  1384. swait()
  1385. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 0.2)
  1386. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(30), Rad(0), Rad(0)), 0.2)
  1387. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2)
  1388. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.2)
  1389. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(124)), 0.2)
  1390. LW.C0 = clerp(LW.C0, CF(-1.2* Player_Size, 0.8 + 0.02 * Sin(sine / 20* Player_Size), -.6* Player_Size) * angles(Rad(-45), Rad(-.6), Rad(136 - 4.5 * Sin(sine / 20))), 0.2)
  1391. end
  1392. attack = false
  1393. end
  1394. -------------------------------------------------------
  1395. --End Attacks N Stuff--
  1396. -------------------------------------------------------
  1397. mouse.KeyDown:connect(function(key)
  1398. if string.byte(key) == 48 then
  1399. Swing = 2
  1400. hum.WalkSpeed = 38.82
  1401. end
  1402. end)
  1403. mouse.KeyUp:connect(function(key)
  1404. if string.byte(key) == 48 then
  1405. Swing = 1
  1406. hum.WalkSpeed = 8
  1407. end
  1408. end)
  1409. mouse.KeyDown:connect(function(key)
  1410. if attack == false then
  1411. if key == 'z' then
  1412. High_Noon()
  1413. elseif key == 'x' then
  1414. Up_High_Noon()
  1415. end
  1416. end
  1417. end)
  1418.  
  1419.  
  1420.  
  1421.  
  1422.  
  1423.  
  1424.  
  1425.  
  1426. -------------------------------------------------------
  1427. --Start Animations--
  1428. -------------------------------------------------------
  1429. while true do
  1430. swait()
  1431. sine = sine + change
  1432. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1433. local velderp = root.Velocity.y
  1434. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  1435. if equipped == true or equipped == false then
  1436. if attack == false then
  1437. idle = idle + 1
  1438. else
  1439. idle = 0
  1440. end
  1441. if 1 < root.Velocity.y and hitfloor == nil then
  1442. Anim = "Jump"
  1443. if attack == false then
  1444. 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)
  1445. 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)
  1446. 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)
  1447. 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)
  1448. 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)
  1449. 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)
  1450. end
  1451. elseif -1 > root.Velocity.y and hitfloor == nil then
  1452. Anim = "Fall"
  1453. if attack == false then
  1454. 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)
  1455. 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)
  1456. 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)
  1457. 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)
  1458. 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)
  1459. 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)
  1460. end
  1461. elseif torvel < 1 and hitfloor ~= nil then
  1462. Anim = "Idle"
  1463. change = .5
  1464. if attack == false then
  1465. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1466. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1467. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1468. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1469. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(3 + 4.5 * Sin(sine / 20))), 0.1)
  1470. 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(-3 - 4.5 * Sin(sine / 20))), 0.1)
  1471. end
  1472. elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
  1473. Anim = "Walk"
  1474. change = .9
  1475. if attack == false then
  1476. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15)
  1477. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1478. RH.C0 = clerp(RH.C0, CF(1, -0.8 - 0.5 * Cos(sine / 7) / 2, 0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1479. LH.C0 = clerp(LH.C0, CF(-1, -0.8 + 0.5 * Cos(sine / 7) / 2, -0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1480. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(37) * Cos(sine / 7) , Rad(0), Rad(-.6) - ra.RotVelocity.Y / 75), 0.1)
  1481. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(-37) * Cos(sine / 7) , Rad(0) , Rad(.6) + la.RotVelocity.Y / 75), 0.1)
  1482. end
  1483. elseif torvel >= 25 and hitfloor ~= nil then
  1484. Anim = "Sprint"
  1485. change = 1.35
  1486. if attack == false then
  1487. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
  1488. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1489. RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 - 35 * 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)
  1490. LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.7 * Cos(sine / 7) / 2) * angles(Rad(-15 + 35 * 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)
  1491. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.34 * Cos(sine / 7)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
  1492. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), -0.34 * Cos(sine / 7)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15)
  1493. end
  1494. end
  1495. end
  1496. Music.SoundId = "rbxassetid://"..SONG
  1497. Music.Looped = true
  1498. Music.Pitch = 1
  1499. Music.Volume = 5
  1500. Music.Parent = tors
  1501. Music:Resume()
  1502. for _, c in pairs(char:GetChildren()) do
  1503. if c.ClassName == "Accessory" then
  1504. c:remove()
  1505. end
  1506. end
  1507. if 0 < #Effects then
  1508. for e = 1, #Effects do
  1509. if Effects[e] ~= nil then
  1510. local Thing = Effects[e]
  1511. if Thing ~= nil then
  1512. local Part = Thing[1]
  1513. local Mode = Thing[2]
  1514. local Delay = Thing[3]
  1515. local IncX = Thing[4]
  1516. local IncY = Thing[5]
  1517. local IncZ = Thing[6]
  1518. if 1 >= Thing[1].Transparency then
  1519. if Thing[2] == "Block1" then
  1520. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1521. local Mesh = Thing[1].Mesh
  1522. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1523. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1524. elseif Thing[2] == "Block2" then
  1525. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1526. local Mesh = Thing[7]
  1527. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1528. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1529. elseif Thing[2] == "Block3" then
  1530. 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)
  1531. local Mesh = Thing[7]
  1532. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1533. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1534. elseif Thing[2] == "Cylinder" then
  1535. local Mesh = Thing[1].Mesh
  1536. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1537. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1538. elseif Thing[2] == "Blood" then
  1539. local Mesh = Thing[7]
  1540. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1541. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1542. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1543. elseif Thing[2] == "Elec" then
  1544. local Mesh = Thing[1].Mesh
  1545. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1546. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1547. elseif Thing[2] == "Disappear" then
  1548. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1549. elseif Thing[2] == "Shatter" then
  1550. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1551. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1552. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1553. Thing[6] = Thing[6] + Thing[5]
  1554. end
  1555. else
  1556. Part.Parent = nil
  1557. table.remove(Effects, e)
  1558. end
  1559. end
  1560. end
  1561. end
  1562. end
  1563. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement