script.Parent.Part.Touched:connect(function(p)
	if p.Parent:FindFirstChild('Humanoid') and not p.Parent['Right Leg']:FindFirstChild("Shoe") then
	sp = p.Parent
	LeftShoe= script.Parent.LeftShoe:Clone()
	RightShoe= script.Parent.RightShoe:Clone()
	if sp:FindFirstChild('Left Leg') then
		weld=Instance.new("Weld")
		weld.Name="leftShoeWeld"
		weld.Part0=sp['Left Leg']
		weld.Part1=LeftShoe
		weld.C0=CFrame.new(Vector3.new(0,-.575,-.4))*CFrame.Angles(0,0,0)
		weld.Parent=sp['Left Leg']
		LeftShoe.Parent = sp['Left Leg']
	end
	if sp:FindFirstChild('Right Leg') then
		weld=Instance.new("Weld")
		weld.Name="rightShoeWeld"
		weld.Part0=sp['Right Leg']
		weld.Part1=RightShoe
		weld.C0=CFrame.new(Vector3.new(0,-.575,-.4))*CFrame.Angles(0,0,0)
		weld.Parent=sp['Right Leg']
		RightShoe.Parent = sp['Right Leg']
	end
	end
end)

1 comment

0

Elaborate. What is it supposed to do and what is it or isn't it doing. Provide any errors outputted.