function updatechar()for M,r in pairs(character:GetChildren())do if CanViewBody then if r.Name=="\072\101\097\100"then r.LocalTransparencyModifier=1 r.CanCollide=false r.face.LocalTransparencyModifier=1 end else if r:IsA("\080\097\114\116")or r:IsA("\085\110\105\111\110\079\112\101\114\097\116\105\111\110")or r:IsA("\077\101\115\104\080\097\114\116")then r.LocalTransparencyModifier=1 r.CanCollide=false end end if r:IsA("\065\099\099\101\115\115\111\114\121")then(r:FindFirstChild("\072\097\110\100\108\101")).LocalTransparencyModifier=1;(r:FindFirstChild("\072\097\110\100\108\101")).CanCollide=false end if r:IsA("\072\097\116")then(r:FindFirstChild("\072\097\110\100\108\101")).LocalTransparencyModifier=1;(r:FindFirstChild("\072\097\110\100\108\101")).CanCollide=false end end end function lerp(M,r,f)return M*(1-f)+r*f end


function updatechar()
	
	for _, v in pairs(character:GetChildren())do
		if CanViewBody then
			if v.Name == 'Head' then
				v.LocalTransparencyModifier = 1
				v.CanCollide = false
				v.face.LocalTransparencyModifier = 1
			end
		else
			if v:IsA'Part' or v:IsA'UnionOperation' or v:IsA'MeshPart' then
				v.LocalTransparencyModifier = 1
				v.CanCollide = false
			end
		end
		if v:IsA'Accessory' then
			v:FindFirstChild('Handle').LocalTransparencyModifier = 1
			v:FindFirstChild('Handle').CanCollide = false
		end
		if v:IsA'Hat' then
			v:FindFirstChild('Handle').LocalTransparencyModifier = 1
			v:FindFirstChild('Handle').CanCollide = false
		end

	end
	
end

function lerp(a, b, t)
	return a * (1-t) + (b*t)
end
