Player becomes invisible when sit down

local WantedTransparency = 1 -- Change this to the transparency you want it to be.
script.Parent.ChildAdded:Connect(function()
	if script.Parent.Occupant then
		for i,v in pairs(script.Parent.Occupant.Parent:GetChildren()) do
			if v:IsA("BasePart") then
				if v.Name == "HumanoidRootPart" then
					-- Will ignore HumanoidRootPart
				else
					v.Transparency = WantedTransparency
				end
			elseif v:IsA("Accessory") then
				v.Handle.Transparency = WantedTransparency
			end
		end
	end
end)
7 Likes