Advertisement
saba1517

Untitled

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