local F=script repeat wait(.1)until F and(F.Parent and(F.Parent.ClassName=="\077\111\100\101\108"and(F.Parent:FindFirstChild("\072\101\097\100")and F.Parent:FindFirstChild("\084\111\114\115\111"))))local c=F.Parent function raycast(F,t,D)local C,U=game.Workspace:FindPartOnRay(Ray.new(F+t*.05,t*D),c)if C~=nil and U then if C.Name=="\072\097\110\100\108\101"and not C.CanCollide or string.sub(C.Name,1,6)=="\069\102\102\101\099\116"and not C.CanCollide then local c=D-(U-F).magnitude return raycast(U,t,c)end end return C,U end function RayCast(F,c,t,D)return(game:GetService("\087\111\114\107\115\112\097\099\101")):FindPartOnRayWithIgnoreList(Ray.new(F,c.unit*(t or 999.999)),D)end local t for F,c in pairs(c:GetChildren())do if c and(c.ClassName=="\072\117\109\097\110\111\105\100"and c.Health~=0)then t=c end end local D=false local C=(c:FindFirstChild("\084\111\114\115\111")):FindFirstChild("\075\110\105\102\101")local U=c:FindFirstChild("\072\101\097\100")local m=c:FindFirstChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")local O=false local S=false local B=false local N=false local f=false local h;((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 j=((c:FindFirstChild("\084\111\114\115\111")):FindFirstChild("\078\101\099\107")).C0 function FindNearestBae()local U=100 local O for S,B in pairs((game:GetService("\087\111\114\107\115\112\097\099\101")):GetChildren())do if F and(c and(t and(t.Health~=0 and(B.className=="\077\111\100\101\108"and(B~=c and(B.Name~=c.Name and(B:FindFirstChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")and B:FindFirstChild("\072\101\097\100"))))))))then local S=B:FindFirstChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")local N for F,c in pairs(B:GetChildren())do if c and(c.ClassName=="\072\117\109\097\110\111\105\100"and c.Health~=0)then N=c end end if B and(S and(N and(N.Health~=0 and(S.Position-m.Position).magnitude<U)))then O=S U=(S.Position-m.Position).magnitude local f,h=raycast(m.Position,(S.Position-m.Position).unit,500)if f and(f.Parent and(f.Parent.ClassName=="\077\111\100\101\108"and(f.Parent:FindFirstChild("\072\117\109\097\110\105\111\100\082\111\111\116\080\097\114\116")and f.Parent:FindFirstChild("\072\101\097\100"))))then if B and(S and(N and(N.Health~=0 and((S.Position-m.Position).magnitude<9 and not D))))then spawn(function()D=true local U=t:LoadAnimation(c:FindFirstChild("\065\116\116\097\099\107\065\110\105\109\097\116\105\111\110"))local O=math.random(1,2)local f=math.random(1,3)U:Play()if F and(c and(C and C:FindFirstChild("\083\119\105\110\103")))then local F=C:FindFirstChild("\083\119\105\110\103")F.Pitch=1+math.random()*.04 F:Play()end wait(.2)if B and(S and(N and(N.Health~=0 and(S.Position-m.Position).magnitude<8)))then N:TakeDamage(20)if f==1 and(F and(c and(C and C:FindFirstChild("\072\105\116\049"))))then local F=C:FindFirstChild("\072\105\116\049")F.Pitch=1+math.random()*.04 F:Play()elseif f==2 and(F and(c and(C and C:FindFirstChild("\072\105\116\050"))))then local F=C:FindFirstChild("\072\105\116\050")F.Pitch=1+math.random()*.04 F:Play()elseif f==3 and(F and(c and(C and C:FindFirstChild("\072\105\116\051"))))then local F=C:FindFirstChild("\072\105\116\051")F.Pitch=1+math.random()*.04 F:Play()end end wait(1)D=false end)end end end end end return O end while wait(.1)do local D=t.TargetPoint local C,p=RayCast((m.CFrame+(CFrame.new(m.Position,Vector3.new(D.X,m.Position.Y,D.Z))).lookVector*(m.Size.Z/2)).p,m.CFrame.lookVector,m.Size.Z*2.5,{c,c})local b=false if C then b=true if C and(C.Parent and C.Parent.ClassName~="\087\111\114\107\115\112\097\099\101")then local F for c,t in pairs(C.Parent:GetChildren())do if t and(t.ClassName=="\072\117\109\097\110\111\105\100"and t.Health~=0)then F=t end end if C and C:IsA("\084\101\114\114\097\105\110")then local F=C:WorldToCellPreferSolid(p-Vector3.new(0,2,0))local c,t,D=C:GetCell(F.X,F.Y,F.Z)if c==Enum.CellMaterial.Water then b=false end elseif F or C.ClassName=="\084\114\117\115\115\080\097\114\116"or C.ClassName=="\087\101\100\103\101\080\097\114\116"or C.Name=="\072\097\110\100\108\101"and C.Parent.ClassName=="\072\097\116"or C.Name=="\072\097\110\100\108\101"and C.Parent.ClassName=="\084\111\111\108"then b=false end end if F and(c and(t and(t.Health~=0 and(not t.Sit and b))))then wait(1)t.Jump=true end end if F and(c and(U and(m and(U:FindFirstChild("\074\101\102\102\095\083\116\101\112")and((m.Velocity-Vector3.new(0,m.Velocity.y,0)).magnitude>=5 and(not O and(t and t.Health~=0)))))))then spawn(function()O=true local D=Ray.new(m.Position,Vector3.new(0,-4,0))local C,S=(game:GetService("\087\111\114\107\115\112\097\099\101")):FindPartOnRay(D,c)if C then local D=(U:FindFirstChild("\074\101\102\102\095\083\116\101\112")):Clone()D.Parent=U D:Play()D:Destroy()if F and(c and(t and(t.Health~=0 and t.WalkSpeed<17)))then wait(.4)elseif F and(c and(t and(t.Health~=0 and t.WalkSpeed>17)))then wait(.15)end end O=false end)end local s=FindNearestBae()local I if s then for F,c in pairs(s.Parent:GetChildren())do if c and(c.ClassName=="\072\117\109\097\110\111\105\100"and c.Health~=0)then I=c end end end if F and(c and(t and(t.Health~=0 and(s and(s.Parent and(I and I.Jump))))))then wait(1)t.Jump=true end if F and(c and(t and(t.Health~=0 and(s and(I and(I.Health~=0 and(s.Position-m.Position).magnitude<1e+20))))))then if F and(c and(U and(U:FindFirstChild("")and not(U:FindFirstChild("")).IsPlaying)))then(U:FindFirstChild("")).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;(U:FindFirstChild("")):Play()end elseif F and(c and(t and(t.Health~=0 and(s and(I and(I.Health~=0 and(s.Position-m.Position).magnitude>1e+19))))))then if F and(c and(U and(U:FindFirstChild("")and(U:FindFirstChild("")).IsPlaying)))then if not B then spawn(function()B=true repeat wait(.1)if F and(c and(U and U:FindFirstChild("")))then(U:FindFirstChild("")).Volume=(U:FindFirstChild("")).Volume-.1 else break end until(U:FindFirstChild("")).Volume==0 or(U:FindFirstChild("")).Volume<0;(U:FindFirstChild("")).Volume=0;(U:FindFirstChild("")):Stop()B=false end)end end end if not h and(F and(c and(t and(t.Health~=0 and(s and(I and(I.Health~=0 and(s.Position-m.Position).magnitude<50)))))))then local t=math.random(1,2)if t==1 and(F and(c and c:FindFirstChild("\074\101\102\102\095\083\099\101\110\101\095\083\111\117\110\100\049")))then h=c:FindFirstChild("\074\101\102\102\095\083\099\101\110\101\095\083\111\117\110\100\049")elseif t==2 and(F and(c and c:FindFirstChild("\074\101\102\102\095\083\099\101\110\101\095\083\111\117\110\100\050")))then h=c:FindFirstChild("\074\101\102\102\095\083\099\101\110\101\095\083\111\117\110\100\050")end if F and(c and(h and not h.IsPlaying))then h.Volume=.5 h:Play()end elseif F and(c and(t and(t.Health~=0 and(s and(I and(I.Health~=0 and(s.Position-m.Position).magnitude>50))))))then if F and(c and(h and h.IsPlaying))then if not N then spawn(function()N=true repeat wait(.1)if F and(c and h)then h.Volume=h.Volume-.01 else break end until h.Volume==0 or h.Volume<0 if h then h.Volume=0 h:Stop()end h=nil N=false end)end end end if not s and not B then spawn(function()B=true repeat wait(.1)if F and(c and(U and U:FindFirstChild("")))then(U:FindFirstChild("")).Volume=(U:FindFirstChild("")).Volume-.1 else break end until(U:FindFirstChild("")).Volume==0 or(U:FindFirstChild("")).Volume<0;(U:FindFirstChild("")).Volume=0;(U:FindFirstChild("")):Stop()B=false end)end if not s and not N then spawn(function()N=true repeat wait(.1)if F and(c and h)then h.Volume=h.Volume-.01 else break end until h.Volume==0 or h.Volume<0 if h then h.Volume=0 h:Stop()end h=nil N=false end)end if s then S=true if S and(not f and(F and(c and(U and U:FindFirstChild("\070\111\117\110\100")))))then c.Target.Value=true;(U:FindFirstChild("\070\111\117\110\100")):Play()wait(.4);(U:FindFirstChild("\082\097\107\101\083\099\114\101\097\109")):Play()f=true end if F and(c and(t and t.Health~=0))then if s and(I and(I.Health~=0 and(s.Position-m.Position).magnitude>5))then t.WalkSpeed=c.Configuration.BloodHourWalkSpeed.Value elseif s and(I and(I.Health~=0 and(s.Position-m.Position).magnitude<5))then t.WalkSpeed=1 end t:MoveTo(s.Position+(s.Position-m.Position).unit*2,(game:GetService("\087\111\114\107\115\112\097\099\101")):FindFirstChild("\084\101\114\114\097\105\110"))local F=((c:FindFirstChild("\084\111\114\115\111")).Position.Y-(s.Parent:FindFirstChild("\072\101\097\100")).Position.Y)/10 if F>-1.5 and F<1.5 then((c:FindFirstChild("\084\111\114\115\111")):FindFirstChild("\078\101\099\107")).C0=j*CFrame.fromEulerAnglesXYZ(F,0,0)end if F<-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 F>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 S=false f=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 F and(c and(t and t.Health~=0))then t.WalkSpeed=16 c.Target.Value=false end end spawn(function()local F=false while wait(.1)do if c.Target.Value==false and F==false then c.Wander.Disabled=false F=true wait(10)F=false end if c.Target.Value==true and F==false then c.Wander.Disabled=true F=true wait(10)F=false end end end)if F and(c and t)then t.DisplayDistanceType="\078\111\110\101"t.HealthDisplayDistance=0 t.Name="\078\080\067"t.NameDisplayDistance=0 t.NameOcclusion="\069\110\101\109\121\079\099\099\108\117\115\105\111\110"t.AutoJumpEnabled=true t.AutoRotate=true t.MaxHealth=2000 t.JumpPower=100 t.MaxSlopeAngle=89.9 end if F and(c and(t and not t.AutoJumpEnabled))then t.AutoJumpEnabled=true end if F and(c and(t and not t.AutoRotate))then t.AutoRotate=true end if F and(c and(t and t.PlatformStand))then t.PlatformStand=false end if F and(c and(t and t.Sit))then t.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=100;
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("")and not JeffTheKillerHead:FindFirstChild("").IsPlaying then
JeffTheKillerHead:FindFirstChild("").Volume=JeffTheKiller:FindFirstChild("Configuration"):FindFirstChild("RakeThemeVolume").Value;
JeffTheKillerHead:FindFirstChild(""):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("")and JeffTheKillerHead:FindFirstChild("").IsPlaying then
if not JeffLaughDebounce then
spawn(function()
JeffLaughDebounce=true;
repeat wait(0.1);if JeffTheKillerScript and JeffTheKiller and JeffTheKillerHead and JeffTheKillerHead:FindFirstChild("")then JeffTheKillerHead:FindFirstChild("").Volume=JeffTheKillerHead:FindFirstChild("").Volume-0.1;else break;end;until JeffTheKillerHead:FindFirstChild("").Volume==0 or JeffTheKillerHead:FindFirstChild("").Volume<0;
JeffTheKillerHead:FindFirstChild("").Volume=0;
JeffTheKillerHead:FindFirstChild(""):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("")then JeffTheKillerHead:FindFirstChild("").Volume=JeffTheKillerHead:FindFirstChild("").Volume-0.1;else break;end;until JeffTheKillerHead:FindFirstChild("").Volume==0 or JeffTheKillerHead:FindFirstChild("").Volume<0;
JeffTheKillerHead:FindFirstChild("").Volume=0;
JeffTheKillerHead:FindFirstChild(""):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.BloodHourWalkSpeed.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=16;
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);
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=100;
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;