IOBBOI

ok.avi

May 26th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.27 KB | None | 0 0
  1. local JeffTheKillerScript=script;
  2. repeat Wait(0)until JeffTheKillerScript and JeffTheKillerScript.Parent and JeffTheKillerScript.Parent.ClassName=="Model"and JeffTheKillerScript.Parent:FindFirstChild("Head")and JeffTheKillerScript.Parent:FindFirstChild("Torso");
  3. local JeffTheKiller=JeffTheKillerScript.Parent;
  4. function raycast(Spos,vec,currentdist)
  5. local hit2,pos2=game.Workspace:FindPartOnRay(Ray.new(Spos+(vec*.05),vec*currentdist),JeffTheKiller);
  6. if hit2~=nil and pos2 then
  7. if hit2.Name=="Handle" and not hit2.CanCollide or string.sub(hit2.Name,1,6)=="Effect"and not hit2.CanCollide then
  8. local currentdist=currentdist-(pos2-Spos).magnitude;
  9. return raycast(pos2,vec,currentdist);
  10. end;
  11. end;
  12. return hit2,pos2;
  13. end;
  14. function RayCast(Position,Direction,MaxDistance,IgnoreList)
  15. return Game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position,Direction.unit*(MaxDistance or 999.999)),IgnoreList);
  16. end;
  17. --[[if JeffTheKillerScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Thumbnail")then]]--
  18. --[[JeffTheKiller:FindFirstChild("Thumbnail"):Destroy();]]--
  19. --[[end;]]--
  20. local JeffTheKillerHumanoid;
  21. for _,Child in pairs(JeffTheKiller:GetChildren())do
  22. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  23. JeffTheKillerHumanoid=Child;
  24. end;
  25. end;
  26. local AttackDebounce=false;
  27. local JeffTheKillerKnife=JeffTheKiller:FindFirstChild("Knife");
  28. local JeffTheKillerHead=JeffTheKiller:FindFirstChild("Head");
  29. local JeffTheKillerHumanoidRootPart=JeffTheKiller:FindFirstChild("HumanoidRootPart");
  30. local WalkDebounce=false;
  31. local Notice=false;
  32. local JeffLaughDebounce=false;
  33. local MusicDebounce=false;
  34. local NoticeDebounce=false;
  35. local ChosenMusic;
  36. JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,-0);
  37. local OriginalC0=JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0;
  38. function FindNearestBae()
  39. local NoticeDistance=999e999;
  40. local TargetMain;
  41. for _,TargetModel in pairs(Game:GetService("Workspace"):GetChildren())do
  42. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and TargetModel.className=="Model"and TargetModel~=JeffTheKiller and TargetModel.Name~=JeffTheKiller.Name and TargetModel:FindFirstChild("Torso")and TargetModel:FindFirstChild("Head")then
  43. local TargetPart=TargetModel:FindFirstChild("Torso");
  44. local FoundHumanoid;
  45. for _,Child in pairs(TargetModel:GetChildren())do
  46. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  47. FoundHumanoid=Child;
  48. end;
  49. end;
  50. if TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<NoticeDistance then
  51. TargetMain=TargetPart;
  52. NoticeDistance=(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).magnitude;
  53. local hit,pos=raycast(JeffTheKillerHumanoidRootPart.Position,(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).unit,500)
  54. if hit and hit.Parent and hit.Parent.ClassName=="Model"and hit.Parent:FindFirstChild("Torso")and hit.Parent:FindFirstChild("Head")then
  55. if TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<61 and not AttackDebounce then
  56. Spawn(function()
  57. AttackDebounce=true;
  58. local SwingAnimation=JeffTheKillerHumanoid:LoadAnimation(JeffTheKiller:FindFirstChild("Swing"));
  59. local SwingChoice=math.random(1,2);
  60. local HitChoice=math.random(1,3);
  61. SwingAnimation:Play();
  62. SwingAnimation:AdjustSpeed(0.1+(math.random()*0.1));
  63. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife and JeffTheKillerKnife:FindFirstChild("Swing")then
  64. local SwingSound=JeffTheKillerKnife:FindFirstChild("Swing");
  65. SwingSound.Pitch=2+(math.random()*0.04);
  66. SwingSound:Play();
  67. end;
  68. Wait(0.3);
  69. if TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<60 then
  70. FoundHumanoid:TakeDamage(999);
  71. if HitChoice==1 and JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife and JeffTheKillerKnife:FindFirstChild("Hit1")then
  72. local HitSound=JeffTheKillerKnife:FindFirstChild("Hit1");
  73. HitSound.Pitch=1+(math.random()*0.01);
  74. HitSound:Play();
  75. elseif HitChoice==2 and JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife and JeffTheKillerKnife:FindFirstChild("Hit2")then
  76. local HitSound=JeffTheKillerKnife:FindFirstChild("Hit2");
  77. HitSound.Pitch=1+(math.random()*0.01);
  78. HitSound:Play();
  79. elseif HitChoice==3 and JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife and JeffTheKillerKnife:FindFirstChild("Hit3")then
  80. local HitSound=JeffTheKillerKnife:FindFirstChild("Hit3");
  81. HitSound.Pitch=1+(math.random()*0.01);
  82. HitSound:Play();
  83. end;
  84. end;
  85. Wait(0.1);
  86. AttackDebounce=false;
  87. end);
  88. end;
  89. end;
  90. end;
  91. end;
  92. end;
  93. return TargetMain;
  94. end;
  95. while Wait(0)do
  96. local TargetPoint=JeffTheKillerHumanoid.TargetPoint;
  97. local Blockage,BlockagePos=RayCast((JeffTheKillerHumanoidRootPart.CFrame+CFrame.new(JeffTheKillerHumanoidRootPart.Position,Vector3.new(TargetPoint.X,JeffTheKillerHumanoidRootPart.Position.Y,TargetPoint.Z)).lookVector*(JeffTheKillerHumanoidRootPart.Size.Z/2)).p,JeffTheKillerHumanoidRootPart.CFrame.lookVector,(JeffTheKillerHumanoidRootPart.Size.Z*2.5),{JeffTheKiller,JeffTheKiller})
  98. local Jumpable=false;
  99. if Blockage then
  100. Jumpable=true;
  101. if Blockage and Blockage.Parent and Blockage.Parent.ClassName~="Workspace"then
  102. local BlockageHumanoid;
  103. for _,Child in pairs(Blockage.Parent:GetChildren())do
  104. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  105. BlockageHumanoid=Child;
  106. end;
  107. end;
  108. if Blockage and Blockage:IsA("Terrain")then
  109. local CellPos=Blockage:WorldToCellPreferSolid((BlockagePos-Vector3.new(0,2,0)));
  110. local CellMaterial,CellShape,CellOrientation=Blockage:GetCell(CellPos.X,CellPos.Y,CellPos.Z);
  111. if CellMaterial==Enum.CellMaterial.Water then
  112. Jumpable=false;
  113. end;
  114. elseif BlockageHumanoid or Blockage.ClassName=="TrussPart"or Blockage.ClassName=="WedgePart"or Blockage.Name=="Handle"and Blockage.Parent.ClassName=="Hat"or Blockage.Name=="Handle"and Blockage.Parent.ClassName=="Tool"then
  115. Jumpable=false;
  116. end;
  117. end;
  118. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and not JeffTheKillerHumanoid.Sit and Jumpable then
  119. JeffTheKillerHumanoid.Jump=true;
  120. end;
  121. end;
  122. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHumanoidRootPart and JeffTheKillerHead:FindFirstChild("Jeff_Step")and (JeffTheKillerHumanoidRootPart.Velocity-Vector3.new(0,JeffTheKillerHumanoidRootPart.Velocity.y,0)).magnitude>=5 and not WalkDebounce and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 then
  123. Spawn(function()
  124. WalkDebounce=true;
  125. local FiredRay=Ray.new(JeffTheKillerHumanoidRootPart.Position,Vector3.new(0,-4,0));
  126. local RayTarget,endPoint=Game:GetService("Workspace"):FindPartOnRay(FiredRay,JeffTheKiller);
  127. if RayTarget then
  128. local JeffTheKillerHeadFootStepClone=JeffTheKillerHead:FindFirstChild("Jeff_Step"):Clone();
  129. JeffTheKillerHeadFootStepClone.Parent=JeffTheKillerHead;
  130. JeffTheKillerHeadFootStepClone:Play();
  131. JeffTheKillerHeadFootStepClone:Destroy();
  132. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and JeffTheKillerHumanoid.WalkSpeed<17 then
  133. Wait(0.4);
  134. elseif JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and JeffTheKillerHumanoid.WalkSpeed>17 then
  135. Wait(0.15);
  136. end
  137. end;
  138. WalkDebounce=false;
  139. end);
  140. end;
  141. local MainTarget=FindNearestBae();
  142. local FoundHumanoid;
  143. if MainTarget then
  144. for _,Child in pairs(MainTarget.Parent:GetChildren())do
  145. if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
  146. FoundHumanoid=Child;
  147. end;
  148. end;
  149. end;
  150. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and MainTarget and MainTarget.Parent and FoundHumanoid and FoundHumanoid.Jump then
  151. JeffTheKillerHumanoid.Jump=true;
  152. end;
  153. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<25 then
  154. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("Jeff_Laugh")and not JeffTheKillerHead:FindFirstChild("Jeff_Laugh").IsPlaying then
  155. JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume=1;
  156. JeffTheKillerHead:FindFirstChild("Jeff_Laugh"):Play();
  157. end;
  158. elseif JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude>25 then
  159. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("Jeff_Laugh")and JeffTheKillerHead:FindFirstChild("Jeff_Laugh").IsPlaying then
  160. if not JeffLaughDebounce then
  161. Spawn(function()
  162. JeffLaughDebounce=true;
  163. repeat Wait(0);if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("Jeff_Laugh")then JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume=JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume-0.1;else break;end;until JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume==0 or JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume<0;
  164. JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume=0;
  165. JeffTheKillerHead:FindFirstChild("Jeff_Laugh"):Stop();
  166. JeffLaughDebounce=false;
  167. end);
  168. end;
  169. end;
  170. end;
  171. if not ChosenMusic and JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<50 then
  172. local MusicChoice=math.random(1,2);
  173. if MusicChoice==1 and JeffTheKillerScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Jeff_Scene_Sound1")then
  174. ChosenMusic=JeffTheKiller:FindFirstChild("Jeff_Scene_Sound1");
  175. elseif MusicChoice==2 and JeffTheKillerScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Jeff_Scene_Sound2")then
  176. ChosenMusic=JeffTheKiller:FindFirstChild("Jeff_Scene_Sound2");
  177. end;
  178. if JeffTheKillerScript and JeffTheKiller and ChosenMusic and not ChosenMusic.IsPlaying then
  179. ChosenMusic.Volume=0.5;
  180. ChosenMusic:Play();
  181. end;
  182. elseif JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude>50 then
  183. if JeffTheKillerScript and JeffTheKiller and ChosenMusic and ChosenMusic.IsPlaying then
  184. if not MusicDebounce then
  185. Spawn(function()
  186. MusicDebounce=true;
  187. repeat Wait(0);if JeffTheKillerScript and JeffTheKiller and ChosenMusic then ChosenMusic.Volume=ChosenMusic.Volume-0.01;else break;end;until ChosenMusic.Volume==0 or ChosenMusic.Volume<0;
  188. if ChosenMusic then
  189. ChosenMusic.Volume=0;
  190. ChosenMusic:Stop();
  191. end;
  192. ChosenMusic=nil;
  193. MusicDebounce=false;
  194. end);
  195. end;
  196. end;
  197. end;
  198. if not MainTarget and not JeffLaughDebounce then
  199. Spawn(function()
  200. JeffLaughDebounce=true;
  201. repeat Wait(0);if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("Jeff_Laugh")then JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume=JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume-0.1;else break;end;until JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume==0 or JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume<0;
  202. JeffTheKillerHead:FindFirstChild("Jeff_Laugh").Volume=0;
  203. JeffTheKillerHead:FindFirstChild("Jeff_Laugh"):Stop();
  204. JeffLaughDebounce=false;
  205. end);
  206. end;
  207. if not MainTarget and not MusicDebounce then
  208. Spawn(function()
  209. MusicDebounce=true;
  210. repeat Wait(0);if JeffTheKillerScript and JeffTheKiller and ChosenMusic then ChosenMusic.Volume=ChosenMusic.Volume-0.01;else break;end;until ChosenMusic.Volume==0 or ChosenMusic.Volume<0;
  211. if ChosenMusic then
  212. ChosenMusic.Volume=0;
  213. ChosenMusic:Stop();
  214. end;
  215. ChosenMusic=nil;
  216. MusicDebounce=false;
  217. end);
  218. end;
  219. if MainTarget then
  220. Notice=true;
  221. if Notice and not NoticeDebounce and JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("Jeff_Susto2")then
  222. JeffTheKillerHead:FindFirstChild("Jeff_Susto2"):Play();
  223. NoticeDebounce=true;
  224. end
  225. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 then
  226. if MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude>5 then
  227. JeffTheKillerHumanoid.WalkSpeed=34;
  228. elseif MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<5 then
  229. JeffTheKillerHumanoid.WalkSpeed=0.004;
  230. end;
  231. JeffTheKillerHumanoid:MoveTo(MainTarget.Position+(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).unit*2,Game:GetService("Workspace"):FindFirstChild("Terrain"));
  232. local NeckRotation=(JeffTheKiller:FindFirstChild("Torso").Position.Y-MainTarget.Parent:FindFirstChild("Head").Position.Y)/10;
  233. if NeckRotation>-1.5 and NeckRotation<1.5 then
  234. JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=OriginalC0*CFrame.fromEulerAnglesXYZ(NeckRotation,0,0);
  235. end;
  236. if NeckRotation<-1.5 then
  237. JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,-0.993636549,0.112633869,0,0.112633869,0.993636549);
  238. elseif NeckRotation>1.5 then
  239. JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,0.996671617,0.081521146,0,0.081521146,-0.996671617);
  240. end;
  241. else
  242. end;
  243. else
  244. Notice=false;
  245. NoticeDebounce=false;
  246. JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,-0);
  247. local RandomWalk=math.random(1,150);
  248. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 then
  249. JeffTheKillerHumanoid.WalkSpeed=12;
  250. if RandomWalk==1 then
  251. JeffTheKillerHumanoid:MoveTo(Game:GetService("Workspace"):FindFirstChild("Terrain").Position+Vector3.new(math.random(-2048,2048),0,math.random(-2048,2048)),Game:GetService("Workspace"):FindFirstChild("Terrain"));
  252. end;
  253. end;
  254. end;
  255. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid then
  256. JeffTheKillerHumanoid.DisplayDistanceType="None";
  257. JeffTheKillerHumanoid.HealthDisplayDistance=0;
  258. JeffTheKillerHumanoid.Name="ColdBloodedKiller";
  259. JeffTheKillerHumanoid.NameDisplayDistance=0;
  260. JeffTheKillerHumanoid.NameOcclusion="EnemyOcclusion";
  261. JeffTheKillerHumanoid.AutoJumpEnabled=true;
  262. JeffTheKillerHumanoid.AutoRotate=true;
  263. JeffTheKillerHumanoid.MaxHealth=5000000000000000000000;
  264. JeffTheKillerHumanoid.JumpPower=0;
  265. JeffTheKillerHumanoid.MaxSlopeAngle=89.9;
  266. end;
  267. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and not JeffTheKillerHumanoid.AutoJumpEnabled then
  268. JeffTheKillerHumanoid.AutoJumpEnabled=true;
  269. end;
  270. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and not JeffTheKillerHumanoid.AutoRotate then
  271. JeffTheKillerHumanoid.AutoRotate=true;
  272. end;
  273. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.PlatformStand then
  274. JeffTheKillerHumanoid.PlatformStand=false;
  275. end;
  276. if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Sit then
  277. JeffTheKillerHumanoid.Sit=false;
  278. end;
  279. end;
Advertisement
Add Comment
Please, Sign In to add comment