local h=script repeat wait(.1)until h and(h.Parent and(h.Parent.ClassName=="\077\111\100\101\108"and(h.Parent:FindFirstChild("\072\101\097\100")and h.Parent:FindFirstChild("\084\111\114\115\111"))))local c=h.Parent function raycast(h,j,f)local M,P=game.Workspace:FindPartOnRay(Ray.new(h+j*.05,j*f),c)if M~=nil and P then if M.Name=="\072\097\110\100\108\101"and not M.CanCollide or string.sub(M.Name,1,6)=="\069\102\102\101\099\116"and not M.CanCollide then local c=f-(P-h).magnitude return raycast(P,j,c)end end return M,P end function RayCast(h,c,j,f)return(game:GetService("\087\111\114\107\115\112\097\099\101")):FindPartOnRayWithIgnoreList(Ray.new(h,c.unit*(j or 999.999)),f)end local j for h,c in pairs(c:GetChildren())do if c and(c.ClassName=="\072\117\109\097\110\111\105\100"and c.Health~=0)then j=c end end local f=false local M=(c:FindFirstChild("\084\111\114\115\111")):FindFirstChild("\075\110\105\102\101")local P=c:FindFirstChild("\072\101\097\100")local d=c:FindFirstChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")local T=false local o=false local Q=false local Y=false local W=false local B;((c:FindFirstChild("\084\111\114\115\111")):FindFirstChild("\078\101\099\107")).C0=CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,0)local m=((c:FindFirstChild("\084\111\114\115\111")):FindFirstChild("\078\101\099\107")).C0 function FindNearestBae()local P=70 local T for o,Q in pairs((game:GetService("\087\111\114\107\115\112\097\099\101")):GetChildren())do if h and(c and(j and(j.Health~=0 and(Q.className=="\077\111\100\101\108"and(Q~=c and(Q.Name~=c.Name and(Q:FindFirstChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")and Q:FindFirstChild("\072\101\097\100"))))))))then local o=Q:FindFirstChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")local Y for h,c in pairs(Q:GetChildren())do if c and(c.ClassName=="\072\117\109\097\110\111\105\100"and c.Health~=0)then Y=c end end if Q and(o and(Y and(Y.Health~=0 and(o.Position-d.Position).magnitude<P)))then T=o P=(o.Position-d.Position).magnitude local W,B=raycast(d.Position,(o.Position-d.Position).unit,500)if W and(W.Parent and(W.Parent.ClassName=="\077\111\100\101\108"and(W.Parent:FindFirstChild("\072\117\109\097\110\105\111\100\082\111\111\116\080\097\114\116")and W.Parent:FindFirstChild("\072\101\097\100"))))then if Q and(o and(Y and(Y.Health~=0 and((o.Position-d.Position).magnitude<9 and not f))))then spawn(function()f=true local P=j:LoadAnimation(c:FindFirstChild("\065\116\116\097\099\107\065\110\105\109\097\116\105\111\110"))local T=math.random(1,2)local W=math.random(1,3)P:Play()if h and(c and(M and M:FindFirstChild("\083\119\105\110\103")))then local h=M:FindFirstChild("\083\119\105\110\103")h.Pitch=1+math.random()*.04 h:Play()end wait(.2)if Q and(o and(Y and(Y.Health~=0 and(o.Position-d.Position).magnitude<8)))then Y:TakeDamage(20)if W==1 and(h and(c and(M and M:FindFirstChild("\072\105\116\049"))))then local h=M:FindFirstChild("\072\105\116\049")h.Pitch=1+math.random()*.04 h:Play()elseif W==2 and(h and(c and(M and M:FindFirstChild("\072\105\116\050"))))then local h=M:FindFirstChild("\072\105\116\050")h.Pitch=1+math.random()*.04 h:Play()elseif W==3 and(h and(c and(M and M:FindFirstChild("\072\105\116\051"))))then local h=M:FindFirstChild("\072\105\116\051")h.Pitch=1+math.random()*.04 h:Play()end end wait(1)f=false end)end end end end end return T end while wait(.1)do local f=j.TargetPoint local M,g=RayCast((d.CFrame+(CFrame.new(d.Position,Vector3.new(f.X,d.Position.Y,f.Z))).lookVector*(d.Size.Z/2)).p,d.CFrame.lookVector,d.Size.Z*2.5,{c,c})local G=false if M then G=true if M and(M.Parent and M.Parent.ClassName~="\087\111\114\107\115\112\097\099\101")then local h for c,j in pairs(M.Parent:GetChildren())do if j and(j.ClassName=="\072\117\109\097\110\111\105\100"and j.Health~=0)then h=j end end if M and M:IsA("\084\101\114\114\097\105\110")then local h=M:WorldToCellPreferSolid(g-Vector3.new(0,2,0))local c,j,f=M:GetCell(h.X,h.Y,h.Z)if c==Enum.CellMaterial.Water then G=false end elseif h or M.ClassName=="\084\114\117\115\115\080\097\114\116"or M.ClassName=="\087\101\100\103\101\080\097\114\116"or M.Name=="\072\097\110\100\108\101"and M.Parent.ClassName=="\072\097\116"or M.Name=="\072\097\110\100\108\101"and M.Parent.ClassName=="\084\111\111\108"then G=false end end if h and(c and(j and(j.Health~=0 and(not j.Sit and G))))then wait(1)j.Jump=true end end if h and(c and(P and(d and(P:FindFirstChild("\074\101\102\102\095\083\116\101\112")and((d.Velocity-Vector3.new(0,d.Velocity.y,0)).magnitude>=5 and(not T and(j and j.Health~=0)))))))then spawn(function()T=true local f=Ray.new(d.Position,Vector3.new(0,-4,0))local M,o=(game:GetService("\087\111\114\107\115\112\097\099\101")):FindPartOnRay(f,c)if M then local f=(P:FindFirstChild("\074\101\102\102\095\083\116\101\112")):Clone()f.Parent=P f:Play()f:Destroy()if h and(c and(j and(j.Health~=0 and j.WalkSpeed<17)))then wait(.4)elseif h and(c and(j and(j.Health~=0 and j.WalkSpeed>17)))then wait(.15)end end T=false end)end local I=FindNearestBae()local q if I then for h,c in pairs(I.Parent:GetChildren())do if c and(c.ClassName=="\072\117\109\097\110\111\105\100"and c.Health~=0)then q=c end end end if h and(c and(j and(j.Health~=0 and(I and(I.Parent and(q and q.Jump))))))then wait(1)j.Jump=true end if h and(c and(j and(j.Health~=0 and(I and(q and(q.Health~=0 and(I.Position-d.Position).magnitude<1e+20))))))then if h and(c and(P and(P:FindFirstChild("\082\097\107\101\084\104\101\109\101")and not(P:FindFirstChild("\082\097\107\101\084\104\101\109\101")).IsPlaying)))then(P:FindFirstChild("\082\097\107\101\084\104\101\109\101")).Volume=((c:FindFirstChild("\067\111\110\102\105\103\117\114\097\116\105\111\110")):FindFirstChild("\082\097\107\101\084\104\101\109\101\086\111\108\117\109\101")).Value;(P:FindFirstChild("\082\097\107\101\084\104\101\109\101")):Play()end elseif h and(c and(j and(j.Health~=0 and(I and(q and(q.Health~=0 and(I.Position-d.Position).magnitude>1e+19))))))then if h and(c and(P and(P:FindFirstChild("\082\097\107\101\084\104\101\109\101")and(P:FindFirstChild("\082\097\107\101\084\104\101\109\101")).IsPlaying)))then if not Q then spawn(function()Q=true repeat wait(.1)if h and(c and(P and P:FindFirstChild("\082\097\107\101\084\104\101\109\101")))then(P:FindFirstChild("\082\097\107\101\084\104\101\109\101")).Volume=(P:FindFirstChild("\082\097\107\101\084\104\101\109\101")).Volume-.1 else break end until(P:FindFirstChild("\082\097\107\101\084\104\101\109\101")).Volume==0 or(P:FindFirstChild("\082\097\107\101\084\104\101\109\101")).Volume<0;(P:FindFirstChild("\082\097\107\101\084\104\101\109\101")).Volume=0;(P:FindFirstChild("\082\097\107\101\084\104\101\109\101")):Stop()Q=false end)end end end if not B and(h and(c and(j and(j.Health~=0 and(I and(q and(q.Health~=0 and(I.Position-d.Position).magnitude<50)))))))then local j=math.random(1,2)if j==1 and(h and(c and c:FindFirstChild("\074\101\102\102\095\083\099\101\110\101\095\083\111\117\110\100\049")))then B=c:FindFirstChild("\074\101\102\102\095\083\099\101\110\101\095\083\111\117\110\100\049")elseif j==2 and(h and(c and c:FindFirstChild("\074\101\102\102\095\083\099\101\110\101\095\083\111\117\110\100\050")))then B=c:FindFirstChild("\074\101\102\102\095\083\099\101\110\101\095\083\111\117\110\100\050")end if h and(c and(B and not B.IsPlaying))then B.Volume=.5 B:Play()end elseif h and(c and(j and(j.Health~=0 and(I and(q and(q.Health~=0 and(I.Position-d.Position).magnitude>50))))))then if h and(c and(B and B.IsPlaying))then if not Y then spawn(function()Y=true repeat wait(.1)if h and(c and B)then B.Volume=B.Volume-.01 else break end until B.Volume==0 or B.Volume<0 if B then B.Volume=0 B:Stop()end B=nil Y=false end)end end end if not I and not Q then spawn(function()Q=true repeat wait(.1)if h and(c and(P and P:FindFirstChild("\082\097\107\101\084\104\101\109\101")))then(P:FindFirstChild("\082\097\107\101\084\104\101\109\101")).Volume=(P:FindFirstChild("\082\097\107\101\084\104\101\109\101")).Volume-.1 else break end until(P:FindFirstChild("\082\097\107\101\084\104\101\109\101")).Volume==0 or(P:FindFirstChild("\082\097\107\101\084\104\101\109\101")).Volume<0;(P:FindFirstChild("\082\097\107\101\084\104\101\109\101")).Volume=0;(P:FindFirstChild("\082\097\107\101\084\104\101\109\101")):Stop()Q=false end)end if not I and not Y then spawn(function()Y=true repeat wait(.1)if h and(c and B)then B.Volume=B.Volume-.01 else break end until B.Volume==0 or B.Volume<0 if B then B.Volume=0 B:Stop()end B=nil Y=false end)end if I then o=true if o and(not W and(h and(c and(P and P:FindFirstChild("\070\111\117\110\100")))))then c.Target.Value=true;(P:FindFirstChild("\070\111\117\110\100")):Play()wait(.4);(P:FindFirstChild("\082\097\107\101\083\099\114\101\097\109")):Play()W=true end if h and(c and(j and j.Health~=0))then if I and(q and(q.Health~=0 and(I.Position-d.Position).magnitude>5))then j.WalkSpeed=c.Configuration.WalkSpeed.Value elseif I and(q and(q.Health~=0 and(I.Position-d.Position).magnitude<5))then j.WalkSpeed=1 end j:MoveTo(I.Position+(I.Position-d.Position).unit*2,(game:GetService("\087\111\114\107\115\112\097\099\101")):FindFirstChild("\084\101\114\114\097\105\110"))local h=((c:FindFirstChild("\084\111\114\115\111")).Position.Y-(I.Parent:FindFirstChild("\072\101\097\100")).Position.Y)/10 if h>-1.5 and h<1.5 then((c:FindFirstChild("\084\111\114\115\111")):FindFirstChild("\078\101\099\107")).C0=m*CFrame.fromEulerAnglesXYZ(h,0,0)end if h<-1.5 then((c:FindFirstChild("\084\111\114\115\111")):FindFirstChild("\078\101\099\107")).C0=CFrame.new(0,1,0,-1,0,0,0,-0.4,.1,0,.1,.9)elseif h>1.5 then((c:FindFirstChild("\084\111\114\115\111")):FindFirstChild("\078\101\099\107")).C0=CFrame.new(0,1,0,-1,0,0,0,.1,.08,0,.08,-0.2)end else end else o=false W=false;((c:FindFirstChild("\084\111\114\115\111")):FindFirstChild("\078\101\099\107")).C0=CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,0)if h and(c and(j and j.Health~=0))then j.WalkSpeed=12 c.Target.Value=false end end spawn(function()local h=false while wait(.1)do if c.Target.Value==false and h==false then c.Wander.Disabled=false h=true wait(10)h=false end if c.Target.Value==true and h==false then c.Wander.Disabled=true h=true wait(10)h=false end end end)spawn(function()while j.Health>1 do wait(1);(c:FindFirstChild("\084\111\114\115\111")).Blood.Enabled=false;(c:FindFirstChild("\084\111\114\115\111")).Blood2.Enabled=false P.Eye1.BrickColor=BrickColor.new("\073\110\115\116\105\116\117\116\105\111\110\097\108 \119\104\105\116\101")P.Eye2.BrickColor=BrickColor.new("\073\110\115\116\105\116\117\116\105\111\110\097\108 \119\104\105\116\101")end end)if h and(c and j)then j.DisplayDistanceType="\078\111\110\101"j.HealthDisplayDistance=0 j.Name="\078\080\067"j.NameDisplayDistance=0 j.NameOcclusion="\069\110\101\109\121\079\099\099\108\117\115\105\111\110"j.AutoJumpEnabled=true j.AutoRotate=true j.MaxHealth=2000 j.JumpPower=80 j.MaxSlopeAngle=89.9 end if h and(c and(j and not j.AutoJumpEnabled))then j.AutoJumpEnabled=true end if h and(c and(j and not j.AutoRotate))then j.AutoRotate=true end if h and(c and(j and j.PlatformStand))then j.PlatformStand=false end if h and(c and(j and j.Sit))then j.Sit=false end end
--
local JeffTheKillerScript=script;
repeat wait(0.1)until JeffTheKillerScript and JeffTheKillerScript.Parent and JeffTheKillerScript.Parent.ClassName=="Model"and JeffTheKillerScript.Parent:FindFirstChild("Head")and JeffTheKillerScript.Parent:FindFirstChild("Torso");
local JeffTheKiller=JeffTheKillerScript.Parent;
function raycast(Spos,vec,currentdist)
local hit2,pos2=game.Workspace:FindPartOnRay(Ray.new(Spos+(vec*.05),vec*currentdist),JeffTheKiller);
if hit2~=nil and pos2 then
if hit2.Name=="Handle" and not hit2.CanCollide or string.sub(hit2.Name,1,6)=="Effect"and not hit2.CanCollide then
local currentdist=currentdist-(pos2-Spos).magnitude;
return raycast(pos2,vec,currentdist);
end;
end;
return hit2,pos2;
end;
function RayCast(Position,Direction,MaxDistance,IgnoreList)
return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position,Direction.unit*(MaxDistance or 999.999)),IgnoreList);
end;
local JeffTheKillerHumanoid;
for _,Child in pairs(JeffTheKiller:GetChildren())do
if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
JeffTheKillerHumanoid=Child;
end;
end;
local AttackDebounce=false;
local JeffTheKillerKnife=JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Knife");
local JeffTheKillerHead=JeffTheKiller:FindFirstChild("Head");
local JeffTheKillerHumanoidRootPart=JeffTheKiller:FindFirstChild("HumanoidRootPart");
local WalkDebounce=false;
local Notice=false;
local JeffLaughDebounce=false;
local MusicDebounce=false;
local NoticeDebounce=false;
local ChosenMusic;
JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,-0);
local OriginalC0=JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0;
function FindNearestBae()
local NoticeDistance=70;
local TargetMain;
for _,TargetModel in pairs(game:GetService("Workspace"):GetChildren())do
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("HumanoidRootPart")and TargetModel:FindFirstChild("Head")then
local TargetPart=TargetModel:FindFirstChild("HumanoidRootPart");
local FoundHumanoid;
for _,Child in pairs(TargetModel:GetChildren())do
if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
FoundHumanoid=Child;
end;
end;
if TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<NoticeDistance then
TargetMain=TargetPart;
NoticeDistance=(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).magnitude;
local hit,pos=raycast(JeffTheKillerHumanoidRootPart.Position,(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).unit,500)
if hit and hit.Parent and hit.Parent.ClassName=="Model"and hit.Parent:FindFirstChild("HumaniodRootPart")and hit.Parent:FindFirstChild("Head")then
if TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<9 and not AttackDebounce then
spawn(function()
AttackDebounce=true;
local SwingAnimation=JeffTheKillerHumanoid:LoadAnimation(JeffTheKiller:FindFirstChild("AttackAnimation"));
local SwingChoice=math.random(1,2);
local HitChoice=math.random(1,3);
SwingAnimation:Play();
if JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife and JeffTheKillerKnife:FindFirstChild("Swing")then
local SwingSound=JeffTheKillerKnife:FindFirstChild("Swing");
SwingSound.Pitch=1+(math.random()*0.04);
SwingSound:Play();
end;
wait(0.2);
if TargetModel and TargetPart and FoundHumanoid and FoundHumanoid.Health~=0 and(TargetPart.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<8 then
FoundHumanoid:TakeDamage(20);
if HitChoice==1 and JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife and JeffTheKillerKnife:FindFirstChild("Hit1")then
local HitSound=JeffTheKillerKnife:FindFirstChild("Hit1");
HitSound.Pitch=1+(math.random()*0.04);
HitSound:Play();
elseif HitChoice==2 and JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife and JeffTheKillerKnife:FindFirstChild("Hit2")then
local HitSound=JeffTheKillerKnife:FindFirstChild("Hit2");
HitSound.Pitch=1+(math.random()*0.04);
HitSound:Play();
elseif HitChoice==3 and JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife and JeffTheKillerKnife:FindFirstChild("Hit3")then
local HitSound=JeffTheKillerKnife:FindFirstChild("Hit3");
HitSound.Pitch=1+(math.random()*0.04);
HitSound:Play();
end;
end;
wait(1);
AttackDebounce=false;
end);
end;
end;
end;
end;
end;
return TargetMain;
end;
while wait(0.1)do
local TargetPoint=JeffTheKillerHumanoid.TargetPoint;
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})
local Jumpable=false;
if Blockage then
Jumpable=true;
if Blockage and Blockage.Parent and Blockage.Parent.ClassName~="Workspace"then
local BlockageHumanoid;
for _,Child in pairs(Blockage.Parent:GetChildren())do
if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
BlockageHumanoid=Child;
end;
end;
if Blockage and Blockage:IsA("Terrain")then
local CellPos=Blockage:WorldToCellPreferSolid((BlockagePos-Vector3.new(0,2,0)));
local CellMaterial,CellShape,CellOrientation=Blockage:GetCell(CellPos.X,CellPos.Y,CellPos.Z);
if CellMaterial==Enum.CellMaterial.Water then
Jumpable=false;
end;
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
Jumpable=false;
end;
end;
if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and not JeffTheKillerHumanoid.Sit and Jumpable then
wait(1)
JeffTheKillerHumanoid.Jump=true;
end;
end;
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
spawn(function()
WalkDebounce=true;
local FiredRay=Ray.new(JeffTheKillerHumanoidRootPart.Position,Vector3.new(0,-4,0));
local RayTarget,endPoint=game:GetService("Workspace"):FindPartOnRay(FiredRay,JeffTheKiller);
if RayTarget then
local JeffTheKillerHeadFootStepClone=JeffTheKillerHead:FindFirstChild("Jeff_Step"):Clone();
JeffTheKillerHeadFootStepClone.Parent=JeffTheKillerHead;
JeffTheKillerHeadFootStepClone:Play();
JeffTheKillerHeadFootStepClone:Destroy();
if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and JeffTheKillerHumanoid.WalkSpeed<17 then
wait(0.4);
elseif JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and JeffTheKillerHumanoid.WalkSpeed>17 then
wait(0.15);
end
end;
WalkDebounce=false;
end);
end;
local MainTarget=FindNearestBae();
local FoundHumanoid;
if MainTarget then
for _,Child in pairs(MainTarget.Parent:GetChildren())do
if Child and Child.ClassName=="Humanoid"and Child.Health~=0 then
FoundHumanoid=Child;
end;
end;
end;
if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and MainTarget and MainTarget.Parent and FoundHumanoid and FoundHumanoid.Jump then
wait(1)
JeffTheKillerHumanoid.Jump=true;
end;
if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<99999999999999999999 then
if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("RakeTheme")and not JeffTheKillerHead:FindFirstChild("RakeTheme").IsPlaying then
JeffTheKillerHead:FindFirstChild("RakeTheme").Volume=JeffTheKiller:FindFirstChild("Configuration"):FindFirstChild("RakeThemeVolume").Value;
JeffTheKillerHead:FindFirstChild("RakeTheme"):Play();
end;
elseif JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude>9999999999999999999 then
if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("RakeTheme")and JeffTheKillerHead:FindFirstChild("RakeTheme").IsPlaying then
if not JeffLaughDebounce then
spawn(function()
JeffLaughDebounce=true;
repeat wait(0.1);if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("RakeTheme")then JeffTheKillerHead:FindFirstChild("RakeTheme").Volume=JeffTheKillerHead:FindFirstChild("RakeTheme").Volume-0.1;else break;end;until JeffTheKillerHead:FindFirstChild("RakeTheme").Volume==0 or JeffTheKillerHead:FindFirstChild("RakeTheme").Volume<0;
JeffTheKillerHead:FindFirstChild("RakeTheme").Volume=0;
JeffTheKillerHead:FindFirstChild("RakeTheme"):Stop();
JeffLaughDebounce=false;
end);
end;
end;
end;
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
local MusicChoice=math.random(1,2);
if MusicChoice==1 and JeffTheKillerScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Jeff_Scene_Sound1")then
ChosenMusic=JeffTheKiller:FindFirstChild("Jeff_Scene_Sound1");
elseif MusicChoice==2 and JeffTheKillerScript and JeffTheKiller and JeffTheKiller:FindFirstChild("Jeff_Scene_Sound2")then
ChosenMusic=JeffTheKiller:FindFirstChild("Jeff_Scene_Sound2");
end;
if JeffTheKillerScript and JeffTheKiller and ChosenMusic and not ChosenMusic.IsPlaying then
ChosenMusic.Volume=0.5;
ChosenMusic:Play();
end;
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
if JeffTheKillerScript and JeffTheKiller and ChosenMusic and ChosenMusic.IsPlaying then
if not MusicDebounce then
spawn(function()
MusicDebounce=true;
repeat wait(0.1);if JeffTheKillerScript and JeffTheKiller and ChosenMusic then ChosenMusic.Volume=ChosenMusic.Volume-0.01;else break;end;until ChosenMusic.Volume==0 or ChosenMusic.Volume<0;
if ChosenMusic then
ChosenMusic.Volume=0;
ChosenMusic:Stop();
end;
ChosenMusic=nil;
MusicDebounce=false;
end);
end;
end;
end;
if not MainTarget and not JeffLaughDebounce then
spawn(function()
JeffLaughDebounce=true;
repeat wait(0.1);if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("RakeTheme")then JeffTheKillerHead:FindFirstChild("RakeTheme").Volume=JeffTheKillerHead:FindFirstChild("RakeTheme").Volume-0.1;else break;end;until JeffTheKillerHead:FindFirstChild("RakeTheme").Volume==0 or JeffTheKillerHead:FindFirstChild("RakeTheme").Volume<0;
JeffTheKillerHead:FindFirstChild("RakeTheme").Volume=0;
JeffTheKillerHead:FindFirstChild("RakeTheme"):Stop();
JeffLaughDebounce=false;
end);
end;
if not MainTarget and not MusicDebounce then
spawn(function()
MusicDebounce=true;
repeat wait(0.1);if JeffTheKillerScript and JeffTheKiller and ChosenMusic then ChosenMusic.Volume=ChosenMusic.Volume-0.01;else break;end;until ChosenMusic.Volume==0 or ChosenMusic.Volume<0;
if ChosenMusic then
ChosenMusic.Volume=0;
ChosenMusic:Stop();
end;
ChosenMusic=nil;
MusicDebounce=false;
end);
end;
if MainTarget then
Notice=true;
if Notice and not NoticeDebounce and JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("Found")then
JeffTheKiller.Target.Value = true;
JeffTheKillerHead:FindFirstChild("Found"):Play();
wait(0.4);
JeffTheKillerHead:FindFirstChild("RakeScream"):Play();
NoticeDebounce=true;
end;
if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 then
if MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude>5 then
JeffTheKillerHumanoid.WalkSpeed=JeffTheKiller.Configuration.WalkSpeed.Value;
elseif MainTarget and FoundHumanoid and FoundHumanoid.Health~=0 and(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).magnitude<5 then
JeffTheKillerHumanoid.WalkSpeed=1;
end;
JeffTheKillerHumanoid:MoveTo(MainTarget.Position+(MainTarget.Position-JeffTheKillerHumanoidRootPart.Position).unit*2,game:GetService("Workspace"):FindFirstChild("Terrain"));
local NeckRotation=(JeffTheKiller:FindFirstChild("Torso").Position.Y-MainTarget.Parent:FindFirstChild("Head").Position.Y)/10;
if NeckRotation>-1.5 and NeckRotation<1.5 then
JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=OriginalC0*CFrame.fromEulerAnglesXYZ(NeckRotation,0,0);
end;
if NeckRotation<-1.5 then
JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,-0.4,0.1,0,0.1,0.9);
elseif NeckRotation>1.5 then
JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,0.1,0.08,0,0.08,-0.2);
end;
else
end;
else
Notice=false;
NoticeDebounce=false;
JeffTheKiller:FindFirstChild("Torso"):FindFirstChild("Neck").C0=CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,-0);
if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 then
JeffTheKillerHumanoid.WalkSpeed=12;
JeffTheKiller.Target.Value=false;
end;
end;
spawn(function()
local AlreadyDo=false;
while wait(0.1) do
if JeffTheKiller.Target.Value==false and AlreadyDo==false then
JeffTheKiller.Wander.Disabled=false;
AlreadyDo=true;
wait(10);
AlreadyDo=false;
end;
if JeffTheKiller.Target.Value==true and AlreadyDo==false then
JeffTheKiller.Wander.Disabled=true;
AlreadyDo=true;
wait(10);
AlreadyDo=false;
end;
end;
end);
spawn(function()
while JeffTheKillerHumanoid.Health > 1 do
wait(1);
JeffTheKiller:FindFirstChild("Torso").Blood.Enabled = false;
JeffTheKiller:FindFirstChild("Torso").Blood2.Enabled = false;
JeffTheKillerHead.Eye1.BrickColor=BrickColor.new("Institutional white");
JeffTheKillerHead.Eye2.BrickColor=BrickColor.new("Institutional white");
end;
end);
if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid then
JeffTheKillerHumanoid.DisplayDistanceType="None";
JeffTheKillerHumanoid.HealthDisplayDistance=0;
JeffTheKillerHumanoid.Name="NPC";
JeffTheKillerHumanoid.NameDisplayDistance=0;
JeffTheKillerHumanoid.NameOcclusion="EnemyOcclusion";
JeffTheKillerHumanoid.AutoJumpEnabled=true;
JeffTheKillerHumanoid.AutoRotate=true;
JeffTheKillerHumanoid.MaxHealth=2000;
JeffTheKillerHumanoid.JumpPower=80;
JeffTheKillerHumanoid.MaxSlopeAngle=89.9;
end;
if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and not JeffTheKillerHumanoid.AutoJumpEnabled then
JeffTheKillerHumanoid.AutoJumpEnabled=true;
end;
if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and not JeffTheKillerHumanoid.AutoRotate then
JeffTheKillerHumanoid.AutoRotate=true;
end;
if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.PlatformStand then
JeffTheKillerHumanoid.PlatformStand=false;
end;
if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Sit then
JeffTheKillerHumanoid.Sit=false;
end;
end;