local e=5 local u=script.Parent.Parent.WalkPoints:WaitForChild("\049")local R=script.Parent.Parent.WalkPoints:GetChildren()script.Parent.Head.Weld.Part0=script.Parent.Head script.Parent.Head.Weld.Part1=script.Parent.FakeHead script.Parent.Torso.Neck.Part1=script.Parent.Head script.Parent.Torso.Neck.Part0=script.Parent.Torso script.Parent.Torso["\076\101\102\116 \072\105\112"].Part1=script.Parent["\076\101\102\116 \076\101\103"]script.Parent.Torso["\076\101\102\116 \072\105\112"].Part0=script.Parent.Torso script.Parent.Torso["\082\105\103\104\116 \072\105\112"].Part1=script.Parent["\082\105\103\104\116 \076\101\103"]script.Parent.Torso["\082\105\103\104\116 \072\105\112"].Part0=script.Parent.Torso script.Parent.Torso["\076\101\102\116 \083\104\111\117\108\100\101\114"].Part1=script.Parent["\076\101\102\116 \065\114\109"]script.Parent.Torso["\076\101\102\116 \083\104\111\117\108\100\101\114"].Part0=script.Parent.Torso script.Parent.Torso["\082\105\103\104\116 \083\104\111\117\108\100\101\114"].Part1=script.Parent["\082\105\103\104\116 \065\114\109"]script.Parent.Torso["\082\105\103\104\116 \083\104\111\117\108\100\101\114"].Part0=script.Parent.Torso function WeldClothes()local e=script.Parent:GetChildren()for u=1,#e,1 do if e[u].ClassName=="\080\097\114\116"and e[u].Name~="\070\097\107\101\072\101\097\100"then local R=e[u].Clothes:GetChildren()for p=1,#R,1 do local j=Instance.new("\087\101\108\100")j.Part0=e[u]j.Part1=R[p]local q=CFrame.new(e[u].Position)local G=e[u].CFrame:inverse()*q local k=R[p].CFrame:inverse()*q j.C0=G j.C1=k j.Parent=e[u]R[p].Anchored=false R[p].CanCollide=false end end end end WeldClothes()script.Parent.Torso.Touched:connect(function(e)if e.Parent:FindFirstChild("\072\117\109\097\110\111\105\100")then script.Parent.Torso.Anchored=true wait(.5)script.Parent.Torso.Anchored=false end end)wait(30)while true do for e=1,#R,1 do repeat script.Parent.Humanoid:MoveTo(script.Parent.Parent.WalkPoints[e].Position)wait(.5)until(script.Parent.Torso.Position-script.Parent.Parent.WalkPoints[e].Position).magnitude<=4 end wait(e)for e=1,#R,1 do repeat script.Parent.Humanoid:MoveTo(script.Parent.Parent.WalkPoints[(#R+1)-e].Position)wait(.5)until(script.Parent.Torso.Position-script.Parent.Parent.WalkPoints[(#R+1)-e].Position).magnitude<=4 end wait(e)end

local waitTime = 5 --This is the only thing you will need to change, it is the time he spends at the end of the points before going back the other way.

local waitPoint = script.Parent.Parent.WalkPoints:WaitForChild("1")
local points = script.Parent.Parent.WalkPoints:GetChildren()

script.Parent.Head.Weld.Part0 = script.Parent.Head
script.Parent.Head.Weld.Part1 = script.Parent.FakeHead
script.Parent.Torso["Neck"].Part1 = script.Parent.Head
script.Parent.Torso["Neck"].Part0 = script.Parent.Torso

script.Parent.Torso["Left Hip"].Part1 = script.Parent["Left Leg"]
script.Parent.Torso["Left Hip"].Part0 = script.Parent.Torso

script.Parent.Torso["Right Hip"].Part1 = script.Parent["Right Leg"]
script.Parent.Torso["Right Hip"].Part0 = script.Parent.Torso

script.Parent.Torso["Left Shoulder"].Part1 = script.Parent["Left Arm"]
script.Parent.Torso["Left Shoulder"].Part0 = script.Parent.Torso

script.Parent.Torso["Right Shoulder"].Part1 = script.Parent["Right Arm"]
script.Parent.Torso["Right Shoulder"].Part0 = script.Parent.Torso

function WeldClothes()
	local children = script.Parent:GetChildren()
	for i = 1, #children do
		if children[i].ClassName == 'Part' and children[i].Name ~= 'FakeHead' then
			local clothes = children[i].Clothes:GetChildren()
			for j = 1, #clothes do
				local W = Instance.new('Weld')
				W.Part0 = children[i]
				W.Part1 = clothes[j]
				local CJ = CFrame.new(children[i].Position)
				local C0 = children[i].CFrame:inverse()*CJ
				local C1 = clothes[j].CFrame:inverse()*CJ
				W.C0 = C0
				W.C1 = C1
				W.Parent = children[i]
				clothes[j].Anchored = false
				clothes[j].CanCollide = false
				--[[
				local Y = Instance.new("Weld")
				Y.Part0 = hit
				Y.Part1 = g.Middle
				Y.C0 = CFrame.new(0, 0, 0)
				Y.Parent = Y.Part0]]
			end
		end
	end
end
WeldClothes()

script.Parent.Torso.Touched:connect(function(part)
	if part.Parent:FindFirstChild("Humanoid") then
		script.Parent.Torso.Anchored = true
		wait(.5)
		script.Parent.Torso.Anchored = false
	end
end)
wait(30)
while true do
	for i=1,#points do
		repeat
			script.Parent.Humanoid:MoveTo(script.Parent.Parent.WalkPoints[i].Position)
			wait(.5)
		until (script.Parent.Torso.Position - script.Parent.Parent.WalkPoints[i].Position).magnitude <= 4
	end
	wait(waitTime)
	for i=1,#points do
		repeat
			script.Parent.Humanoid:MoveTo(script.Parent.Parent.WalkPoints[#points+1-i].Position)
			wait(.5)
		until (script.Parent.Torso.Position - script.Parent.Parent.WalkPoints[#points+1-i].Position).magnitude <= 4
	end
	wait(waitTime)
end
