local l=script repeat wait(.1)until l and(l.Parent and(l.Parent.ClassName=="\077\111\100\101\108"and(l.Parent:FindFirstChild("\072\101\097\100")and l.Parent:FindFirstChild("\084\111\114\115\111"))))local a=l.Parent function raycast(l,d,u)local n,K=game.Workspace:FindPartOnRay(Ray.new(l+d*.05,d*u),a)if n~=nil and K then if n.Name=="\072\097\110\100\108\101"and not n.CanCollide or string.sub(n.Name,1,6)=="\069\102\102\101\099\116"and not n.CanCollide then local a=u-(K-l).magnitude return raycast(K,d,a)end end return n,K end function RayCast(l,a,d,u)return(game:GetService("\087\111\114\107\115\112\097\099\101")):FindPartOnRayWithIgnoreList(Ray.new(l,a.unit*(d or 999.999)),u)end local d for l,a in pairs(a:GetChildren())do if a and(a.ClassName=="\072\117\109\097\110\111\105\100"and a.Health~=0)then d=a end end local u=false local n=(a:FindFirstChild("\084\111\114\115\111")):FindFirstChild("\075\110\105\102\101")local K=a:FindFirstChild("\072\101\097\100")local X=a:FindFirstChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")local U=false local E=false local I=false local W=false local w=false local y;((a: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 G=((a:FindFirstChild("\084\111\114\115\111")):FindFirstChild("\078\101\099\107")).C0 function FindNearestBae()local K=70 local U for E,I in pairs((game:GetService("\087\111\114\107\115\112\097\099\101")):GetChildren())do if l and(a and(d and(d.Health~=0 and(I.className=="\077\111\100\101\108"and(I~=a and(I.Name~=a.Name and(I:FindFirstChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")and I:FindFirstChild("\072\101\097\100"))))))))then local E=I:FindFirstChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")local W for l,a in pairs(I:GetChildren())do if a and(a.ClassName=="\072\117\109\097\110\111\105\100"and a.Health~=0)then W=a end end if I and(E and(W and(W.Health~=0 and(E.Position-X.Position).magnitude<K)))then U=E K=(E.Position-X.Position).magnitude local w,y=raycast(X.Position,(E.Position-X.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 I and(E and(W and(W.Health~=0 and((E.Position-X.Position).magnitude<15 and not u))))then spawn(function()u=true local K=d:LoadAnimation(a:FindFirstChild("\083\119\105\110\103"))local U=math.random(1,2)local w=math.random(1,3)K:Play()K:AdjustSpeed(2.1+math.random()*.1)if l and(a and n)then local l=(a:FindFirstChild("\084\111\114\115\111")):FindFirstChild("\083\119\105\110\103")l.Pitch=1+math.random()*.04 l:Play()end wait(.2)if I and(E and(W and(W.Health~=0 and(E.Position-X.Position).magnitude<8)))then W:TakeDamage(20)if w==1 and(l and(a and(n and n:FindFirstChild("\072\105\116\049"))))then local l=n:FindFirstChild("\072\105\116\049")l.Pitch=1+math.random()*.04 l:Play()elseif w==2 and(l and(a and(n and n:FindFirstChild("\072\105\116\050"))))then local l=n:FindFirstChild("\072\105\116\050")l.Pitch=1+math.random()*.04 l:Play()elseif w==3 and(l and(a and(n and n:FindFirstChild("\072\105\116\051"))))then local l=n:FindFirstChild("\072\105\116\051")l.Pitch=1+math.random()*.04 l:Play()end end wait(1)u=false end)end end end end end return U end while wait(.1)do local u=d.TargetPoint local n,L=RayCast((X.CFrame+(CFrame.new(X.Position,Vector3.new(u.X,X.Position.Y,u.Z))).lookVector*(X.Size.Z/2)).p,X.CFrame.lookVector,X.Size.Z*2.5,{a;a})local O=false if n then wait(.5)O=true if n and(n.Parent and n.Parent.ClassName~="\087\111\114\107\115\112\097\099\101")then local l for a,d in pairs(n.Parent:GetChildren())do if d and(d.ClassName=="\072\117\109\097\110\111\105\100"and d.Health~=0)then l=d O=false end end if n and n:IsA("\084\101\114\114\097\105\110")then local l=n:WorldToCellPreferSolid(L-Vector3.new(0,2,0))local a,d,u=n:GetCell(l.X,l.Y,l.Z)if a==Enum.CellMaterial.Water then O=false end elseif l or n.ClassName=="\084\114\117\115\115\080\097\114\116"or n.ClassName=="\087\101\100\103\101\080\097\114\116"or n.Name=="\072\097\110\100\108\101"and n.Parent.ClassName=="\072\097\116"or n.Name=="\072\097\110\100\108\101"and n.Parent.ClassName=="\084\111\111\108"or n.Parent.Name=="\072\117\109\097\110\111\105\100"and(n.Parent.Name=="\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116"and n.Parent.ClassName=="\072\117\109\097\110\111\105\100")then O=false end end if l and(a and(d and(d.Health~=0 and(not d.Sit and O))))then d.Jump=true end end if l and(a and(K and(X and(K:FindFirstChild("\082\097\107\101\083\116\101\112")and((X.Velocity-Vector3.new(0,X.Velocity.y,0)).magnitude>=5 and(not U and(d and d.Health~=0)))))))then spawn(function()U=true local u=Ray.new(X.Position,Vector3.new(0,-4,0))local n,E=(game:GetService("\087\111\114\107\115\112\097\099\101")):FindPartOnRay(u,a)if n then local u=(K:FindFirstChild("\082\097\107\101\083\116\101\112")):Clone()u.Parent=K u:Play()u:Destroy()if l and(a and(d and(d.Health~=0 and d.WalkSpeed<17)))then wait(.4)elseif l and(a and(d and(d.Health~=0 and d.WalkSpeed>17)))then wait(.15)end end U=false end)end local D=FindNearestBae()local s if D then for l,a in pairs(D.Parent:GetChildren())do if a and(a.ClassName=="\072\117\109\097\110\111\105\100"and a.Health~=0)then s=a end end end if l and(a and(d and(d.Health~=0 and(D and(s and(s.Health~=0 and(D.Position-X.Position).magnitude<1e+20))))))then if l and(a and(K and(K:FindFirstChild("\082\097\107\101\084\104\101\109\101")and not(K:FindFirstChild("\082\097\107\101\084\104\101\109\101")).IsPlaying)))then(K:FindFirstChild("\082\097\107\101\084\104\101\109\101")).Volume=((a: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;(K:FindFirstChild("\082\097\107\101\084\104\101\109\101")):Play()end elseif l and(a and(d and(d.Health~=0 and(D and(s and(s.Health~=0 and(D.Position-X.Position).magnitude>1e+19))))))then if l and(a and(K and(K:FindFirstChild("\082\097\107\101\084\104\101\109\101")and(K:FindFirstChild("\082\097\107\101\084\104\101\109\101")).IsPlaying)))then if not I then spawn(function()I=true repeat wait(.1)if l and(a and(K and K:FindFirstChild("\082\097\107\101\084\104\101\109\101")))then(K:FindFirstChild("\082\097\107\101\084\104\101\109\101")).Volume=(K:FindFirstChild("\082\097\107\101\084\104\101\109\101")).Volume-.1 else break end until(K:FindFirstChild("\082\097\107\101\084\104\101\109\101")).Volume==0 or(K:FindFirstChild("\082\097\107\101\084\104\101\109\101")).Volume<0;(K:FindFirstChild("\082\097\107\101\084\104\101\109\101")).Volume=0;(K:FindFirstChild("\082\097\107\101\084\104\101\109\101")):Stop()I=false end)end end end if not y and(l and(a and(d and(d.Health~=0 and(D and(s and(s.Health~=0 and(D.Position-X.Position).magnitude<50)))))))then local d=math.random(1,2)if d==1 and(l and(a and a:FindFirstChild("\074\101\102\102\095\083\099\101\110\101\095\083\111\117\110\100\049")))then y=a:FindFirstChild("\074\101\102\102\095\083\099\101\110\101\095\083\111\117\110\100\049")elseif d==2 and(l and(a and a:FindFirstChild("\074\101\102\102\095\083\099\101\110\101\095\083\111\117\110\100\050")))then y=a:FindFirstChild("\074\101\102\102\095\083\099\101\110\101\095\083\111\117\110\100\050")end if l and(a and(y and not y.IsPlaying))then y.Volume=.5 y:Play()end elseif l and(a and(d and(d.Health~=0 and(D and(s and(s.Health~=0 and(D.Position-X.Position).magnitude>50))))))then if l and(a and(y and y.IsPlaying))then if not W then spawn(function()W=true repeat wait(.1)if l and(a and y)then y.Volume=y.Volume-.01 else break end until y.Volume==0 or y.Volume<0 if y then y.Volume=0 y:Stop()end y=nil W=false end)end end end if not D and not I then spawn(function()I=true repeat wait(.1)if l and(a and(K and K:FindFirstChild("\082\097\107\101\084\104\101\109\101")))then(K:FindFirstChild("\082\097\107\101\084\104\101\109\101")).Volume=(K:FindFirstChild("\082\097\107\101\084\104\101\109\101")).Volume-.1 else break end until(K:FindFirstChild("\082\097\107\101\084\104\101\109\101")).Volume==0 or(K:FindFirstChild("\082\097\107\101\084\104\101\109\101")).Volume<0;(K:FindFirstChild("\082\097\107\101\084\104\101\109\101")).Volume=0;(K:FindFirstChild("\082\097\107\101\084\104\101\109\101")):Stop()I=false end)end if not D and not W then spawn(function()W=true repeat wait(.1)if l and(a and y)then y.Volume=y.Volume-.01 else break end until y.Volume==0 or y.Volume<0 if y then y.Volume=0 y:Stop()end y=nil W=false end)end if D then E=true if E and(not w and(l and(a and(K and K:FindFirstChild("\070\111\117\110\100")))))then a.Target.Value=true;(K:FindFirstChild("\070\111\117\110\100")):Play()wait(.4);(K:FindFirstChild("\082\097\107\101\083\099\114\101\097\109")):Play()w=true end if l and(a and(d and d.Health~=0))then if D and(s and(s.Health~=0 and(D.Position-X.Position).magnitude>5))then d.WalkSpeed=a.Configuration.WalkSpeed.Value elseif D and(s and(s.Health~=0 and(D.Position-X.Position).magnitude<5))then d.WalkSpeed=1 end d:MoveTo(D.Position+(D.Position-X.Position).unit*2,(game:GetService("\087\111\114\107\115\112\097\099\101")):FindFirstChild("\084\101\114\114\097\105\110"))local l=((a:FindFirstChild("\084\111\114\115\111")).Position.Y-(D.Parent:FindFirstChild("\072\101\097\100")).Position.Y)/10 if l>-1.5 and l<1.5 then((a:FindFirstChild("\084\111\114\115\111")):FindFirstChild("\078\101\099\107")).C0=G*CFrame.fromEulerAnglesXYZ(l,0,0)end if l<-1.5 then((a: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 l>1.5 then((a: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 E=false w=false;((a: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 l and(a and(d and d.Health~=0))then d.WalkSpeed=12 a.Target.Value=false end end spawn(function()local l=false while wait(.1)do if a.Target.Value==false and l==false then K.Mouth.Transparency=1 K.Mouth2.Transparency=0 K.Mouth2.MouthDecal.Transparency=0 a.Wander.Disabled=false l=true wait(5)l=false end if a.Target.Value==true and l==false then K.Mouth.Transparency=0 K.Mouth2.Transparency=1 K.Mouth2.MouthDecal.Transparency=1 a.Wander.Disabled=true l=true wait(5)l=false end end end)spawn(function()while d.Health>1 do wait(1);(a:FindFirstChild("\084\111\114\115\111")).Blood.Enabled=false;(a:FindFirstChild("\084\111\114\115\111")).Blood2.Enabled=false K.Eye1.BrickColor=BrickColor.new("\073\110\115\116\105\116\117\116\105\111\110\097\108 \119\104\105\116\101")K.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 l and(a and d)then d.DisplayDistanceType="\078\111\110\101"d.HealthDisplayDistance=0 d.Name="\078\080\067"d.NameDisplayDistance=0 d.NameOcclusion="\069\110\101\109\121\079\099\099\108\117\115\105\111\110"d.AutoJumpEnabled=true d.AutoRotate=true d.MaxHealth=2000 d.JumpPower=80 d.MaxSlopeAngle=89.9 end if l and(a and(d and not d.AutoJumpEnabled))then d.AutoJumpEnabled=true end if l and(a and(d and not d.AutoRotate))then d.AutoRotate=true end if l and(a and(d and d.PlatformStand))then d.PlatformStand=false end if l and(a and(d and d.Sit))then d.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<15 and not AttackDebounce then
spawn(function()
AttackDebounce=true;
local SwingAnimation=JeffTheKillerHumanoid:LoadAnimation(JeffTheKiller:FindFirstChild("Swing"));
local SwingChoice=math.random(1,2);
local HitChoice=math.random(1,3);
SwingAnimation:Play();
SwingAnimation:AdjustSpeed(2.1+(math.random()*0.1));
if JeffTheKillerScript and JeffTheKiller and JeffTheKillerKnife then
local SwingSound=JeffTheKiller:FindFirstChild("Torso"):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
wait(0.5)
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;
Jumpable=false;
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" or Blockage.Parent.Name=="Humanoid" and Blockage.Parent.Name=="HumanoidRootPart" and Blockage.Parent.ClassName=="Humanoid" then
Jumpable=false;
end;
end;
if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHumanoid and JeffTheKillerHumanoid.Health~=0 and not JeffTheKillerHumanoid.Sit and Jumpable then
JeffTheKillerHumanoid.Jump=true;
end;
end;
if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHumanoidRootPart and JeffTheKillerHead:FindFirstChild("RakeStep")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("RakeStep"):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 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
JeffTheKillerHead.Mouth.Transparency=1;
JeffTheKillerHead.Mouth2.Transparency=0;
JeffTheKillerHead.Mouth2.MouthDecal.Transparency=0;
JeffTheKiller.Wander.Disabled=false;
AlreadyDo=true;
wait(5);
AlreadyDo=false;
end;
if JeffTheKiller.Target.Value==true and AlreadyDo==false then
JeffTheKillerHead.Mouth.Transparency=0;
JeffTheKillerHead.Mouth2.Transparency=1;
JeffTheKillerHead.Mouth2.MouthDecal.Transparency=1;
JeffTheKiller.Wander.Disabled=true;
AlreadyDo=true;
wait(5);
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;